@qin-ui/antd-vue-pro 1.0.15 → 1.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 +12 -5
- package/package.json +1 -1
package/es/form/index.js
CHANGED
|
@@ -16557,19 +16557,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16557
16557
|
};
|
|
16558
16558
|
const exposed = shallowReactive({ refs });
|
|
16559
16559
|
const updateActivePath = (path) => {
|
|
16560
|
+
var _a;
|
|
16560
16561
|
if (props.form) {
|
|
16561
|
-
props.form.setActivePath(path);
|
|
16562
|
+
(_a = props.form) == null ? void 0 : _a.setActivePath(path);
|
|
16562
16563
|
} else {
|
|
16563
16564
|
emit("update:activePath", path);
|
|
16564
16565
|
}
|
|
16565
16566
|
};
|
|
16566
16567
|
const _formData = computed(
|
|
16567
|
-
() =>
|
|
16568
|
+
() => {
|
|
16569
|
+
var _a;
|
|
16570
|
+
return props.form ? (_a = props.form) == null ? void 0 : _a.formData.value : props.formData;
|
|
16571
|
+
}
|
|
16568
16572
|
);
|
|
16569
16573
|
const updateFormData = (value, path) => {
|
|
16570
|
-
var _a
|
|
16574
|
+
var _a;
|
|
16571
16575
|
if (props.form) {
|
|
16572
|
-
(
|
|
16576
|
+
(_a = props.form) == null ? void 0 : _a.setFormData(path, value);
|
|
16573
16577
|
} else {
|
|
16574
16578
|
const keys2 = path.split(".");
|
|
16575
16579
|
const newFormData = keys2.reduce(
|
|
@@ -16589,7 +16593,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16589
16593
|
updateActivePath(path);
|
|
16590
16594
|
};
|
|
16591
16595
|
const _fields = computed(
|
|
16592
|
-
() =>
|
|
16596
|
+
() => {
|
|
16597
|
+
var _a;
|
|
16598
|
+
return props.form ? (_a = props.form) == null ? void 0 : _a.fields.value : props.fields;
|
|
16599
|
+
}
|
|
16593
16600
|
);
|
|
16594
16601
|
const command = computed(() => {
|
|
16595
16602
|
return props.form && !props.autoCommandDisabled ? useCommand({
|