@qin-ui/antd-vue-pro 2.0.15 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/form/index.js +1 -5
- package/package.json +1 -1
package/es/form/index.js
CHANGED
|
@@ -493,18 +493,14 @@ function useForm(...args) {
|
|
|
493
493
|
...useFormRef()
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
const initPropsMap = /* @__PURE__ */ new Map();
|
|
497
496
|
const getInitProps = (field) => {
|
|
498
497
|
const { component } = field;
|
|
499
498
|
const type = component === "input" ? "" : field.type;
|
|
500
499
|
if (COMPONENT_MAP.has(component)) {
|
|
501
500
|
const k = [component, type].filter(Boolean).join(".");
|
|
502
|
-
if (
|
|
503
|
-
return initPropsMap.get(k);
|
|
504
|
-
} else if (INJECT_CONFIG[k]) {
|
|
501
|
+
if (INJECT_CONFIG[k]) {
|
|
505
502
|
const config = INJECT_CONFIG[k];
|
|
506
503
|
const injectProps = inject(config.injectionKey, config.default);
|
|
507
|
-
initPropsMap.set(k, injectProps);
|
|
508
504
|
return injectProps;
|
|
509
505
|
}
|
|
510
506
|
}
|