From 82f8d8e613670130ae67aacd80895fbf7a704bbd Mon Sep 17 00:00:00 2001 From: xkfe Date: Mon, 5 Aug 2024 18:35:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E5=86=99=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + .../ProTable/components/ColSetting.vue | 3 +- packages/components/ProTable/index.vue | 10 +- packages/components/SearchForm/index.vue | 4 +- pnpm-lock.yaml | 73 ++ src/App.vue | 725 +++--------------- src/components/SettingsDrawer.vue | 74 ++ src/components/TableAutoRequest.vue | 84 ++ src/components/TableAutoSearch.vue | 89 +++ src/components/TableBase.vue | 228 ++++++ src/element.scss | 127 --- src/main.ts | 4 +- src/utils/color.ts | 66 ++ 13 files changed, 714 insertions(+), 774 deletions(-) create mode 100644 src/components/SettingsDrawer.vue create mode 100644 src/components/TableAutoRequest.vue create mode 100644 src/components/TableAutoSearch.vue create mode 100644 src/components/TableBase.vue create mode 100644 src/utils/color.ts diff --git a/package.json b/package.json index 8e1a02d..b02f427 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "@element-plus/icons-vue": "^2.3.1", "@unocss/reset": "^0.61.5", "@vueuse/core": "^10.11.0", + "axios": "^1.7.3", "dayjs": "^1.11.12", "element-plus": "^2.7.7", "sortablejs": "^1.15.2", diff --git a/packages/components/ProTable/components/ColSetting.vue b/packages/components/ProTable/components/ColSetting.vue index 2f31639..effa24f 100644 --- a/packages/components/ProTable/components/ColSetting.vue +++ b/packages/components/ProTable/components/ColSetting.vue @@ -19,7 +19,7 @@ defineExpose({ + diff --git a/packages/components/ProTable/index.vue b/packages/components/ProTable/index.vue index 6fa293c..d723282 100644 --- a/packages/components/ProTable/index.vue +++ b/packages/components/ProTable/index.vue @@ -234,7 +234,7 @@ defineExpose({ /> -
+
@@ -271,20 +271,20 @@ defineExpose({ v-if="item.type && columnTypes.includes(item.type)" v-bind="item" :align="item.align ?? 'center'" - :reserve-selection="item.type == 'selection'" + :reserve-selection="item.type === 'selection'" >