diff --git a/README.md b/README.md index 4e64c07..7ce217c 100644 --- a/README.md +++ b/README.md @@ -125,31 +125,7 @@ const form = reactive({ config: {}, // Props options: [], // select options }, - { - type: 'input', - key: 'userName', - label: '登录名', - config: {}, // Props - }, - { - type: 'input', - key: 'nickName', - label: '用户名称', - config: {}, // Props - }, - { - type: 'select', - key: 'role', - label: '用户角色', - config: {}, // Props - options: [], // select options - }, - { - type: 'input', - key: 'phoneNumber', - label: '手机号码', - config: {}, // Props - }, + ..., { type: 'dateRangePicker', key: 'updateTime', @@ -180,42 +156,7 @@ const table = reactive>({ sortDirections: ['ascend', 'descend'], }, }, - { - title: '用户姓名', - dataIndex: 'nickName', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, - { - title: '医院名称', - dataIndex: 'hospitalName', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, - { - title: '手机号', - dataIndex: 'phoneNumber', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, - { - title: '操作时间', - dataIndex: 'operateTime', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, + ..., { title: '操作', slotName: 'operation', diff --git a/packages/table-basic/README.md b/packages/table-basic/README.md index 4e64c07..7ce217c 100644 --- a/packages/table-basic/README.md +++ b/packages/table-basic/README.md @@ -125,31 +125,7 @@ const form = reactive({ config: {}, // Props options: [], // select options }, - { - type: 'input', - key: 'userName', - label: '登录名', - config: {}, // Props - }, - { - type: 'input', - key: 'nickName', - label: '用户名称', - config: {}, // Props - }, - { - type: 'select', - key: 'role', - label: '用户角色', - config: {}, // Props - options: [], // select options - }, - { - type: 'input', - key: 'phoneNumber', - label: '手机号码', - config: {}, // Props - }, + ..., { type: 'dateRangePicker', key: 'updateTime', @@ -180,42 +156,7 @@ const table = reactive>({ sortDirections: ['ascend', 'descend'], }, }, - { - title: '用户姓名', - dataIndex: 'nickName', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, - { - title: '医院名称', - dataIndex: 'hospitalName', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, - { - title: '手机号', - dataIndex: 'phoneNumber', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, - { - title: '操作时间', - dataIndex: 'operateTime', - ellipsis: true, - tooltip: true, - sortable: { - sortDirections: ['ascend', 'descend'], - }, - }, + ..., { title: '操作', slotName: 'operation', diff --git a/packages/table-basic/package.json b/packages/table-basic/package.json index a35dd0d..311645a 100644 --- a/packages/table-basic/package.json +++ b/packages/table-basic/package.json @@ -1,6 +1,6 @@ { "name": "vue3-arco-table", - "version": "0.5.1", + "version": "0.5.2", "description": "vue3封装的table+form组件库", "private": false, "scripts": {