import{a as x,a6 as e}from"./index-a6248777.js";import{R as c,C as o}from"./index-c34407b8.js";import{F as l}from"./index-d52e4464.js";import{I as d,S as r,a as j}from"./StyleEditor-aacf693b.js";import"./index-3bb9c29d.js";import{S as m}from"./index-4c77abfb.js";import{s as u,R as t}from"./index.module-11b0b230.js";import"./SearchOutlined-02bf3816.js";function w({item:a,onChange:s}){const[i]=l.useForm();return x.useEffect(()=>{i.resetFields()},[a]),e.jsxs(l,{className:u.grid,form:i,colon:!1,labelCol:{flex:"96px"},wrapperCol:{flex:"auto"},initialValues:{iconMode:"vertical",...a},onValuesChange:(f,n)=>{s==null||s(n)},children:[e.jsx("h3",{className:"title",children:"图文导航"}),e.jsxs(l.Item,{label:"标题",children:[e.jsx("div",{style:{marginBottom:8},children:e.jsx(l.Item,{noStyle:!0,name:"title",children:e.jsx(d,{allowClear:!0})})}),e.jsx(l.Item,{noStyle:!0,name:["styles","title"],children:e.jsx(r,{filter:["color","fontSize"]})})]}),e.jsx(l.Item,{label:"列数",name:"columns",children:e.jsx(j,{min:1,max:6})}),e.jsxs(c,{children:[e.jsx(o,{span:12,children:e.jsx(l.Item,{label:"行高",name:"rowHeight",children:e.jsx(m,{min:32,max:256,step:8})})}),e.jsx(o,{span:12,children:e.jsx(l.Item,{label:"间距",name:"gutter",children:e.jsx(m,{min:0,max:24})})})]}),e.jsx(l.Item,{label:"图文布局",name:"iconMode",children:e.jsxs(t.Group,{children:[e.jsx(t,{value:"vertical",children:"上下"}),e.jsx(t,{value:"horizonal",children:"左右"})]})}),e.jsx(l.Item,{label:"版块样式",name:["styles","default"],children:e.jsx(r,{filter:["backgroundColor","margin","borderRadius"]})}),e.jsx(l.Item,{label:"项目样式",name:["styles","link"],children:e.jsx(r,{filter:["color","fontSize"]})})]})}export{w as default};
