2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
var m=Object.defineProperty,d=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var r=(t,e,l)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[e]=l,a=(t,e)=>{for(var l in e||(e={}))c.call(e,l)&&r(t,l,e[l]);if(i)for(var l of i(e))s.call(e,l)&&r(t,l,e[l]);return t},n=(t,e)=>d(t,p(e));import{c as o}from"./index-DQD77jjB.js";import{g as u}from"./rangePickerProps-BPpM6dzr.js";function b(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"属性名称",component:"Input",componentProps:{placeholder:"请输入属性名称"},rules:"required"},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注"}}]}function g(){return[{fieldName:"name",label:"属性名称",component:"Input",componentProps:{placeholder:"请输入属性名称",allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:n(a({},u()),{allowClear:!0})}]}function F(){return[{field:"id",title:"属性编号",minWidth:100},{field:"name",title:"属性名称",minWidth:200},{field:"remark",title:"备注",minWidth:180},{field:"createTime",title:"创建时间",minWidth:180,formatter:"formatDateTime"},{title:"操作",minWidth:120,fixed:"right",slots:{default:"actions"}}]}function N(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"propertyId",label:"属性",component:"ApiSelect",componentProps:t=>({api:o,placeholder:"请选择属性",labelField:"name",valueField:"id",disabled:!!t.id}),rules:"required",dependencies:{triggerFields:[""]}},{fieldName:"name",label:"属性值名称",component:"Input",componentProps:{placeholder:"请输入属性值名称"},rules:"required"},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注"}}]}function W(){return[{fieldName:"propertyId",label:"属性项",component:"ApiSelect",componentProps:{api:o,placeholder:"请选择属性项",labelField:"name",valueField:"id",disabled:!0,allowClear:!1}},{fieldName:"name",label:"属性值名称",component:"Input",componentProps:{placeholder:"请输入属性值名称",allowClear:!0}}]}function I(){return[{field:"id",title:"属性值编号",minWidth:100},{field:"name",title:"属性值名称",minWidth:180},{field:"remark",title:"备注",minWidth:180},{title:"创建时间",field:"createTime",minWidth:180,formatter:"formatDateTime"},{title:"操作",minWidth:120,fixed:"right",slots:{default:"actions"}}]}export{g as a,I as b,W as c,b as d,N as e,F as u};
|