1 |
- function i(){return[{title:"ID",dataIndex:"id",fixed:"left",width:200},{title:"\u59D3\u540D",dataIndex:"name",width:150,filters:[{text:"Male",value:"male"},{text:"Female",value:"female"}]},{title:"\u5730\u5740",dataIndex:"address"},{title:"\u7F16\u53F7",dataIndex:"no",width:150,sorter:!0,defaultHidden:!0},{title:"\u5F00\u59CB\u65F6\u95F4",width:150,sorter:!0,dataIndex:"beginTime"},{title:"\u7ED3\u675F\u65F6\u95F4",width:150,sorter:!0,dataIndex:"endTime"}]}function r(){return[{title:"ID",width:150,dataIndex:"id",sorter:!0,sortOrder:"ascend"},{title:"\u59D3\u540D",dataIndex:"name",width:120},{title:"\u5730\u5740",dataIndex:"address"},{title:"\u7F16\u53F7",dataIndex:"no",width:80}]}function l(){return[{title:"ID",dataIndex:"id",width:200},{title:"\u59D3\u540D",dataIndex:"name",width:120},{title:"\u5730\u5740",dataIndex:"address",sorter:!0,children:[{title:"\u7F16\u53F7",dataIndex:"no",width:120,filters:[{text:"Male",value:"male",children:[]},{text:"Female",value:"female",children:[]}]},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"beginTime",width:120},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"endTime",width:120}]}]}function o(){return[{title:"ID",dataIndex:"id",width:200},{dataIndex:"name",width:120},{dataIndex:"address",width:120,sorter:!0},{title:"\u7F16\u53F7",dataIndex:"no",width:120,filters:[{text:"Male",value:"male",children:[]},{text:"Female",value:"female",children:[]}]},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"beginTime",width:120},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"endTime",width:120}]}const n=({text:t,index:e})=>{const a={children:t,attrs:{}};return e===9&&(a.attrs.colSpan=0),a};function s(){return[{title:"ID",dataIndex:"id",width:300,customRender:n},{title:"\u59D3\u540D",dataIndex:"name",width:300,customRender:n},{title:"\u5730\u5740",dataIndex:"address",colSpan:2,width:120,sorter:!0,customRender:({text:t,index:e})=>{const a={children:t,attrs:{}};return e===2&&(a.attrs.rowSpan=2),e===3&&(a.attrs.colSpan=0),a}},{title:"\u7F16\u53F7",dataIndex:"no",colSpan:0,filters:[{text:"Male",value:"male",children:[]},{text:"Female",value:"female",children:[]}],customRender:n},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"beginTime",width:200,customRender:n},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"endTime",width:200,customRender:n}]}const d=(t=6)=>{const e=[];for(let a=0;a<t;a++)e.push({field:`field${a}`,label:`\u5B57\u6BB5${a}`,component:"Input",colProps:{xl:12,xxl:8}});return e};function c(){return{labelWidth:100,schemas:[...d(5),{field:"field11",label:"Slot\u793A\u4F8B",component:"Select",slot:"custom",colProps:{xl:12,xxl:8}}]}}function m(){return(()=>{const t=[];for(let e=0;e<40;e++)t.push({id:`${e}`,name:"John Brown",age:`1${e}`,no:`${e+10}`,address:"New York No. 1 Lake ParkNew York No. 1 Lake Park",beginTime:new Date().toLocaleString(),endTime:new Date().toLocaleString()});return t})()}function u(){return(()=>{const t=[];for(let e=0;e<40;e++)t.push({id:`${e}`,name:"John Brown",age:`1${e}`,no:`${e+10}`,address:"New York No. 1 Lake ParkNew York No. 1 Lake Park",beginTime:new Date().toLocaleString(),endTime:new Date().toLocaleString(),children:[{id:`l2-${e}`,name:"John Brown",age:`1${e}`,no:`${e+10}`,address:"New York No. 1 Lake ParkNew York No. 1 Lake Park",beginTime:new Date().toLocaleString(),endTime:new Date().toLocaleString()}]});return t})()}export{d as getAdvanceSchema,i as getBasicColumns,m as getBasicData,r as getBasicShortColumns,o as getCustomHeaderColumns,c as getFormConfig,s as getMergeHeaderColumns,l as getMultipleHeaderColumns,u as getTreeTableData};
|