cloud-web-corejs 1.0.54-dev.810 → 1.0.54-dev.811
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/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +44 -2
- package/src/components/VabUpload/mixins.js +126 -19
- package/src/components/VabUpload/view.vue +247 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/mobile/wf/content.vue +1665 -1556
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +29 -12
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
- package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
- package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
- package/src/components/xform/form-designer/designer.js +15 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +29 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -438
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +55 -3
- package/src/components/xform/form-render/container-item/data-table-mixin.js +33 -12
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +183 -32
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1642 -1700
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +12 -0
- package/src/components/xform/lang/en-US.js +10 -0
- package/src/components/xform/lang/zh-CN.js +12 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +1633 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -182
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/utils/pdfUtil.js +429 -429
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/user/home/wjl/content.vue +394 -31
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/wf_manage/list.vue +1116 -1116
|
@@ -509,6 +509,13 @@ function handleWidgetForTraverse(
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
+
/**
|
|
513
|
+
* 容器 → 子节点所在字段名。
|
|
514
|
+
*
|
|
515
|
+
* 注意:全库同一语义的映射有多份(designer.js 的局部表、indexMixin 的
|
|
516
|
+
* getTableFiledMap / getFormTemplateTableDTOs 两张局部表),改这里时请一并核对,
|
|
517
|
+
* 漏一份的后果参见 loopHandleWidgetItem 里关于 H5 容器的注释。
|
|
518
|
+
*/
|
|
512
519
|
export const itemFieldMap = {
|
|
513
520
|
grid: "cols",
|
|
514
521
|
table: "rows",
|
|
@@ -521,6 +528,7 @@ export const itemFieldMap = {
|
|
|
521
528
|
"vf-box": "widgetList",
|
|
522
529
|
card: "widgetList",
|
|
523
530
|
detail: "panes",
|
|
531
|
+
"detail-plain": "panes", // 与 indexMixin 的两张表对齐,此前这张漏了
|
|
524
532
|
"detail-pane": "widgetList",
|
|
525
533
|
"detail-h5": "panes",
|
|
526
534
|
"h5-card": "panes",
|
|
@@ -724,16 +732,22 @@ export function traverseWidgetsOfContainer(
|
|
|
724
732
|
});
|
|
725
733
|
} else if (con.category === "container") {
|
|
726
734
|
//自定义容器
|
|
735
|
+
/* 容器类型不在 itemFieldMap 里时 key 是 undefined,con[undefined] 也是 undefined,
|
|
736
|
+
直接 .forEach 会抛 TypeError —— 表里没覆盖到的容器(list-h5、detail-tabs、
|
|
737
|
+
tree-pane…)都会中招,故取值后判空再遍历。 */
|
|
727
738
|
let key = itemFieldMap[con.type];
|
|
728
|
-
con[key]
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
739
|
+
let childList = key ? con[key] : null;
|
|
740
|
+
if (childList && childList.length > 0) {
|
|
741
|
+
childList.forEach((cw) => {
|
|
742
|
+
handleContainerTraverse(
|
|
743
|
+
cw,
|
|
744
|
+
fieldHandler,
|
|
745
|
+
containerHandler,
|
|
746
|
+
internalContainerCallFlag,
|
|
747
|
+
staticWidgetsIncluded
|
|
748
|
+
);
|
|
749
|
+
});
|
|
750
|
+
}
|
|
737
751
|
}
|
|
738
752
|
}
|
|
739
753
|
|
|
@@ -1554,6 +1568,16 @@ export function loopHandleWidget(widgetList, callback) {
|
|
|
1554
1568
|
});
|
|
1555
1569
|
}
|
|
1556
1570
|
|
|
1571
|
+
/* 子节点挂在 panes 上的容器(detail-h5 另有 widgetList 承载底部动作栏按钮) */
|
|
1572
|
+
const PANES_CONTAINER_TYPES = [
|
|
1573
|
+
"detail",
|
|
1574
|
+
"detail-plain",
|
|
1575
|
+
"detail-h5",
|
|
1576
|
+
"h5-card",
|
|
1577
|
+
];
|
|
1578
|
+
/* 内容在 widgetList、按钮在 buttonWidgetList 的分组容器 */
|
|
1579
|
+
const PANE_CONTAINER_TYPES = ["detail-pane", "h5-card-pane"];
|
|
1580
|
+
|
|
1557
1581
|
function loopHandleWidgetItem(e, p, callback) {
|
|
1558
1582
|
if ("container" === e.category) {
|
|
1559
1583
|
callback(e, p);
|
|
@@ -1575,6 +1599,18 @@ function loopHandleWidgetItem(e, p, callback) {
|
|
|
1575
1599
|
loopHandleWidgetItem(childItem, e, callback);
|
|
1576
1600
|
});
|
|
1577
1601
|
}
|
|
1602
|
+
/* 行按钮与顶部查询按钮,与 data-table 的 buttons 同一性质,
|
|
1603
|
+
不遍历的话它们的 wf 联动与显隐规则同样不生效 */
|
|
1604
|
+
if (!!e.lineButtons && e.lineButtons.length > 0) {
|
|
1605
|
+
e.lineButtons.forEach((childItem) => {
|
|
1606
|
+
loopHandleWidgetItem(childItem, e, callback);
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
if (!!e.buttons && e.buttons.length > 0) {
|
|
1610
|
+
e.buttons.forEach((childItem) => {
|
|
1611
|
+
loopHandleWidgetItem(childItem, e, callback);
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1578
1614
|
} else if ("grid" === e.type) {
|
|
1579
1615
|
e.cols &&
|
|
1580
1616
|
e.cols.length > 0 &&
|
|
@@ -1611,7 +1647,14 @@ function loopHandleWidgetItem(e, p, callback) {
|
|
|
1611
1647
|
loopHandleWidgetItem(childItem, e, callback);
|
|
1612
1648
|
});
|
|
1613
1649
|
});
|
|
1614
|
-
|
|
1650
|
+
/* 子节点放在 panes 里的容器。detail-h5 / h5-card 是 H5 版式的两个,
|
|
1651
|
+
此前它们没有分支、落到最后的兜底 else,而兜底只遍历 widgetList ——
|
|
1652
|
+
等于 H5 表单的字段和按钮一个都进不了 traverseAllWidgets* 的回调,
|
|
1653
|
+
wf 联动(hiddenByWf/enabledByWf/wfEdit)、组件显隐规则等全部失效。
|
|
1654
|
+
设计器侧的 designer.js 早有正确映射("detail-h5"/"h5-card" → panes),
|
|
1655
|
+
这里是运行时遍历器没跟上。
|
|
1656
|
+
(detail-h5 的 widgetList 是底部动作栏按钮,也要一起遍历) */
|
|
1657
|
+
} else if (PANES_CONTAINER_TYPES.indexOf(e.type) > -1) {
|
|
1615
1658
|
if (e.panes) {
|
|
1616
1659
|
e.panes.forEach(function (childItem) {
|
|
1617
1660
|
loopHandleWidgetItem(childItem, e, callback);
|
|
@@ -1622,7 +1665,9 @@ function loopHandleWidgetItem(e, p, callback) {
|
|
|
1622
1665
|
loopHandleWidgetItem(childItem, e, callback);
|
|
1623
1666
|
});
|
|
1624
1667
|
}
|
|
1625
|
-
|
|
1668
|
+
/* h5-card-pane 与 detail-pane 同构:内容在 widgetList、分组按钮在 buttonWidgetList。
|
|
1669
|
+
兜底 else 只认 widgetList,会漏掉分组按钮(如自动骨架里的「新增」)。 */
|
|
1670
|
+
} else if (PANE_CONTAINER_TYPES.indexOf(e.type) > -1) {
|
|
1626
1671
|
if (e.widgetList) {
|
|
1627
1672
|
e.widgetList.forEach(function (childItem) {
|
|
1628
1673
|
loopHandleWidgetItem(childItem, e, callback);
|