From 75084dc6671afb7d39afa386f5fc309054939084 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Fri, 2 Aug 2024 10:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B6=E9=83=A8=E5=9B=BE=E6=A0=87=20?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=AE=8C=E6=95=B4=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 顶部图标 图片完整展示 --- package-lock.json | 27 ++ package.json | 1 + src/views/index.vue | 574 +++++++++++++++++++-------------------- src/views/page/index.vue | 3 + 4 files changed, 313 insertions(+), 292 deletions(-) diff --git a/package-lock.json b/package-lock.json index b66d5f53..1d4da895 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@codemirror/lang-json": "^6.0.1", "@codemirror/lang-sql": "^6.5.4", "@codemirror/theme-one-dark": "^6.1.2", + "@dataview/datav-vue3": "^0.0.0-test.1672506674342", "@element-plus/icons-vue": "^2.3.1", "@jiaminghi/data-view": "^2.10.0", "@kjgl77/datav-vue3": "^1.7.2", @@ -669,6 +670,27 @@ "node": ">=10" } }, + "node_modules/@dataview/datav-vue3": { + "version": "0.0.0-test.1672506674342", + "resolved": "https://registry.npmmirror.com/@dataview/datav-vue3/-/datav-vue3-0.0.0-test.1672506674342.tgz", + "integrity": "sha512-d0oT/msAi592CTvWmQl0umkLpHgMwtTN2+peyo0L2GHNG7b4cKeO9meEF5o28DgFzRwOLeNQW73vKCF4JC+ihw==", + "dependencies": { + "@jiaminghi/color": "^0.1.1", + "classnames": "^2.3.2", + "lodash-es": "^4.17.21" + }, + "peerDependencies": { + "vue": ">=3.2.0" + } + }, + "node_modules/@dataview/datav-vue3/node_modules/@jiaminghi/color": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/@jiaminghi/color/-/color-0.1.1.tgz", + "integrity": "sha512-M09+Sb5HGqVim0zo+nG5gU1v+6gXT8ptr0BZR6dMGt83XmCJgnZtO8s7llTW4hLFFFM5co6geZvTekqLpSPAAQ==", + "dependencies": { + "@babel/runtime": "^7.5.5" + } + }, "node_modules/@element-plus/icons-vue": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/@element-plus/icons-vue/-/icons-vue-2.3.1.tgz", @@ -2102,6 +2124,11 @@ "fsevents": "~2.3.2" } }, + "node_modules/classnames": { + "version": "2.5.1", + "resolved": "https://registry.npmmirror.com/classnames/-/classnames-2.5.1.tgz", + "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==" + }, "node_modules/claygl": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/claygl/-/claygl-1.3.0.tgz", diff --git a/package.json b/package.json index dc5e3db2..413fea68 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@codemirror/lang-json": "^6.0.1", "@codemirror/lang-sql": "^6.5.4", "@codemirror/theme-one-dark": "^6.1.2", + "@dataview/datav-vue3": "^0.0.0-test.1672506674342", "@element-plus/icons-vue": "^2.3.1", "@jiaminghi/data-view": "^2.10.0", "@kjgl77/datav-vue3": "^1.7.2", diff --git a/src/views/index.vue b/src/views/index.vue index e7e472f6..d4a444f9 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,311 +1,301 @@ \ No newline at end of file + .community_center { + // width: calc(100% - 100px); + width: 100%; + height: calc(100% - 68px); + // height: 100%; + // margin: 10px 50px 30px 50px; + position: relative; + // background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 31, 65, 1)); + } +} + diff --git a/src/views/page/index.vue b/src/views/page/index.vue index af777d34..b6387e4c 100644 --- a/src/views/page/index.vue +++ b/src/views/page/index.vue @@ -620,6 +620,9 @@ const onSearch = () => { console.log('Expanded Keys:', Array.from(keysToExpand)) console.log('Selected Keys:', keysToSelect) + if (keysToSelect.length === 0) { + ElMessage.warning(`未搜索到${searchValue.value}`) + } expandedKeys.value = [...new Set(keysToExpand)] selectedKeys.value = keysToSelect