| | |
| | | return [ |
| | | { |
| | | title: 'ID', |
| | | width: 150, |
| | | dataIndex: 'id', |
| | | fixed: 'left', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: '姓名', |
| | | dataIndex: 'name', |
| | | width: 120, |
| | | width: 150, |
| | | filters: [ |
| | | { text: 'Male', value: 'male' }, |
| | | { text: 'Female', value: 'female' }, |
| | | ], |
| | | }, |
| | | { |
| | | title: '地址', |
| | |
| | | { |
| | | title: '编号', |
| | | dataIndex: 'no', |
| | | width: 80, |
| | | width: 150, |
| | | sorter: true, |
| | | defaultHidden: true, |
| | | }, |
| | | { |
| | | title: '开始时间', |
| | | width: 120, |
| | | sorter: true, |
| | | dataIndex: 'beginTime', |
| | | }, |
| | | { |
| | | title: '结束时间', |
| | | width: 120, |
| | | sorter: true, |
| | | dataIndex: 'endTime', |
| | | }, |
| | |
| | | title: 'ID', |
| | | width: 150, |
| | | dataIndex: 'id', |
| | | sorter: true, |
| | | sortOrder: 'ascend', |
| | | }, |
| | | { |
| | | title: '姓名', |
| | |
| | | dataIndex: 'no', |
| | | width: 120, |
| | | filters: [ |
| | | { text: 'Male', value: 'male' }, |
| | | { text: 'Female', value: 'female' }, |
| | | { text: 'Male', value: 'male', children: [] }, |
| | | { text: 'Female', value: 'female', children: [] }, |
| | | ], |
| | | }, |
| | | |
| | |
| | | { |
| | | // title: '地址', |
| | | dataIndex: 'address', |
| | | width: 120, |
| | | slots: { title: 'customAddress' }, |
| | | sorter: true, |
| | | }, |
| | |
| | | dataIndex: 'no', |
| | | width: 120, |
| | | filters: [ |
| | | { text: 'Male', value: 'male' }, |
| | | { text: 'Female', value: 'female' }, |
| | | { text: 'Male', value: 'male', children: [] }, |
| | | { text: 'Female', value: 'female', children: [] }, |
| | | ], |
| | | }, |
| | | { |
| | |
| | | dataIndex: 'no', |
| | | colSpan: 0, |
| | | filters: [ |
| | | { text: 'Male', value: 'male' }, |
| | | { text: 'Female', value: 'female' }, |
| | | { text: 'Male', value: 'male', children: [] }, |
| | | { text: 'Female', value: 'female', children: [] }, |
| | | ], |
| | | customRender: renderContent, |
| | | }, |
| | |
| | | label: `字段33`, |
| | | component: 'Select', |
| | | defaultValue: '1', |
| | | slot: 'custom', |
| | | componentProps: { |
| | | options: [ |
| | | { |