From 358e8f30447f8ba05af42b66d45ddf1a93878b6d Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 06 5月 2025 17:38:09 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- 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