From 2fd8242a14241beba63e71c6f4222b702f0e2f30 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周二, 06 5月 2025 16:54:44 +0800 Subject: [PATCH] wwww --- HIAWms/web/src/components/Table/state.ts | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/HIAWms/web/src/components/Table/state.ts b/HIAWms/web/src/components/Table/state.ts new file mode 100644 index 0000000..0bcfd16 --- /dev/null +++ b/HIAWms/web/src/components/Table/state.ts @@ -0,0 +1,9 @@ +import { ref, provide, inject } from 'vue' + +export const createProvide = (key: string, methods: Record<string, any>) => { + provide(key, methods) +} + +export const useInject = (key: string) => { + return inject(key) +} -- Gitblit v1.9.3