vben
2020-12-31 9c2f3f30bbd8abcccc4f256183ed7794da7fcda2
src/views/demo/table/tableData.tsx
@@ -5,13 +5,18 @@
  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: '地址',
@@ -20,14 +25,19 @@
    {
      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',
    },
@@ -40,6 +50,8 @@
      title: 'ID',
      width: 150,
      dataIndex: 'id',
      sorter: true,
      sortOrder: 'ascend',
    },
    {
      title: '姓名',
@@ -80,8 +92,8 @@
          dataIndex: 'no',
          width: 120,
          filters: [
            { text: 'Male', value: 'male' },
            { text: 'Female', value: 'female' },
            { text: 'Male', value: 'male', children: [] },
            { text: 'Female', value: 'female', children: [] },
          ],
        },
@@ -116,6 +128,7 @@
    {
      // title: '地址',
      dataIndex: 'address',
      width: 120,
      slots: { title: 'customAddress' },
      sorter: true,
    },
@@ -125,8 +138,8 @@
      dataIndex: 'no',
      width: 120,
      filters: [
        { text: 'Male', value: 'male' },
        { text: 'Female', value: 'female' },
        { text: 'Male', value: 'male', children: [] },
        { text: 'Female', value: 'female', children: [] },
      ],
    },
    {
@@ -190,8 +203,8 @@
      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,
    },
@@ -234,6 +247,7 @@
        label: `字段33`,
        component: 'Select',
        defaultValue: '1',
        slot: 'custom',
        componentProps: {
          options: [
            {