Skip to content

角色选择属性

此特性为活字格V9.0.100.0新增功能

csharp
    public class MyPluginCellType : CellType
    {
        [RoleSelectorProperty]
        public List<string> Roles { get; set; }
    }

在设计器中效果如下

1693542572237-01f40e5c-17ec-4346-8770-f2cedf6fbb3b.png

注意,标注RoleSelectorProperty的属性类型必须是 List<string>

更新: 2023-11-02 09:47:21
原文: https://www.yuque.com/robert-bh51n/ea8l6c/skvpw51bwfyzgzzc