From 8d539d4c219217e07fc9337d97e04f24eb182594 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 9 Mar 2022 22:54:28 +0800 Subject: [PATCH] feat: add @pureadmin/components --- package.json | 1 + pnpm-lock.yaml | 47 ++++++++++++++++++++- src/layout/components/notice/index.vue | 38 +++++++++++++---- src/layout/components/notice/noticeItem.vue | 2 +- src/layout/components/notice/noticeList.vue | 2 +- src/main.ts | 1 + src/style/index.scss | 26 ++++++++++++ 7 files changed, 105 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 12b54e4a7..526877a75 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "@ctrl/tinycolor": "^3.4.0", "@logicflow/core": "0.7.1", "@logicflow/extension": "0.7.1", + "@pureadmin/components": "^0.0.9", "@vueuse/core": "^7.7.0", "@vueuse/motion": "^2.0.0-beta.9", "@vueuse/shared": "^7.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bdccaf251..79b06547c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,7 @@ specifiers: "@iconify/vue": ^3.1.3 "@logicflow/core": 0.7.1 "@logicflow/extension": 0.7.1 + "@pureadmin/components": ^0.0.9 "@types/element-resize-detector": 1.1.3 "@types/js-cookie": ^3.0.1 "@types/lodash-es": ^4.17.6 @@ -104,6 +105,7 @@ dependencies: "@ctrl/tinycolor": 3.4.0 "@logicflow/core": 0.7.1 "@logicflow/extension": 0.7.1 + "@pureadmin/components": 0.0.9_vue@3.2.31 "@vueuse/core": 7.7.0_vue@3.2.31 "@vueuse/motion": 2.0.0-beta.9_vue@3.2.31 "@vueuse/shared": 7.7.0_vue@3.2.31 @@ -218,6 +220,37 @@ packages: "@jridgewell/trace-mapping": 0.3.4 dev: true + /@ant-design/colors/5.1.1: + resolution: + { + integrity: sha512-Txy4KpHrp3q4XZdfgOBqLl+lkQIc3tEvHXOimRN1giX1AEC7mGtyrO9p8iRGJ3FLuVMGa2gNEzQyghVymLttKQ== + } + dependencies: + "@ctrl/tinycolor": 3.4.0 + dev: false + + /@ant-design/icons-svg/4.2.1: + resolution: + { + integrity: sha512-EB0iwlKDGpG93hW8f85CTJTs4SvMX7tt5ceupvhALp1IF44SeUFOMhKUOYqpsoYWQKAOuTRDMqn75rEaKDp0Xw== + } + dev: false + + /@ant-design/icons-vue/6.0.1_vue@3.2.31: + resolution: + { + integrity: sha512-HigIgEVV6bbcrz2A92/qDzi/aKWB5EC6b6E1mxMB6aQA7ksiKY+gi4U94TpqyEIIhR23uaDrjufJ+xCZQ+vx6Q== + } + peerDependencies: + vue: ">=3.0.3" + dependencies: + "@ant-design/colors": 5.1.1 + "@ant-design/icons-svg": 4.2.1 + "@types/lodash": 4.14.179 + lodash: 4.17.21 + vue: 3.2.31 + dev: false + /@antfu/utils/0.5.0: resolution: { @@ -1110,6 +1143,19 @@ packages: } dev: false + /@pureadmin/components/0.0.9_vue@3.2.31: + resolution: + { + integrity: sha512-WCxmnKRDwB+51aEFHr5snIytDCjJuovucfQhVJroQleFYsFga+aYKwmvIRFutOkqVa5hndUXLcUm9k8oTKngcQ== + } + peerDependencies: + vue: ^3.2.0 + dependencies: + "@ant-design/icons-svg": 4.2.1 + "@ant-design/icons-vue": 6.0.1_vue@3.2.31 + vue: 3.2.31 + dev: false + /@rollup/plugin-node-resolve/13.1.3: resolution: { @@ -1202,7 +1248,6 @@ packages: { integrity: sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w== } - dev: true /@types/minimatch/3.0.5: resolution: diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index 14b699f44..e864cd053 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -1,8 +1,11 @@ + + diff --git a/src/layout/components/notice/noticeItem.vue b/src/layout/components/notice/noticeItem.vue index 900469050..16f378db1 100644 --- a/src/layout/components/notice/noticeItem.vue +++ b/src/layout/components/notice/noticeItem.vue @@ -10,8 +10,8 @@ const props = defineProps({ }); const titleRef = ref(null); -const descriptionRef = ref(null); const titleTooltip = ref(false); +const descriptionRef = ref(null); const descriptionTooltip = ref(false); function hoverTitle() { diff --git a/src/layout/components/notice/noticeList.vue b/src/layout/components/notice/noticeList.vue index 90f6e986f..7b7c3e06c 100644 --- a/src/layout/components/notice/noticeList.vue +++ b/src/layout/components/notice/noticeList.vue @@ -1,7 +1,7 @@