diff --git a/public/icons/calendarIcon.png b/public/icons/calendarIcon.png new file mode 100644 index 0000000..fe49a73 Binary files /dev/null and b/public/icons/calendarIcon.png differ 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()} > -
+
+ +