cloud-web-corejs 1.1.0-dev.19 → 1.1.0-dev.20
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/package.json +1 -1
- package/src/components/baseInputExport/mixins.js +0 -6
- package/src/components/xform/docs/2026-09 /345/212/250/346/200/201/345/255/227/346/256/265/350/247/204/345/210/231/344/270/216/346/265/201/347/250/213/346/216/247/345/210/266/346/211/247/350/241/214/351/241/272/345/272/217/350/220/275/345/234/260/346/226/271/346/241/210.md" +409 -0
- package/src/components/xform/form-designer/designer.js +2101 -2084
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +34 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +13 -1
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +660 -602
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +8 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +6306 -6285
- package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +54 -0
- package/src/components/xform/form-render/container-item/tab-item.vue +138 -129
- package/src/components/xform/form-render/fieldControlEngine.js +200 -0
- package/src/components/xform/form-render/fieldControlMixin.js +524 -0
- package/src/components/xform/form-render/formDynamicFieldMixin.js +2 -0
- package/src/components/xform/form-render/index.vue +161 -153
- package/src/components/xform/form-render/indexMixin.js +5404 -5331
- package/src/components/xform/mixins/defaultHandle.js +713 -707
- package/src/components/xform/utils/util.js +1711 -1708
|
@@ -1504,6 +1504,40 @@ tmixins = {
|
|
|
1504
1504
|
// 进度框形态:逐行校验 → 成败进结果表 → 通过的行一次性入表格。
|
|
1505
1505
|
// 默认关闭,关闭时下面仍是原来的"全屏 loading + 整批交付"老链路。
|
|
1506
1506
|
if (importOption.showProgressDialog) {
|
|
1507
|
+
// 确认回调在进度框形态下是前置钩子:解析完立刻跑,通过后再 startFrontImport。
|
|
1508
|
+
// done() = 继续导入;close() = 中止。不返回 false 则自动继续(console.log 也能进进度框)。
|
|
1509
|
+
if (importOption.onConfirmImportEnabled) {
|
|
1510
|
+
let started = false;
|
|
1511
|
+
const done = () => {
|
|
1512
|
+
if (started) return;
|
|
1513
|
+
started = true;
|
|
1514
|
+
that.startFrontImport(resultData, file);
|
|
1515
|
+
};
|
|
1516
|
+
const close = () => {
|
|
1517
|
+
if (started) return;
|
|
1518
|
+
started = true;
|
|
1519
|
+
that.loadingObj && that.loadingObj.close();
|
|
1520
|
+
that.loadingObj = null;
|
|
1521
|
+
that.clearImportTimer();
|
|
1522
|
+
};
|
|
1523
|
+
try {
|
|
1524
|
+
if (
|
|
1525
|
+
that
|
|
1526
|
+
.getFieldTarget()
|
|
1527
|
+
.handleCustomEvent(
|
|
1528
|
+
importOption.onConfirmImport,
|
|
1529
|
+
["resultData", "file", "done", "close"],
|
|
1530
|
+
[resultData, file, done, close]
|
|
1531
|
+
) !== false
|
|
1532
|
+
) {
|
|
1533
|
+
done();
|
|
1534
|
+
}
|
|
1535
|
+
} catch (et) {
|
|
1536
|
+
console.error(et);
|
|
1537
|
+
close();
|
|
1538
|
+
}
|
|
1539
|
+
return;
|
|
1540
|
+
}
|
|
1507
1541
|
that.startFrontImport(resultData, file);
|
|
1508
1542
|
return;
|
|
1509
1543
|
}
|
|
@@ -118,7 +118,13 @@ modules = {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
-
mounted() {
|
|
121
|
+
mounted() {
|
|
122
|
+
const formRef = this.getFormRef && this.getFormRef();
|
|
123
|
+
if (formRef && formRef.isFieldControlV2 && formRef.isFieldControlV2()) {
|
|
124
|
+
this.initFieldAttrs();
|
|
125
|
+
formRef.syncFieldControlValidation();
|
|
126
|
+
}
|
|
127
|
+
},
|
|
122
128
|
/*watch: {
|
|
123
129
|
currentValue(val) {
|
|
124
130
|
this.initFieldModel(true);
|
|
@@ -1040,6 +1046,12 @@ modules = {
|
|
|
1040
1046
|
}
|
|
1041
1047
|
},
|
|
1042
1048
|
buildFieldRules() {
|
|
1049
|
+
const formRef = this.getFormRef && this.getFormRef();
|
|
1050
|
+
if (formRef && formRef.isFieldControlV2 && formRef.isFieldControlV2() &&
|
|
1051
|
+
!formRef.isFieldControlFieldVisible(this.field)) {
|
|
1052
|
+
this.clearFieldRules();
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1043
1055
|
if (!this.field.formItemFlag || this.field.options.hidden) {
|
|
1044
1056
|
return;
|
|
1045
1057
|
}
|