import{a as c,a6 as e}from"./index-a6248777.js";import{R as n,C as t}from"./index-c34407b8.js";import{F as r}from"./index-d52e4464.js";import{I as o,S as x}from"./StyleEditor-aacf693b.js";import"./index-3bb9c29d.js";import{S as i}from"./index-21ce67d6.js";import{R as d,P as j}from"./PermissionPicker-1ac915bc.js";import"./SearchOutlined-02bf3816.js";import"./index-8d4fb46c.js";function y({item:s,onChange:l}){const[a]=r.useForm();return c.useEffect(()=>{a.resetFields()},[s]),e.jsxs(r,{form:a,colon:!1,labelCol:{flex:"96px"},initialValues:{header:!0,footer:!0,...s},onValuesChange:(u,m)=>{l==null||l(m)},children:[e.jsx("h3",{className:"title",children:"页面"}),!s.key.startsWith(".")&&e.jsx(r.Item,{label:"标识",name:"key",children:e.jsx(o,{allowClear:!0})}),e.jsx(r.Item,{label:"名称",name:"title",rules:[{required:!0,message:"名称不能为空"}],children:e.jsx(o,{allowClear:!0})}),e.jsxs(n,{children:[e.jsx(t,{span:12,children:e.jsx(r.Item,{label:"页眉",name:"header",valuePropName:"checked",children:e.jsx(i,{})})}),e.jsx(t,{span:12,children:e.jsx(r.Item,{label:"页脚",name:"footer",valuePropName:"checked",children:e.jsx(i,{})})})]}),e.jsx(r.Item,{label:"准入角色",name:["admittance","roles"],children:e.jsx(d,{})}),e.jsx(r.Item,{label:"准入权限",name:["admittance","permissions"],children:e.jsx(j,{})}),e.jsx(r.Item,{label:"样式",name:["styles","default"],children:e.jsx(x,{filter:["backgroundColor"]})})]})}export{y as default};
