import{a as m,a6 as e}from"./index-a6248777.js";import"./index-c34407b8.js";import{F as l}from"./index-d52e4464.js";import{S as s,I as t}from"./StyleEditor-aacf693b.js";import"./index-3bb9c29d.js";import"./SearchOutlined-02bf3816.js";function p({item:a,onChange:r}){const[o]=l.useForm();return m.useEffect(()=>{o.resetFields()},[a]),e.jsxs(l,{form:o,colon:!1,labelCol:{flex:"96px"},wrapperCol:{flex:"auto"},initialValues:a,onValuesChange:(n,i)=>{r==null||r(i)},children:[e.jsx("h3",{className:"title",children:"用户栏"}),e.jsx(l.Item,{label:"外框样式",name:["styles","default"],children:e.jsx(s,{filter:["color","backgroundColor","height","margin","borderRadius"]})}),e.jsx(l.Item,{label:"头像样式",name:["styles","avatar"],children:e.jsx(s,{filter:["border"]})}),e.jsx(l.Item,{label:"按钮样式",name:["styles","button"],children:e.jsx(s,{filter:["color","fontSize"]})}),e.jsx(l.Item,{label:"姓名",name:"name",children:e.jsx(t,{placeholder:"留空则使用当前用户姓名"})}),e.jsx(l.Item,{label:"姓名后缀",name:"nameSuffix",children:e.jsx(t,{})}),e.jsx(l.Item,{label:"职务",name:"jobTitle",children:e.jsx(t,{})})]})}export{p as default};
