Skip to content

角色选择属性

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

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

在设计器中效果如下

1693550167412-8207b691-15e8-43ef-9fd0-c039c1f4d1d9.png

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

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