From 744c02798afea06a55cc43c6b4bf1c0998903329 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Thu, 12 Sep 2024 17:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BD=91=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/layout/adder/AdderPage.tsx | 5 +- src/layout/adder/AdderPageBack.tsx | 2 +- src/layout/adder/CustomAdder.tsx | 195 ++++++++++++++++++++--------- src/layout/adder/useLink.ts | 34 +++++ src/utils/ImageUploader.tsx | 2 +- 6 files changed, 179 insertions(+), 60 deletions(-) create mode 100644 src/layout/adder/useLink.ts diff --git a/package.json b/package.json index 2d75726..b976c75 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@fingerprintjs/fingerprintjs": "^4.4.3", "ali-oss": "^6.21.0", "ant-design-vue": "4.x", + "clsx": "^2.1.1", "dayjs": "^1.11.13", "localforage": "^1.10.0", "lunar-typescript": "^1.7.5", diff --git a/src/layout/adder/AdderPage.tsx b/src/layout/adder/AdderPage.tsx index 785ab50..62b8520 100644 --- a/src/layout/adder/AdderPage.tsx +++ b/src/layout/adder/AdderPage.tsx @@ -4,6 +4,7 @@ import useLayoutStore from '../useLayoutStore' import { OhVueIcon, addIcons } from 'oh-vue-icons' import { MdKeyboardcommandkey, FaCompass, FaPencilRuler } from 'oh-vue-icons/icons' import CustomAdder from './CustomAdder' +import clsx from 'clsx' addIcons(MdKeyboardcommandkey, FaCompass, FaPencilRuler) const ItemButton = defineComponent({ @@ -53,7 +54,7 @@ export default defineComponent(() => { const isGame = computed(() => layout.state.current === 0) const type = ref(1) return () => ( -