@a2simcode/ui 0.0.284 → 0.0.285
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/.cursor/skills/ui-component-helper/README.md +86 -86
- package/.cursor/skills/ui-component-helper/SKILL.md +115 -115
- package/LICENSE +53 -53
- package/README.md +156 -156
- package/dist/components/table/index.d.ts +9 -3
- package/dist/components/table/src/table.vue.d.ts +3 -1
- package/dist/simcode-ui.es.js +179 -179
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/autocomplete.md +89 -89
- package/docs/components/barcode.md +101 -101
- package/docs/components/button-select.md +24 -24
- package/docs/components/button.md +117 -117
- package/docs/components/buttons.md +119 -119
- package/docs/components/card-list.md +38 -38
- package/docs/components/cascader-select.md +114 -114
- package/docs/components/checkbox.md +114 -114
- package/docs/components/code-mirror.md +85 -85
- package/docs/components/collapse.md +26 -26
- package/docs/components/comp.md +106 -106
- package/docs/components/count-up.md +24 -24
- package/docs/components/count.md +24 -24
- package/docs/components/data-panel.md +24 -24
- package/docs/components/date.md +76 -76
- package/docs/components/dialog-full.md +112 -112
- package/docs/components/dialog.md +127 -127
- package/docs/components/divider.md +24 -24
- package/docs/components/drawer.md +127 -127
- package/docs/components/dynamic-layer.md +118 -118
- package/docs/components/echarts.md +72 -72
- package/docs/components/editor.md +24 -24
- package/docs/components/form.md +87 -87
- package/docs/components/guid.md +39 -39
- package/docs/components/hpanel.md +24 -24
- package/docs/components/icon.md +56 -56
- package/docs/components/input-button.md +24 -24
- package/docs/components/input-code.md +24 -24
- package/docs/components/input-color.md +114 -114
- package/docs/components/input-layer.md +56 -56
- package/docs/components/input-rows.md +370 -370
- package/docs/components/input-tag.md +50 -50
- package/docs/components/input.md +129 -129
- package/docs/components/layer-form.md +61 -61
- package/docs/components/layer.md +127 -127
- package/docs/components/layout.md +132 -132
- package/docs/components/map.md +24 -24
- package/docs/components/menu.md +121 -121
- package/docs/components/meta/button.ts +212 -212
- package/docs/components/meta/buttons.ts +76 -76
- package/docs/components/meta/card-list.ts +210 -210
- package/docs/components/meta/code-mirror.ts +108 -108
- package/docs/components/meta/comp.ts +236 -236
- package/docs/components/meta/date.ts +267 -267
- package/docs/components/meta/echarts.ts +64 -64
- package/docs/components/meta/form-item.ts +62 -62
- package/docs/components/meta/form.ts +181 -181
- package/docs/components/meta/input-button.ts +175 -175
- package/docs/components/meta/input-cards.ts +112 -112
- package/docs/components/meta/input-code.ts +161 -161
- package/docs/components/meta/input-color.ts +243 -243
- package/docs/components/meta/input-rows.ts +119 -119
- package/docs/components/meta/layer-form.ts +74 -74
- package/docs/components/meta/map.ts +68 -68
- package/docs/components/meta/panel.ts +152 -152
- package/docs/components/meta/radio.ts +55 -55
- package/docs/components/meta/select.ts +279 -279
- package/docs/components/meta/slider.ts +270 -270
- package/docs/components/meta/table-panel.ts +326 -326
- package/docs/components/meta/table.ts +489 -489
- package/docs/components/meta/tabs.ts +146 -146
- package/docs/components/meta/title.ts +91 -91
- package/docs/components/meta/tree.ts +225 -225
- package/docs/components/meta/vpanel.ts +19 -19
- package/docs/components/meta/workflow-viewer.ts +55 -55
- package/docs/components/number.md +124 -124
- package/docs/components/page.md +102 -102
- package/docs/components/panel.md +37 -37
- package/docs/components/radio.md +87 -87
- package/docs/components/rate.md +71 -71
- package/docs/components/select.md +133 -133
- package/docs/components/slider-captcha.md +41 -41
- package/docs/components/slider.md +101 -101
- package/docs/components/switch.md +90 -90
- package/docs/components/table-panel.md +327 -327
- package/docs/components/table.md +510 -510
- package/docs/components/tabs.md +26 -26
- package/docs/components/title.md +24 -24
- package/docs/components/tree.md +222 -222
- package/docs/components/upload.md +117 -117
- package/docs/components/workflow-viewer.md +21 -21
- package/docs/components/workflow.md +21 -21
- package/docs/examples/autocomplete/advanced.vue +35 -35
- package/docs/examples/autocomplete/basic.vue +32 -32
- package/docs/examples/autocomplete/clearable.vue +33 -33
- package/docs/examples/autocomplete/custom-template.vue +49 -49
- package/docs/examples/autocomplete/disabled.vue +33 -33
- package/docs/examples/autocomplete/icon.vue +37 -37
- package/docs/examples/barcode/all-types.vue +380 -380
- package/docs/examples/barcode/basic.vue +14 -14
- package/docs/examples/barcode/props-appearance.vue +243 -243
- package/docs/examples/barcode/props-geometry.vue +143 -143
- package/docs/examples/barcode/props-logic.vue +216 -216
- package/docs/examples/barcode/props-symbology.vue +199 -199
- package/docs/examples/barcode/props-text.vue +268 -268
- package/docs/examples/button/basic.vue +7 -7
- package/docs/examples/button/disabled.vue +42 -42
- package/docs/examples/button/loading.vue +6 -6
- package/docs/examples/button/shape.vue +7 -7
- package/docs/examples/button/size.vue +14 -14
- package/docs/examples/button/status.vue +34 -34
- package/docs/examples/button/type.vue +10 -10
- package/docs/examples/button-select/basic.vue +19 -19
- package/docs/examples/buttons/basic.vue +62 -62
- package/docs/examples/buttons/disabled.vue +36 -36
- package/docs/examples/buttons/dropdown.vue +63 -63
- package/docs/examples/buttons/group.vue +52 -52
- package/docs/examples/buttons/link.vue +47 -47
- package/docs/examples/buttons/popup.vue +39 -39
- package/docs/examples/buttons/size.vue +45 -45
- package/docs/examples/card-list/basic.vue +70 -70
- package/docs/examples/card-list/selection-pagination.vue +69 -69
- package/docs/examples/cascader-select/basic.vue +28 -28
- package/docs/examples/cascader-select/clearable.vue +34 -34
- package/docs/examples/cascader-select/disabled.vue +43 -43
- package/docs/examples/cascader-select/filterable.vue +37 -37
- package/docs/examples/cascader-select/methods.vue +84 -84
- package/docs/examples/cascader-select/multiple.vue +38 -38
- package/docs/examples/cascader-select/slot.vue +45 -45
- package/docs/examples/checkbox/basic.vue +18 -18
- package/docs/examples/checkbox/button.vue +19 -19
- package/docs/examples/checkbox/color.vue +25 -25
- package/docs/examples/checkbox/disabled.vue +17 -17
- package/docs/examples/checkbox/min-max.vue +20 -20
- package/docs/examples/checkbox/mixed.vue +56 -56
- package/docs/examples/checkbox/size.vue +28 -28
- package/docs/examples/code-mirror/basic.vue +11 -11
- package/docs/examples/code-mirror/events.vue +42 -42
- package/docs/examples/code-mirror/height.vue +25 -25
- package/docs/examples/code-mirror/mode.vue +33 -33
- package/docs/examples/code-mirror/readonly.vue +14 -14
- package/docs/examples/collapse/basic.vue +82 -82
- package/docs/examples/comp/basic.vue +7 -7
- package/docs/examples/comp/collapse.vue +38 -38
- package/docs/examples/comp/table-merge-rows.vue +77 -77
- package/docs/examples/comp/table-row-fixed-merge.vue +105 -105
- package/docs/examples/comp/tabs.vue +38 -38
- package/docs/examples/count/basic.vue +101 -101
- package/docs/examples/count-up/basic.vue +89 -89
- package/docs/examples/data-panel/basic.vue +110 -110
- package/docs/examples/date/basic.vue +73 -73
- package/docs/examples/date/default-value.vue +59 -59
- package/docs/examples/date/format.vue +75 -75
- package/docs/examples/date/range.vue +66 -66
- package/docs/examples/date/types.vue +79 -79
- package/docs/examples/decorated-title/basic.vue +31 -31
- package/docs/examples/dialog/basic.vue +36 -36
- package/docs/examples/dialog/custom-buttons.vue +44 -44
- package/docs/examples/dialog/fullscreen.vue +23 -23
- package/docs/examples/dialog/no-mask.vue +17 -17
- package/docs/examples/dialog/size.vue +44 -44
- package/docs/examples/dialog/steps.vue +57 -57
- package/docs/examples/dialog-full/basic.vue +29 -29
- package/docs/examples/dialog-full/custom-buttons.vue +45 -45
- package/docs/examples/dialog-full/no-buttons.vue +18 -18
- package/docs/examples/dialog-full/no-header.vue +27 -27
- package/docs/examples/dialog-full/steps.vue +71 -71
- package/docs/examples/divider/basic.vue +52 -52
- package/docs/examples/drawer/basic.vue +35 -35
- package/docs/examples/drawer/custom-buttons.vue +34 -34
- package/docs/examples/drawer/direction.vue +47 -47
- package/docs/examples/drawer/mask.vue +36 -36
- package/docs/examples/drawer/no-buttons.vue +20 -20
- package/docs/examples/drawer/size.vue +28 -28
- package/docs/examples/dynamic-layer/basic.vue +33 -33
- package/docs/examples/dynamic-layer/custom-buttons.vue +43 -43
- package/docs/examples/dynamic-layer/form.vue +73 -73
- package/docs/examples/dynamic-layer/steps.vue +52 -52
- package/docs/examples/dynamic-layer/types.vue +40 -40
- package/docs/examples/echarts/basic.vue +31 -31
- package/docs/examples/echarts/dynamic.vue +43 -43
- package/docs/examples/echarts/line.vue +46 -46
- package/docs/examples/echarts/pie.vue +44 -44
- package/docs/examples/editor/basic.vue +15 -15
- package/docs/examples/form/basic.vue +688 -688
- package/docs/examples/form/init.vue +76 -76
- package/docs/examples/form/master-detail.vue +203 -203
- package/docs/examples/form/rule-format.vue +179 -179
- package/docs/examples/form/view-table.vue +378 -378
- package/docs/examples/guid/basic.vue +10 -10
- package/docs/examples/guid/size.vue +13 -13
- package/docs/examples/hpanel/basic.vue +79 -79
- package/docs/examples/icon/basic.vue +9 -9
- package/docs/examples/icon/rotate-flip.vue +9 -9
- package/docs/examples/icon/size.vue +7 -7
- package/docs/examples/input/basic.vue +10 -10
- package/docs/examples/input/clearable.vue +12 -12
- package/docs/examples/input/disabled.vue +6 -6
- package/docs/examples/input/icon.vue +23 -23
- package/docs/examples/input/password.vue +18 -18
- package/docs/examples/input/size.vue +13 -13
- package/docs/examples/input/textarea.vue +25 -25
- package/docs/examples/input/word-limit.vue +28 -28
- package/docs/examples/input-button/basic.vue +33 -33
- package/docs/examples/input-cards/basic.vue +79 -79
- package/docs/examples/input-code/basic.vue +29 -29
- package/docs/examples/input-color/basic.vue +10 -10
- package/docs/examples/input-color/disabled.vue +13 -13
- package/docs/examples/input-color/format.vue +17 -17
- package/docs/examples/input-color/no-alpha.vue +13 -13
- package/docs/examples/input-color/only-button.vue +15 -15
- package/docs/examples/input-color/predefine.vue +31 -31
- package/docs/examples/input-color/size.vue +15 -15
- package/docs/examples/input-layer/basic.vue +85 -85
- package/docs/examples/input-layer/render-vnode-page.vue +160 -160
- package/docs/examples/input-layer/render-vnode.vue +127 -127
- package/docs/examples/input-rows/basic.vue +73 -73
- package/docs/examples/input-rows/drag.vue +48 -48
- package/docs/examples/input-rows/layer-form.vue +85 -85
- package/docs/examples/input-rows/nested.vue +91 -91
- package/docs/examples/input-tag/basic.vue +27 -27
- package/docs/examples/input-tag/colors.vue +23 -23
- package/docs/examples/input-tag/readonly.vue +17 -17
- package/docs/examples/layer/basic.vue +43 -43
- package/docs/examples/layer/custom-buttons.vue +61 -61
- package/docs/examples/layer/drawer.vue +37 -37
- package/docs/examples/layer/full.vue +38 -38
- package/docs/examples/layer/modal.vue +34 -34
- package/docs/examples/layer/steps.vue +46 -46
- package/docs/examples/layer-form/basic.vue +76 -76
- package/docs/examples/layer-form/config.vue +82 -82
- package/docs/examples/layer-form/size.vue +72 -72
- package/docs/examples/layout/basic.vue +36 -36
- package/docs/examples/layout/custom-size.vue +50 -50
- package/docs/examples/layout/disable-move.vue +37 -37
- package/docs/examples/layout/hide-mid-when-narrow.vue +96 -96
- package/docs/examples/layout/min-size.vue +73 -73
- package/docs/examples/layout/percent-size.vue +80 -80
- package/docs/examples/layout/simple.vue +22 -22
- package/docs/examples/layout/top-side.vue +34 -34
- package/docs/examples/map/basic.vue +22 -22
- package/docs/examples/menu/basic.vue +58 -58
- package/docs/examples/menu/collapsed.vue +49 -49
- package/docs/examples/menu/horizontal.vue +44 -44
- package/docs/examples/menu/selection-test.vue +104 -104
- package/docs/examples/menu/theme.vue +46 -46
- package/docs/examples/menu/vertical.vue +46 -46
- package/docs/examples/number/advanced.vue +143 -143
- package/docs/examples/number/basic.vue +63 -63
- package/docs/examples/number/disabled.vue +49 -49
- package/docs/examples/number/size.vue +42 -42
- package/docs/examples/number/slots.vue +123 -123
- package/docs/examples/number/step-strictly.vue +41 -41
- package/docs/examples/number/step.vue +47 -47
- package/docs/examples/page/basic.vue +41 -41
- package/docs/examples/page/code-table-model.vue +428 -428
- package/docs/examples/page/dept-user-management.vue +211 -211
- package/docs/examples/page/init.vue +87 -87
- package/docs/examples/page/log.vue +453 -453
- package/docs/examples/page/user-management.vue +313 -313
- package/docs/examples/panel/tool-buttons.vue +18 -18
- package/docs/examples/radio/basic.vue +17 -17
- package/docs/examples/radio/button.vue +17 -17
- package/docs/examples/radio/color.vue +18 -18
- package/docs/examples/radio/disabled.vue +17 -17
- package/docs/examples/radio/size.vue +29 -29
- package/docs/examples/rate/basic.vue +24 -24
- package/docs/examples/rate/half.vue +24 -24
- package/docs/examples/rate/readonly.vue +11 -11
- package/docs/examples/rate/text.vue +37 -37
- package/docs/examples/select/basic.vue +16 -16
- package/docs/examples/select/clearable.vue +22 -22
- package/docs/examples/select/disabled.vue +31 -31
- package/docs/examples/select/filterable.vue +24 -24
- package/docs/examples/select/group.vue +23 -23
- package/docs/examples/select/icon.vue +16 -16
- package/docs/examples/select/multiple.vue +18 -18
- package/docs/examples/select/size.vue +39 -39
- package/docs/examples/slider/basic.vue +42 -42
- package/docs/examples/slider/disabled.vue +17 -17
- package/docs/examples/slider/marks.vue +30 -30
- package/docs/examples/slider/size.vue +37 -37
- package/docs/examples/slider/tooltip.vue +36 -36
- package/docs/examples/slider/vertical.vue +26 -26
- package/docs/examples/slider-captcha/basic.vue +44 -44
- package/docs/examples/slider-captcha/custom.vue +48 -48
- package/docs/examples/switch/basic.vue +16 -16
- package/docs/examples/switch/disabled.vue +13 -13
- package/docs/examples/switch/loading.vue +13 -13
- package/docs/examples/switch/size.vue +15 -15
- package/docs/examples/switch/text.vue +13 -13
- package/docs/examples/table/action-filter.vue +126 -126
- package/docs/examples/table/actions.vue +116 -116
- package/docs/examples/table/add-row.vue +103 -103
- package/docs/examples/table/basic.vue +168 -168
- package/docs/examples/table/checkbox-layout.vue +68 -68
- package/docs/examples/table/column-filter.vue +96 -96
- package/docs/examples/table/custom-layout.vue +115 -115
- package/docs/examples/table/custom-merge-cell.vue +206 -206
- package/docs/examples/table/dynamic-type.vue +73 -73
- package/docs/examples/table/editable.vue +262 -262
- package/docs/examples/table/field-selection.vue +87 -87
- package/docs/examples/table/frozen-column.vue +140 -140
- package/docs/examples/table/height-mode.vue +99 -99
- package/docs/examples/table/icon.vue +85 -85
- package/docs/examples/table/layer-form.vue +133 -133
- package/docs/examples/table/link.vue +66 -66
- package/docs/examples/table/merge-cell.vue +78 -78
- package/docs/examples/table/merge-header.vue +86 -86
- package/docs/examples/table/multiple-disabled.vue +112 -112
- package/docs/examples/table/multiple.vue +188 -188
- package/docs/examples/table/pagination.vue +151 -151
- package/docs/examples/table/row-drag.vue +67 -67
- package/docs/examples/table/row-fixed.vue +61 -61
- package/docs/examples/table/single-selection.vue +64 -64
- package/docs/examples/table/sub-table-lazy.vue +97 -97
- package/docs/examples/table/sub-table.vue +103 -103
- package/docs/examples/table/tag.vue +43 -43
- package/docs/examples/table/tree-column.vue +119 -119
- package/docs/examples/table/tree-data.vue +141 -141
- package/docs/examples/table/tree-default-expand-all.vue +60 -60
- package/docs/examples/table/tree-lazy.vue +80 -80
- package/docs/examples/table/tree-set-selection.vue +75 -75
- package/docs/examples/table-panel/basic.vue +229 -229
- package/docs/examples/table-panel/batch-operations.vue +286 -286
- package/docs/examples/table-panel/button-visibility.vue +88 -88
- package/docs/examples/table-panel/card.vue +101 -101
- package/docs/examples/table-panel/column-filter.vue +116 -116
- package/docs/examples/table-panel/filter.vue +219 -219
- package/docs/examples/table-panel/get-selection.vue +111 -111
- package/docs/examples/table-panel/mask.vue +151 -151
- package/docs/examples/table-panel/model-value.vue +87 -87
- package/docs/examples/table-panel/multiple-selection.vue +243 -243
- package/docs/examples/table-panel/pagination-select-state-key.vue +176 -176
- package/docs/examples/table-panel/pagination.vue +133 -133
- package/docs/examples/table-panel/search-list.vue +207 -207
- package/docs/examples/table-panel/sub-table-lazy.vue +118 -118
- package/docs/examples/table-panel/tree-parent-key.vue +67 -67
- package/docs/examples/tabs/basic.vue +98 -98
- package/docs/examples/time/base.vue +67 -67
- package/docs/examples/title/basic.vue +87 -87
- package/docs/examples/tree/accordion.vue +46 -46
- package/docs/examples/tree/basic.vue +50 -50
- package/docs/examples/tree/buttons.vue +53 -53
- package/docs/examples/tree/check-strictly.vue +53 -53
- package/docs/examples/tree/checkable.vue +52 -52
- package/docs/examples/tree/custom-keys.vue +39 -39
- package/docs/examples/tree/default-expanded.vue +52 -52
- package/docs/examples/tree/draggable.vue +29 -29
- package/docs/examples/tree/expand-on-click.vue +39 -39
- package/docs/examples/tree/flat-data.vue +20 -20
- package/docs/examples/tree/icon.vue +40 -40
- package/docs/examples/tree/load-data.vue +37 -37
- package/docs/examples/tree/methods.vue +74 -74
- package/docs/examples/tree/theme.vue +33 -33
- package/docs/examples/tree-select/basic.vue +47 -47
- package/docs/examples/tree-select/lazy.vue +42 -42
- package/docs/examples/upload/accept.vue +31 -31
- package/docs/examples/upload/basic.vue +12 -12
- package/docs/examples/upload/drag.vue +11 -11
- package/docs/examples/upload/image.vue +17 -17
- package/docs/examples/upload/limit.vue +20 -20
- package/docs/examples/upload/multiple.vue +17 -17
- package/docs/examples/upload/readonly.vue +17 -17
- package/docs/examples/utils/cipher.vue +160 -160
- package/docs/examples/utils/common.vue +153 -153
- package/docs/examples/utils/date.vue +56 -56
- package/docs/examples/utils/dom.vue +52 -52
- package/docs/examples/utils/is.vue +70 -70
- package/docs/examples/workflow/basic.vue +265 -265
- package/docs/examples/workflow-viewer/basic.vue +248 -248
- package/package.json +23 -23
package/dist/simcode-ui.es.js
CHANGED
|
@@ -6077,19 +6077,19 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6077
6077
|
if (!o.isRowFixed || !o.rowNum || o.rowNum <= 0) return O;
|
|
6078
6078
|
const $ = [...O];
|
|
6079
6079
|
for (; $.length < o.rowNum; ) {
|
|
6080
|
-
const
|
|
6080
|
+
const Y = { _i: Cn() };
|
|
6081
6081
|
Mn.value.forEach((ee) => {
|
|
6082
|
-
const
|
|
6083
|
-
|
|
6084
|
-
}), $.push(
|
|
6082
|
+
const K = ee.config?.valueRowKey || ee.id || "";
|
|
6083
|
+
K && (Y[K] = Jt(ee.config?.defaultValue));
|
|
6084
|
+
}), $.push(Y);
|
|
6085
6085
|
}
|
|
6086
6086
|
return O.length !== $.length && B($), $;
|
|
6087
6087
|
}, M = D(!1), E = D({}), V = D([]), U = D(null), re = D(0);
|
|
6088
6088
|
let be = null, J = !1, Z = !1;
|
|
6089
|
-
const ae = (O, $,
|
|
6090
|
-
V.value = O, U.value = $, re.value =
|
|
6089
|
+
const ae = (O, $, Y, ee, K) => {
|
|
6090
|
+
V.value = O, U.value = $, re.value = Y, E.value = {
|
|
6091
6091
|
left: `${ee}px`,
|
|
6092
|
-
top: `${
|
|
6092
|
+
top: `${K}px`
|
|
6093
6093
|
}, M.value = !0, J = !1, document.addEventListener("wheel", ot, { passive: !1 });
|
|
6094
6094
|
}, z = () => {
|
|
6095
6095
|
M.value = !1, J = !1, Z = !1, Ne(), document.removeEventListener("wheel", ot);
|
|
@@ -6111,17 +6111,17 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6111
6111
|
openLayer: h
|
|
6112
6112
|
}), z());
|
|
6113
6113
|
}, oe = (O) => {
|
|
6114
|
-
let $ = O.action.config?.display !== !1,
|
|
6114
|
+
let $ = O.action.config?.display !== !1, Y = O.action.config?.disabled === !0;
|
|
6115
6115
|
const ee = o.actionFilter;
|
|
6116
6116
|
if (ee) try {
|
|
6117
|
-
const
|
|
6118
|
-
typeof
|
|
6117
|
+
const K = ee(O);
|
|
6118
|
+
typeof K == "boolean" ? $ = K : K && typeof K == "object" && (typeof K.display == "boolean" && ($ = K.display), typeof K.disabled == "boolean" && (Y = K.disabled));
|
|
6119
6119
|
} catch {
|
|
6120
|
-
$ = O.action.config?.display !== !1,
|
|
6120
|
+
$ = O.action.config?.display !== !1, Y = O.action.config?.disabled === !0;
|
|
6121
6121
|
}
|
|
6122
6122
|
return {
|
|
6123
6123
|
display: $,
|
|
6124
|
-
disabled:
|
|
6124
|
+
disabled: Y
|
|
6125
6125
|
};
|
|
6126
6126
|
}, Ce = (O, $) => $.disabled ? {
|
|
6127
6127
|
...O,
|
|
@@ -6130,7 +6130,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6130
6130
|
disabled: !0
|
|
6131
6131
|
}
|
|
6132
6132
|
} : O, $e = (O) => {
|
|
6133
|
-
const { Group: $, Text:
|
|
6133
|
+
const { Group: $, Text: Y } = tt.CustomLayout, ee = o.actionsMaxCount, K = O.filter((ye) => ye.config?.display !== !1), te = K.length > ee, ce = te ? K.slice(0, ee - 1) : K;
|
|
6134
6134
|
let ve = 0;
|
|
6135
6135
|
if (ce.forEach((ye, he) => {
|
|
6136
6136
|
const Pe = Pn(ye.config?.label || ye.label || "") || 0;
|
|
@@ -6149,7 +6149,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6149
6149
|
disableColumnResize: !0,
|
|
6150
6150
|
disableSelect: !0,
|
|
6151
6151
|
customLayout: (ye) => {
|
|
6152
|
-
const { table: he, row: Pe, col: He } = ye, je = he.getCellOriginRecord(He, Pe), it = he.getRecordIndexByCell(He, Pe), Ge =
|
|
6152
|
+
const { table: he, row: Pe, col: He } = ye, je = he.getCellOriginRecord(He, Pe), it = he.getRecordIndexByCell(He, Pe), Ge = K.map((Ye) => {
|
|
6153
6153
|
const ft = oe({
|
|
6154
6154
|
action: Ye,
|
|
6155
6155
|
record: je,
|
|
@@ -6171,7 +6171,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6171
6171
|
flexWrap: "nowrap"
|
|
6172
6172
|
});
|
|
6173
6173
|
if (nt.forEach((Ye, ft) => {
|
|
6174
|
-
const qe = Ye.config?.disabled === !0, At = qe ? "#c9cdd4" : Ye.config?.status === "danger" ? "#f53f3f" : "#165dff", sn = new
|
|
6174
|
+
const qe = Ye.config?.disabled === !0, At = qe ? "#c9cdd4" : Ye.config?.status === "danger" ? "#f53f3f" : "#165dff", sn = new Y({
|
|
6175
6175
|
text: Ye.label,
|
|
6176
6176
|
fontSize: 14,
|
|
6177
6177
|
fill: At,
|
|
@@ -6194,7 +6194,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6194
6194
|
qe || (wn.target.setAttribute("fill", At), he.scenegraph.stage.renderNextFrame());
|
|
6195
6195
|
}), St.add(sn);
|
|
6196
6196
|
}), Ve && pt.length > 0) {
|
|
6197
|
-
const Ye = "#1677ff", ft = new
|
|
6197
|
+
const Ye = "#1677ff", ft = new Y({
|
|
6198
6198
|
text: "更多",
|
|
6199
6199
|
fontSize: 14,
|
|
6200
6200
|
fill: Ye,
|
|
@@ -6221,11 +6221,11 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6221
6221
|
}
|
|
6222
6222
|
};
|
|
6223
6223
|
}, Mt = (O, $) => {
|
|
6224
|
-
const { dataValue:
|
|
6224
|
+
const { dataValue: Y, table: ee, col: K, row: te, value: ce } = O, ve = O.rect ?? ee?.getCellRect?.(K, te) ?? {
|
|
6225
6225
|
width: 0,
|
|
6226
6226
|
height: 0
|
|
6227
|
-
}, pe = ee?.getBodyField?.(
|
|
6228
|
-
let je = Ut(ce) ?
|
|
6227
|
+
}, pe = ee?.getBodyField?.(K, te), ye = ee?.options?.columns || [], he = (pe ? kt(ye, pe) : null)?.style?.textAlign || "left", Pe = 8, He = Math.max(0, ve.width - Pe * 2);
|
|
6228
|
+
let je = Ut(ce) ? Y : ce;
|
|
6229
6229
|
je == null && (je = "");
|
|
6230
6230
|
const it = Ee(typeof je == "object" ? JSON.stringify(je) : String(je), He);
|
|
6231
6231
|
let Ge = Pe, Le = "left";
|
|
@@ -6243,9 +6243,9 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6243
6243
|
expectedHeight: jn
|
|
6244
6244
|
};
|
|
6245
6245
|
}, Ht = (O, $) => {
|
|
6246
|
-
const { dataValue:
|
|
6246
|
+
const { dataValue: Y, rect: ee, table: K, col: te, row: ce } = O, ve = K?.options?.columns || [], pe = K?.getBodyField?.(te, ce), ye = pe ? kt(ve, pe) : null, he = $ || ye?._compConfig || {};
|
|
6247
6247
|
let Pe = "mdi:toggle-switch", He = "#165dff";
|
|
6248
|
-
(Object.prototype.hasOwnProperty.call(he, "inactiveValue") && he.inactiveValue !== void 0 ? String(
|
|
6248
|
+
(Object.prototype.hasOwnProperty.call(he, "inactiveValue") && he.inactiveValue !== void 0 ? String(Y) === String(he.inactiveValue) : !Y) && (Pe = "mdi:toggle-switch-off", He = "#e5e6eb");
|
|
6249
6249
|
const je = Fa(Pe), it = je?.body?.replace(/currentColor/g, He), Ge = [], Le = 8, Ve = 40;
|
|
6250
6250
|
let nt = Le;
|
|
6251
6251
|
return ye?.style?.textAlign === "center" ? nt = Math.max(Le, (ee.width - Ve) / 2) : ye?.style?.textAlign === "right" && (nt = Math.max(Le, ee.width - Ve - Le)), Ge.push({
|
|
@@ -6260,10 +6260,10 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6260
6260
|
expectedHeight: jn
|
|
6261
6261
|
};
|
|
6262
6262
|
}, W = (O, $) => {
|
|
6263
|
-
const { dataValue:
|
|
6263
|
+
const { dataValue: Y, rect: ee } = O, K = Number(Y) || 0, te = 5, ce = 20, ve = 4, pe = 8, ye = (ee.height - ce) / 2, he = [], Pe = Fa("mdi:star"), He = Fa("mdi:star-half-full"), je = Fa("mdi:star-outline"), it = "#f7ba2a", Ge = "#e5e6eb";
|
|
6264
6264
|
for (let Le = 0; Le < te; Le++) {
|
|
6265
6265
|
const Ve = pe + Le * (ce + ve), nt = ye;
|
|
6266
|
-
if (
|
|
6266
|
+
if (K >= Le + 1) {
|
|
6267
6267
|
const pt = Pe?.body?.replace(/currentColor/g, it);
|
|
6268
6268
|
he.push({
|
|
6269
6269
|
type: "icon",
|
|
@@ -6273,7 +6273,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6273
6273
|
width: ce,
|
|
6274
6274
|
height: ce
|
|
6275
6275
|
});
|
|
6276
|
-
} else if (
|
|
6276
|
+
} else if (K > Le && K < Le + 1) {
|
|
6277
6277
|
const pt = He?.body?.replace(/currentColor/g, it);
|
|
6278
6278
|
he.push({
|
|
6279
6279
|
type: "icon",
|
|
@@ -6300,13 +6300,13 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6300
6300
|
expectedHeight: jn
|
|
6301
6301
|
};
|
|
6302
6302
|
}, ke = (O, $) => {
|
|
6303
|
-
const { dataValue:
|
|
6303
|
+
const { dataValue: Y, rect: ee, table: K, col: te, row: ce } = O, ve = K.getBodyField(te, ce), pe = kt(K.options?.columns || [], ve), ye = K.getCellOriginRecord?.(te, ce) || K.getRecordByCell?.(te, ce) || {}, he = $ || _n({
|
|
6304
6304
|
config: pe?._compConfig,
|
|
6305
6305
|
getCompConfig: pe?._getCompConfig,
|
|
6306
6306
|
formData: r || {},
|
|
6307
6307
|
getTableData: fn,
|
|
6308
6308
|
row: ye
|
|
6309
|
-
}) || {}, Pe = Number(he.min) || 0, He = Number(he.max) || 100, je = Number(
|
|
6309
|
+
}) || {}, Pe = Number(he.min) || 0, He = Number(he.max) || 100, je = Number(Y) || 0, it = He - Pe, Ge = it === 0 ? 0 : Math.max(0, Math.min(100, (je - Pe) / it * 100)), Le = 4, Ve = 8, nt = 8, pt = (ee.height - Le) / 2, St = String(je), Ye = Pn(St) || 0, ft = Ve, qe = pt, At = ee.width - Ve * 2 - Ye - nt, sn = At * Ge / 100, wn = [], Pa = (Xt, on, so) => {
|
|
6310
6310
|
const dt = Math.min(so, on / 2, Xt / 2);
|
|
6311
6311
|
return `M ${dt} 0 L ${Xt - dt} 0 Q ${Xt} 0 ${Xt} ${dt} L ${Xt} ${on - dt} Q ${Xt} ${on} ${Xt - dt} ${on} L ${dt} ${on} Q 0 ${on} 0 ${on - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
|
|
6312
6312
|
}, Lt = (Xt, on, so) => {
|
|
@@ -6348,28 +6348,28 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6348
6348
|
}, Te = (O) => String(O).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Ee = (O, $) => {
|
|
6349
6349
|
if (!O) return "";
|
|
6350
6350
|
if ((Pn(O) || 0) <= $) return O;
|
|
6351
|
-
const
|
|
6351
|
+
const Y = "...", ee = Pn(Y) || 0;
|
|
6352
6352
|
if (ee >= $) return "";
|
|
6353
|
-
let
|
|
6354
|
-
for (;
|
|
6355
|
-
const ce = Math.ceil((
|
|
6356
|
-
(Pn(O.slice(0, ce)) || 0) + ee <= $ ?
|
|
6353
|
+
let K = 0, te = O.length;
|
|
6354
|
+
for (; K < te; ) {
|
|
6355
|
+
const ce = Math.ceil((K + te) / 2);
|
|
6356
|
+
(Pn(O.slice(0, ce)) || 0) + ee <= $ ? K = ce : te = ce - 1;
|
|
6357
6357
|
}
|
|
6358
|
-
return O.slice(0,
|
|
6358
|
+
return O.slice(0, K) + Y;
|
|
6359
6359
|
}, Fe = (O, $) => {
|
|
6360
|
-
const { value:
|
|
6361
|
-
if (!
|
|
6360
|
+
const { value: Y, rect: ee, table: K, col: te, row: ce } = O;
|
|
6361
|
+
if (!Y) return {
|
|
6362
6362
|
elements: [],
|
|
6363
6363
|
expectedHeight: jn
|
|
6364
6364
|
};
|
|
6365
|
-
const ve =
|
|
6365
|
+
const ve = K.getBodyField(te, ce), pe = kt(K.options?.columns || [], ve), ye = K.getCellOriginRecord?.(te, ce) || K.getRecordByCell?.(te, ce) || {}, he = $ || _n({
|
|
6366
6366
|
config: pe?._compConfig,
|
|
6367
6367
|
getCompConfig: pe?._getCompConfig,
|
|
6368
6368
|
formData: r || {},
|
|
6369
6369
|
getTableData: fn,
|
|
6370
6370
|
row: ye
|
|
6371
6371
|
}) || {}, Pe = Number(he.size) || 16, He = he.color, je = (ee.width - Pe) / 2, it = (ee.height - Pe) / 2;
|
|
6372
|
-
let Ge = String(
|
|
6372
|
+
let Ge = String(Y).trim();
|
|
6373
6373
|
if (!Ge) return {
|
|
6374
6374
|
elements: [],
|
|
6375
6375
|
expectedHeight: jn
|
|
@@ -6404,13 +6404,13 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6404
6404
|
expectedHeight: Math.max(jn, Pe)
|
|
6405
6405
|
};
|
|
6406
6406
|
}, ze = (O, $) => {
|
|
6407
|
-
const { dataValue:
|
|
6407
|
+
const { dataValue: Y, rect: ee, table: K, col: te, row: ce, value: ve } = O, pe = K.getBodyField(te, ce), ye = kt(K.options?.columns || [], pe), he = K.getCellOriginRecord?.(te, ce) || K.getRecordByCell?.(te, ce) || {}, Pe = $ || _n({
|
|
6408
6408
|
config: ye?._compConfig,
|
|
6409
6409
|
getCompConfig: ye?._getCompConfig,
|
|
6410
6410
|
formData: r || {},
|
|
6411
6411
|
getTableData: fn,
|
|
6412
6412
|
row: he
|
|
6413
|
-
}) || {}, He = ye?.style?.textAlign || "left", je = Ut(ye._fieldFormat) ?
|
|
6413
|
+
}) || {}, He = ye?.style?.textAlign || "left", je = Ut(ye._fieldFormat) ? Y : ve, it = Ut(je) ? "" : je + "", Ge = u({
|
|
6414
6414
|
config: Pe,
|
|
6415
6415
|
row: he,
|
|
6416
6416
|
value: it
|
|
@@ -6484,23 +6484,23 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6484
6484
|
};
|
|
6485
6485
|
}, Ue = (O) => {
|
|
6486
6486
|
if (!O) return "#1d2129";
|
|
6487
|
-
O = O.replace("#", ""), O.length === 3 && (O = O.split("").map((
|
|
6488
|
-
const $ = parseInt(O.substring(0, 2), 16),
|
|
6489
|
-
if (($ * 299 +
|
|
6490
|
-
const
|
|
6487
|
+
O = O.replace("#", ""), O.length === 3 && (O = O.split("").map((K) => K + K).join(""));
|
|
6488
|
+
const $ = parseInt(O.substring(0, 2), 16), Y = parseInt(O.substring(2, 4), 16), ee = parseInt(O.substring(4, 6), 16);
|
|
6489
|
+
if (($ * 299 + Y * 587 + ee * 114) / 1e3 >= 128) {
|
|
6490
|
+
const K = $ / 255, te = Y / 255, ce = ee / 255, ve = Math.max(K, te, ce), pe = Math.min(K, te, ce);
|
|
6491
6491
|
let ye = 0, he = 0;
|
|
6492
6492
|
const Pe = (ve + pe) / 2;
|
|
6493
6493
|
if (ve !== pe) {
|
|
6494
6494
|
const nt = ve - pe;
|
|
6495
6495
|
switch (he = Pe > 0.5 ? nt / (2 - ve - pe) : nt / (ve + pe), ve) {
|
|
6496
|
-
case
|
|
6496
|
+
case K:
|
|
6497
6497
|
ye = (te - ce) / nt + (te < ce ? 6 : 0);
|
|
6498
6498
|
break;
|
|
6499
6499
|
case te:
|
|
6500
|
-
ye = (ce -
|
|
6500
|
+
ye = (ce - K) / nt + 2;
|
|
6501
6501
|
break;
|
|
6502
6502
|
case ce:
|
|
6503
|
-
ye = (
|
|
6503
|
+
ye = (K - te) / nt + 4;
|
|
6504
6504
|
break;
|
|
6505
6505
|
}
|
|
6506
6506
|
ye /= 6;
|
|
@@ -6517,9 +6517,9 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6517
6517
|
}
|
|
6518
6518
|
return "#ffffff";
|
|
6519
6519
|
}, ut = (O) => {
|
|
6520
|
-
const { table: $, row:
|
|
6521
|
-
height:
|
|
6522
|
-
width:
|
|
6520
|
+
const { table: $, row: Y, col: ee, rect: K, value: te } = O, { Group: ce, Text: ve } = tt.CustomLayout, pe = $.getBodyField(ee, Y), ye = kt($.options?.columns || [], pe), he = ye?._compConfig || {}, Pe = new ce({
|
|
6521
|
+
height: K.height,
|
|
6522
|
+
width: K.width,
|
|
6523
6523
|
display: "flex",
|
|
6524
6524
|
alignItems: "center",
|
|
6525
6525
|
justifyContent: ye.style?.textAlign === "center" ? "center" : ye.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
@@ -6537,7 +6537,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6537
6537
|
});
|
|
6538
6538
|
return je.addEventListener("click", () => {
|
|
6539
6539
|
if (he.click) {
|
|
6540
|
-
const it = $.getCellOriginRecord(ee,
|
|
6540
|
+
const it = $.getCellOriginRecord(ee, Y);
|
|
6541
6541
|
he.click({
|
|
6542
6542
|
row: it,
|
|
6543
6543
|
column: ye,
|
|
@@ -6553,15 +6553,15 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6553
6553
|
renderDefault: !1
|
|
6554
6554
|
};
|
|
6555
6555
|
}, qt = (O, $) => $ ? "#c9cdd4" : O === "danger" ? "#f53f3f" : O === "warning" ? "#ff7d00" : O === "success" ? "#00b42a" : "#165dff", Kt = (O) => {
|
|
6556
|
-
const { table: $, row:
|
|
6556
|
+
const { table: $, row: Y, col: ee, rect: K } = O, { Group: te, Text: ce } = tt.CustomLayout, ve = $.getBodyField(ee, Y), pe = kt($.options?.columns || [], ve), ye = $.getCellOriginRecord?.(ee, Y) || $.getRecordByCell?.(ee, Y) || {}, he = _n({
|
|
6557
6557
|
config: pe?._compConfig,
|
|
6558
6558
|
getCompConfig: pe?._getCompConfig,
|
|
6559
6559
|
formData: r || {},
|
|
6560
6560
|
getTableData: fn,
|
|
6561
6561
|
row: ye
|
|
6562
6562
|
}) || {}, Pe = Array.isArray(he.schema) ? he.schema : [], He = String(he.buttonLabel || he.layerLabel || pe?.title || "设置"), je = he.disabled === !0 || Pe.length === 0, it = qt(he.status, je), Ge = new te({
|
|
6563
|
-
height:
|
|
6564
|
-
width:
|
|
6563
|
+
height: K.height,
|
|
6564
|
+
width: K.width,
|
|
6565
6565
|
display: "flex",
|
|
6566
6566
|
alignItems: "center",
|
|
6567
6567
|
justifyContent: pe?.style?.textAlign === "center" ? "center" : pe?.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
@@ -6602,7 +6602,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6602
6602
|
renderDefault: !1
|
|
6603
6603
|
};
|
|
6604
6604
|
}, un = (O) => {
|
|
6605
|
-
const { table: $, row:
|
|
6605
|
+
const { table: $, row: Y, col: ee, rect: K } = O, { height: te, width: ce } = K ?? $.getCellRect(ee, Y), { Group: ve, CheckBox: pe } = tt.CustomLayout, ye = $.getBodyField(ee, Y), he = kt($.options?.columns || [], ye), Pe = $.getCellOriginRecord(ee, Y) || {}, He = he?.style?.textAlign === "right" ? "flex-end" : he?.style?.textAlign === "center" ? "center" : "flex-start", je = he?.style?.textAlign === "right" ? "flex-end" : he?.style?.textAlign === "center" ? "center" : "flex-start", it = (St, Ye) => {
|
|
6606
6606
|
const ft = Pe?.[ye];
|
|
6607
6607
|
Pe[ye] = (Array.isArray(ft) ? ft : []).map((qe, At) => At !== St ? qe : qe && typeof qe == "object" ? {
|
|
6608
6608
|
...qe,
|
|
@@ -6664,28 +6664,28 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6664
6664
|
renderDefault: !1
|
|
6665
6665
|
};
|
|
6666
6666
|
}, dn = (O) => {
|
|
6667
|
-
const { table: $, row:
|
|
6667
|
+
const { table: $, row: Y, col: ee } = O, K = $.getBodyField(ee, Y), te = kt($.options?.columns || [], K), ce = te?._compConfig || {};
|
|
6668
6668
|
if (te?._customLayout) return te._customLayout({
|
|
6669
6669
|
...O,
|
|
6670
6670
|
config: ce,
|
|
6671
6671
|
customLayout: tt.CustomLayout
|
|
6672
6672
|
});
|
|
6673
6673
|
}, kt = (O, $) => {
|
|
6674
|
-
for (const
|
|
6675
|
-
if (
|
|
6676
|
-
if (
|
|
6677
|
-
const ee = kt(
|
|
6674
|
+
for (const Y of O) {
|
|
6675
|
+
if (Y.field === $) return Y;
|
|
6676
|
+
if (Y.columns) {
|
|
6677
|
+
const ee = kt(Y.columns, $);
|
|
6678
6678
|
if (ee) return ee;
|
|
6679
6679
|
}
|
|
6680
6680
|
}
|
|
6681
6681
|
return null;
|
|
6682
6682
|
}, Rt = (O) => {
|
|
6683
|
-
const { table: $, col:
|
|
6683
|
+
const { table: $, col: Y, row: ee } = O, K = $.getBodyField(Y, ee), te = kt($.options?.columns || [], K);
|
|
6684
6684
|
if (!te) return {
|
|
6685
6685
|
elements: [],
|
|
6686
6686
|
expectedHeight: jn
|
|
6687
6687
|
};
|
|
6688
|
-
const ce = $.getCellOriginRecord?.(
|
|
6688
|
+
const ce = $.getCellOriginRecord?.(Y, ee) || $.getRecordByCell?.(Y, ee) || {}, ve = _n({
|
|
6689
6689
|
config: te._compConfig,
|
|
6690
6690
|
getCompConfig: te._getCompConfig,
|
|
6691
6691
|
formData: r || {},
|
|
@@ -6699,7 +6699,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6699
6699
|
getTableData: fn,
|
|
6700
6700
|
row: ce
|
|
6701
6701
|
});
|
|
6702
|
-
ce._compTypeByRender = ce._compTypeByRender || {}, ce._compTypeByRender[
|
|
6702
|
+
ce._compTypeByRender = ce._compTypeByRender || {}, ce._compTypeByRender[K] = pe;
|
|
6703
6703
|
const ye = {
|
|
6704
6704
|
text: Mt,
|
|
6705
6705
|
"j-switch": Ht,
|
|
@@ -6713,14 +6713,14 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6713
6713
|
elements: [],
|
|
6714
6714
|
expectedHeight: jn
|
|
6715
6715
|
};
|
|
6716
|
-
}, bt = (O, $,
|
|
6717
|
-
const
|
|
6718
|
-
if (te._fieldFormat) return te._fieldFormat(O, $,
|
|
6716
|
+
}, bt = (O, $, Y, ee) => {
|
|
6717
|
+
const K = ee.getBodyField($, Y), te = kt(ee.options?.columns || [], K);
|
|
6718
|
+
if (te._fieldFormat) return te._fieldFormat(O, $, Y, ee);
|
|
6719
6719
|
if (te._compType === "dateTime") {
|
|
6720
6720
|
const pe = te._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6721
|
-
return fl(O[
|
|
6721
|
+
return fl(O[K], pe);
|
|
6722
6722
|
}
|
|
6723
|
-
const ce = rh(O[
|
|
6723
|
+
const ce = rh(O[K], s, {
|
|
6724
6724
|
type: te._compType,
|
|
6725
6725
|
getCompType: te._getCompType,
|
|
6726
6726
|
getCompConfig: te._getCompConfig,
|
|
@@ -6729,8 +6729,8 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6729
6729
|
getTableData: fn,
|
|
6730
6730
|
row: O
|
|
6731
6731
|
});
|
|
6732
|
-
if (O[
|
|
6733
|
-
var ve = d(ce.config.dataType, ce.config.dataCode, { value: O[
|
|
6732
|
+
if (O[K] && O[K] == ce.label && ce.config.dataType && ce.config.dataType != "options" && !ce.config.options && ce.type != "j-autocomplete" && s && d) {
|
|
6733
|
+
var ve = d(ce.config.dataType, ce.config.dataCode, { value: O[K] });
|
|
6734
6734
|
g[ve] = !0;
|
|
6735
6735
|
}
|
|
6736
6736
|
return ce.label;
|
|
@@ -6743,10 +6743,10 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6743
6743
|
O && m && m.renderWithRecreateCells();
|
|
6744
6744
|
});
|
|
6745
6745
|
const Tn = (O) => {
|
|
6746
|
-
const $ = new Set(o.columnFilter || []),
|
|
6746
|
+
const $ = new Set(o.columnFilter || []), Y = (K, te, ce) => !(K.config?.display === !1 || $.has(K.id)), ee = (K, te, ce = 0) => {
|
|
6747
6747
|
const ve = [];
|
|
6748
|
-
return
|
|
6749
|
-
if (!
|
|
6748
|
+
return K.forEach((pe) => {
|
|
6749
|
+
if (!Y(pe, te, ce)) return;
|
|
6750
6750
|
const { id: ye, type: he, config: Pe, getCompConfig: He, getCompType: je, children: it, customLayout: Ge } = pe, { label: Le, width: Ve, minWidth: nt, maxWidth: pt, align: St, headerAlign: Ye, fieldFormat: ft, editor: qe, frozen: At, mergeCell: sn, ...wn } = Pe || {}, Pa = Ye ?? St, Lt = {
|
|
6751
6751
|
field: ye,
|
|
6752
6752
|
title: Le,
|
|
@@ -6773,46 +6773,46 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6773
6773
|
}), o.isTree && ve.length > 0 && (ve[0].tree = !0), ve;
|
|
6774
6774
|
};
|
|
6775
6775
|
return ee(O);
|
|
6776
|
-
}, X = (O) => String(O || "").split(",").map(($) => $.trim()).filter(Boolean), me = (O, $,
|
|
6776
|
+
}, X = (O) => String(O || "").split(",").map(($) => $.trim()).filter(Boolean), me = (O, $, Y) => ({
|
|
6777
6777
|
field: O._i || `__merge_header_${$}__`,
|
|
6778
6778
|
title: O.label || "",
|
|
6779
6779
|
...O.align ? { headerStyle: { textAlign: O.align } } : {},
|
|
6780
|
-
columns:
|
|
6780
|
+
columns: Y,
|
|
6781
6781
|
_getCompConfig: void 0,
|
|
6782
6782
|
_getCompType: void 0
|
|
6783
6783
|
}), se = (O, $ = []) => {
|
|
6784
6784
|
if (!Array.isArray($) || $.length === 0) return O;
|
|
6785
|
-
const
|
|
6786
|
-
return $.forEach((ee,
|
|
6785
|
+
const Y = [...O];
|
|
6786
|
+
return $.forEach((ee, K) => {
|
|
6787
6787
|
const te = X(ee.value);
|
|
6788
6788
|
if (te.length === 0) return;
|
|
6789
6789
|
const ce = /* @__PURE__ */ new Set(), ve = [];
|
|
6790
|
-
let pe =
|
|
6790
|
+
let pe = Y.length;
|
|
6791
6791
|
if (te.forEach((he) => {
|
|
6792
6792
|
if (ce.has(he)) return;
|
|
6793
6793
|
ce.add(he);
|
|
6794
|
-
const Pe =
|
|
6794
|
+
const Pe = Y.findIndex((je) => je.field === he);
|
|
6795
6795
|
if (Pe === -1) return;
|
|
6796
|
-
const [He] =
|
|
6796
|
+
const [He] = Y.splice(Pe, 1);
|
|
6797
6797
|
He && (ve.push(He), pe = Math.min(pe, Pe));
|
|
6798
6798
|
}), ve.length === 0) return;
|
|
6799
|
-
const ye = me(ee,
|
|
6800
|
-
|
|
6801
|
-
}),
|
|
6799
|
+
const ye = me(ee, K, ve);
|
|
6800
|
+
Y.splice(Math.min(pe, Y.length), 0, ye);
|
|
6801
|
+
}), Y;
|
|
6802
6802
|
}, le = (O, $) => {
|
|
6803
|
-
const
|
|
6804
|
-
return `#${(
|
|
6803
|
+
const Y = O.replace("#", ""), ee = parseInt(Y, 16), K = Math.min(255, Math.max(0, (ee >> 16) + $)), te = Math.min(255, Math.max(0, (ee >> 8 & 255) + $)), ce = Math.min(255, Math.max(0, (ee & 255) + $));
|
|
6804
|
+
return `#${(K << 16 | te << 8 | ce).toString(16).padStart(6, "0")}`;
|
|
6805
6805
|
}, we = () => {
|
|
6806
6806
|
let O = T;
|
|
6807
6807
|
o.isPage && (O = ge.value + T);
|
|
6808
6808
|
let $ = Pn(String(O)) || 0;
|
|
6809
6809
|
return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
|
|
6810
6810
|
}, Ie = (O) => {
|
|
6811
|
-
let $ = (
|
|
6812
|
-
const ce = te.getRecordIndexByCell(ee,
|
|
6811
|
+
let $ = (Y, ee, K, te) => {
|
|
6812
|
+
const ce = te.getRecordIndexByCell(ee, K);
|
|
6813
6813
|
return o.isPage && !O ? ge.value + ce + 1 : ce + 1;
|
|
6814
6814
|
};
|
|
6815
|
-
return O && ($ = (
|
|
6815
|
+
return O && ($ = (Y, ee, K, te) => te.getRecordIndexByCell(ee, K) + 1), {
|
|
6816
6816
|
field: "__sequence__",
|
|
6817
6817
|
title: "序号",
|
|
6818
6818
|
width: A,
|
|
@@ -6845,10 +6845,10 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6845
6845
|
field: "_checkState",
|
|
6846
6846
|
cellType: "checkbox",
|
|
6847
6847
|
headerType: "checkbox",
|
|
6848
|
-
disable: ({ col: $, row:
|
|
6849
|
-
if (
|
|
6850
|
-
const
|
|
6851
|
-
return Ot(
|
|
6848
|
+
disable: ({ col: $, row: Y, table: ee }) => {
|
|
6849
|
+
if (Y === 0) return !1;
|
|
6850
|
+
const K = ee?.getCellOriginRecord?.($, Y);
|
|
6851
|
+
return Ot(K);
|
|
6852
6852
|
},
|
|
6853
6853
|
headerStyle: { textAlign: "center" },
|
|
6854
6854
|
style: { textAlign: "center" }
|
|
@@ -6866,53 +6866,53 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6866
6866
|
}), xt = (O) => {
|
|
6867
6867
|
if (O.frozen) return O.frozen;
|
|
6868
6868
|
if (O.columns) for (const $ of O.columns) {
|
|
6869
|
-
const
|
|
6870
|
-
if (
|
|
6869
|
+
const Y = xt($);
|
|
6870
|
+
if (Y) return Y;
|
|
6871
6871
|
}
|
|
6872
6872
|
}, Jn = (O) => {
|
|
6873
6873
|
const $ = [];
|
|
6874
|
-
return O.forEach((
|
|
6875
|
-
if (
|
|
6876
|
-
$.push(
|
|
6874
|
+
return O.forEach((Y) => {
|
|
6875
|
+
if (Y.frozen) {
|
|
6876
|
+
$.push(Y);
|
|
6877
6877
|
return;
|
|
6878
6878
|
}
|
|
6879
|
-
if (!
|
|
6880
|
-
$.push(
|
|
6879
|
+
if (!Y.columns || Y.columns.length === 0) {
|
|
6880
|
+
$.push(Y);
|
|
6881
6881
|
return;
|
|
6882
6882
|
}
|
|
6883
|
-
const ee = Jn(
|
|
6883
|
+
const ee = Jn(Y.columns), K = [], te = [], ce = [];
|
|
6884
6884
|
if (ee.forEach((ve) => {
|
|
6885
6885
|
const pe = xt(ve);
|
|
6886
|
-
pe === "left" ?
|
|
6887
|
-
}), (
|
|
6888
|
-
|
|
6886
|
+
pe === "left" ? K.push(ve) : pe === "right" ? te.push(ve) : ce.push(ve);
|
|
6887
|
+
}), (K.length > 0 ? 1 : 0) + (te.length > 0 ? 1 : 0) + (ce.length > 0 ? 1 : 0) <= 1) {
|
|
6888
|
+
Y.columns = ee, $.push(Y);
|
|
6889
6889
|
return;
|
|
6890
6890
|
}
|
|
6891
|
-
|
|
6892
|
-
...
|
|
6893
|
-
columns:
|
|
6891
|
+
K.length && $.push({
|
|
6892
|
+
...Y,
|
|
6893
|
+
columns: K
|
|
6894
6894
|
}), ce.length && $.push({
|
|
6895
|
-
...
|
|
6895
|
+
...Y,
|
|
6896
6896
|
columns: ce
|
|
6897
6897
|
}), te.length && $.push({
|
|
6898
|
-
...
|
|
6898
|
+
...Y,
|
|
6899
6899
|
columns: te
|
|
6900
6900
|
});
|
|
6901
6901
|
}), $;
|
|
6902
6902
|
}, Gn = (O) => {
|
|
6903
|
-
let $ = 0,
|
|
6903
|
+
let $ = 0, Y = 0;
|
|
6904
6904
|
return O.forEach((ee) => {
|
|
6905
6905
|
if (ee.columns && ee.columns.length > 0) {
|
|
6906
|
-
const
|
|
6907
|
-
$ +=
|
|
6908
|
-
} else ee.frozen === "left" ? $++ : ee.frozen === "right" &&
|
|
6906
|
+
const K = Gn(ee.columns);
|
|
6907
|
+
$ += K.left, Y += K.right;
|
|
6908
|
+
} else ee.frozen === "left" ? $++ : ee.frozen === "right" && Y++;
|
|
6909
6909
|
}), {
|
|
6910
6910
|
left: $,
|
|
6911
|
-
right:
|
|
6911
|
+
right: Y
|
|
6912
6912
|
};
|
|
6913
|
-
}, Ma = (O, $,
|
|
6913
|
+
}, Ma = (O, $, Y, ee) => {
|
|
6914
6914
|
v = 0, _ = 0, S = !1;
|
|
6915
|
-
const
|
|
6915
|
+
const K = {};
|
|
6916
6916
|
let te = Tn(O);
|
|
6917
6917
|
ee || (te = se(te, o.mergeHeader)), te.length === 0 && (te = [Dt()]), te = Jn(te);
|
|
6918
6918
|
const ce = [], ve = [], pe = [];
|
|
@@ -6925,7 +6925,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6925
6925
|
...ce,
|
|
6926
6926
|
...pe,
|
|
6927
6927
|
...ve
|
|
6928
|
-
], $ && (te.unshift(Ie(ee)), _++),
|
|
6928
|
+
], $ && (te.unshift(Ie(ee)), _++), Y.length > 0 && (te.push($e(Y)), v++), S && (K.editCellTrigger = "click", K.keyboardOptions = {
|
|
6929
6929
|
copySelected: !0,
|
|
6930
6930
|
cutSelected: !0,
|
|
6931
6931
|
pasteValueToCell: !0,
|
|
@@ -6936,9 +6936,9 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6936
6936
|
if (je?._compType === "checkbox" || je?.customRender === Rt || je?.customRender === ze || Array.isArray(je?.columns) && Pe(je.columns)) return !0;
|
|
6937
6937
|
return !1;
|
|
6938
6938
|
};
|
|
6939
|
-
return Pe(te) && !(o.subColumns && o.subColumns.length > 0) && (
|
|
6939
|
+
return Pe(te) && !(o.subColumns && o.subColumns.length > 0) && (K.defaultRowHeight = "auto", K.defaultHeaderRowHeight = 40), {
|
|
6940
6940
|
columns: te,
|
|
6941
|
-
option:
|
|
6941
|
+
option: K
|
|
6942
6942
|
};
|
|
6943
6943
|
}, Aa = () => {
|
|
6944
6944
|
const O = Ma(o.columns, o.isShowNumber && !o.isTree, o.actions);
|
|
@@ -6985,24 +6985,24 @@ var tg = /* @__PURE__ */ xe({
|
|
|
6985
6985
|
}, ra = (O) => !o.isTree || !o.parentKey || O.some(($) => Array.isArray($?.children) && $.children.length > 0) ? O : nh(O, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), la = (O) => {
|
|
6986
6986
|
if (!b.value) return;
|
|
6987
6987
|
y(), A = we(), eg();
|
|
6988
|
-
const $ = Aa(),
|
|
6989
|
-
O && O.length >= 0 ? $.records = ra(j(O)) :
|
|
6988
|
+
const $ = Aa(), Y = ln();
|
|
6989
|
+
O && O.length >= 0 ? $.records = ra(j(O)) : Y.length > 0 ? $.records = ra(j(Y)) : ($.records = ra(j(o.records)), B($.records)), m = new tt.ListTable(b.value, $), m._getAppContext = () => a?.appContext;
|
|
6990
6990
|
const ee = a?.provides;
|
|
6991
|
-
m._getProvides = () => ee, o.loadChildren && m.on(tt.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (
|
|
6992
|
-
if (
|
|
6993
|
-
m.setLoadingHierarchyState(
|
|
6991
|
+
m._getProvides = () => ee, o.loadChildren && m.on(tt.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (K) => {
|
|
6992
|
+
if (K.hierarchyState === tt.TYPES.HierarchyState.expand && K.originData?.children === !0) {
|
|
6993
|
+
m.setLoadingHierarchyState(K.col, K.row);
|
|
6994
6994
|
try {
|
|
6995
|
-
const te = await o.loadChildren(
|
|
6996
|
-
o.isTree && m && typeof m.setRecordChildren == "function" ? m.setRecordChildren(te,
|
|
6995
|
+
const te = await o.loadChildren(K.originData);
|
|
6996
|
+
o.isTree && m && typeof m.setRecordChildren == "function" ? m.setRecordChildren(te, K.col, K.row) : C && typeof C.setRecordChildren == "function" ? C.setRecordChildren(te, K.col, K.row) : m && typeof m.setRecordChildren == "function" && m.setRecordChildren(te, K.col, K.row);
|
|
6997
6997
|
} catch (te) {
|
|
6998
|
-
console.error("Failed to load detail data:", te), m.setLoadingHierarchyState(
|
|
6998
|
+
console.error("Failed to load detail data:", te), m.setLoadingHierarchyState(K.col, K.row);
|
|
6999
6999
|
}
|
|
7000
7000
|
}
|
|
7001
|
-
}), m.on("click_cell", (
|
|
7002
|
-
const { col: te, row: ce, cellType: ve, originData: pe } =
|
|
7001
|
+
}), m.on("click_cell", (K) => {
|
|
7002
|
+
const { col: te, row: ce, cellType: ve, originData: pe } = K, ye = pe || { children: m.records };
|
|
7003
7003
|
if (Ke.value) {
|
|
7004
7004
|
if (ve === "checkbox" && te == 0) {
|
|
7005
|
-
if (ye.__checkState =
|
|
7005
|
+
if (ye.__checkState = K.target.attribute.checked, ce === 0 && ye.__checkState === !1) {
|
|
7006
7006
|
const Pe = (He) => {
|
|
7007
7007
|
!Array.isArray(He) || He.length === 0 || He.forEach((je) => {
|
|
7008
7008
|
je && (je.__checkState = !1, Array.isArray(je.children) && je.children.length > 0 && Pe(je.children));
|
|
@@ -7027,47 +7027,47 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7027
7027
|
checked: !0
|
|
7028
7028
|
});
|
|
7029
7029
|
}, 0);
|
|
7030
|
-
}), o.rowDrag && m.on("change_header_position", (
|
|
7031
|
-
io(
|
|
7030
|
+
}), o.rowDrag && m.on("change_header_position", (K) => {
|
|
7031
|
+
io(K);
|
|
7032
7032
|
}), x.value = m.getAllRowsHeight(), i("ready", m);
|
|
7033
7033
|
}, ja = () => {
|
|
7034
7034
|
m && (m.release(), m = null);
|
|
7035
7035
|
}, io = (O) => {
|
|
7036
7036
|
if (!m) return;
|
|
7037
|
-
const { source: $, target:
|
|
7038
|
-
if ($ &&
|
|
7039
|
-
const ee = Jt(m.records || []),
|
|
7037
|
+
const { source: $, target: Y } = O || {};
|
|
7038
|
+
if ($ && Y && $.col === Y.col && $.row === Y.row) return;
|
|
7039
|
+
const ee = Jt(m.records || []), K = $ && typeof m.getRecordByCell == "function" ? m.getRecordByCell($.col, $.row) : null, te = Y && typeof m.getRecordByCell == "function" ? m.getRecordByCell(Y.col, Y.row) : null;
|
|
7040
7040
|
B(ee), i("change", {
|
|
7041
7041
|
id: o.id,
|
|
7042
|
-
value: Jt(te ||
|
|
7042
|
+
value: Jt(te || K || ee),
|
|
7043
7043
|
data: {
|
|
7044
7044
|
source: $,
|
|
7045
|
-
target:
|
|
7046
|
-
sourceRecord:
|
|
7045
|
+
target: Y,
|
|
7046
|
+
sourceRecord: K ? Jt(K) : null,
|
|
7047
7047
|
targetRecord: te ? Jt(te) : null
|
|
7048
7048
|
},
|
|
7049
7049
|
formData: r,
|
|
7050
7050
|
tableData: ee,
|
|
7051
7051
|
type: "sort"
|
|
7052
7052
|
});
|
|
7053
|
-
}, en = () => m, vn = (O) => {
|
|
7053
|
+
}, en = () => m, vn = (O, $) => {
|
|
7054
7054
|
if (y(), R.value = 0, m) {
|
|
7055
7055
|
m.setScrollTop(0);
|
|
7056
|
-
const
|
|
7057
|
-
if (T =
|
|
7058
|
-
ja(), la(
|
|
7056
|
+
const Y = ra(j(O));
|
|
7057
|
+
if (T = Y.length, o.subColumns && o.subColumns.length > 0) setTimeout(() => {
|
|
7058
|
+
ja(), la(Y);
|
|
7059
7059
|
});
|
|
7060
7060
|
else {
|
|
7061
|
-
const
|
|
7062
|
-
|
|
7061
|
+
const ee = we();
|
|
7062
|
+
ee !== A ? (A = ee, o.subColumns && o.subColumns.length > 0 ? (ja(), la(Y)) : Yt(Y)) : m.setRecords(Y);
|
|
7063
7063
|
}
|
|
7064
|
-
if (o.selectStateKey && o.isMultiple) {
|
|
7065
|
-
const
|
|
7066
|
-
ie(
|
|
7064
|
+
if (o.selectStateKey && o.isMultiple && !$?.skipSelectState) {
|
|
7065
|
+
const ee = O.filter((K) => K[o.selectStateKey] && !Ot(K));
|
|
7066
|
+
ie(ee), R.value = ee.length, i("selectRecordsChanged", ee), i("selectionChanged", {
|
|
7067
7067
|
isMultiple: !0,
|
|
7068
|
-
selections:
|
|
7068
|
+
selections: ee,
|
|
7069
7069
|
record: { children: m.records },
|
|
7070
|
-
checked:
|
|
7070
|
+
checked: ee.length > 0
|
|
7071
7071
|
});
|
|
7072
7072
|
}
|
|
7073
7073
|
o.heightMode === "auto" && (x.value = m.getAllRowsHeight());
|
|
@@ -7108,7 +7108,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7108
7108
|
return [];
|
|
7109
7109
|
}
|
|
7110
7110
|
if (m.stateManager && m.stateManager.checkedState) {
|
|
7111
|
-
const O = [], $ = /* @__PURE__ */ new Set(),
|
|
7111
|
+
const O = [], $ = /* @__PURE__ */ new Set(), Y = (ve) => {
|
|
7112
7112
|
if (!ve || Ot(ve)) return;
|
|
7113
7113
|
const pe = Ae(ve);
|
|
7114
7114
|
if (pe) {
|
|
@@ -7120,17 +7120,17 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7120
7120
|
}, ee = (ve) => {
|
|
7121
7121
|
const pe = ve?.children;
|
|
7122
7122
|
!Array.isArray(pe) || pe.length === 0 || pe.forEach((ye) => {
|
|
7123
|
-
|
|
7123
|
+
Y(ye), ee(ye);
|
|
7124
7124
|
});
|
|
7125
|
-
},
|
|
7125
|
+
}, K = m.stateManager.checkedState, te = m.records, ce = (ve, pe, ye) => {
|
|
7126
7126
|
const he = ye[pe[ve]];
|
|
7127
7127
|
return ve < pe.length - 1 && he?.children && he.children.length > 0 ? ce(ve + 1, pe, he.children || []) : he;
|
|
7128
7128
|
};
|
|
7129
|
-
return
|
|
7129
|
+
return K.forEach((ve, pe) => {
|
|
7130
7130
|
const ye = ve?._checkState;
|
|
7131
7131
|
if (ye === "indeterminate" || ye === !0) {
|
|
7132
7132
|
const he = ce(0, (pe + "").split(",").map(Number), te);
|
|
7133
|
-
|
|
7133
|
+
Y(he), ye === !0 && ee(he);
|
|
7134
7134
|
}
|
|
7135
7135
|
}), O;
|
|
7136
7136
|
}
|
|
@@ -7138,7 +7138,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7138
7138
|
}, Ae = (O) => o.editConfig.isRemoveBtn ? O._i : o.rowKey ? o.rowKey.split(",").map(($) => O[$.trim()]).join("::") : "", ie = (O) => {
|
|
7139
7139
|
if (m)
|
|
7140
7140
|
if (Ke.value || m.clearSelected(), o.rowKey) {
|
|
7141
|
-
const $ = new Set(O.map(Ae)),
|
|
7141
|
+
const $ = new Set(O.map(Ae)), Y = "__checkState";
|
|
7142
7142
|
if (!Ke.value) {
|
|
7143
7143
|
const ve = m.records;
|
|
7144
7144
|
for (let pe = 0; pe < ve.length; pe++) {
|
|
@@ -7154,24 +7154,24 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7154
7154
|
ve.forEach((pe) => {
|
|
7155
7155
|
if (Array.isArray(pe?.children) && pe.children.length > 0) {
|
|
7156
7156
|
ee(pe.children);
|
|
7157
|
-
const ye = pe.children.filter((He) => !Ot(He)), he = ye.filter((He) => He?.[
|
|
7158
|
-
ye.length === 0 ? pe[
|
|
7157
|
+
const ye = pe.children.filter((He) => !Ot(He)), he = ye.filter((He) => He?.[Y] === !0), Pe = ye.filter((He) => He?.[Y] === !1);
|
|
7158
|
+
ye.length === 0 ? pe[Y] = !1 : he.length == ye.length ? pe[Y] = !0 : Pe.length == ye.length ? pe[Y] = !1 : pe[Y] = "indeterminate", pe[Y] === "indeterminate" && (pe.hierarchyState = "expand");
|
|
7159
7159
|
} else {
|
|
7160
7160
|
const ye = $.has(Ae(pe));
|
|
7161
|
-
pe[
|
|
7161
|
+
pe[Y] = !!(!Ot(pe) && ye);
|
|
7162
7162
|
}
|
|
7163
7163
|
});
|
|
7164
|
-
},
|
|
7165
|
-
o.isTree ? ee(
|
|
7166
|
-
ve[
|
|
7164
|
+
}, K = m.records;
|
|
7165
|
+
o.isTree ? ee(K) : K.forEach((ve) => {
|
|
7166
|
+
ve[Y] = !Ot(ve) && $.has(Ae(ve));
|
|
7167
7167
|
});
|
|
7168
7168
|
const te = Aa();
|
|
7169
|
-
te.records =
|
|
7169
|
+
te.records = K, m.updateOption(te, {
|
|
7170
7170
|
clearColWidthCache: !1,
|
|
7171
7171
|
clearRowHeightCache: !1
|
|
7172
7172
|
}), o.heightMode === "auto" && (x.value = m.getAllRowsHeight());
|
|
7173
7173
|
const ce = m.getAllBodyCells(1);
|
|
7174
|
-
for (let ve = 0; ve < ce.length; ve++) ce[ve][0].originData[
|
|
7174
|
+
for (let ve = 0; ve < ce.length; ve++) ce[ve][0].originData[Y] == !0 && m.setCellCheckboxState(0, ve + 1, !0);
|
|
7175
7175
|
m.renderWithRecreateCells();
|
|
7176
7176
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
7177
7177
|
}, ct = (O) => {
|
|
@@ -7183,8 +7183,8 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7183
7183
|
ie($);
|
|
7184
7184
|
return;
|
|
7185
7185
|
}
|
|
7186
|
-
const
|
|
7187
|
-
|
|
7186
|
+
const Y = Aa();
|
|
7187
|
+
Y.records = O || m.records, m.updateOption(Y, {
|
|
7188
7188
|
clearColWidthCache: !1,
|
|
7189
7189
|
clearRowHeightCache: !1
|
|
7190
7190
|
}), o.heightMode === "auto" && (x.value = m.getAllRowsHeight()), R.value = 0;
|
|
@@ -7212,17 +7212,17 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7212
7212
|
});
|
|
7213
7213
|
const Mn = P(() => {
|
|
7214
7214
|
const O = ($) => {
|
|
7215
|
-
const
|
|
7215
|
+
const Y = [];
|
|
7216
7216
|
return $.forEach((ee) => {
|
|
7217
|
-
ee.children && ee.children.length > 0 ?
|
|
7218
|
-
}),
|
|
7217
|
+
ee.children && ee.children.length > 0 ? Y.push(...O(ee.children)) : Y.push(ee);
|
|
7218
|
+
}), Y;
|
|
7219
7219
|
};
|
|
7220
7220
|
return O(o.columns);
|
|
7221
7221
|
}), bn = () => {
|
|
7222
7222
|
const O = {};
|
|
7223
7223
|
O._i = Cn(), Mn.value.forEach(($) => {
|
|
7224
|
-
const
|
|
7225
|
-
|
|
7224
|
+
const Y = $.config?.valueRowKey || $.id || "";
|
|
7225
|
+
Y && (O[Y] = Jt($.config?.defaultValue));
|
|
7226
7226
|
}), m && (m.addRecord(O), o.heightMode === "auto" && Yt(), m.scrollToCell({
|
|
7227
7227
|
col: 0,
|
|
7228
7228
|
row: m.records.length
|
|
@@ -7242,12 +7242,12 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7242
7242
|
cancelButtonText: "取消",
|
|
7243
7243
|
type: "warning"
|
|
7244
7244
|
}).then(() => {
|
|
7245
|
-
const $ = m.records,
|
|
7246
|
-
Yt(ee), B(ee), O.forEach((
|
|
7245
|
+
const $ = m.records, Y = new Set(O.map((K) => K._i)), ee = $.filter((K) => !Y.has(K._i));
|
|
7246
|
+
Yt(ee), B(ee), O.forEach((K) => {
|
|
7247
7247
|
i("change", {
|
|
7248
7248
|
id: o.id,
|
|
7249
|
-
value:
|
|
7250
|
-
data:
|
|
7249
|
+
value: K,
|
|
7250
|
+
data: K,
|
|
7251
7251
|
formData: r,
|
|
7252
7252
|
tableData: ee,
|
|
7253
7253
|
type: "delete"
|
|
@@ -7294,7 +7294,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7294
7294
|
setSelection: ie,
|
|
7295
7295
|
renderTable: an
|
|
7296
7296
|
}), (O, $) => {
|
|
7297
|
-
const
|
|
7297
|
+
const Y = F("j-button"), ee = F("el-space"), K = F("el-pagination");
|
|
7298
7298
|
return k(), I("div", {
|
|
7299
7299
|
class: Qe(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
7300
7300
|
style: de(p.value)
|
|
@@ -7310,13 +7310,13 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7310
7310
|
}, null, 512)], 4),
|
|
7311
7311
|
L("div", ig, [e.isPage || !lo.value && (qn.value || Ln.value) ? (k(), I("div", rg, [
|
|
7312
7312
|
Q(ee, null, {
|
|
7313
|
-
default: q(() => [qn.value ? (k(), N(
|
|
7313
|
+
default: q(() => [qn.value ? (k(), N(Y, {
|
|
7314
7314
|
key: 0,
|
|
7315
7315
|
type: "link",
|
|
7316
7316
|
label: ro.value,
|
|
7317
7317
|
icon: "mdi:add",
|
|
7318
7318
|
onClick: bn
|
|
7319
|
-
}, null, 8, ["label"])) : ne("", !0), Ln.value ? (k(), N(
|
|
7319
|
+
}, null, 8, ["label"])) : ne("", !0), Ln.value ? (k(), N(Y, {
|
|
7320
7320
|
key: 1,
|
|
7321
7321
|
type: "link",
|
|
7322
7322
|
label: "删除",
|
|
@@ -7328,7 +7328,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
7328
7328
|
_: 1
|
|
7329
7329
|
}),
|
|
7330
7330
|
$[2] || ($[2] = L("div", null, null, -1)),
|
|
7331
|
-
e.isPage ? (k(), N(
|
|
7331
|
+
e.isPage ? (k(), N(K, {
|
|
7332
7332
|
key: 0,
|
|
7333
7333
|
"current-page": Ba.value,
|
|
7334
7334
|
"onUpdate:currentPage": $[0] || ($[0] = (te) => Ba.value = te),
|
|
@@ -9281,7 +9281,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
9281
9281
|
const n = e.__vccOpts || e;
|
|
9282
9282
|
for (const [a, o] of t) n[a] = o;
|
|
9283
9283
|
return n;
|
|
9284
|
-
}, yv = /* @__PURE__ */ vv(gv, [["__scopeId", "data-v-
|
|
9284
|
+
}, yv = /* @__PURE__ */ vv(gv, [["__scopeId", "data-v-69ad659b"]]), mv = Me(yv), bv = ["innerHTML"], wv = {
|
|
9285
9285
|
key: 1,
|
|
9286
9286
|
class: "j-barcode-error"
|
|
9287
9287
|
}, _v = /* @__PURE__ */ xe({
|
|
@@ -12738,7 +12738,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
12738
12738
|
}, ut = D(!1), qt = () => {
|
|
12739
12739
|
ut.value = !ut.value;
|
|
12740
12740
|
}, Kt = () => {
|
|
12741
|
-
g.value = [], y.value = [], l.value && (l.value.setSelection?.([]), x.value && (x.value = !1, l.value.setRecords(s.value))), c.value?.clearSelection?.(), r("select", {
|
|
12741
|
+
g.value = [], y.value = [], l.value && (l.value.setSelection?.([]), x.value && (x.value = !1, l.value.setRecords(s.value, { skipSelectState: !0 }))), c.value?.clearSelection?.(), r("select", {
|
|
12742
12742
|
selections: [],
|
|
12743
12743
|
keys: [],
|
|
12744
12744
|
record: {},
|
|
@@ -12746,7 +12746,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
12746
12746
|
isMultiple: i.isMultiple
|
|
12747
12747
|
});
|
|
12748
12748
|
}, un = () => {
|
|
12749
|
-
x.value = !x.value, !S.value && (x.value ? l.value?.setRecords(y.value) : l.value?.setRecords(s.value), l.value?.setSelection?.(y.value));
|
|
12749
|
+
x.value = !x.value, !S.value && (x.value ? l.value?.setRecords(y.value, { skipSelectState: !0 }) : l.value?.setRecords(s.value, { skipSelectState: !0 }), l.value?.setSelection?.(y.value));
|
|
12750
12750
|
}, dn = P(() => {
|
|
12751
12751
|
if (m.value && i.isMultiple) {
|
|
12752
12752
|
const ge = [
|
|
@@ -12922,7 +12922,7 @@ var tg = /* @__PURE__ */ xe({
|
|
|
12922
12922
|
record: fe,
|
|
12923
12923
|
checked: Oe,
|
|
12924
12924
|
isMultiple: Ae
|
|
12925
|
-
}), x.value && ie.length === 0 ? (x.value = !1, l.value && l.value.setRecords(s.value)) : x.value && ie.length > 0 && l.value && (l.value.setRecords(ie), l.value.setSelection?.(ie));
|
|
12925
|
+
}), x.value && ie.length === 0 ? (x.value = !1, l.value && l.value.setRecords(s.value, { skipSelectState: !0 })) : x.value && ie.length > 0 && l.value && (l.value.setRecords(ie, { skipSelectState: !0 }), l.value.setSelection?.(ie));
|
|
12926
12926
|
}, Ma = (ge) => {
|
|
12927
12927
|
i.isMultiple && i.rowKey && !w.value ? A(ge) : H(ge);
|
|
12928
12928
|
}, Aa = (ge) => {
|