import{D as r,U as o,A as s,G as a}from"./api.CAL9rITU.js";import{a as n}from"./authFunction.DqglRaEG.js";import"./index.BKEMpsLA.js";import"./vue.YrNK8sx4.js";const q=function({crudExpose:u}){return{crudOptions:{request:{pageRequest:async e=>await a(e),addRequest:async({form:e})=>await s(e),editRequest:async({form:e,row:t})=>(e.id=t.id,await o(e)),delRequest:async({row:e})=>await r(e.id)},form:{wrapper:{buttons:{ok:{text:"提交"}}}},actionbar:{buttons:{add:{show:n("area:Create")}}},toolbar:{show:!1},rowHandle:{buttons:{remove:{show:!0},edit:{show:!0}}},pagination:{show:!1},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},name:{title:"名称",search:{show:!0},treeNode:!0,type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"}},viewForm:{component:{placeholder:""},rules:[{required:!0,message:""}]}},color:{title:"颜色",type:"input",column:{show:!1,minWidth:120},form:{component:{placeholder:"请填写标签颜色"},rules:[{required:!0,message:"请填写标签颜色"}]},viewForm:{component:{placeholder:""},rules:[{required:!0,message:""}]}},description:{title:"标签描述",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写标签描述"},rules:[{required:!1,message:"请填写标签描述"}]},viewForm:{component:{placeholder:""},rules:[{required:!0,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{q as createCrudOptions};
