import{a as o,a6 as e}from"./index-a6248777.js";import"./index-c34407b8.js";import{F as l}from"./index-d52e4464.js";import{I as s,S as m}from"./StyleEditor-aacf693b.js";import"./index-3bb9c29d.js";import{S as p}from"./index-21ce67d6.js";import{G as x,T as c}from"./TagPicker-c69c9d39.js";import"./SearchOutlined-02bf3816.js";import"./index-8d4fb46c.js";function E({item:t,onChange:r}){const[a]=l.useForm();return o.useEffect(()=>{a.resetFields()},[t]),e.jsxs(l,{form:a,colon:!1,labelCol:{flex:"96px"},wrapperCol:{flex:"auto"},initialValues:{label:"当前角色",placeholder:"未选择",roleKey:"roleId",...t},onValuesChange:(d,i)=>{r==null||r(i)},children:[e.jsx("h3",{className:"title",children:"当前角色"}),e.jsx(l.Item,{label:"标签",name:["label"],children:e.jsx(s,{})}),e.jsx(l.Item,{label:"占位提示",name:["placeholder"],children:e.jsx(s,{})}),e.jsx(l.Item,{label:"角色标识",name:["roleKey"],children:e.jsx(s,{})}),e.jsx(l.Item,{label:"必填",name:["required"],children:e.jsx(p,{})}),e.jsx(l.Item,{label:"适用范围",name:["roleFilter","groupTypes"],children:e.jsx(x,{multiple:!0})}),e.jsx(l.Item,{label:"角色标签",name:["roleFilter","tags"],children:e.jsx(c,{multiple:!0,taggibles:["role"]})}),e.jsx(l.Item,{label:"版块样式",name:["styles","default"],children:e.jsx(m,{filter:["margin","borderRadius"]})})]})}export{E as default};
