diff --git a/packages/devui-vue/devui/form/src/components/form-item/form-item-types.ts b/packages/devui-vue/devui/form/src/components/form-item/form-item-types.ts index 4e340cccac..fcb1d898ce 100644 --- a/packages/devui-vue/devui/form/src/components/form-item/form-item-types.ts +++ b/packages/devui-vue/devui/form/src/components/form-item/form-item-types.ts @@ -107,5 +107,5 @@ export interface UseFormItemRule { _rules: ComputedRef; } -export const FORM_ITEM_TOKEN: InjectionKey = Symbol('dFormItem'); -export const LABEL_DATA: InjectionKey = Symbol('labelData'); +export const FORM_ITEM_TOKEN = 'dFormItem'; +export const LABEL_DATA = 'dFormLabelData'; diff --git a/packages/devui-vue/devui/form/src/form-types.ts b/packages/devui-vue/devui/form/src/form-types.ts index ddd8a9d105..5e87bd5de7 100644 --- a/packages/devui-vue/devui/form/src/form-types.ts +++ b/packages/devui-vue/devui/form/src/form-types.ts @@ -101,9 +101,9 @@ export interface FormContext extends FormProps { removeItemContext: (field: FormItemContext) => void; } -export const FORM_TOKEN: InjectionKey = Symbol('dForm'); +export const FORM_TOKEN = 'dForm'; -export const STYLE_TOKEN: InjectionKey = Symbol('dForm'); +export const STYLE_TOKEN = 'dFormStyle'; export interface DValidateResult { errors: E; diff --git a/packages/devui-vue/package.json b/packages/devui-vue/package.json index 79505c520e..16ee8734b3 100644 --- a/packages/devui-vue/package.json +++ b/packages/devui-vue/package.json @@ -1,6 +1,6 @@ { "name": "vue-devui", - "version": "1.6.2", + "version": "1.6.3", "license": "MIT", "description": "DevUI components based on Vite and Vue3", "keywords": [