From acc091644c4e80c9bfede9f423ef33c32253b2ff Mon Sep 17 00:00:00 2001 From: plightfield <1207120484@qq.com> Date: Thu, 26 Sep 2024 11:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=B0=8F=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/icons/calendarIcon.png | Bin 0 -> 2721 bytes src/layout/adder/AdderPage.tsx | 34 +++++++++++++-- src/layout/adder/CustomAdder.tsx | 6 ++- src/layout/adder/WidgetAdder.tsx | 69 +++++++++++++++++++++++++++++++ src/layout/useLayoutStore.ts | 1 + src/widgets/calendar/Large.tsx | 5 +++ src/widgets/calendar/Middle.tsx | 5 +++ src/widgets/calendar/Modal.tsx | 5 +++ src/widgets/calendar/Small.tsx | 5 +++ src/widgets/calendar/index.ts | 29 +++++++++++++ src/widgets/index.ts | 17 ++++++++ 11 files changed, 171 insertions(+), 5 deletions(-) create mode 100644 public/icons/calendarIcon.png create mode 100644 src/layout/adder/WidgetAdder.tsx create mode 100644 src/widgets/calendar/Large.tsx create mode 100644 src/widgets/calendar/Middle.tsx create mode 100644 src/widgets/calendar/Modal.tsx create mode 100644 src/widgets/calendar/Small.tsx create mode 100644 src/widgets/calendar/index.ts create mode 100644 src/widgets/index.ts diff --git a/public/icons/calendarIcon.png b/public/icons/calendarIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..fe49a734643f507391a21d8899277caf3d536f4a GIT binary patch literal 2721 zcmV;S3SRYzP)Px0JAWPRZA1s;25I;!q|-S71= zX5+R*Y!^bF>DOJa-uJ4$s(Ldcp%K}vC~|Ve-)BE-sL70lZ&Ixi>JbQsqe6-z0h0O; zivCx9tzG5E++MT$gy-o=Qq6Qj7IYf-(wvexw@;FlSV;~h$iCMNVHBps`-)%nNItb$ zlERUeNHaN#qA1dqitE2BYY64`HP48beSvOq z(b+kviJ$Ty2p&L-e^T$y4_o3}+zB0V-FO2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r!2;a9d)F8nJa{mO6iF^! zx`d4zHwt=BoH&90{ri7d05oRJm@#AU?%g}%w(RU|tX#RWbpSvFNIT98c?*$di}rxq zw{NTI?#7K9c>Vgdv3|-9L}cB%Xnu^~`UP=GC4w%DSB*q^chlU4-)m9i&Ko-}s9 zReAuGw8xJhM@&pi%MO9c%1Sl%shT@*;D8Vcn>TO9lqpkMHUMnJbnZe$61B)oCQqJh z@I#B`0DjBo&!3Nb_wE^&MvNGNef##c4iBJJ67y49WHMyP5F9#msO11~?b|Texf4_ZlTbHET_KZU!-g5exOnkm+`46cnR~#1 z0cw^YajGRwojQd+efrqyi|>2E({AwL!-t^yo)>m_L1%+B#vejYm@olbw{BH$U$tr# zE?>TEJQ^P#k27b^pljEzY9mC)YrN2V8f&T$0CfOjo2rPOr^8I@{P>oauJ`QO6Vxix zI4=|~bY4J0haq$*!b`h$?U0m|B$UuJPUSPT$R0?50H6Y0`+}bbLT7!X2}Ykla8F69L$?H&jV}m9|E8lfEJ`4NFWfv^5x5M{rYuRZEe+HnP zQnWmw{5nCBB!l#AzZ}&;$Zvt3Ks!H!U%br&*oG^LLgA3tf;i!80NKp#dB=AB@w6Ti zlpX%~f1DyI)omcQcZ=qT0O%mlJya^w;T>g(z5tTFYM?x%nE-$a0FMCBj$cqqU6)^t bvw8muyN?~1Y*t`h00000NkvXXu0mjfPvIbs literal 0 HcmV?d00001 diff --git a/src/layout/adder/AdderPage.tsx b/src/layout/adder/AdderPage.tsx index 19869bd..987111d 100644 --- a/src/layout/adder/AdderPage.tsx +++ b/src/layout/adder/AdderPage.tsx @@ -1,4 +1,12 @@ -import { computed, defineComponent, ref, Transition } from 'vue' +import { + computed, + defineComponent, + provide, + ref, + Transition, + type InjectionKey, + type Ref +} from 'vue' import AdderPageBack from './AdderPageBack' import useLayoutStore from '../useLayoutStore' import { OhVueIcon, addIcons } from 'oh-vue-icons' @@ -6,6 +14,8 @@ import { MdKeyboardcommandkey, FaCompass, FaPencilRuler } from 'oh-vue-icons/ico import CustomAdder from './CustomAdder' import clsx from 'clsx' import ThemeProvider from '@/utils/ThemeProvider' +import WidgetAdder from './WidgetAdder' +import { Form, Input, Select } from 'ant-design-vue' addIcons(MdKeyboardcommandkey, FaCompass, FaPencilRuler) const ItemButton = defineComponent({ @@ -50,10 +60,14 @@ const ItemButton = defineComponent({ } }) +export const AddToToken = Symbol('addTo') as InjectionKey> + export default defineComponent(() => { const layout = useLayoutStore() const isGame = computed(() => layout.state.current === 0) const type = ref(1) + const addTo = ref(layout.state.currentPage) + provide(AddToToken, addTo) return () => (
@@ -96,11 +110,25 @@ export default defineComponent(() => { } onContextmenu={(e) => e.stopPropagation()} > -
+
+ +