import{r}from"./index.Df8UJ10K.js";import{D as o,U as s,A as u,G as a}from"./api.Bh9dYQll.js";import"./vue.D1BjjNmv.js";const w=function({crudExpose:n}){return{crudOptions:{request:{pageRequest:async e=>await a(e),addRequest:async({form:e})=>await u(e),editRequest:async({form:e,row:t})=>(e.id=t.id,await s(e)),delRequest:async({row:e})=>await o(e.id)},form:{wrapper:{buttons:{ok:{text:"提交",show:r(e=>e.mode!=="view")}}}},actionbar:{buttons:{add:{show:!0}}},toolbar:{show:!1},rowHandle:{buttons:{remove:{show:!0},edit:{show:!0}}},pagination:{show:!0},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},search:{title:"关键字搜索",search:{show:!0,type:"input"},type:"input",form:{component:{placeholder:"请输入"},show:!1},column:{show:!1}},name:{title:"标签名称",search:{show:!0},treeNode:!0,type:"input",column:{Width:200},form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"}},viewForm:{component:{placeholder:""},rules:[{required:!0,message:""}]}},color:{title:"颜色",type:"input",column:{show:!1,Width:220},form:{value:"#FF5722",show:!1,component:{placeholder:"请填写标签颜色"},rules:[{required:!0,message:"请填写标签颜色"}]},viewForm:{component:{placeholder:""},rules:[{required:!0,message:""}]}},description:{title:"标签描述",type:"input",column:{width:1e3},form:{component:{placeholder:"请填写标签描述"},rules:[{required:!1,message:"请填写标签描述"}]},viewForm:{component:{placeholder:""},rules:[{required:!1,message:""}]}},sort:{title:"排序",type:"input",column:{minWidth:120},form:{value:1,show:!1,component:{placeholder:"请填写排序"},rules:[{required:!1,message:"请填写排序"}]},viewForm:{component:{placeholder:""},rules:[{required:!0,message:""}]}}}}}};export{w as createCrudOptions};
