@a2simcode/ui 0.0.166 → 0.0.168
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/input-rows/index.d.ts +15 -0
- package/dist/components/input-rows/src/input-rows.vue.d.ts +16 -0
- package/dist/simcode-ui.es.js +396 -393
- 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/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 +71 -71
- 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 +72 -72
- 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 +26 -26
- 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/buttons.ts +76 -76
- 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 +50 -50
- package/docs/components/meta/form.ts +181 -181
- package/docs/components/meta/input-cards.ts +112 -112
- package/docs/components/meta/input-color.ts +243 -243
- package/docs/components/meta/input-layer.ts +366 -366
- package/docs/components/meta/input-rows.ts +119 -113
- package/docs/components/meta/layer-form.ts +56 -56
- package/docs/components/meta/map.ts +68 -68
- package/docs/components/meta/panel.ts +152 -152
- package/docs/components/meta/slider.ts +270 -270
- package/docs/components/meta/table-panel.ts +232 -232
- package/docs/components/meta/table.ts +391 -391
- package/docs/components/meta/tabs.ts +146 -146
- package/docs/components/meta/title.ts +91 -91
- package/docs/components/meta/tree-select.ts +199 -199
- package/docs/components/meta/tree.ts +219 -219
- 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 +236 -236
- package/docs/components/table.md +391 -391
- package/docs/components/tabs.md +26 -26
- package/docs/components/title.md +24 -24
- package/docs/components/tree.md +207 -207
- 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/danger-ghost.vue +17 -17
- package/docs/examples/button/disabled.vue +10 -10
- 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/type.vue +9 -9
- package/docs/examples/button-select/basic.vue +19 -19
- package/docs/examples/buttons/basic.vue +45 -45
- 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/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/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 +613 -576
- 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/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-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 +86 -86
- 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/custom-layout.vue +115 -115
- 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/link.vue +66 -66
- package/docs/examples/table/multiple.vue +188 -188
- package/docs/examples/table/pagination.vue +151 -151
- 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 +285 -285
- package/docs/examples/table-panel/button-visibility.vue +88 -88
- package/docs/examples/table-panel/filter.vue +219 -219
- package/docs/examples/table-panel/get-selection.vue +111 -111
- package/docs/examples/table-panel/multiple-selection.vue +243 -243
- package/docs/examples/table-panel/pagination.vue +133 -133
- 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/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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as Ce, computed as O, createBlock as N, createCommentVNode as ee, createElementBlock as L, createElementVNode as B, createSlots as Dn, createTextVNode as on, createVNode as Z, defineComponent as he, getCurrentInstance as uc, guardReactiveProps as ji, h as vi, inject as kd, mergeModels as So, mergeProps as Fe, nextTick as
|
|
1
|
+
import { Fragment as Ce, computed as O, createBlock as N, createCommentVNode as ee, createElementBlock as L, createElementVNode as B, createSlots as Dn, createTextVNode as on, createVNode as Z, defineComponent as he, getCurrentInstance as uc, guardReactiveProps as ji, h as vi, inject as kd, mergeModels as So, mergeProps as Fe, nextTick as Dt, normalizeClass as Ne, normalizeProps as Ro, normalizeStyle as le, onBeforeUnmount as To, onMounted as jt, onUnmounted as Ao, openBlock as E, provide as Ed, reactive as na, ref as I, render as yi, renderList as He, renderSlot as Ye, resolveComponent as V, resolveDirective as Pi, resolveDynamicComponent as Ya, shallowRef as Bi, toDisplayString as ve, unref as J, useModel as ko, useSlots as Rd, useTemplateRef as ka, vShow as mo, watch as at, watchEffect as dc, withCtx as K, withDirectives as zn, withKeys as fr, withModifiers as $t } from "vue";
|
|
2
2
|
import { Icon as jl, getIcon as Sa } from "@iconify/vue";
|
|
3
3
|
import fc from "dayjs";
|
|
4
4
|
import Td from "sortablejs";
|
|
@@ -814,8 +814,8 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
814
814
|
var b = y + _, v = g[b];
|
|
815
815
|
g[b] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
|
|
816
816
|
}
|
|
817
|
-
var w = this._hash.words, S = g[y + 0], m = g[y + 1], x = g[y + 2], C = g[y + 3], k = g[y + 4], T = g[y + 5], A = g[y + 6], H = g[y + 7],
|
|
818
|
-
j = f(j, F, G, P, S, 7, s[0]), P = f(P, j, F, G, m, 12, s[1]), G = f(G, P, j, F, x, 17, s[2]), F = f(F, G, P, j, C, 22, s[3]), j = f(j, F, G, P, k, 7, s[4]), P = f(P, j, F, G, T, 12, s[5]), G = f(G, P, j, F, A, 17, s[6]), F = f(F, G, P, j, H, 22, s[7]), j = f(j, F, G, P,
|
|
817
|
+
var w = this._hash.words, S = g[y + 0], m = g[y + 1], x = g[y + 2], C = g[y + 3], k = g[y + 4], T = g[y + 5], A = g[y + 6], H = g[y + 7], z = g[y + 8], $ = g[y + 9], M = g[y + 10], R = g[y + 11], W = g[y + 12], q = g[y + 13], se = g[y + 14], ye = g[y + 15], j = w[0], F = w[1], G = w[2], P = w[3];
|
|
818
|
+
j = f(j, F, G, P, S, 7, s[0]), P = f(P, j, F, G, m, 12, s[1]), G = f(G, P, j, F, x, 17, s[2]), F = f(F, G, P, j, C, 22, s[3]), j = f(j, F, G, P, k, 7, s[4]), P = f(P, j, F, G, T, 12, s[5]), G = f(G, P, j, F, A, 17, s[6]), F = f(F, G, P, j, H, 22, s[7]), j = f(j, F, G, P, z, 7, s[8]), P = f(P, j, F, G, $, 12, s[9]), G = f(G, P, j, F, M, 17, s[10]), F = f(F, G, P, j, R, 22, s[11]), j = f(j, F, G, P, W, 7, s[12]), P = f(P, j, F, G, q, 12, s[13]), G = f(G, P, j, F, se, 17, s[14]), F = f(F, G, P, j, ye, 22, s[15]), j = u(j, F, G, P, m, 5, s[16]), P = u(P, j, F, G, A, 9, s[17]), G = u(G, P, j, F, R, 14, s[18]), F = u(F, G, P, j, S, 20, s[19]), j = u(j, F, G, P, T, 5, s[20]), P = u(P, j, F, G, M, 9, s[21]), G = u(G, P, j, F, ye, 14, s[22]), F = u(F, G, P, j, k, 20, s[23]), j = u(j, F, G, P, $, 5, s[24]), P = u(P, j, F, G, se, 9, s[25]), G = u(G, P, j, F, C, 14, s[26]), F = u(F, G, P, j, z, 20, s[27]), j = u(j, F, G, P, q, 5, s[28]), P = u(P, j, F, G, x, 9, s[29]), G = u(G, P, j, F, H, 14, s[30]), F = u(F, G, P, j, W, 20, s[31]), j = h(j, F, G, P, T, 4, s[32]), P = h(P, j, F, G, z, 11, s[33]), G = h(G, P, j, F, R, 16, s[34]), F = h(F, G, P, j, se, 23, s[35]), j = h(j, F, G, P, m, 4, s[36]), P = h(P, j, F, G, k, 11, s[37]), G = h(G, P, j, F, H, 16, s[38]), F = h(F, G, P, j, M, 23, s[39]), j = h(j, F, G, P, q, 4, s[40]), P = h(P, j, F, G, S, 11, s[41]), G = h(G, P, j, F, C, 16, s[42]), F = h(F, G, P, j, A, 23, s[43]), j = h(j, F, G, P, $, 4, s[44]), P = h(P, j, F, G, W, 11, s[45]), G = h(G, P, j, F, ye, 16, s[46]), F = h(F, G, P, j, x, 23, s[47]), j = p(j, F, G, P, S, 6, s[48]), P = p(P, j, F, G, H, 10, s[49]), G = p(G, P, j, F, se, 15, s[50]), F = p(F, G, P, j, T, 21, s[51]), j = p(j, F, G, P, W, 6, s[52]), P = p(P, j, F, G, C, 10, s[53]), G = p(G, P, j, F, M, 15, s[54]), F = p(F, G, P, j, m, 21, s[55]), j = p(j, F, G, P, z, 6, s[56]), P = p(P, j, F, G, ye, 10, s[57]), G = p(G, P, j, F, A, 15, s[58]), F = p(F, G, P, j, q, 21, s[59]), j = p(j, F, G, P, k, 6, s[60]), P = p(P, j, F, G, R, 10, s[61]), G = p(G, P, j, F, x, 15, s[62]), F = p(F, G, P, j, $, 21, s[63]), w[0] = w[0] + j | 0, w[1] = w[1] + F | 0, w[2] = w[2] + G | 0, w[3] = w[3] + P | 0;
|
|
819
819
|
},
|
|
820
820
|
_doFinalize: function() {
|
|
821
821
|
var g = this._data, y = g.words, _ = this._nDataBytes * 8, b = g.sigBytes * 8;
|
|
@@ -990,11 +990,11 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
990
990
|
}
|
|
991
991
|
return function(T) {
|
|
992
992
|
return {
|
|
993
|
-
encrypt: function(A, H,
|
|
994
|
-
return k(H).encrypt(T, A, H,
|
|
993
|
+
encrypt: function(A, H, z) {
|
|
994
|
+
return k(H).encrypt(T, A, H, z);
|
|
995
995
|
},
|
|
996
|
-
decrypt: function(A, H,
|
|
997
|
-
return k(H).decrypt(T, A, H,
|
|
996
|
+
decrypt: function(A, H, z) {
|
|
997
|
+
return k(H).decrypt(T, A, H, z);
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
@@ -1019,22 +1019,22 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1019
1019
|
}), g = h.CBC = (function() {
|
|
1020
1020
|
var k = p.extend();
|
|
1021
1021
|
k.Encryptor = k.extend({ processBlock: function(A, H) {
|
|
1022
|
-
var
|
|
1023
|
-
T.call(this, A, H,
|
|
1022
|
+
var z = this._cipher, $ = z.blockSize;
|
|
1023
|
+
T.call(this, A, H, $), z.encryptBlock(A, H), this._prevBlock = A.slice(H, H + $);
|
|
1024
1024
|
} }), k.Decryptor = k.extend({ processBlock: function(A, H) {
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1025
|
+
var z = this._cipher, $ = z.blockSize, M = A.slice(H, H + $);
|
|
1026
|
+
z.decryptBlock(A, H), T.call(this, A, H, $), this._prevBlock = M;
|
|
1027
1027
|
} });
|
|
1028
|
-
function T(A, H,
|
|
1029
|
-
var
|
|
1030
|
-
M ? (
|
|
1031
|
-
for (var R = 0; R <
|
|
1028
|
+
function T(A, H, z) {
|
|
1029
|
+
var $, M = this._iv;
|
|
1030
|
+
M ? ($ = M, this._iv = a) : $ = this._prevBlock;
|
|
1031
|
+
for (var R = 0; R < z; R++) A[H + R] ^= $[R];
|
|
1032
1032
|
}
|
|
1033
1033
|
return k;
|
|
1034
1034
|
})(), y = o.pad = {}, _ = y.Pkcs7 = {
|
|
1035
1035
|
pad: function(k, T) {
|
|
1036
|
-
for (var A = T * 4, H = A - k.sigBytes % A,
|
|
1037
|
-
var R = l.create(
|
|
1036
|
+
for (var A = T * 4, H = A - k.sigBytes % A, z = H << 24 | H << 16 | H << 8 | H, $ = [], M = 0; M < H; M += 4) $.push(z);
|
|
1037
|
+
var R = l.create($, H);
|
|
1038
1038
|
k.concat(R);
|
|
1039
1039
|
},
|
|
1040
1040
|
unpad: function(k) {
|
|
@@ -1085,9 +1085,9 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1085
1085
|
cfg: r.extend({ format: w }),
|
|
1086
1086
|
encrypt: function(k, T, A, H) {
|
|
1087
1087
|
H = this.cfg.extend(H);
|
|
1088
|
-
var
|
|
1088
|
+
var z = k.createEncryptor(A, H), $ = z.finalize(T), M = z.cfg;
|
|
1089
1089
|
return b.create({
|
|
1090
|
-
ciphertext:
|
|
1090
|
+
ciphertext: $,
|
|
1091
1091
|
key: A,
|
|
1092
1092
|
iv: M.iv,
|
|
1093
1093
|
algorithm: k,
|
|
@@ -1103,15 +1103,15 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1103
1103
|
_parse: function(k, T) {
|
|
1104
1104
|
return typeof k == "string" ? T.parse(k, this) : k;
|
|
1105
1105
|
}
|
|
1106
|
-
}), m = o.kdf = {}, x = m.OpenSSL = { execute: function(k, T, A, H,
|
|
1107
|
-
if (H || (H = l.random(64 / 8)),
|
|
1106
|
+
}), m = o.kdf = {}, x = m.OpenSSL = { execute: function(k, T, A, H, z) {
|
|
1107
|
+
if (H || (H = l.random(64 / 8)), z) var $ = f.create({
|
|
1108
1108
|
keySize: T + A,
|
|
1109
|
-
hasher:
|
|
1109
|
+
hasher: z
|
|
1110
1110
|
}).compute(k, H);
|
|
1111
|
-
else var
|
|
1112
|
-
var M = l.create(
|
|
1113
|
-
return
|
|
1114
|
-
key:
|
|
1111
|
+
else var $ = f.create({ keySize: T + A }).compute(k, H);
|
|
1112
|
+
var M = l.create($.words.slice(T), A * 4);
|
|
1113
|
+
return $.sigBytes = T * 4, b.create({
|
|
1114
|
+
key: $,
|
|
1115
1115
|
iv: M,
|
|
1116
1116
|
salt: H
|
|
1117
1117
|
});
|
|
@@ -1119,15 +1119,15 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1119
1119
|
cfg: S.cfg.extend({ kdf: x }),
|
|
1120
1120
|
encrypt: function(k, T, A, H) {
|
|
1121
1121
|
H = this.cfg.extend(H);
|
|
1122
|
-
var
|
|
1123
|
-
H.iv =
|
|
1124
|
-
var
|
|
1125
|
-
return
|
|
1122
|
+
var z = H.kdf.execute(A, k.keySize, k.ivSize, H.salt, H.hasher);
|
|
1123
|
+
H.iv = z.iv;
|
|
1124
|
+
var $ = S.encrypt.call(this, k, T, z.key, H);
|
|
1125
|
+
return $.mixIn(z), $;
|
|
1126
1126
|
},
|
|
1127
1127
|
decrypt: function(k, T, A, H) {
|
|
1128
1128
|
H = this.cfg.extend(H), T = this._parse(T, H.format);
|
|
1129
|
-
var
|
|
1130
|
-
return H.iv =
|
|
1129
|
+
var z = H.kdf.execute(A, k.keySize, k.ivSize, T.salt, H.hasher);
|
|
1130
|
+
return H.iv = z.iv, S.decrypt.call(this, k, T, z.key, H);
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
1133
1133
|
})();
|
|
@@ -1190,11 +1190,11 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1190
1190
|
b[v + 1] = b[v + 3], b[v + 3] = w;
|
|
1191
1191
|
},
|
|
1192
1192
|
_doCryptBlock: function(b, v, w, S, m, x, C, k) {
|
|
1193
|
-
for (var T = this._nRounds, A = b[v] ^ w[0], H = b[v + 1] ^ w[1],
|
|
1194
|
-
var W = S[A >>> 24] ^ m[H >>> 16 & 255] ^ x[
|
|
1195
|
-
A = W, H = q,
|
|
1193
|
+
for (var T = this._nRounds, A = b[v] ^ w[0], H = b[v + 1] ^ w[1], z = b[v + 2] ^ w[2], $ = b[v + 3] ^ w[3], M = 4, R = 1; R < T; R++) {
|
|
1194
|
+
var W = S[A >>> 24] ^ m[H >>> 16 & 255] ^ x[z >>> 8 & 255] ^ C[$ & 255] ^ w[M++], q = S[H >>> 24] ^ m[z >>> 16 & 255] ^ x[$ >>> 8 & 255] ^ C[A & 255] ^ w[M++], se = S[z >>> 24] ^ m[$ >>> 16 & 255] ^ x[A >>> 8 & 255] ^ C[H & 255] ^ w[M++], ye = S[$ >>> 24] ^ m[A >>> 16 & 255] ^ x[H >>> 8 & 255] ^ C[z & 255] ^ w[M++];
|
|
1195
|
+
A = W, H = q, z = se, $ = ye;
|
|
1196
1196
|
}
|
|
1197
|
-
var W = (k[A >>> 24] << 24 | k[H >>> 16 & 255] << 16 | k[
|
|
1197
|
+
var W = (k[A >>> 24] << 24 | k[H >>> 16 & 255] << 16 | k[z >>> 8 & 255] << 8 | k[$ & 255]) ^ w[M++], q = (k[H >>> 24] << 24 | k[z >>> 16 & 255] << 16 | k[$ >>> 8 & 255] << 8 | k[A & 255]) ^ w[M++], se = (k[z >>> 24] << 24 | k[$ >>> 16 & 255] << 16 | k[A >>> 8 & 255] << 8 | k[H & 255]) ^ w[M++], ye = (k[$ >>> 24] << 24 | k[A >>> 16 & 255] << 16 | k[H >>> 8 & 255] << 8 | k[z & 255]) ^ w[M++];
|
|
1198
1198
|
b[v] = W, b[v + 1] = q, b[v + 2] = se, b[v + 3] = ye;
|
|
1199
1199
|
},
|
|
1200
1200
|
keySize: 256 / 32
|
|
@@ -1242,7 +1242,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1242
1242
|
var k = f[C - 15], T = (k << 25 | k >>> 7) ^ (k << 14 | k >>> 18) ^ k >>> 3, A = f[C - 2], H = (A << 15 | A >>> 17) ^ (A << 13 | A >>> 19) ^ A >>> 10;
|
|
1243
1243
|
f[C] = T + f[C - 7] + H + f[C - 16];
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1245
|
+
var z = w & S ^ ~w & m, $ = y & _ ^ y & b ^ _ & b, M = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), R = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), W = x + R + z + d[C] + f[C], q = M + $;
|
|
1246
1246
|
x = m, m = S, S = w, w = v + W | 0, v = b, b = _, _ = y, y = W + q | 0;
|
|
1247
1247
|
}
|
|
1248
1248
|
g[0] = g[0] + y | 0, g[1] = g[1] + _ | 0, g[2] = g[2] + b | 0, g[3] = g[3] + v | 0, g[4] = g[4] + w | 0, g[5] = g[5] + S | 0, g[6] = g[6] + m | 0, g[7] = g[7] + x | 0;
|
|
@@ -1393,7 +1393,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1393
1393
|
]);
|
|
1394
1394
|
},
|
|
1395
1395
|
_doProcessBlock: function(h, p) {
|
|
1396
|
-
for (var g = this._hash.words, y = g[0], _ = g[1], b = g[2], v = g[3], w = g[4], S = g[5], m = g[6], x = g[7], C = y.high, k = y.low, T = _.high, A = _.low, H = b.high,
|
|
1396
|
+
for (var g = this._hash.words, y = g[0], _ = g[1], b = g[2], v = g[3], w = g[4], S = g[5], m = g[6], x = g[7], C = y.high, k = y.low, T = _.high, A = _.low, H = b.high, z = b.low, $ = v.high, M = v.low, R = w.high, W = w.low, q = S.high, se = S.low, ye = m.high, j = m.low, F = x.high, G = x.low, P = C, ke = k, $e = T, we = A, Ge = H, Xe = z, ie = $, Ee = M, Me = R, Oe = W, Rt = q, _t = se, Ke = ye, Yt = j, ln = F, Jt = G, Ht = 0; Ht < 80; Ht++) {
|
|
1397
1397
|
var Ot, dt, Vt = f[Ht];
|
|
1398
1398
|
if (Ht < 16)
|
|
1399
1399
|
dt = Vt.high = h[p + Ht * 2] | 0, Ot = Vt.low = h[p + Ht * 2 + 1] | 0;
|
|
@@ -1404,7 +1404,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1404
1404
|
var yt = Me & Rt ^ ~Me & Ke, ht = Oe & _t ^ ~Oe & Yt, be = P & $e ^ P & Ge ^ $e & Ge, mt = ke & we ^ ke & Xe ^ we & Xe, Gt = (P >>> 28 | ke << 4) ^ (P << 30 | ke >>> 2) ^ (P << 25 | ke >>> 7), It = (ke >>> 28 | P << 4) ^ (ke << 30 | P >>> 2) ^ (ke << 25 | P >>> 7), qt = (Me >>> 14 | Oe << 18) ^ (Me >>> 18 | Oe << 14) ^ (Me << 23 | Oe >>> 9), Ze = (Oe >>> 14 | Me << 18) ^ (Oe >>> 18 | Me << 14) ^ (Oe << 23 | Me >>> 9), sn = d[Ht], Un = sn.high, ya = sn.low, qe = Jt + Ze, Tt = ln + qt + (qe >>> 0 < Jt >>> 0 ? 1 : 0), qe = qe + ht, Tt = Tt + yt + (qe >>> 0 < ht >>> 0 ? 1 : 0), qe = qe + ya, Tt = Tt + Un + (qe >>> 0 < ya >>> 0 ? 1 : 0), qe = qe + Ot, Tt = Tt + dt + (qe >>> 0 < Ot >>> 0 ? 1 : 0), Qt = It + mt, en = Gt + be + (Qt >>> 0 < It >>> 0 ? 1 : 0);
|
|
1405
1405
|
ln = Ke, Jt = Yt, Ke = Rt, Yt = _t, Rt = Me, _t = Oe, Oe = Ee + qe | 0, Me = ie + Tt + (Oe >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ie = Ge, Ee = Xe, Ge = $e, Xe = we, $e = P, we = ke, ke = qe + Qt | 0, P = Tt + en + (ke >>> 0 < qe >>> 0 ? 1 : 0) | 0;
|
|
1406
1406
|
}
|
|
1407
|
-
k = y.low = k + ke, y.high = C + P + (k >>> 0 < ke >>> 0 ? 1 : 0), A = _.low = A + we, _.high = T + $e + (A >>> 0 < we >>> 0 ? 1 : 0),
|
|
1407
|
+
k = y.low = k + ke, y.high = C + P + (k >>> 0 < ke >>> 0 ? 1 : 0), A = _.low = A + we, _.high = T + $e + (A >>> 0 < we >>> 0 ? 1 : 0), z = b.low = z + Xe, b.high = H + Ge + (z >>> 0 < Xe >>> 0 ? 1 : 0), M = v.low = M + Ee, v.high = $ + ie + (M >>> 0 < Ee >>> 0 ? 1 : 0), W = w.low = W + Oe, w.high = R + Me + (W >>> 0 < Oe >>> 0 ? 1 : 0), se = S.low = se + _t, S.high = q + Rt + (se >>> 0 < _t >>> 0 ? 1 : 0), j = m.low = j + Yt, m.high = ye + Ke + (j >>> 0 < Yt >>> 0 ? 1 : 0), G = x.low = G + Jt, x.high = F + ln + (G >>> 0 < Jt >>> 0 ? 1 : 0);
|
|
1408
1408
|
},
|
|
1409
1409
|
_doFinalize: function() {
|
|
1410
1410
|
var h = this._data, p = h.words, g = this._nDataBytes * 8, y = h.sigBytes * 8;
|
|
@@ -1507,7 +1507,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1507
1507
|
}, K1 = (e, t) => Rc(e, t).toString(_i);
|
|
1508
1508
|
function gh(e, t) {
|
|
1509
1509
|
function n() {
|
|
1510
|
-
|
|
1510
|
+
Dt(() => {
|
|
1511
1511
|
e = J(e), e && Td.create(e, {
|
|
1512
1512
|
animation: 100,
|
|
1513
1513
|
delay: 400,
|
|
@@ -1660,34 +1660,34 @@ var Eh = /* @__PURE__ */ he({
|
|
|
1660
1660
|
__name: "dynamic-layer",
|
|
1661
1661
|
setup(e, { expose: t }) {
|
|
1662
1662
|
const n = I(), a = I(600), o = I(400), i = I(!0), r = I(!0), l = I(!0), c = I(""), s = I([]), d = I(!0), f = I(), u = Bi(), h = I(), { getPageName: p } = _h(), g = () => {
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1665
|
-
}, y = I(!1), _ = I([]), b = async (
|
|
1663
|
+
const z = p();
|
|
1664
|
+
return z || (typeof u.value == "string" ? u.value : "");
|
|
1665
|
+
}, y = I(!1), _ = I([]), b = async (z) => {
|
|
1666
1666
|
if (f.value?.validateSteps) {
|
|
1667
1667
|
Fa(!0);
|
|
1668
|
-
const
|
|
1669
|
-
return Fa(!1),
|
|
1668
|
+
const $ = f.value.validateSteps(z);
|
|
1669
|
+
return Fa(!1), $;
|
|
1670
1670
|
}
|
|
1671
1671
|
return !0;
|
|
1672
1672
|
}, v = () => f.value?.beforeClose ? f.value.beforeClose() : !0;
|
|
1673
1673
|
let w, S, m, x = 0;
|
|
1674
|
-
const C = async (
|
|
1674
|
+
const C = async (z) => {
|
|
1675
1675
|
if (f.value) {
|
|
1676
1676
|
if (x = 0, f.value.getConfig) {
|
|
1677
|
-
const
|
|
1678
|
-
s.value =
|
|
1677
|
+
const $ = f.value.getConfig();
|
|
1678
|
+
s.value = $.buttons || [], y.value = $.isStep, _.value = $.steps || [];
|
|
1679
1679
|
} else
|
|
1680
1680
|
s.value = [], y.value = !1, _.value = [];
|
|
1681
1681
|
if (f.value.open) try {
|
|
1682
|
-
const { buttons:
|
|
1682
|
+
const { buttons: $ } = await f.value.open(z, n.value, () => {
|
|
1683
1683
|
w && w();
|
|
1684
1684
|
}) || {};
|
|
1685
|
-
if (
|
|
1685
|
+
if ($ && $.length > 0) {
|
|
1686
1686
|
const M = [];
|
|
1687
|
-
M.push(...s.value), M.push(
|
|
1687
|
+
M.push(...s.value), M.push(...$), s.value = M;
|
|
1688
1688
|
}
|
|
1689
|
-
} catch (
|
|
1690
|
-
n.value.close(), console.error(
|
|
1689
|
+
} catch ($) {
|
|
1690
|
+
n.value.close(), console.error($);
|
|
1691
1691
|
}
|
|
1692
1692
|
n.value.hideLoading();
|
|
1693
1693
|
} else {
|
|
@@ -1696,25 +1696,25 @@ var Eh = /* @__PURE__ */ he({
|
|
|
1696
1696
|
return;
|
|
1697
1697
|
}
|
|
1698
1698
|
x++, setTimeout(async () => {
|
|
1699
|
-
await C(
|
|
1699
|
+
await C(z);
|
|
1700
1700
|
}, 100);
|
|
1701
1701
|
}
|
|
1702
|
-
}, k = (
|
|
1703
|
-
u.value =
|
|
1704
|
-
n.value.showLoading("加载中"), await C(
|
|
1702
|
+
}, k = (z) => {
|
|
1703
|
+
u.value = z?.name, a.value = z?.width || 600, o.value = z?.height || 400, i.value = z?.hasBtns !== !1, r.value = z?.hasSaveBtn !== !1, l.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (d.value = !0), h.value = z?.config || {}, c.value = z?.btnText || "保存", w = z?.afterOk || null, S = z?.afterClose || null, m = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle), Dt(async () => {
|
|
1704
|
+
n.value.showLoading("加载中"), await C(z.param || {});
|
|
1705
1705
|
});
|
|
1706
1706
|
}, T = async () => {
|
|
1707
1707
|
if (f.value?.ok) {
|
|
1708
1708
|
Fa(!0);
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1709
|
+
const z = await f.value.ok();
|
|
1710
|
+
z && (n.value.close(), w && await w(z)), Fa(!1);
|
|
1711
1711
|
}
|
|
1712
1712
|
}, A = () => {
|
|
1713
1713
|
f.value?.closed && f.value.closed(), S && S();
|
|
1714
1714
|
}, H = () => {
|
|
1715
1715
|
m && m();
|
|
1716
1716
|
};
|
|
1717
|
-
return xh({ getPageName: g }), t({ open: k }), (
|
|
1717
|
+
return xh({ getPageName: g }), t({ open: k }), (z, $) => {
|
|
1718
1718
|
const M = V("j-layer");
|
|
1719
1719
|
return E(), N(M, {
|
|
1720
1720
|
ref_key: "layerRef",
|
|
@@ -3347,37 +3347,37 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3347
3347
|
get() {
|
|
3348
3348
|
return i.value !== -1 ? i.value : t.left;
|
|
3349
3349
|
},
|
|
3350
|
-
set(
|
|
3351
|
-
i.value =
|
|
3350
|
+
set($) {
|
|
3351
|
+
i.value = $;
|
|
3352
3352
|
}
|
|
3353
3353
|
}), h = O({
|
|
3354
3354
|
get() {
|
|
3355
3355
|
return r.value !== -1 ? r.value : t.right;
|
|
3356
3356
|
},
|
|
3357
|
-
set(
|
|
3358
|
-
r.value =
|
|
3357
|
+
set($) {
|
|
3358
|
+
r.value = $;
|
|
3359
3359
|
}
|
|
3360
3360
|
}), p = O({
|
|
3361
3361
|
get() {
|
|
3362
3362
|
return l.value !== -1 ? l.value : t.top;
|
|
3363
3363
|
},
|
|
3364
|
-
set(
|
|
3365
|
-
l.value =
|
|
3364
|
+
set($) {
|
|
3365
|
+
l.value = $;
|
|
3366
3366
|
}
|
|
3367
3367
|
}), g = O({
|
|
3368
3368
|
get() {
|
|
3369
3369
|
return c.value !== -1 ? c.value : t.bottom;
|
|
3370
3370
|
},
|
|
3371
|
-
set(
|
|
3372
|
-
c.value =
|
|
3371
|
+
set($) {
|
|
3372
|
+
c.value = $;
|
|
3373
3373
|
}
|
|
3374
3374
|
}), y = O(() => n.left), _ = O(() => n.right), b = O(() => n.top), v = O(() => n.bottom), w = O(() => y.value ? d.value && t.hideMidWhenNarrow && _.value ? "50%" : d.value && t.hideMidWhenNarrow && !_.value ? "100%" : typeof u.value == "number" ? u.value + "px" : u.value : "0"), S = O(() => _.value ? d.value && t.hideMidWhenNarrow && y.value ? "50%" : d.value && t.hideMidWhenNarrow && !y.value ? "100%" : typeof h.value == "number" ? h.value + "px" : h.value : "0"), m = O(() => b.value ? typeof p.value == "number" ? p.value + "px" : p.value : "0"), x = O(() => v.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), C = O(() => ({
|
|
3375
3375
|
minWidth: t.midMinWidth + "px",
|
|
3376
3376
|
minHeight: t.midMinHeight + "px"
|
|
3377
|
-
})), k = (
|
|
3378
|
-
f.type =
|
|
3377
|
+
})), k = ($, M) => {
|
|
3378
|
+
f.type = $, f.isMove = !0, f.pageX = M.pageX, f.pageY = M.pageY, f.h = o.value.clientHeight, f.w = o.value.clientWidth;
|
|
3379
3379
|
const R = a.value.clientWidth, W = a.value.clientHeight;
|
|
3380
|
-
switch (
|
|
3380
|
+
switch ($) {
|
|
3381
3381
|
case "left": {
|
|
3382
3382
|
const q = u.value;
|
|
3383
3383
|
f.size = typeof q == "string" && q.includes("%") ? parseFloat(q) / 100 * R : Number(q);
|
|
@@ -3400,28 +3400,28 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3400
3400
|
}
|
|
3401
3401
|
}
|
|
3402
3402
|
document.onmouseup = A, document.onmousemove = T;
|
|
3403
|
-
}, T = (
|
|
3403
|
+
}, T = ($) => {
|
|
3404
3404
|
if (f.isMove) switch (f.type) {
|
|
3405
3405
|
case "left": {
|
|
3406
|
-
const M =
|
|
3406
|
+
const M = $.pageX - f.pageX;
|
|
3407
3407
|
let R = f.size + M;
|
|
3408
3408
|
R < 0 ? R = 4 : R > f.size + f.w - t.midMinWidth && (R = f.size + f.w - t.midMinWidth), u.value = R;
|
|
3409
3409
|
break;
|
|
3410
3410
|
}
|
|
3411
3411
|
case "right": {
|
|
3412
|
-
const M =
|
|
3412
|
+
const M = $.pageX - f.pageX;
|
|
3413
3413
|
let R = f.size - M;
|
|
3414
3414
|
R < 0 ? R = 4 : R > f.size + f.w - t.midMinWidth && (R = f.size + f.w - t.midMinWidth), h.value = R;
|
|
3415
3415
|
break;
|
|
3416
3416
|
}
|
|
3417
3417
|
case "top": {
|
|
3418
|
-
const M =
|
|
3418
|
+
const M = $.pageY - f.pageY;
|
|
3419
3419
|
let R = f.size + M;
|
|
3420
3420
|
R < 0 ? R = 4 : R > f.size + f.h - t.midMinHeight && (R = f.size + f.h - t.midMinHeight), p.value = R;
|
|
3421
3421
|
break;
|
|
3422
3422
|
}
|
|
3423
3423
|
case "bottom": {
|
|
3424
|
-
const M =
|
|
3424
|
+
const M = $.pageY - f.pageY;
|
|
3425
3425
|
let R = f.size - M;
|
|
3426
3426
|
R < 0 ? R = 4 : R > f.size + f.h - t.midMinHeight && (R = f.size + f.h - t.midMinHeight), g.value = R;
|
|
3427
3427
|
break;
|
|
@@ -3435,25 +3435,25 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3435
3435
|
return;
|
|
3436
3436
|
}
|
|
3437
3437
|
s.value = a.value.clientWidth;
|
|
3438
|
-
let
|
|
3438
|
+
let $ = 0, M = 0;
|
|
3439
3439
|
if (y.value) {
|
|
3440
3440
|
const R = u.value;
|
|
3441
|
-
|
|
3441
|
+
$ = typeof R == "string" && R.includes("%") ? parseFloat(R) / 100 * s.value : Number(R);
|
|
3442
3442
|
}
|
|
3443
3443
|
if (_.value) {
|
|
3444
3444
|
const R = h.value;
|
|
3445
3445
|
M = typeof R == "string" && R.includes("%") ? parseFloat(R) / 100 * s.value : Number(R);
|
|
3446
3446
|
}
|
|
3447
|
-
d.value = s.value -
|
|
3447
|
+
d.value = s.value - $ - M < t.midMinWidth;
|
|
3448
3448
|
};
|
|
3449
|
-
let
|
|
3449
|
+
let z = null;
|
|
3450
3450
|
return jt(() => {
|
|
3451
|
-
t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (H(),
|
|
3451
|
+
t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (H(), z = new ResizeObserver(() => {
|
|
3452
3452
|
H();
|
|
3453
|
-
}),
|
|
3453
|
+
}), z.observe(a.value));
|
|
3454
3454
|
}), Ao(() => {
|
|
3455
|
-
|
|
3456
|
-
}), (
|
|
3455
|
+
z && z.disconnect();
|
|
3456
|
+
}), ($, M) => (E(), L("div", {
|
|
3457
3457
|
ref_key: "layout",
|
|
3458
3458
|
ref: a,
|
|
3459
3459
|
class: Ne(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
@@ -3462,7 +3462,7 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3462
3462
|
key: 0,
|
|
3463
3463
|
class: "j-layout--left",
|
|
3464
3464
|
style: le({ width: w.value })
|
|
3465
|
-
}, [B("div", hp, [Ye(
|
|
3465
|
+
}, [B("div", hp, [Ye($.$slots, "left")]), e.leftMove ? (E(), L("div", {
|
|
3466
3466
|
key: 0,
|
|
3467
3467
|
class: "j-layout--move",
|
|
3468
3468
|
onMousedown: M[0] || (M[0] = (R) => k("left", R))
|
|
@@ -3472,7 +3472,7 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3472
3472
|
key: 0,
|
|
3473
3473
|
class: "j-layout--top",
|
|
3474
3474
|
style: le({ height: m.value })
|
|
3475
|
-
}, [B("div", gp, [Ye(
|
|
3475
|
+
}, [B("div", gp, [Ye($.$slots, "top")]), e.topMove ? (E(), L("div", {
|
|
3476
3476
|
key: 0,
|
|
3477
3477
|
class: "j-layout--move",
|
|
3478
3478
|
onMousedown: M[1] || (M[1] = (R) => k("top", R))
|
|
@@ -3482,12 +3482,12 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3482
3482
|
ref: o,
|
|
3483
3483
|
class: "j-layout--wrapper",
|
|
3484
3484
|
style: le(C.value)
|
|
3485
|
-
}, [Ye(
|
|
3485
|
+
}, [Ye($.$slots, "default")], 4),
|
|
3486
3486
|
v.value ? (E(), L("div", {
|
|
3487
3487
|
key: 1,
|
|
3488
3488
|
class: "j-layout--bottom",
|
|
3489
3489
|
style: le({ height: x.value })
|
|
3490
|
-
}, [B("div", vp, [Ye(
|
|
3490
|
+
}, [B("div", vp, [Ye($.$slots, "bottom")]), e.bottomMove ? (E(), L("div", {
|
|
3491
3491
|
key: 0,
|
|
3492
3492
|
class: "j-layout--move",
|
|
3493
3493
|
onMousedown: M[2] || (M[2] = (R) => k("bottom", R))
|
|
@@ -3497,7 +3497,7 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3497
3497
|
key: 2,
|
|
3498
3498
|
class: "j-layout--right",
|
|
3499
3499
|
style: le({ width: S.value })
|
|
3500
|
-
}, [B("div", yp, [Ye(
|
|
3500
|
+
}, [B("div", yp, [Ye($.$slots, "right")]), e.rightMove ? (E(), L("div", {
|
|
3501
3501
|
key: 0,
|
|
3502
3502
|
class: "j-layout--move",
|
|
3503
3503
|
onMousedown: M[3] || (M[3] = (R) => k("right", R))
|
|
@@ -5382,18 +5382,18 @@ var jp = class {
|
|
|
5382
5382
|
}) || [] : C.value.options || [];
|
|
5383
5383
|
}), A = O(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), H = (j) => l({
|
|
5384
5384
|
value: j,
|
|
5385
|
-
config:
|
|
5385
|
+
config: $.value || {},
|
|
5386
5386
|
formData: s || {},
|
|
5387
5387
|
row: v,
|
|
5388
5388
|
getTableData: y
|
|
5389
|
-
}),
|
|
5389
|
+
}), z = async (j) => i ? await i({
|
|
5390
5390
|
type: A.value,
|
|
5391
|
-
config:
|
|
5391
|
+
config: $.value,
|
|
5392
5392
|
formData: s || {},
|
|
5393
5393
|
row: v,
|
|
5394
5394
|
getTableData: y,
|
|
5395
5395
|
params: j
|
|
5396
|
-
}) : [],
|
|
5396
|
+
}) : [], $ = O(() => {
|
|
5397
5397
|
const j = { ...C.value };
|
|
5398
5398
|
return A.value === "j-layer-form" && (j.schema = n.children), A.value === "el-collapse-item" && j.label && (j.title = j.label, delete j.label), [
|
|
5399
5399
|
"j-input-cards",
|
|
@@ -5405,7 +5405,7 @@ var jp = class {
|
|
|
5405
5405
|
...F,
|
|
5406
5406
|
id: F.id.slice(G.length + 1)
|
|
5407
5407
|
} : F;
|
|
5408
|
-
})), n.isTableCell && (k.value === "j-checkbox" && (j.multiple = !0), k.value === "j-select" && j.multiple && (j.collapseTags = !0, j.collapseTagsTooltip = !0), k.value === "j-switch" && (j.size = "small"), k.value === "j-textarea" && (j.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (j.loadLayerData =
|
|
5408
|
+
})), n.isTableCell && (k.value === "j-checkbox" && (j.multiple = !0), k.value === "j-select" && j.multiple && (j.collapseTags = !0, j.collapseTagsTooltip = !0), k.value === "j-switch" && (j.size = "small"), k.value === "j-textarea" && (j.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (j.loadLayerData = z, j.getText = H), j.dataType && (j.options = T.value), j;
|
|
5409
5409
|
}), M = O(() => {
|
|
5410
5410
|
if (A.value === "j-layer-form" || A.value === "j-input-rows" || A.value === "j-input-cards") return {};
|
|
5411
5411
|
const j = {};
|
|
@@ -5456,11 +5456,11 @@ var jp = class {
|
|
|
5456
5456
|
q.value.forEach((j) => j()), q.value = [];
|
|
5457
5457
|
}), (j, F) => {
|
|
5458
5458
|
const G = V("JComp"), P = V("el-row");
|
|
5459
|
-
return
|
|
5459
|
+
return $.value.display != !1 && w.value ? (E(), N(Ya(A.value), Fe({
|
|
5460
5460
|
key: 0,
|
|
5461
5461
|
ref_key: "compRef",
|
|
5462
5462
|
ref: W
|
|
5463
|
-
},
|
|
5463
|
+
}, $.value, {
|
|
5464
5464
|
modelValue: m.value,
|
|
5465
5465
|
"onUpdate:modelValue": F[0] || (F[0] = (ke) => m.value = ke),
|
|
5466
5466
|
"run-flow": J(u),
|
|
@@ -5468,17 +5468,17 @@ var jp = class {
|
|
|
5468
5468
|
}), Dn({ _: 2 }, [He(M.value, (ke, $e) => ({
|
|
5469
5469
|
name: $e,
|
|
5470
5470
|
fn: K(() => [(E(!0), L(Ce, null, He(ke, (we) => (E(), N(G, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))])
|
|
5471
|
-
}))]), 1040, ["modelValue", "run-flow"])) :
|
|
5471
|
+
}))]), 1040, ["modelValue", "run-flow"])) : $.value.display != !1 ? (E(), N(Ya(A.value), Fe({
|
|
5472
5472
|
key: 1,
|
|
5473
5473
|
ref_key: "compRef",
|
|
5474
5474
|
ref: W
|
|
5475
|
-
},
|
|
5475
|
+
}, $.value, { onChange: R }), Dn({ _: 2 }, [He(M.value, (ke, $e) => ({
|
|
5476
5476
|
name: $e,
|
|
5477
|
-
fn: K(() => [
|
|
5477
|
+
fn: K(() => [$.value.needRow === !0 || $.value.needRow?.[$e] === !0 ? (E(), N(P, {
|
|
5478
5478
|
key: 0,
|
|
5479
5479
|
gutter: p.value
|
|
5480
5480
|
}, {
|
|
5481
|
-
default: K(() => [
|
|
5481
|
+
default: K(() => [$.value.needFormItem === !0 || $.value.needFormItem?.[$e] === !0 ? (E(!0), L(Ce, { key: 0 }, He(ke, (we) => (E(), N(Hc, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128)) : (E(!0), L(Ce, { key: 1 }, He(ke, (we) => (E(), N(G, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))]),
|
|
5482
5482
|
_: 2
|
|
5483
5483
|
}, 1032, ["gutter"])) : (E(!0), L(Ce, { key: 1 }, He(ke, (we) => (E(), N(G, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))])
|
|
5484
5484
|
}))]), 1040)) : ee("", !0);
|
|
@@ -5740,20 +5740,20 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5740
5740
|
],
|
|
5741
5741
|
setup(e, { expose: t, emit: n }) {
|
|
5742
5742
|
const a = uc(), o = e, i = n, { formData: r } = Aa(), { useData: l } = bt(), { getLabel: c, getCode: s, loadDataState: d, getObjectList: f } = l(), { openLayer: u } = Po(), h = O(() => o.heightMode === "auto" ? { height: "auto" } : {}), p = na({}), g = () => {
|
|
5743
|
-
Object.keys(p).forEach((
|
|
5744
|
-
delete p[
|
|
5743
|
+
Object.keys(p).forEach((D) => {
|
|
5744
|
+
delete p[D];
|
|
5745
5745
|
});
|
|
5746
5746
|
}, y = I(40), _ = O(() => {
|
|
5747
|
-
const
|
|
5748
|
-
return o.heightMode === "auto" && (o.emptyTipText && y.value < 200 ?
|
|
5747
|
+
const D = {};
|
|
5748
|
+
return o.heightMode === "auto" && (o.emptyTipText && y.value < 200 ? D.height = "200px" : D.height = y.value + "px", D.flex = "none", o.maxHeight && (D.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), D;
|
|
5749
5749
|
}), b = I(null);
|
|
5750
5750
|
let v = null, w = null, S = 0, m = 0, x = !1;
|
|
5751
5751
|
const C = I(0);
|
|
5752
5752
|
let k = o.records.length, T = 45;
|
|
5753
|
-
const A = I(!1), H = I({}),
|
|
5753
|
+
const A = I(!1), H = I({}), z = I([]), $ = I(null), M = I(0);
|
|
5754
5754
|
let R = null, W = !1, q = !1;
|
|
5755
|
-
const se = (
|
|
5756
|
-
|
|
5755
|
+
const se = (D, U, Q, ae, Y) => {
|
|
5756
|
+
z.value = D, $.value = U, M.value = Q, H.value = {
|
|
5757
5757
|
left: `${ae}px`,
|
|
5758
5758
|
top: `${Y}px`
|
|
5759
5759
|
}, A.value = !0, W = !1, document.addEventListener("wheel", ke, { passive: !1 });
|
|
@@ -5769,34 +5769,34 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5769
5769
|
W = !0, F();
|
|
5770
5770
|
}, P = () => {
|
|
5771
5771
|
W = !1, j();
|
|
5772
|
-
}, ke = (
|
|
5773
|
-
|
|
5774
|
-
}, $e = (
|
|
5775
|
-
|
|
5776
|
-
data:
|
|
5772
|
+
}, ke = (D) => {
|
|
5773
|
+
D.preventDefault();
|
|
5774
|
+
}, $e = (D) => {
|
|
5775
|
+
D.config?.disabled || ($.value && D.click && D.click({
|
|
5776
|
+
data: $.value,
|
|
5777
5777
|
openLayer: u
|
|
5778
5778
|
}), ye());
|
|
5779
|
-
}, we = (
|
|
5780
|
-
let U =
|
|
5779
|
+
}, we = (D) => {
|
|
5780
|
+
let U = D.action.config?.display !== !1, Q = D.action.config?.disabled === !0;
|
|
5781
5781
|
const ae = o.actionFilter;
|
|
5782
5782
|
if (ae) try {
|
|
5783
|
-
const Y = ae(
|
|
5783
|
+
const Y = ae(D);
|
|
5784
5784
|
typeof Y == "boolean" ? U = Y : Y && typeof Y == "object" && (typeof Y.display == "boolean" && (U = Y.display), typeof Y.disabled == "boolean" && (Q = Y.disabled));
|
|
5785
5785
|
} catch {
|
|
5786
|
-
U =
|
|
5786
|
+
U = D.action.config?.display !== !1, Q = D.action.config?.disabled === !0;
|
|
5787
5787
|
}
|
|
5788
5788
|
return {
|
|
5789
5789
|
display: U,
|
|
5790
5790
|
disabled: Q
|
|
5791
5791
|
};
|
|
5792
|
-
}, Ge = (
|
|
5793
|
-
...
|
|
5792
|
+
}, Ge = (D, U) => U.disabled ? {
|
|
5793
|
+
...D,
|
|
5794
5794
|
config: {
|
|
5795
|
-
...
|
|
5795
|
+
...D.config || {},
|
|
5796
5796
|
disabled: !0
|
|
5797
5797
|
}
|
|
5798
|
-
} :
|
|
5799
|
-
const { Group: U, Text: Q } = We.CustomLayout, ae = o.actionsMaxCount, Y =
|
|
5798
|
+
} : D, Xe = (D) => {
|
|
5799
|
+
const { Group: U, Text: Q } = We.CustomLayout, ae = o.actionsMaxCount, Y = D.filter((fe) => fe.config?.display !== !1), te = Y.length > ae, re = te ? Y.slice(0, ae - 1) : Y;
|
|
5800
5800
|
let pe = 0;
|
|
5801
5801
|
if (re.forEach((fe, xe) => {
|
|
5802
5802
|
const Re = bn(fe.config?.label || fe.label || "") || 0;
|
|
@@ -5837,10 +5837,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5837
5837
|
flexWrap: "nowrap"
|
|
5838
5838
|
});
|
|
5839
5839
|
if (tt.forEach((me, pt) => {
|
|
5840
|
-
const Ve = me.config?.disabled === !0,
|
|
5840
|
+
const Ve = me.config?.disabled === !0, zt = Ve ? "#c9cdd4" : me.config?.danger ? "#f53f3f" : "#165dff", cn = new Q({
|
|
5841
5841
|
text: me.label,
|
|
5842
5842
|
fontSize: 14,
|
|
5843
|
-
fill:
|
|
5843
|
+
fill: zt,
|
|
5844
5844
|
boundsPadding: [
|
|
5845
5845
|
0,
|
|
5846
5846
|
12,
|
|
@@ -5855,9 +5855,9 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5855
5855
|
openLayer: u
|
|
5856
5856
|
});
|
|
5857
5857
|
}), cn.addEventListener("mouseenter", (gn) => {
|
|
5858
|
-
Ve || (gn.target.setAttribute("fill", ne(
|
|
5858
|
+
Ve || (gn.target.setAttribute("fill", ne(zt, -20)), xe.scenegraph.stage.renderNextFrame());
|
|
5859
5859
|
}), cn.addEventListener("mouseleave", (gn) => {
|
|
5860
|
-
Ve || (gn.target.setAttribute("fill",
|
|
5860
|
+
Ve || (gn.target.setAttribute("fill", zt), xe.scenegraph.stage.renderNextFrame());
|
|
5861
5861
|
}), nt.add(cn);
|
|
5862
5862
|
}), et && ut.length > 0) {
|
|
5863
5863
|
const me = "#1677ff", pt = new Q({
|
|
@@ -5874,8 +5874,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5874
5874
|
});
|
|
5875
5875
|
pt.addEventListener("mouseenter", (Ve) => {
|
|
5876
5876
|
Ve.target.setAttribute("fill", ne(me, -20)), xe.scenegraph.stage.renderNextFrame();
|
|
5877
|
-
const
|
|
5878
|
-
|
|
5877
|
+
const zt = b.value?.getBoundingClientRect();
|
|
5878
|
+
zt && se(ut, Te, Qe, Ve.canvasX + zt.left - 64, Ve.canvasY + zt.top + 8), q = !0, F();
|
|
5879
5879
|
}), pt.addEventListener("mouseleave", (Ve) => {
|
|
5880
5880
|
Ve.target.setAttribute("fill", me), xe.scenegraph.stage.renderNextFrame(), q = !1, j();
|
|
5881
5881
|
}), nt.add(pt);
|
|
@@ -5886,8 +5886,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5886
5886
|
};
|
|
5887
5887
|
}
|
|
5888
5888
|
};
|
|
5889
|
-
}, ie = (
|
|
5890
|
-
const { dataValue: Q, table: ae, col: Y, row: te, value: re } =
|
|
5889
|
+
}, ie = (D, U) => {
|
|
5890
|
+
const { dataValue: Q, table: ae, col: Y, row: te, value: re } = D, pe = D.rect ?? ae?.getCellRect?.(Y, te) ?? {
|
|
5891
5891
|
width: 0,
|
|
5892
5892
|
height: 0
|
|
5893
5893
|
}, de = ae?.getBodyField?.(Y, te), fe = ae?.options?.columns || [], xe = (de ? dt(fe, de) : null)?.style?.textAlign || "left", Re = 8, Be = Math.max(0, pe.width - Re * 2);
|
|
@@ -5908,8 +5908,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5908
5908
|
}],
|
|
5909
5909
|
expectedHeight: yn
|
|
5910
5910
|
};
|
|
5911
|
-
}, Ee = (
|
|
5912
|
-
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } =
|
|
5911
|
+
}, Ee = (D, U) => {
|
|
5912
|
+
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } = D;
|
|
5913
5913
|
let pe = "mdi:toggle-switch", de = "#165dff";
|
|
5914
5914
|
Q || (pe = "mdi:toggle-switch-off", de = "#e5e6eb");
|
|
5915
5915
|
const fe = Sa(pe), xe = fe?.body?.replace(/currentColor/g, de), Re = [], Be = Y?.getBodyField?.(te, re), Te = Y?.options?.columns || [], Qe = Be ? dt(Te, Be) : null, Le = 8, Ae = 40;
|
|
@@ -5925,8 +5925,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5925
5925
|
elements: Re,
|
|
5926
5926
|
expectedHeight: yn
|
|
5927
5927
|
};
|
|
5928
|
-
}, Me = (
|
|
5929
|
-
const { dataValue: Q, rect: ae } =
|
|
5928
|
+
}, Me = (D, U) => {
|
|
5929
|
+
const { dataValue: Q, rect: ae } = D, Y = Number(Q) || 0, te = 5, re = 20, pe = 4, de = 8, fe = (ae.height - re) / 2, xe = [], Re = Sa("mdi:star"), Be = Sa("mdi:star-half-full"), Te = Sa("mdi:star-outline"), Qe = "#f7ba2a", Le = "#e5e6eb";
|
|
5930
5930
|
for (let Ae = 0; Ae < te; Ae++) {
|
|
5931
5931
|
const et = de + Ae * (re + pe), tt = fe;
|
|
5932
5932
|
if (Y >= Ae + 1) {
|
|
@@ -5965,26 +5965,26 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5965
5965
|
elements: xe,
|
|
5966
5966
|
expectedHeight: yn
|
|
5967
5967
|
};
|
|
5968
|
-
}, Oe = (
|
|
5969
|
-
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } =
|
|
5968
|
+
}, Oe = (D, U) => {
|
|
5969
|
+
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } = D, pe = Y.getBodyField(te, re), de = dt(Y.options?.columns || [], pe), fe = Y.getCellOriginRecord?.(te, re) || Y.getRecordByCell?.(te, re) || {}, xe = U || Mn({
|
|
5970
5970
|
config: de?._compConfig,
|
|
5971
5971
|
getCompConfig: de?._getCompConfig,
|
|
5972
5972
|
formData: r || {},
|
|
5973
5973
|
getTableData: ht,
|
|
5974
5974
|
row: fe
|
|
5975
|
-
}) || {}, Re = Number(xe.min) || 0, Be = Number(xe.max) || 100, Te = Number(Q) || 0, Qe = Be - Re, Le = Qe === 0 ? 0 : Math.max(0, Math.min(100, (Te - Re) / Qe * 100)), Ae = 4, et = 8, tt = 8, ut = (ae.height - Ae) / 2, nt = String(Te), me = bn(nt) || 0, pt = et, Ve = ut,
|
|
5975
|
+
}) || {}, Re = Number(xe.min) || 0, Be = Number(xe.max) || 100, Te = Number(Q) || 0, Qe = Be - Re, Le = Qe === 0 ? 0 : Math.max(0, Math.min(100, (Te - Re) / Qe * 100)), Ae = 4, et = 8, tt = 8, ut = (ae.height - Ae) / 2, nt = String(Te), me = bn(nt) || 0, pt = et, Ve = ut, zt = ae.width - et * 2 - me - tt, cn = zt * Le / 100, gn = [], vn = (Wt, rt, At) => {
|
|
5976
5976
|
const vt = Math.min(At, rt / 2, Wt / 2);
|
|
5977
5977
|
return `M ${vt} 0 L ${Wt - vt} 0 Q ${Wt} 0 ${Wt} ${vt} L ${Wt} ${rt - vt} Q ${Wt} ${rt} ${Wt - vt} ${rt} L ${vt} ${rt} Q 0 ${rt} 0 ${rt - vt} L 0 ${vt} Q 0 0 ${vt} 0 Z`;
|
|
5978
5978
|
}, ro = (Wt, rt, At) => {
|
|
5979
5979
|
const vt = Math.min(At, rt / 2, Wt / 2);
|
|
5980
5980
|
return Wt <= vt * 2 ? vn(Wt, rt, At) : `M ${vt} 0 L ${Wt} 0 L ${Wt} ${rt} L ${vt} ${rt} Q 0 ${rt} 0 ${rt - vt} L 0 ${vt} Q 0 0 ${vt} 0 Z`;
|
|
5981
|
-
}, Go = vn(
|
|
5981
|
+
}, Go = vn(zt, Ae, Ae / 2);
|
|
5982
5982
|
if (gn.push({
|
|
5983
5983
|
type: "icon",
|
|
5984
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
5984
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${zt}" height="${Ae}" viewBox="0 0 ${zt} ${Ae}"><path d="${Go}" fill="#e5e6eb"/></svg>`,
|
|
5985
5985
|
x: pt,
|
|
5986
5986
|
y: Ve,
|
|
5987
|
-
width:
|
|
5987
|
+
width: zt,
|
|
5988
5988
|
height: Ae
|
|
5989
5989
|
}), cn > 0) {
|
|
5990
5990
|
const Wt = ro(cn, Ae, Ae / 2);
|
|
@@ -5997,7 +5997,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5997
5997
|
height: Ae
|
|
5998
5998
|
});
|
|
5999
5999
|
}
|
|
6000
|
-
const Ko = pt +
|
|
6000
|
+
const Ko = pt + zt + tt, Zi = ae.height / 2;
|
|
6001
6001
|
return gn.push({
|
|
6002
6002
|
type: "text",
|
|
6003
6003
|
text: nt,
|
|
@@ -6011,19 +6011,19 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6011
6011
|
elements: gn,
|
|
6012
6012
|
expectedHeight: yn
|
|
6013
6013
|
};
|
|
6014
|
-
}, Rt = (
|
|
6015
|
-
if (!
|
|
6016
|
-
if ((bn(
|
|
6014
|
+
}, Rt = (D) => String(D).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), _t = (D, U) => {
|
|
6015
|
+
if (!D) return "";
|
|
6016
|
+
if ((bn(D) || 0) <= U) return D;
|
|
6017
6017
|
const Q = "...", ae = bn(Q) || 0;
|
|
6018
6018
|
if (ae >= U) return "";
|
|
6019
|
-
let Y = 0, te =
|
|
6019
|
+
let Y = 0, te = D.length;
|
|
6020
6020
|
for (; Y < te; ) {
|
|
6021
6021
|
const re = Math.ceil((Y + te) / 2);
|
|
6022
|
-
(bn(
|
|
6022
|
+
(bn(D.slice(0, re)) || 0) + ae <= U ? Y = re : te = re - 1;
|
|
6023
6023
|
}
|
|
6024
|
-
return
|
|
6025
|
-
}, Ke = (
|
|
6026
|
-
const { value: Q, rect: ae, table: Y, col: te, row: re } =
|
|
6024
|
+
return D.slice(0, Y) + Q;
|
|
6025
|
+
}, Ke = (D, U) => {
|
|
6026
|
+
const { value: Q, rect: ae, table: Y, col: te, row: re } = D;
|
|
6027
6027
|
if (!Q) return {
|
|
6028
6028
|
elements: [],
|
|
6029
6029
|
expectedHeight: yn
|
|
@@ -6069,8 +6069,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6069
6069
|
}],
|
|
6070
6070
|
expectedHeight: Math.max(yn, Re)
|
|
6071
6071
|
};
|
|
6072
|
-
}, Yt = (
|
|
6073
|
-
const { dataValue: Q, rect: ae, table: Y, col: te, row: re, value: pe } =
|
|
6072
|
+
}, Yt = (D, U) => {
|
|
6073
|
+
const { dataValue: Q, rect: ae, table: Y, col: te, row: re, value: pe } = D, de = Y.getBodyField(te, re), fe = dt(Y.options?.columns || [], de), xe = Y.getCellOriginRecord?.(te, re) || Y.getRecordByCell?.(te, re) || {}, Re = U || Mn({
|
|
6074
6074
|
config: fe?._compConfig,
|
|
6075
6075
|
getCompConfig: fe?._getCompConfig,
|
|
6076
6076
|
formData: r || {},
|
|
@@ -6087,7 +6087,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6087
6087
|
};
|
|
6088
6088
|
const Qe = 14, Le = 28, Ae = 2, et = 12, tt = 8, ut = 6;
|
|
6089
6089
|
let nt = 8, me = Math.max(0, ae.width - nt * 2), pt = Math.max(0, me - et * 2);
|
|
6090
|
-
const Ve = [],
|
|
6090
|
+
const Ve = [], zt = (rt) => {
|
|
6091
6091
|
const At = bn(_t(rt, pt)) || 0;
|
|
6092
6092
|
return Math.min(me, At + et * 2);
|
|
6093
6093
|
}, cn = (rt, At, vt, En, Rn) => {
|
|
@@ -6104,7 +6104,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6104
6104
|
const rt = [];
|
|
6105
6105
|
let At = [], vt = 0;
|
|
6106
6106
|
for (let En = 0; En < Te.length; En++) {
|
|
6107
|
-
const Rn = Te[En], ma = Rn.label, ba =
|
|
6107
|
+
const Rn = Te[En], ma = Rn.label, ba = zt(ma), qo = {
|
|
6108
6108
|
label: ma,
|
|
6109
6109
|
bg: Rn.color || "#f2f3f5",
|
|
6110
6110
|
text: Rn.textColor || ln(Rn.color || "#f2f3f5"),
|
|
@@ -6143,10 +6143,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6143
6143
|
expectedHeight: Math.max(yn, Go),
|
|
6144
6144
|
expectedWidth: Wt
|
|
6145
6145
|
};
|
|
6146
|
-
}, ln = (
|
|
6147
|
-
if (!
|
|
6148
|
-
|
|
6149
|
-
const U = parseInt(
|
|
6146
|
+
}, ln = (D) => {
|
|
6147
|
+
if (!D) return "#1d2129";
|
|
6148
|
+
D = D.replace("#", ""), D.length === 3 && (D = D.split("").map((Y) => Y + Y).join(""));
|
|
6149
|
+
const U = parseInt(D.substring(0, 2), 16), Q = parseInt(D.substring(2, 4), 16), ae = parseInt(D.substring(4, 6), 16);
|
|
6150
6150
|
if ((U * 299 + Q * 587 + ae * 114) / 1e3 >= 128) {
|
|
6151
6151
|
const Y = U / 255, te = Q / 255, re = ae / 255, pe = Math.max(Y, te, re), de = Math.min(Y, te, re);
|
|
6152
6152
|
let fe = 0, xe = 0;
|
|
@@ -6177,8 +6177,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6177
6177
|
return `#${et(Qe)}${et(Le)}${et(Ae)}`;
|
|
6178
6178
|
}
|
|
6179
6179
|
return "#ffffff";
|
|
6180
|
-
}, Jt = (
|
|
6181
|
-
const { table: U, row: Q, col: ae, rect: Y, value: te } =
|
|
6180
|
+
}, Jt = (D) => {
|
|
6181
|
+
const { table: U, row: Q, col: ae, rect: Y, value: te } = D, { Group: re, Text: pe } = We.CustomLayout, de = U.getBodyField(ae, Q), fe = dt(U.options?.columns || [], de), xe = fe?._compConfig || {}, Re = new re({
|
|
6182
6182
|
height: Y.height,
|
|
6183
6183
|
width: Y.width,
|
|
6184
6184
|
display: "flex",
|
|
@@ -6213,10 +6213,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6213
6213
|
rootContainer: Re,
|
|
6214
6214
|
renderDefault: !1
|
|
6215
6215
|
};
|
|
6216
|
-
}, Ht = (
|
|
6217
|
-
const { table: U, row: Q, col: ae, rect: Y } =
|
|
6216
|
+
}, Ht = (D) => {
|
|
6217
|
+
const { table: U, row: Q, col: ae, rect: Y } = D, { height: te, width: re } = Y ?? U.getCellRect(ae, Q), { Group: pe, CheckBox: de } = We.CustomLayout, fe = U.getBodyField(ae, Q), xe = dt(U.options?.columns || [], fe), Re = U.getCellOriginRecord(ae, Q) || {}, Be = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Te = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Qe = (nt, me) => {
|
|
6218
6218
|
const pt = Re?.[fe];
|
|
6219
|
-
Re[fe] = (Array.isArray(pt) ? pt : []).map((Ve,
|
|
6219
|
+
Re[fe] = (Array.isArray(pt) ? pt : []).map((Ve, zt) => zt !== nt ? Ve : Ve && typeof Ve == "object" ? {
|
|
6220
6220
|
...Ve,
|
|
6221
6221
|
...me
|
|
6222
6222
|
} : { ...me });
|
|
@@ -6267,23 +6267,23 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6267
6267
|
]
|
|
6268
6268
|
});
|
|
6269
6269
|
Ve.render?.(), ut.add(Ve), Ve.addEventListener("checkbox_state_change", () => {
|
|
6270
|
-
const
|
|
6271
|
-
Qe(nt, { checked:
|
|
6270
|
+
const zt = !!Ve.attribute?.checked;
|
|
6271
|
+
Qe(nt, { checked: zt }), Le();
|
|
6272
6272
|
});
|
|
6273
6273
|
}
|
|
6274
6274
|
return {
|
|
6275
6275
|
rootContainer: Ae,
|
|
6276
6276
|
renderDefault: !1
|
|
6277
6277
|
};
|
|
6278
|
-
}, Ot = (
|
|
6279
|
-
const { table: U, row: Q, col: ae } =
|
|
6278
|
+
}, Ot = (D) => {
|
|
6279
|
+
const { table: U, row: Q, col: ae } = D, Y = U.getBodyField(ae, Q), te = dt(U.options?.columns || [], Y), re = te?._compConfig || {};
|
|
6280
6280
|
if (te?._customLayout) return te._customLayout({
|
|
6281
|
-
...
|
|
6281
|
+
...D,
|
|
6282
6282
|
config: re,
|
|
6283
6283
|
customLayout: We.CustomLayout
|
|
6284
6284
|
});
|
|
6285
|
-
}, dt = (
|
|
6286
|
-
for (const Q of
|
|
6285
|
+
}, dt = (D, U) => {
|
|
6286
|
+
for (const Q of D) {
|
|
6287
6287
|
if (Q.field === U) return Q;
|
|
6288
6288
|
if (Q.columns) {
|
|
6289
6289
|
const ae = dt(Q.columns, U);
|
|
@@ -6291,8 +6291,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
6293
|
return null;
|
|
6294
|
-
}, Vt = (
|
|
6295
|
-
const { table: U, col: Q, row: ae } =
|
|
6294
|
+
}, Vt = (D) => {
|
|
6295
|
+
const { table: U, col: Q, row: ae } = D, Y = U.getBodyField(Q, ae), te = dt(U.options?.columns || [], Y);
|
|
6296
6296
|
if (!te) return {
|
|
6297
6297
|
elements: [],
|
|
6298
6298
|
expectedHeight: yn
|
|
@@ -6321,41 +6321,41 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6321
6321
|
"j-input-tag": Yt,
|
|
6322
6322
|
"j-icon": Ke
|
|
6323
6323
|
}[de] || ie;
|
|
6324
|
-
return fe ? fe(
|
|
6324
|
+
return fe ? fe(D, pe) : {
|
|
6325
6325
|
elements: [],
|
|
6326
6326
|
expectedHeight: yn
|
|
6327
6327
|
};
|
|
6328
|
-
}, Cn = (
|
|
6328
|
+
}, Cn = (D, U, Q, ae) => {
|
|
6329
6329
|
const Y = ae.getBodyField(U, Q), te = dt(ae.options?.columns || [], Y);
|
|
6330
|
-
if (te._fieldFormat) return te._fieldFormat(
|
|
6330
|
+
if (te._fieldFormat) return te._fieldFormat(D, U, Q, ae);
|
|
6331
6331
|
if (te._compType === "dateTime") {
|
|
6332
6332
|
const de = te._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6333
|
-
return Yr(
|
|
6333
|
+
return Yr(D[Y], de);
|
|
6334
6334
|
}
|
|
6335
|
-
const re = Wf(
|
|
6335
|
+
const re = Wf(D[Y], c, {
|
|
6336
6336
|
type: te._compType,
|
|
6337
6337
|
getCompType: te._getCompType,
|
|
6338
6338
|
getCompConfig: te._getCompConfig,
|
|
6339
6339
|
config: te._compConfig,
|
|
6340
6340
|
formData: r,
|
|
6341
6341
|
getTableData: ht,
|
|
6342
|
-
row:
|
|
6342
|
+
row: D
|
|
6343
6343
|
});
|
|
6344
|
-
if (
|
|
6345
|
-
var pe = s(re.config.dataType, re.config.dataCode, { value:
|
|
6344
|
+
if (D[Y] && D[Y] == re.label && re.config.dataType && re.config.dataType != "options" && !re.config.options && re.type != "j-autocomplete" && c && s) {
|
|
6345
|
+
var pe = s(re.config.dataType, re.config.dataCode, { value: D[Y] });
|
|
6346
6346
|
p[pe] = !0;
|
|
6347
6347
|
}
|
|
6348
6348
|
return re.label;
|
|
6349
6349
|
}, X = () => {
|
|
6350
6350
|
if (!d?.value) return !1;
|
|
6351
|
-
const
|
|
6352
|
-
return
|
|
6351
|
+
const D = Object.keys(p);
|
|
6352
|
+
return D.length === 0 ? !1 : D.every((U) => d.value?.[U] === 9);
|
|
6353
6353
|
};
|
|
6354
|
-
at(() => X(), (
|
|
6355
|
-
|
|
6354
|
+
at(() => X(), (D) => {
|
|
6355
|
+
D && v && v.renderWithRecreateCells();
|
|
6356
6356
|
});
|
|
6357
|
-
const ce = (
|
|
6358
|
-
const U =
|
|
6357
|
+
const ce = (D) => {
|
|
6358
|
+
const U = D.filter((Q) => Q.config?.display !== !1).map((Q) => {
|
|
6359
6359
|
const { id: ae, type: Y, config: te, getCompConfig: re, getCompType: pe, children: de, customLayout: fe } = Q, { label: xe, width: Re, minWidth: Be, maxWidth: Te, align: Qe, headerAlign: Le, fieldFormat: Ae, editor: et, frozen: tt, ...ut } = te || {}, nt = Le ?? Qe, me = {
|
|
6360
6360
|
field: ae,
|
|
6361
6361
|
title: xe,
|
|
@@ -6375,20 +6375,20 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6375
6375
|
return (Ve || pt) && (me.editor = Ve || "j-comp-editor", x = !0), pt ? me.customRender = Vt : (Y === "j-switch" && (me.customRender = Ee), Y === "j-rate" && (me.customRender = Me), Y === "j-slider" && (me.customRender = Oe), (Y === "j-tag" || Y === "j-input-tag") && (me.customRender = Yt), Y === "j-icon" && (me.customRender = Ke)), Y === "link" && (me.customLayout = Jt), Y === "checkbox" && (me.customLayout = Ht), Y === "j-switch" && (me.minWidth = me.minWidth || Re, me.maxWidth = me.maxWidth || Re), fe && (me.customLayout = Ot), me.fieldFormat = Cn, de && de.length > 0 && (me.columns = ce(de)), me;
|
|
6376
6376
|
});
|
|
6377
6377
|
return o.isTree && U.length > 0 && (U[0].tree = !0), U;
|
|
6378
|
-
}, ne = (
|
|
6379
|
-
const Q =
|
|
6378
|
+
}, ne = (D, U) => {
|
|
6379
|
+
const Q = D.replace("#", ""), ae = parseInt(Q, 16), Y = Math.min(255, Math.max(0, (ae >> 16) + U)), te = Math.min(255, Math.max(0, (ae >> 8 & 255) + U)), re = Math.min(255, Math.max(0, (ae & 255) + U));
|
|
6380
6380
|
return `#${(Y << 16 | te << 8 | re).toString(16).padStart(6, "0")}`;
|
|
6381
6381
|
}, oe = () => {
|
|
6382
|
-
let
|
|
6383
|
-
o.isPage && (
|
|
6384
|
-
let U = bn(String(
|
|
6382
|
+
let D = k;
|
|
6383
|
+
o.isPage && (D = It.value + k);
|
|
6384
|
+
let U = bn(String(D)) || 0;
|
|
6385
6385
|
return o.subColumns && o.subColumns.length > 0 && (U = U + 32), Math.max(45, U + 18);
|
|
6386
|
-
}, ge = (
|
|
6386
|
+
}, ge = (D) => {
|
|
6387
6387
|
let U = (Q, ae, Y, te) => {
|
|
6388
6388
|
const re = te.getRecordIndexByCell(ae, Y);
|
|
6389
|
-
return o.isPage && !
|
|
6389
|
+
return o.isPage && !D ? It.value + re + 1 : re + 1;
|
|
6390
6390
|
};
|
|
6391
|
-
return
|
|
6391
|
+
return D && (U = (Q, ae, Y, te) => te.getRecordIndexByCell(ae, Y) + 1), {
|
|
6392
6392
|
field: "__sequence__",
|
|
6393
6393
|
title: "序号",
|
|
6394
6394
|
width: T,
|
|
@@ -6412,15 +6412,15 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6412
6412
|
fieldFormat: () => "",
|
|
6413
6413
|
_getCompConfig: void 0,
|
|
6414
6414
|
_getCompType: void 0
|
|
6415
|
-
}), Ie = (
|
|
6416
|
-
if (
|
|
6417
|
-
if (
|
|
6415
|
+
}), Ie = (D) => {
|
|
6416
|
+
if (D.frozen) return D.frozen;
|
|
6417
|
+
if (D.columns) for (const U of D.columns) {
|
|
6418
6418
|
const Q = Ie(U);
|
|
6419
6419
|
if (Q) return Q;
|
|
6420
6420
|
}
|
|
6421
|
-
}, ot = (
|
|
6421
|
+
}, ot = (D) => {
|
|
6422
6422
|
const U = [];
|
|
6423
|
-
return
|
|
6423
|
+
return D.forEach((Q) => {
|
|
6424
6424
|
if (Q.frozen) {
|
|
6425
6425
|
U.push(Q);
|
|
6426
6426
|
return;
|
|
@@ -6448,9 +6448,9 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6448
6448
|
columns: te
|
|
6449
6449
|
});
|
|
6450
6450
|
}), U;
|
|
6451
|
-
}, St = (
|
|
6451
|
+
}, St = (D) => {
|
|
6452
6452
|
let U = 0, Q = 0;
|
|
6453
|
-
return
|
|
6453
|
+
return D.forEach((ae) => {
|
|
6454
6454
|
if (ae.columns && ae.columns.length > 0) {
|
|
6455
6455
|
const Y = St(ae.columns);
|
|
6456
6456
|
U += Y.left, Q += Y.right;
|
|
@@ -6459,10 +6459,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6459
6459
|
left: U,
|
|
6460
6460
|
right: Q
|
|
6461
6461
|
};
|
|
6462
|
-
}, ft = (
|
|
6462
|
+
}, ft = (D, U, Q, ae) => {
|
|
6463
6463
|
S = 0, m = 0, x = !1;
|
|
6464
6464
|
const Y = {};
|
|
6465
|
-
let te = ce(
|
|
6465
|
+
let te = ce(D);
|
|
6466
6466
|
te.length === 0 && (te = [je()]), te = ot(te);
|
|
6467
6467
|
const re = [], pe = [], de = [];
|
|
6468
6468
|
te.forEach((Be) => {
|
|
@@ -6490,11 +6490,11 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6490
6490
|
option: Y
|
|
6491
6491
|
};
|
|
6492
6492
|
}, Sn = () => {
|
|
6493
|
-
const
|
|
6493
|
+
const D = ft(o.columns, o.isShowNumber && !o.isTree, o.actions);
|
|
6494
6494
|
Jn.value && m++;
|
|
6495
6495
|
const U = {
|
|
6496
6496
|
records: [],
|
|
6497
|
-
columns:
|
|
6497
|
+
columns: D.columns,
|
|
6498
6498
|
autoFillWidth: !0,
|
|
6499
6499
|
enableCheckboxCascade: Jn.value,
|
|
6500
6500
|
enableHeaderCheckboxCascade: Jn.value,
|
|
@@ -6503,7 +6503,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6503
6503
|
tooltip: { isShowOverflowTextTooltip: !0 },
|
|
6504
6504
|
hover: { highlightMode: o.highlightMode },
|
|
6505
6505
|
select: { highlightMode: o.highlightMode },
|
|
6506
|
-
...
|
|
6506
|
+
...D.option
|
|
6507
6507
|
};
|
|
6508
6508
|
return o.isTree && o.defaultExpandAll && !o.loadChildren && (U.hierarchyExpandLevel = Number.POSITIVE_INFINITY), o.emptyTipText && (U.emptyTip = { text: o.emptyTipText }), o.isAnimationAppear && (U.animationAppear = {
|
|
6509
6509
|
duration: 100,
|
|
@@ -6540,13 +6540,13 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6540
6540
|
height: "auto"
|
|
6541
6541
|
},
|
|
6542
6542
|
theme: Qo,
|
|
6543
|
-
...
|
|
6543
|
+
...D.option
|
|
6544
6544
|
} }), U.plugins = [w]), U;
|
|
6545
|
-
}, kn = (
|
|
6545
|
+
}, kn = (D) => !o.isTree || !o.parentKey || D.some((U) => Array.isArray(U?.children) && U.children.length > 0) ? D : $f(D, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), va = (D) => {
|
|
6546
6546
|
if (!b.value) return;
|
|
6547
6547
|
g(), T = oe(), Lp();
|
|
6548
6548
|
const U = Sn(), Q = Ml();
|
|
6549
|
-
|
|
6549
|
+
D && D.length >= 0 ? U.records = kn(D) : Q.length > 0 ? U.records = kn(Q) : (U.records = kn(o.records), i("update:modelValue", U.records)), v = new We.ListTable(b.value, U), v._getAppContext = () => a?.appContext;
|
|
6550
6550
|
const ae = a?.provides;
|
|
6551
6551
|
v._getProvides = () => ae, o.loadChildren && v.on(We.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (Y) => {
|
|
6552
6552
|
if (Y.hierarchyState === We.TYPES.HierarchyState.expand && Y.originData?.children === !0) {
|
|
@@ -6590,10 +6590,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6590
6590
|
}), y.value = v.getAllRowsHeight(), i("ready", v);
|
|
6591
6591
|
}, Se = () => {
|
|
6592
6592
|
v && (v.release(), v = null);
|
|
6593
|
-
}, Pe = () => v, yt = (
|
|
6593
|
+
}, Pe = () => v, yt = (D) => {
|
|
6594
6594
|
if (g(), C.value = 0, v) {
|
|
6595
|
-
v.setScrollTop(0), k =
|
|
6596
|
-
const U = kn(
|
|
6595
|
+
v.setScrollTop(0), k = D.length;
|
|
6596
|
+
const U = kn(D);
|
|
6597
6597
|
if (o.subColumns && o.subColumns.length > 0) setTimeout(() => {
|
|
6598
6598
|
Se(), va(U);
|
|
6599
6599
|
});
|
|
@@ -6602,7 +6602,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6602
6602
|
Q !== T ? (T = Q, o.subColumns && o.subColumns.length > 0 ? (Se(), va(U)) : qe(U)) : v.setRecords(U);
|
|
6603
6603
|
}
|
|
6604
6604
|
if (o.selectStateKey && o.isMultiple) {
|
|
6605
|
-
const Q =
|
|
6605
|
+
const Q = D.filter((ae) => ae[o.selectStateKey]);
|
|
6606
6606
|
Un(Q), C.value = Q.length, i("selectRecordsChanged", Q), i("selectionChanged", {
|
|
6607
6607
|
isMultiple: !0,
|
|
6608
6608
|
selections: Q,
|
|
@@ -6621,40 +6621,40 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6621
6621
|
get() {
|
|
6622
6622
|
return o.tablePage;
|
|
6623
6623
|
},
|
|
6624
|
-
set(
|
|
6625
|
-
i("update:tablePage",
|
|
6624
|
+
set(D) {
|
|
6625
|
+
i("update:tablePage", D);
|
|
6626
6626
|
}
|
|
6627
6627
|
}), mt = I(0), Gt = O({
|
|
6628
6628
|
get() {
|
|
6629
6629
|
return mt.value !== 0 ? mt.value : o.pageSize;
|
|
6630
6630
|
},
|
|
6631
|
-
set(
|
|
6632
|
-
mt.value =
|
|
6631
|
+
set(D) {
|
|
6632
|
+
mt.value = D, i("update:pageSize", D);
|
|
6633
6633
|
}
|
|
6634
|
-
}), It = O(() => (be.value - 1) * Gt.value), qt = (
|
|
6634
|
+
}), It = O(() => (be.value - 1) * Gt.value), qt = (D, U) => {
|
|
6635
6635
|
i("loadPageData", {
|
|
6636
6636
|
rows: U,
|
|
6637
|
-
page:
|
|
6637
|
+
page: D
|
|
6638
6638
|
});
|
|
6639
6639
|
}, Ze = () => {
|
|
6640
6640
|
if (!v) return [];
|
|
6641
6641
|
if (!Jn.value) {
|
|
6642
|
-
const
|
|
6643
|
-
if (
|
|
6644
|
-
const U =
|
|
6642
|
+
const D = v.getSelectedCellInfos();
|
|
6643
|
+
if (D && D.length > 0) {
|
|
6644
|
+
const U = D[0][0];
|
|
6645
6645
|
return U?.originData ? [U.originData] : [];
|
|
6646
6646
|
}
|
|
6647
6647
|
return [];
|
|
6648
6648
|
}
|
|
6649
6649
|
if (v.stateManager && v.stateManager.checkedState) {
|
|
6650
|
-
const
|
|
6650
|
+
const D = [], U = /* @__PURE__ */ new Set(), Q = (pe) => {
|
|
6651
6651
|
if (!pe) return;
|
|
6652
6652
|
const de = sn(pe);
|
|
6653
6653
|
if (de) {
|
|
6654
6654
|
if (U.has(de)) return;
|
|
6655
6655
|
U.add(de);
|
|
6656
6656
|
const fe = {};
|
|
6657
|
-
pe.__checkState = !0, wi(fe, pe, ["children"]),
|
|
6657
|
+
pe.__checkState = !0, wi(fe, pe, ["children"]), D.push(fe);
|
|
6658
6658
|
} else console.warn("key is empty");
|
|
6659
6659
|
}, ae = (pe) => {
|
|
6660
6660
|
const de = pe?.children;
|
|
@@ -6671,13 +6671,13 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6671
6671
|
const xe = re(0, (de + "").split(",").map(Number), te);
|
|
6672
6672
|
Q(xe), fe === !0 && ae(xe);
|
|
6673
6673
|
}
|
|
6674
|
-
}),
|
|
6674
|
+
}), D;
|
|
6675
6675
|
}
|
|
6676
6676
|
return [];
|
|
6677
|
-
}, sn = (
|
|
6677
|
+
}, sn = (D) => o.editConfig.isRemoveBtn ? D._i : o.rowKey ? o.rowKey.split(",").map((U) => D[U.trim()]).join("::") : "", Un = (D) => {
|
|
6678
6678
|
if (v)
|
|
6679
6679
|
if (Jn.value || v.clearSelected(), o.rowKey) {
|
|
6680
|
-
const U = new Set(
|
|
6680
|
+
const U = new Set(D.map(sn)), Q = "__checkState";
|
|
6681
6681
|
if (!Jn.value) {
|
|
6682
6682
|
const pe = v.records;
|
|
6683
6683
|
for (let de = 0; de < pe.length; de++) {
|
|
@@ -6710,9 +6710,9 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6710
6710
|
for (let pe = 0; pe < re.length; pe++) re[pe][0].originData[Q] == !0 && v.setCellCheckboxState(0, pe + 1, !0);
|
|
6711
6711
|
v.renderWithRecreateCells();
|
|
6712
6712
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
6713
|
-
}, ya = (
|
|
6714
|
-
i("rowChange",
|
|
6715
|
-
}, qe = (
|
|
6713
|
+
}, ya = (D) => {
|
|
6714
|
+
i("rowChange", D), v.renderWithRecreateCells();
|
|
6715
|
+
}, qe = (D) => {
|
|
6716
6716
|
if (!v) return;
|
|
6717
6717
|
const U = Ze();
|
|
6718
6718
|
if (U.length > 0) {
|
|
@@ -6720,55 +6720,55 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6720
6720
|
return;
|
|
6721
6721
|
}
|
|
6722
6722
|
const Q = Sn();
|
|
6723
|
-
Q.records =
|
|
6723
|
+
Q.records = D || v.records, v.updateOption(Q, {
|
|
6724
6724
|
clearColWidthCache: !1,
|
|
6725
6725
|
clearRowHeightCache: !1
|
|
6726
6726
|
}), o.heightMode === "auto" && (y.value = v.getAllRowsHeight()), C.value = 0;
|
|
6727
6727
|
}, Tt = () => {
|
|
6728
6728
|
v.renderWithRecreateCells();
|
|
6729
6729
|
}, Qt = O(() => o.editConfig.isAddBtn), en = O(() => o.editConfig.addBtnText || "添加"), Yn = O(() => o.editConfig.isRemoveBtn), Jo = O(() => o.editConfig.readonly), Jn = O(() => o.isMultiple || Yn.value), Ml = () => {
|
|
6730
|
-
const
|
|
6731
|
-
return
|
|
6730
|
+
const D = o.modelValue || [];
|
|
6731
|
+
return D.forEach((U) => {
|
|
6732
6732
|
U._i || (U._i = ta());
|
|
6733
|
-
}),
|
|
6733
|
+
}), D;
|
|
6734
6734
|
};
|
|
6735
6735
|
at(() => o.modelValue, () => {
|
|
6736
6736
|
yt(Ml());
|
|
6737
6737
|
});
|
|
6738
6738
|
const yd = O(() => {
|
|
6739
|
-
const
|
|
6739
|
+
const D = (U) => {
|
|
6740
6740
|
const Q = [];
|
|
6741
6741
|
return U.forEach((ae) => {
|
|
6742
|
-
ae.children && ae.children.length > 0 ? Q.push(...
|
|
6742
|
+
ae.children && ae.children.length > 0 ? Q.push(...D(ae.children)) : Q.push(ae);
|
|
6743
6743
|
}), Q;
|
|
6744
6744
|
};
|
|
6745
|
-
return
|
|
6745
|
+
return D(o.columns);
|
|
6746
6746
|
}), md = () => {
|
|
6747
|
-
const
|
|
6748
|
-
|
|
6747
|
+
const D = {};
|
|
6748
|
+
D._i = ta(), yd.value.forEach((U) => {
|
|
6749
6749
|
const Q = U.config?.valueRowKey || U.id || "";
|
|
6750
|
-
Q && (
|
|
6751
|
-
}), v && (v.addRecord(
|
|
6750
|
+
Q && (D[Q] = xn(U.config?.defaultValue));
|
|
6751
|
+
}), v && (v.addRecord(D), o.heightMode === "auto" && qe(), v.scrollToCell({
|
|
6752
6752
|
col: 0,
|
|
6753
6753
|
row: v.records.length
|
|
6754
6754
|
})), i("change", {
|
|
6755
6755
|
id: o.id,
|
|
6756
|
-
value:
|
|
6757
|
-
data:
|
|
6756
|
+
value: D,
|
|
6757
|
+
data: D,
|
|
6758
6758
|
formData: r,
|
|
6759
6759
|
tableData: v.records,
|
|
6760
6760
|
type: "add"
|
|
6761
6761
|
});
|
|
6762
6762
|
}, bd = O(() => C.value > 0), wd = () => {
|
|
6763
6763
|
if (!v) return;
|
|
6764
|
-
const
|
|
6765
|
-
|
|
6764
|
+
const D = Ze();
|
|
6765
|
+
D.length !== 0 && Ad.confirm(`确定要删除选中的 ${D.length} 条记录吗?`, "删除确认", {
|
|
6766
6766
|
confirmButtonText: "确定",
|
|
6767
6767
|
cancelButtonText: "取消",
|
|
6768
6768
|
type: "warning"
|
|
6769
6769
|
}).then(() => {
|
|
6770
|
-
const U = v.records, Q = new Set(
|
|
6771
|
-
qe(ae), i("update:modelValue", ae),
|
|
6770
|
+
const U = v.records, Q = new Set(D.map((Y) => Y._i)), ae = U.filter((Y) => !Q.has(Y._i));
|
|
6771
|
+
qe(ae), i("update:modelValue", ae), D.forEach((Y) => {
|
|
6772
6772
|
i("change", {
|
|
6773
6773
|
id: o.id,
|
|
6774
6774
|
value: Y,
|
|
@@ -6781,8 +6781,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6781
6781
|
}).catch(() => {
|
|
6782
6782
|
});
|
|
6783
6783
|
};
|
|
6784
|
-
return at(() => o.columns, (
|
|
6785
|
-
JSON.stringify(
|
|
6784
|
+
return at(() => o.columns, (D, U) => {
|
|
6785
|
+
JSON.stringify(D) !== JSON.stringify(U) && qe();
|
|
6786
6786
|
}), at(() => [
|
|
6787
6787
|
o.isTree,
|
|
6788
6788
|
o.defaultExpandAll,
|
|
@@ -6814,7 +6814,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6814
6814
|
getSelection: Ze,
|
|
6815
6815
|
setSelection: Un,
|
|
6816
6816
|
renderTable: Tt
|
|
6817
|
-
}), (
|
|
6817
|
+
}), (D, U) => {
|
|
6818
6818
|
const Q = V("j-button"), ae = V("el-space"), Y = V("el-pagination");
|
|
6819
6819
|
return E(), L("div", {
|
|
6820
6820
|
class: Ne(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
@@ -6876,7 +6876,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6876
6876
|
style: le(H.value),
|
|
6877
6877
|
onMouseenter: G,
|
|
6878
6878
|
onMouseleave: P
|
|
6879
|
-
}, [(E(!0), L(Ce, null, He(
|
|
6879
|
+
}, [(E(!0), L(Ce, null, He(z.value, (te) => (E(), L("div", {
|
|
6880
6880
|
key: te.id,
|
|
6881
6881
|
class: "j-table-dropdown-item",
|
|
6882
6882
|
style: le({
|
|
@@ -7002,7 +7002,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7002
7002
|
_top: 0
|
|
7003
7003
|
}), g = I(0), y = I(), _ = I(48), b = I(0), v = I(0);
|
|
7004
7004
|
at(() => a.visible, (P) => {
|
|
7005
|
-
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls &&
|
|
7005
|
+
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Dt(() => {
|
|
7006
7006
|
typeof document < "u" && (y.value = document.querySelector(".j-dialog"), y.value && (y.value.onmousemove = F));
|
|
7007
7007
|
});
|
|
7008
7008
|
}, { immediate: !0 });
|
|
@@ -7027,22 +7027,22 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7027
7027
|
}, A = () => {
|
|
7028
7028
|
o("ok", C, k);
|
|
7029
7029
|
}, H = () => {
|
|
7030
|
-
p.left = 0, p.top = 0, v.value = 0, b.value = 0, a.isStep && (
|
|
7030
|
+
p.left = 0, p.top = 0, v.value = 0, b.value = 0, a.isStep && (z.value = 0, Dt(() => {
|
|
7031
7031
|
W();
|
|
7032
7032
|
})), o("closed");
|
|
7033
|
-
},
|
|
7033
|
+
}, z = O({
|
|
7034
7034
|
get() {
|
|
7035
7035
|
return h.value !== -1 ? h.value : a.stepActive;
|
|
7036
7036
|
},
|
|
7037
7037
|
set(P) {
|
|
7038
7038
|
h.value = P, o("update:stepActive", P);
|
|
7039
7039
|
}
|
|
7040
|
-
}),
|
|
7041
|
-
|
|
7040
|
+
}), $ = () => {
|
|
7041
|
+
z.value > 0 && z.value--, Dt(() => {
|
|
7042
7042
|
W();
|
|
7043
7043
|
});
|
|
7044
7044
|
}, M = async () => {
|
|
7045
|
-
await R() && (
|
|
7045
|
+
await R() && (z.value < a.steps.length - 1 && (z.value += 1), Dt(() => {
|
|
7046
7046
|
W();
|
|
7047
7047
|
}));
|
|
7048
7048
|
}, R = async () => {
|
|
@@ -7052,7 +7052,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7052
7052
|
}
|
|
7053
7053
|
return s.value = !1, !0;
|
|
7054
7054
|
}, W = () => {
|
|
7055
|
-
switch (u.value = !0, f.value = !0, d.value = !0,
|
|
7055
|
+
switch (u.value = !0, f.value = !0, d.value = !0, z.value) {
|
|
7056
7056
|
case 0:
|
|
7057
7057
|
f.value = !1;
|
|
7058
7058
|
break;
|
|
@@ -7152,7 +7152,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7152
7152
|
width: "100%"
|
|
7153
7153
|
}) }, [Z(Xe, {
|
|
7154
7154
|
simple: "",
|
|
7155
|
-
active:
|
|
7155
|
+
active: z.value,
|
|
7156
7156
|
space: 160,
|
|
7157
7157
|
"finish-status": "success"
|
|
7158
7158
|
}, {
|
|
@@ -7170,7 +7170,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7170
7170
|
size: "mini",
|
|
7171
7171
|
disabled: d.value,
|
|
7172
7172
|
label: J(i)("上一步"),
|
|
7173
|
-
onClick:
|
|
7173
|
+
onClick: $
|
|
7174
7174
|
}, null, 8, ["disabled", "label"])) : ee("", !0),
|
|
7175
7175
|
e.isStep ? (E(), N($e, {
|
|
7176
7176
|
key: 1,
|
|
@@ -7304,7 +7304,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7304
7304
|
}, _ = () => {
|
|
7305
7305
|
o("ok", v, w);
|
|
7306
7306
|
}, b = () => {
|
|
7307
|
-
a.isStep && (g.value = 0,
|
|
7307
|
+
a.isStep && (g.value = 0, Dt(() => {
|
|
7308
7308
|
C();
|
|
7309
7309
|
})), o("closed");
|
|
7310
7310
|
}, v = (A) => {
|
|
@@ -7312,11 +7312,11 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7312
7312
|
}, w = () => {
|
|
7313
7313
|
c.value = !1;
|
|
7314
7314
|
}, S = () => {
|
|
7315
|
-
g.value > 0 && g.value--,
|
|
7315
|
+
g.value > 0 && g.value--, Dt(() => {
|
|
7316
7316
|
C();
|
|
7317
7317
|
});
|
|
7318
7318
|
}, m = async () => {
|
|
7319
|
-
await x() && (g.value < a.steps.length - 1 && (g.value += 1),
|
|
7319
|
+
await x() && (g.value < a.steps.length - 1 && (g.value += 1), Dt(() => {
|
|
7320
7320
|
C();
|
|
7321
7321
|
}));
|
|
7322
7322
|
}, x = async () => {
|
|
@@ -7347,7 +7347,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7347
7347
|
showLoading: v,
|
|
7348
7348
|
hideLoading: w
|
|
7349
7349
|
}), (A, H) => {
|
|
7350
|
-
const
|
|
7350
|
+
const z = V("el-step"), $ = V("el-steps"), M = V("j-button"), R = V("el-space"), W = V("el-divider"), q = V("el-dialog"), se = Pi("loading");
|
|
7351
7351
|
return E(), N(q, {
|
|
7352
7352
|
modelValue: l.value,
|
|
7353
7353
|
"onUpdate:modelValue": H[0] || (H[0] = (ye) => l.value = ye),
|
|
@@ -7376,14 +7376,14 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7376
7376
|
B("div", {
|
|
7377
7377
|
class: "j-dialog-full-header-mid",
|
|
7378
7378
|
style: le({ maxWidth: `${200 * k.value.length}px` })
|
|
7379
|
-
}, [e.isStep ? (E(), N(
|
|
7379
|
+
}, [e.isStep ? (E(), N($, {
|
|
7380
7380
|
key: 0,
|
|
7381
7381
|
simple: "",
|
|
7382
7382
|
active: g.value,
|
|
7383
7383
|
space: 160,
|
|
7384
7384
|
"finish-status": "success"
|
|
7385
7385
|
}, {
|
|
7386
|
-
default: K(() => [(E(!0), L(Ce, null, He(k.value, (ye, j) => (E(), N(
|
|
7386
|
+
default: K(() => [(E(!0), L(Ce, null, He(k.value, (ye, j) => (E(), N(z, {
|
|
7387
7387
|
key: j,
|
|
7388
7388
|
title: J(r)(ye.title)
|
|
7389
7389
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -7559,7 +7559,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7559
7559
|
}, f = () => {
|
|
7560
7560
|
r.value = !1;
|
|
7561
7561
|
}, u = () => {
|
|
7562
|
-
a.isStep && (S.value = 0,
|
|
7562
|
+
a.isStep && (S.value = 0, Dt(() => {
|
|
7563
7563
|
k();
|
|
7564
7564
|
})), i("closed");
|
|
7565
7565
|
}, h = () => {
|
|
@@ -7576,11 +7576,11 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7576
7576
|
w.value = A, i("update:stepActive", A);
|
|
7577
7577
|
}
|
|
7578
7578
|
}), m = () => {
|
|
7579
|
-
S.value > 0 && S.value--,
|
|
7579
|
+
S.value > 0 && S.value--, Dt(() => {
|
|
7580
7580
|
k();
|
|
7581
7581
|
});
|
|
7582
7582
|
}, x = async () => {
|
|
7583
|
-
await C() && (S.value < a.steps.length - 1 && (S.value += 1),
|
|
7583
|
+
await C() && (S.value < a.steps.length - 1 && (S.value += 1), Dt(() => {
|
|
7584
7584
|
k();
|
|
7585
7585
|
}));
|
|
7586
7586
|
}, C = async () => {
|
|
@@ -7609,7 +7609,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7609
7609
|
showLoading: d,
|
|
7610
7610
|
hideLoading: f
|
|
7611
7611
|
}), (A, H) => {
|
|
7612
|
-
const
|
|
7612
|
+
const z = V("el-input"), $ = V("j-button"), M = V("el-space"), R = V("el-step"), W = V("el-steps"), q = V("el-drawer"), se = Pi("loading");
|
|
7613
7613
|
return E(), N(q, {
|
|
7614
7614
|
modelValue: s.value,
|
|
7615
7615
|
"onUpdate:modelValue": H[0] || (H[0] = (ye) => s.value = ye),
|
|
@@ -7633,21 +7633,21 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7633
7633
|
class: "j-drawer--body",
|
|
7634
7634
|
style: le({ "padding-bottom": e.showCloseBtn || e.hasSaveBtn || e.buttons.length > 0 ? "48px" : "0" })
|
|
7635
7635
|
}, [
|
|
7636
|
-
Z(
|
|
7636
|
+
Z(z, { style: {
|
|
7637
7637
|
position: "absolute",
|
|
7638
7638
|
top: "-200px"
|
|
7639
7639
|
} }),
|
|
7640
7640
|
B("div", ug, [Ye(A.$slots, "default")]),
|
|
7641
7641
|
e.hasBtns ? (E(), L("div", dg, [Z(M, { size: 8 }, {
|
|
7642
7642
|
default: K(() => [
|
|
7643
|
-
e.isStep ? (E(), N(
|
|
7643
|
+
e.isStep ? (E(), N($, {
|
|
7644
7644
|
key: 0,
|
|
7645
7645
|
size: "mini",
|
|
7646
7646
|
disabled: _.value,
|
|
7647
7647
|
label: J(o)("上一步"),
|
|
7648
7648
|
onClick: m
|
|
7649
7649
|
}, null, 8, ["disabled", "label"])) : ee("", !0),
|
|
7650
|
-
e.isStep ? (E(), N(
|
|
7650
|
+
e.isStep ? (E(), N($, {
|
|
7651
7651
|
key: 1,
|
|
7652
7652
|
size: "mini",
|
|
7653
7653
|
disabled: b.value,
|
|
@@ -7659,17 +7659,17 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7659
7659
|
"loading",
|
|
7660
7660
|
"label"
|
|
7661
7661
|
])) : ee("", !0),
|
|
7662
|
-
!e.isStep && e.showCloseBtn ? (E(), N(
|
|
7662
|
+
!e.isStep && e.showCloseBtn ? (E(), N($, {
|
|
7663
7663
|
key: 2,
|
|
7664
7664
|
size: "mini",
|
|
7665
7665
|
label: J(o)("取消"),
|
|
7666
7666
|
onClick: p
|
|
7667
7667
|
}, null, 8, ["label"])) : ee("", !0),
|
|
7668
|
-
(E(!0), L(Ce, null, He(e.buttons, (ye) => (E(), N(
|
|
7668
|
+
(E(!0), L(Ce, null, He(e.buttons, (ye) => (E(), N($, Fe({ key: ye.id }, { ref_for: !0 }, ye.config, {
|
|
7669
7669
|
label: ye.label,
|
|
7670
7670
|
onClick: (j) => g(ye)
|
|
7671
7671
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
7672
|
-
e.hasSaveBtn ? (E(), N(
|
|
7672
|
+
e.hasSaveBtn ? (E(), N($, {
|
|
7673
7673
|
key: 3,
|
|
7674
7674
|
size: "mini",
|
|
7675
7675
|
type: "primary",
|
|
@@ -7681,7 +7681,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7681
7681
|
_: 1
|
|
7682
7682
|
})])) : ee("", !0)
|
|
7683
7683
|
], 4),
|
|
7684
|
-
B("div", fg, [B("div", hg, [B("span", null, ve(J(o)(e.title)), 1), B("span", pg, [e.subtitle ? (E(), N(Ya(e.subtitle()), { key: 0 })) : ee("", !0)])]), e.showCloseBtn ? (E(), L("div", gg, [Z(
|
|
7684
|
+
B("div", fg, [B("div", hg, [B("span", null, ve(J(o)(e.title)), 1), B("span", pg, [e.subtitle ? (E(), N(Ya(e.subtitle()), { key: 0 })) : ee("", !0)])]), e.showCloseBtn ? (E(), L("div", gg, [Z($, {
|
|
7685
7685
|
type: "text",
|
|
7686
7686
|
icon: "mdi:close",
|
|
7687
7687
|
onClick: p
|
|
@@ -8577,7 +8577,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8577
8577
|
file: ie,
|
|
8578
8578
|
list: b.value
|
|
8579
8579
|
});
|
|
8580
|
-
},
|
|
8580
|
+
}, z = (ie) => {
|
|
8581
8581
|
if (b.value.push(ie), ie.status === "unUpload") {
|
|
8582
8582
|
a("notUploadChange", { value: ie.url });
|
|
8583
8583
|
return;
|
|
@@ -8589,11 +8589,11 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8589
8589
|
onError: H,
|
|
8590
8590
|
uploadCallback: n.uploadCallback
|
|
8591
8591
|
}) : A(ie);
|
|
8592
|
-
},
|
|
8592
|
+
}, $ = (ie) => {
|
|
8593
8593
|
if (!w(ie.size))
|
|
8594
8594
|
return i && i("上传文件超出大小了"), !1;
|
|
8595
8595
|
}, M = (ie) => {
|
|
8596
|
-
C(ie.file),
|
|
8596
|
+
C(ie.file), z(ie.file);
|
|
8597
8597
|
}, R = (ie) => new Promise((Ee) => {
|
|
8598
8598
|
r ? r({
|
|
8599
8599
|
title: "提示",
|
|
@@ -8674,7 +8674,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8674
8674
|
accept: h.value,
|
|
8675
8675
|
limit: p.value,
|
|
8676
8676
|
multiple: e.multiple,
|
|
8677
|
-
"before-upload":
|
|
8677
|
+
"before-upload": $,
|
|
8678
8678
|
"http-request": M,
|
|
8679
8679
|
"file-list": b.value,
|
|
8680
8680
|
"before-remove": R,
|
|
@@ -8844,7 +8844,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8844
8844
|
const n = e.__vccOpts || e;
|
|
8845
8845
|
for (const [a, o] of t) n[a] = o;
|
|
8846
8846
|
return n;
|
|
8847
|
-
}, Zg = /* @__PURE__ */ zc(Xg, [["__scopeId", "data-v-
|
|
8847
|
+
}, Zg = /* @__PURE__ */ zc(Xg, [["__scopeId", "data-v-37f9a80b"]]), Qg = _e(Zg), ev = ["innerHTML"], tv = {
|
|
8848
8848
|
key: 1,
|
|
8849
8849
|
class: "j-barcode-error"
|
|
8850
8850
|
}, nv = /* @__PURE__ */ he({
|
|
@@ -9192,31 +9192,31 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
9192
9192
|
if (k) {
|
|
9193
9193
|
const T = k[1], A = Number(k[2]);
|
|
9194
9194
|
for (let H = 0; H < m.length; H++) try {
|
|
9195
|
-
const
|
|
9196
|
-
let
|
|
9195
|
+
const z = Number(m[H]);
|
|
9196
|
+
let $ = !1;
|
|
9197
9197
|
switch (T) {
|
|
9198
9198
|
case ">":
|
|
9199
|
-
|
|
9199
|
+
$ = z > A;
|
|
9200
9200
|
break;
|
|
9201
9201
|
case "<":
|
|
9202
|
-
|
|
9202
|
+
$ = z < A;
|
|
9203
9203
|
break;
|
|
9204
9204
|
case ">=":
|
|
9205
|
-
|
|
9205
|
+
$ = z >= A;
|
|
9206
9206
|
break;
|
|
9207
9207
|
case "<=":
|
|
9208
|
-
|
|
9208
|
+
$ = z <= A;
|
|
9209
9209
|
break;
|
|
9210
9210
|
case "==":
|
|
9211
9211
|
case "===":
|
|
9212
|
-
|
|
9212
|
+
$ = z === A;
|
|
9213
9213
|
break;
|
|
9214
9214
|
case "!=":
|
|
9215
9215
|
case "!==":
|
|
9216
|
-
|
|
9216
|
+
$ = z !== A;
|
|
9217
9217
|
break;
|
|
9218
9218
|
}
|
|
9219
|
-
|
|
9219
|
+
$ && C++;
|
|
9220
9220
|
} catch {
|
|
9221
9221
|
console.log("计算失败");
|
|
9222
9222
|
break;
|
|
@@ -9772,42 +9772,42 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
9772
9772
|
})
|
|
9773
9773
|
]),
|
|
9774
9774
|
_: 1
|
|
9775
|
-
})]), B("div", fv, [s.cells.length == 0 ? (E(), L("span", hv)) : ee("", !0), (E(!0), L(Ce, null, He(s.cells, (H,
|
|
9775
|
+
})]), B("div", fv, [s.cells.length == 0 ? (E(), L("span", hv)) : ee("", !0), (E(!0), L(Ce, null, He(s.cells, (H, z) => (E(), L(Ce, { key: z }, [H.type == "fun" ? (E(), L("span", pv, ve(H.value.toUpperCase()), 1)) : H.type == "comp" ? (E(), L("span", gv, " #" + ve(S(H.value)) + "# ", 1)) : H.type == "num" ? (E(), L("span", vv, ve(H.value), 1)) : ee("", !0), z + 1 == s.cursor ? (E(), L("span", yv)) : ee("", !0)], 64))), 128))])]),
|
|
9776
9776
|
Z(T, { class: "j-input-count-mid" }, {
|
|
9777
|
-
default: K(() => [(E(), L(Ce, null, He(i, (H,
|
|
9778
|
-
key:
|
|
9777
|
+
default: K(() => [(E(), L(Ce, null, He(i, (H, z) => Z(C, {
|
|
9778
|
+
key: z,
|
|
9779
9779
|
label: H.label + "",
|
|
9780
|
-
onClick: (
|
|
9780
|
+
onClick: ($) => u(H.value, "num")
|
|
9781
9781
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
9782
9782
|
_: 1
|
|
9783
9783
|
}),
|
|
9784
|
-
B("div", mv, [B("div", bv, [(E(!0), L(Ce, null, He(e.list, (H,
|
|
9784
|
+
B("div", mv, [B("div", bv, [(E(!0), L(Ce, null, He(e.list, (H, z) => (E(), L(Ce, { key: z }, [B("div", wv, ve(J(n)(H.label)), 1), Z(T, {
|
|
9785
9785
|
size: [8, 8],
|
|
9786
9786
|
wrap: "",
|
|
9787
9787
|
style: { "margin-bottom": "16px" }
|
|
9788
9788
|
}, {
|
|
9789
|
-
default: K(() => [(E(!0), L(Ce, null, He(H.children, (
|
|
9790
|
-
key:
|
|
9791
|
-
onClick: (M) => u(
|
|
9792
|
-
label: J(n)(
|
|
9789
|
+
default: K(() => [(E(!0), L(Ce, null, He(H.children, ($) => (E(), N(C, {
|
|
9790
|
+
key: $.value,
|
|
9791
|
+
onClick: (M) => u($.value, "comp"),
|
|
9792
|
+
label: J(n)($.label)
|
|
9793
9793
|
}, null, 8, ["onClick", "label"]))), 128))]),
|
|
9794
9794
|
_: 2
|
|
9795
|
-
}, 1024)], 64))), 128))]), B("div", _v, [B("div", xv, [B("span", Cv, ve(J(n)("函数列表")), 1), B("div", Sv, [(E(), L(Ce, null, He(r, (H,
|
|
9795
|
+
}, 1024)], 64))), 128))]), B("div", _v, [B("div", xv, [B("span", Cv, ve(J(n)("函数列表")), 1), B("div", Sv, [(E(), L(Ce, null, He(r, (H, z) => Z(C, {
|
|
9796
9796
|
type: "text",
|
|
9797
9797
|
style: {
|
|
9798
9798
|
"border-radius": "0",
|
|
9799
9799
|
"justify-content": "left"
|
|
9800
9800
|
},
|
|
9801
|
-
key:
|
|
9802
|
-
onMouseover: (
|
|
9803
|
-
onClick: (
|
|
9801
|
+
key: z,
|
|
9802
|
+
onMouseover: ($) => f(H.des),
|
|
9803
|
+
onClick: ($) => u(H.value, "fun"),
|
|
9804
9804
|
label: H.label
|
|
9805
9805
|
}, null, 8, [
|
|
9806
9806
|
"onMouseover",
|
|
9807
9807
|
"onClick",
|
|
9808
9808
|
"label"
|
|
9809
|
-
])), 64))])]), B("div", kv, [B("div", null, [B("ul", null, [(E(!0), L(Ce, null, He(c.value, (H,
|
|
9810
|
-
key:
|
|
9809
|
+
])), 64))])]), B("div", kv, [B("div", null, [B("ul", null, [(E(!0), L(Ce, null, He(c.value, (H, z) => (E(), L("li", {
|
|
9810
|
+
key: z,
|
|
9811
9811
|
style: { "margin-bottom": "8px" }
|
|
9812
9812
|
}, [B("span", Ev, ve(J(n)(H)), 1)]))), 128))])])])])])
|
|
9813
9813
|
])]),
|
|
@@ -10702,7 +10702,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
10702
10702
|
}), at(() => a.mode, () => {
|
|
10703
10703
|
l && f();
|
|
10704
10704
|
}), jt(async () => {
|
|
10705
|
-
await
|
|
10705
|
+
await Dt(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
|
|
10706
10706
|
l && l.dispatch({ scrollIntoView: !0 });
|
|
10707
10707
|
}), p.observe(i.value));
|
|
10708
10708
|
}), Ao(() => {
|
|
@@ -11894,13 +11894,13 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
11894
11894
|
const H = k.get(A.id);
|
|
11895
11895
|
if (H) {
|
|
11896
11896
|
T.add(H.id || "");
|
|
11897
|
-
const
|
|
11897
|
+
const z = {
|
|
11898
11898
|
id: H.id || "",
|
|
11899
11899
|
label: H.config?.label || H.id || "",
|
|
11900
11900
|
type: H.type,
|
|
11901
11901
|
display: H.config?.display !== !1
|
|
11902
11902
|
};
|
|
11903
|
-
H.children && H.children.length > 0 && (
|
|
11903
|
+
H.children && H.children.length > 0 && (z.children = f(H.children, A.children)), C.push(z);
|
|
11904
11904
|
}
|
|
11905
11905
|
}), m.forEach((A) => {
|
|
11906
11906
|
if (!T.has(A.id || "")) {
|
|
@@ -12169,7 +12169,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12169
12169
|
}), ht.push(mt);
|
|
12170
12170
|
}
|
|
12171
12171
|
}), ht;
|
|
12172
|
-
}, m = O(() => S(i.columns, Xe.value)), x = O(() => Vf(i.columns, (Se) => Se.config.label)), C = I(""), k = O(() => x.value.some((Se) => Se.config?.filter?.isSearchKeyword)), T = I(), A = I(!0), H = I([]),
|
|
12172
|
+
}, m = O(() => S(i.columns, Xe.value)), x = O(() => Vf(i.columns, (Se) => Se.config.label)), C = I(""), k = O(() => x.value.some((Se) => Se.config?.filter?.isSearchKeyword)), T = I(), A = I(!0), H = I([]), z = O(() => A.value ? "搜索全部" : `搜索范围:${x.value.filter((Se) => H.value.includes(Se.id)).map((Se) => Se.config?.label).join("、")}`), $ = () => {
|
|
12173
12173
|
T.value.init();
|
|
12174
12174
|
}, M = I(), R = I(!1), W = I(!1), q = I(!1), se = I([]), ye = I("and"), j = I(), F = I(!1), G = I([]), P = () => {
|
|
12175
12175
|
j.value.init(G.value);
|
|
@@ -12224,15 +12224,15 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12224
12224
|
};
|
|
12225
12225
|
let dt;
|
|
12226
12226
|
jt(() => {
|
|
12227
|
-
|
|
12227
|
+
Dt(Ot), dt = new ResizeObserver(() => {
|
|
12228
12228
|
Ot();
|
|
12229
12229
|
}), Jt.value && dt.observe(Jt.value);
|
|
12230
12230
|
}), To(() => {
|
|
12231
12231
|
dt?.disconnect();
|
|
12232
12232
|
}), at(() => ln.value, () => {
|
|
12233
|
-
|
|
12233
|
+
Dt(Ot);
|
|
12234
12234
|
}, { deep: !0 }), at(Oe, () => {
|
|
12235
|
-
|
|
12235
|
+
Dt(Ot);
|
|
12236
12236
|
});
|
|
12237
12237
|
const Vt = O(() => {
|
|
12238
12238
|
const Se = ln.value;
|
|
@@ -12388,7 +12388,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12388
12388
|
prefix: K(() => [Z(ht, { icon: "mdi:search" })]),
|
|
12389
12389
|
suffix: K(() => [Z(mt, {
|
|
12390
12390
|
placement: "bottom",
|
|
12391
|
-
content:
|
|
12391
|
+
content: z.value
|
|
12392
12392
|
}, {
|
|
12393
12393
|
default: K(() => [B("div", null, [Z(be, {
|
|
12394
12394
|
placement: "bottom-end",
|
|
@@ -12396,7 +12396,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12396
12396
|
width: 200,
|
|
12397
12397
|
trigger: "click",
|
|
12398
12398
|
"show-arrow": !1,
|
|
12399
|
-
onShow:
|
|
12399
|
+
onShow: $,
|
|
12400
12400
|
onHide: ce
|
|
12401
12401
|
}, {
|
|
12402
12402
|
reference: K(() => [Z(ht, {
|
|
@@ -12797,48 +12797,44 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12797
12797
|
d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
|
|
12798
12798
|
type: "j-tree",
|
|
12799
12799
|
config: a
|
|
12800
|
-
}), d.value = !1,
|
|
12800
|
+
}), d.value = !1, Dt(() => {
|
|
12801
12801
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
12802
12802
|
});
|
|
12803
|
-
}, _ = (
|
|
12804
|
-
s.value?.setCurrentKey(
|
|
12805
|
-
}, b = () => s.value?.getCurrentKey(), v = (
|
|
12806
|
-
s.value?.setCheckedKeys(
|
|
12807
|
-
}, w = (
|
|
12808
|
-
if (f.value =
|
|
12803
|
+
}, _ = ($, M = !0) => {
|
|
12804
|
+
s.value?.setCurrentKey($, M);
|
|
12805
|
+
}, b = () => s.value?.getCurrentKey(), v = ($, M = !1) => {
|
|
12806
|
+
s.value?.setCheckedKeys($, M);
|
|
12807
|
+
}, w = ($ = !1) => s.value?.getCheckedKeys($), S = async ($, M, R, W) => {
|
|
12808
|
+
if (f.value = $.value, a.nodeClickFlow && a.runFlow) {
|
|
12809
12809
|
const q = JSON.parse(a.nodeClickFlow);
|
|
12810
|
-
await a.runFlow(q, { value:
|
|
12810
|
+
await a.runFlow(q, { value: $.value });
|
|
12811
12811
|
}
|
|
12812
|
-
a.click && a.click(
|
|
12813
|
-
}, m = (
|
|
12812
|
+
a.click && a.click($.value, $, W);
|
|
12813
|
+
}, m = ($, { checkedKeys: M, checkedNodes: R, halfCheckedKeys: W, halfCheckedNodes: q }) => {
|
|
12814
12814
|
a.check && a.check(M, {
|
|
12815
|
-
node:
|
|
12815
|
+
node: $,
|
|
12816
12816
|
checkedNodes: R,
|
|
12817
12817
|
halfCheckedKeys: W,
|
|
12818
12818
|
halfCheckedNodes: q
|
|
12819
12819
|
});
|
|
12820
|
-
}, x = (
|
|
12821
|
-
o("node-drop",
|
|
12822
|
-
}, C = (
|
|
12820
|
+
}, x = ($, M, R, W) => {
|
|
12821
|
+
o("node-drop", $, M, R, W);
|
|
12822
|
+
}, C = ($) => {
|
|
12823
12823
|
const M = xn(a.treeButtons);
|
|
12824
|
-
return
|
|
12824
|
+
return $ && a.filterButton ? a.filterButton({
|
|
12825
12825
|
buttons: M,
|
|
12826
|
-
node:
|
|
12826
|
+
node: $
|
|
12827
12827
|
}) : M;
|
|
12828
|
-
}, { openLayer: k } = Po(), T = (
|
|
12829
|
-
|
|
12828
|
+
}, { openLayer: k } = Po(), T = ($, M) => {
|
|
12829
|
+
$.config?.disabled || $.click && $.click({
|
|
12830
12830
|
data: M,
|
|
12831
12831
|
openLayer: k
|
|
12832
12832
|
});
|
|
12833
|
-
}, A = I(""), H = (
|
|
12834
|
-
A.value =
|
|
12835
|
-
},
|
|
12833
|
+
}, A = I(""), H = ($, M) => {
|
|
12834
|
+
A.value = $ ? M.value : "", console.log(A.value, "row");
|
|
12835
|
+
}, z = ($, M, R) => a.allowDrop ? a.allowDrop($, M, R) : !(R == "inner" && !M.data.canInner);
|
|
12836
12836
|
return jt(async () => {
|
|
12837
12837
|
(a.immediate && a.loadData || a.dataType || a.dataCode) && await y();
|
|
12838
|
-
}), at(() => a.list, () => {
|
|
12839
|
-
d.value = !0, zt(() => {
|
|
12840
|
-
d.value = !1;
|
|
12841
|
-
});
|
|
12842
12838
|
}), at(() => a.dataCode || a.dataType, () => {
|
|
12843
12839
|
y();
|
|
12844
12840
|
}), t({
|
|
@@ -12847,7 +12843,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12847
12843
|
getValue: b,
|
|
12848
12844
|
setCheck: v,
|
|
12849
12845
|
getCheck: w
|
|
12850
|
-
}), (
|
|
12846
|
+
}), ($, M) => {
|
|
12851
12847
|
const R = V("j-icon"), W = V("j-button"), q = V("el-dropdown-item"), se = V("el-dropdown-menu"), ye = V("el-dropdown"), j = V("el-tree"), F = V("el-empty"), G = Pi("loading");
|
|
12852
12848
|
return zn((E(), L("div", {
|
|
12853
12849
|
class: Ne([
|
|
@@ -12873,7 +12869,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12873
12869
|
"filter-node-method": e.filterNode,
|
|
12874
12870
|
"render-after-expand": e.renderAfterExpand,
|
|
12875
12871
|
draggable: e.draggable,
|
|
12876
|
-
"allow-drop":
|
|
12872
|
+
"allow-drop": z,
|
|
12877
12873
|
"expand-on-click-node": e.expandOnClickNode,
|
|
12878
12874
|
onNodeClick: S,
|
|
12879
12875
|
onCheck: m,
|
|
@@ -13139,8 +13135,8 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13139
13135
|
const g = (X) => {
|
|
13140
13136
|
f && f(X);
|
|
13141
13137
|
}, y = I(!1), _ = O(() => a.config?.gutter || 16), b = O(() => a.config?.span || 24), v = O(() => a.config?.labelWidth), w = O(() => a.config?.labelPosition || "right"), S = O(() => C.length === 1 && (C[0].type === "j-tabs" || C[0].type === "j-layout" || C[0].config?.isAutoWindow)), m = na({}), x = I({}), C = [], k = {};
|
|
13142
|
-
let T = {}, A = {}, H = [],
|
|
13143
|
-
const
|
|
13138
|
+
let T = {}, A = {}, H = [], z = {};
|
|
13139
|
+
const $ = async (X) => {
|
|
13144
13140
|
y.value && W && (X.getTableData || Hl(W, X.id, X.formData[X.id])), o("change", X), k[X.id]?.config?.codeChange && await Vt(JSON.parse(k[X.id]?.config?.codeChange), { param: X }), a.config?.codeChange && await Vt(JSON.parse(a.config?.codeChange), { param: X });
|
|
13145
13141
|
}, M = (X) => Wr(k[X]?.type || "") && !k[X]?.config?.notInput || k[X]?.config?.isInput, R = (X) => [
|
|
13146
13142
|
"j-table",
|
|
@@ -13191,7 +13187,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13191
13187
|
}, j = async (X, ce) => {
|
|
13192
13188
|
y.value = !1;
|
|
13193
13189
|
const ne = !!ce;
|
|
13194
|
-
C.splice(0, C.length), T = {}, A = {}, H = [], W = ce, wo(m), wo(k), ne && q(ce, ""), ye(X, C, ne),
|
|
13190
|
+
C.splice(0, C.length), T = {}, A = {}, H = [], W = ce, wo(m), wo(k), ne && q(ce, ""), ye(X, C, ne), z = xn(m), await Dt(), y.value = !0, await Dt(), a.config?.codeInit && await Vt(JSON.parse(a.config?.codeInit), { param: {} });
|
|
13195
13191
|
}, F = (X, ce, ne) => {
|
|
13196
13192
|
const oe = [];
|
|
13197
13193
|
return ce.forEach((ge) => {
|
|
@@ -13298,8 +13294,8 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13298
13294
|
const X = await Xe();
|
|
13299
13295
|
return Object.keys(X).length > 0 ? (x.value = X, g(`${h(k[Object.keys(X)[0]]?.config?.label)}:${h(X[Object.keys(X)[0]].msg)}`), !1) : !0;
|
|
13300
13296
|
}, Ee = () => {
|
|
13301
|
-
x.value = {}, wo(m), Object.keys(
|
|
13302
|
-
m[X] =
|
|
13297
|
+
x.value = {}, wo(m), Object.keys(z || {}).forEach((X) => {
|
|
13298
|
+
m[X] = z[X];
|
|
13303
13299
|
});
|
|
13304
13300
|
}, Me = (X) => {
|
|
13305
13301
|
let ce = k[X];
|
|
@@ -13426,7 +13422,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13426
13422
|
labelWidth: v,
|
|
13427
13423
|
labelPosition: w,
|
|
13428
13424
|
getValue: Rt,
|
|
13429
|
-
formChange:
|
|
13425
|
+
formChange: $,
|
|
13430
13426
|
runFlow: Vt,
|
|
13431
13427
|
runFlowByNotRunActions: async (X) => {
|
|
13432
13428
|
const ce = dt[X];
|
|
@@ -13506,7 +13502,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13506
13502
|
i[y.id] = _, _.config = [], wi(_.config, y.config || {}, ["defaultValue"]), y?.config?.defaultValue !== void 0 && (r[y.id] = y.config.defaultValue), g.push(_), b && b.length > 0 && (_.children = [], l(b, _.children));
|
|
13507
13503
|
});
|
|
13508
13504
|
}, c = (p) => {
|
|
13509
|
-
a.value = !1, o.splice(0, o.length), wo(i), wo(r), l(p, o),
|
|
13505
|
+
a.value = !1, o.splice(0, o.length), wo(i), wo(r), l(p, o), Dt(() => {
|
|
13510
13506
|
a.value = !0;
|
|
13511
13507
|
});
|
|
13512
13508
|
};
|
|
@@ -13688,6 +13684,10 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13688
13684
|
id: {
|
|
13689
13685
|
type: String,
|
|
13690
13686
|
default: ""
|
|
13687
|
+
},
|
|
13688
|
+
actions: {
|
|
13689
|
+
type: Array,
|
|
13690
|
+
default: () => []
|
|
13691
13691
|
}
|
|
13692
13692
|
},
|
|
13693
13693
|
emits: [
|
|
@@ -13783,23 +13783,23 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13783
13783
|
getTableData: () => g.value,
|
|
13784
13784
|
rowChange: w
|
|
13785
13785
|
}), (S, m) => {
|
|
13786
|
-
const x = V("j-comp"), C = V("j-icon"), k = V("j-button");
|
|
13786
|
+
const x = V("j-comp"), C = V("j-icon"), k = V("j-button"), T = V("j-buttons");
|
|
13787
13787
|
return E(), L("div", Ib, [B("div", {
|
|
13788
13788
|
ref_key: "inputRowsRef",
|
|
13789
13789
|
ref: h,
|
|
13790
13790
|
class: "j-input-rows-container"
|
|
13791
|
-
}, [(E(!0), L(Ce, null, He(g.value, (
|
|
13792
|
-
key:
|
|
13791
|
+
}, [(E(!0), L(Ce, null, He(g.value, (A, H) => (E(), L("div", {
|
|
13792
|
+
key: A._i + H,
|
|
13793
13793
|
class: Ne([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
13794
13794
|
}, [
|
|
13795
|
-
e.showNum ? (E(), L("div", Lb, ve(
|
|
13796
|
-
e.showChar ? (E(), L("div", zb, ve(p[
|
|
13797
|
-
(E(!0), L(Ce, null, He(e.columns, (
|
|
13798
|
-
key:
|
|
13795
|
+
e.showNum ? (E(), L("div", Lb, ve(H + 1), 1)) : ee("", !0),
|
|
13796
|
+
e.showChar ? (E(), L("div", zb, ve(p[H % 26]), 1)) : ee("", !0),
|
|
13797
|
+
(E(!0), L(Ce, null, He(e.columns, (z) => (E(), N(x, Fe({
|
|
13798
|
+
key: z.id,
|
|
13799
13799
|
ref_for: !0
|
|
13800
|
-
},
|
|
13801
|
-
row:
|
|
13802
|
-
style: _(
|
|
13800
|
+
}, z, {
|
|
13801
|
+
row: A,
|
|
13802
|
+
style: _(z)
|
|
13803
13803
|
}), null, 16, ["row", "style"]))), 128)),
|
|
13804
13804
|
f.value ? (E(), N(C, {
|
|
13805
13805
|
key: 2,
|
|
@@ -13810,7 +13810,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13810
13810
|
key: 3,
|
|
13811
13811
|
icon: "mdi:delete-outline",
|
|
13812
13812
|
class: "j-input-rows-delete",
|
|
13813
|
-
onClick: (
|
|
13813
|
+
onClick: (z) => v(H)
|
|
13814
13814
|
}, null, 8, ["onClick"])) : ee("", !0)
|
|
13815
13815
|
], 2))), 128))], 512), !d.value && r.value ? (E(), L("div", {
|
|
13816
13816
|
key: 0,
|
|
@@ -13823,7 +13823,10 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13823
13823
|
label: l.value,
|
|
13824
13824
|
icon: "mdi:add",
|
|
13825
13825
|
onClick: b
|
|
13826
|
-
}, null, 8, ["label"])) : ee("", !0)
|
|
13826
|
+
}, null, 8, ["label"])) : ee("", !0), e.actions && e.actions.length > 0 ? (E(), N(T, {
|
|
13827
|
+
key: 1,
|
|
13828
|
+
list: e.actions
|
|
13829
|
+
}, null, 8, ["list"])) : ee("", !0)], 4)) : ee("", !0)]);
|
|
13827
13830
|
};
|
|
13828
13831
|
}
|
|
13829
13832
|
}), $b = Db, Fb = _e($b), Vb = { class: "j-input-layer" }, Nb = /* @__PURE__ */ he({
|
|
@@ -14491,7 +14494,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14491
14494
|
style: le(l.value)
|
|
14492
14495
|
}, null, 4)]));
|
|
14493
14496
|
}
|
|
14494
|
-
}), r0 = /* @__PURE__ */ zc(i0, [["__scopeId", "data-v-
|
|
14497
|
+
}), r0 = /* @__PURE__ */ zc(i0, [["__scopeId", "data-v-086d2967"]]), l0 = _e(r0), s0 = {
|
|
14495
14498
|
key: 0,
|
|
14496
14499
|
class: "j-map-loading"
|
|
14497
14500
|
}, c0 = /* @__PURE__ */ he({
|
|
@@ -16067,7 +16070,7 @@ function ou(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16067
16070
|
]);
|
|
16068
16071
|
}
|
|
16069
16072
|
k = C - x;
|
|
16070
|
-
var
|
|
16073
|
+
var z = Mt.cos(x), $ = Mt.sin(x), M = Mt.cos(C), R = Mt.sin(C), W = Mt.tan(k / 4), q = 4 / 3 * n * W, se = 4 / 3 * a * W, ye = [e, t], j = [e + q * $, t - se * z], F = [l + q * R, c - se * M], G = [l, c];
|
|
16071
16074
|
if (j[0] = 2 * ye[0] - j[0], j[1] = 2 * ye[1] - j[1], s) return [
|
|
16072
16075
|
j,
|
|
16073
16076
|
F,
|
|
@@ -18566,7 +18569,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18566
18569
|
});
|
|
18567
18570
|
const { computeStyle: d } = t;
|
|
18568
18571
|
function f(M) {
|
|
18569
|
-
return
|
|
18572
|
+
return $[M];
|
|
18570
18573
|
}
|
|
18571
18574
|
function u(M) {
|
|
18572
18575
|
return t.computeStyle(M, ["no-fill"], {
|
|
@@ -18839,7 +18842,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18839
18842
|
parentGfx: M
|
|
18840
18843
|
});
|
|
18841
18844
|
}
|
|
18842
|
-
function
|
|
18845
|
+
function z(M, R, W, q) {
|
|
18843
18846
|
const se = s[R.type]?.icon || R.icon;
|
|
18844
18847
|
se && b(M, n.getScaledPath(se, { abspos: {
|
|
18845
18848
|
x: W,
|
|
@@ -18849,7 +18852,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18849
18852
|
fill: kt(R, s[R.type]?.iconFill || R.iconFill)
|
|
18850
18853
|
});
|
|
18851
18854
|
}
|
|
18852
|
-
const
|
|
18855
|
+
const $ = {
|
|
18853
18856
|
event(M, R, W) {
|
|
18854
18857
|
return "fillOpacity" in W || (W.fillOpacity = ir), y(M, R.width, R.height, W);
|
|
18855
18858
|
},
|
|
@@ -18859,7 +18862,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18859
18862
|
stroke: kt(R, s.startEvent?.stroke || R.stroke),
|
|
18860
18863
|
strokeWidth: li(R, s.startEvent?.strokeWidth || R.strokeWidth)
|
|
18861
18864
|
}, q = f("event")(M, R, W);
|
|
18862
|
-
return
|
|
18865
|
+
return z(M, R, 18, 18), q;
|
|
18863
18866
|
},
|
|
18864
18867
|
endEvent(M, R) {
|
|
18865
18868
|
const W = f("event")(M, R, {
|
|
@@ -18867,7 +18870,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18867
18870
|
fill: mn(R, s.endEvent?.fill || R.fill),
|
|
18868
18871
|
stroke: kt(R, s.endEvent?.stroke || R.stroke)
|
|
18869
18872
|
});
|
|
18870
|
-
return
|
|
18873
|
+
return z(M, R, 18, 18), W;
|
|
18871
18874
|
},
|
|
18872
18875
|
gateway(M, R) {
|
|
18873
18876
|
const W = {
|
|
@@ -19008,10 +19011,10 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
19008
19011
|
fill: mn(R, s[R.type]?.fill || R.fill),
|
|
19009
19012
|
stroke: kt(R, s[R.type]?.stroke || R.stroke)
|
|
19010
19013
|
}, q = _(M, R.width, R.height, R.radius || Tr, W);
|
|
19011
|
-
return m(M, R, "center-middle"), C(M, R),
|
|
19014
|
+
return m(M, R, "center-middle"), C(M, R), z(M, R, R.iconX, R.iconY), q;
|
|
19012
19015
|
}
|
|
19013
19016
|
};
|
|
19014
|
-
this.handlers =
|
|
19017
|
+
this.handlers = $, this._drawPath = b;
|
|
19015
19018
|
}
|
|
19016
19019
|
Ra(Oa, Ha);
|
|
19017
19020
|
Oa.$inject = [
|
|
@@ -19823,8 +19826,8 @@ function _l(e) {
|
|
|
19823
19826
|
}
|
|
19824
19827
|
function Ku(e, t, n, a, o) {
|
|
19825
19828
|
function i(v, w, S) {
|
|
19826
|
-
var m = v.index, x = v.point, C, k, T, A, H,
|
|
19827
|
-
return m <= 0 || v.bendpoint ? !1 : (C = w[m - 1], k = w[m], T = Cr(C, k), A = Qn(C, k), H = Math.abs(x.x - T.x),
|
|
19829
|
+
var m = v.index, x = v.point, C, k, T, A, H, z;
|
|
19830
|
+
return m <= 0 || v.bendpoint ? !1 : (C = w[m - 1], k = w[m], T = Cr(C, k), A = Qn(C, k), H = Math.abs(x.x - T.x), z = Math.abs(x.y - T.y), A && H <= S && z <= S);
|
|
19828
19831
|
}
|
|
19829
19832
|
function r(v, w) {
|
|
19830
19833
|
var S = v.waypoints, m, x, C, k;
|
|
@@ -19883,14 +19886,14 @@ function Ku(e, t, n, a, o) {
|
|
|
19883
19886
|
S && Bn(S, m.x, m.y);
|
|
19884
19887
|
}
|
|
19885
19888
|
function b(v, w, S) {
|
|
19886
|
-
var m = d(w.index, v), x = S[w.index - 1], C = S[w.index], k = w.point, T = Cr(x, C), A = Qn(x, C), H,
|
|
19887
|
-
m && (H = sx(m),
|
|
19889
|
+
var m = d(w.index, v), x = S[w.index - 1], C = S[w.index], k = w.point, T = Cr(x, C), A = Qn(x, C), H, z;
|
|
19890
|
+
m && (H = sx(m), z = {
|
|
19888
19891
|
x: k.x - T.x,
|
|
19889
19892
|
y: k.y - T.y
|
|
19890
|
-
}, A === "v" && (
|
|
19891
|
-
x:
|
|
19892
|
-
y:
|
|
19893
|
-
}), Bn(H,
|
|
19893
|
+
}, A === "v" && (z = {
|
|
19894
|
+
x: z.y,
|
|
19895
|
+
y: z.x
|
|
19896
|
+
}), Bn(H, z.x, z.y));
|
|
19894
19897
|
}
|
|
19895
19898
|
e.on("connection.changed", function(v) {
|
|
19896
19899
|
y(v.element);
|
|
@@ -22691,8 +22694,8 @@ var QC = {
|
|
|
22691
22694
|
});
|
|
22692
22695
|
const A = l.get("canvas"), H = l.get("elementFactory");
|
|
22693
22696
|
s();
|
|
22694
|
-
const
|
|
22695
|
-
A.setRootElement(
|
|
22697
|
+
const z = H.createRoot();
|
|
22698
|
+
A.setRootElement(z), d();
|
|
22696
22699
|
};
|
|
22697
22700
|
jt(() => {
|
|
22698
22701
|
u();
|
|
@@ -22808,15 +22811,15 @@ var QC = {
|
|
|
22808
22811
|
for (let T = 0; T < x; T++) {
|
|
22809
22812
|
const A = h.value[T];
|
|
22810
22813
|
for (let H = 0; H < k; H++) {
|
|
22811
|
-
const
|
|
22812
|
-
if (v(
|
|
22813
|
-
const
|
|
22814
|
-
for (let M = 0; M <
|
|
22815
|
-
const R =
|
|
22816
|
-
if (R.pattern = R.pattern ? R.pattern + "" : "", R.pattern && !Xt(A[
|
|
22817
|
-
return m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(
|
|
22818
|
-
if (R.required && Xt(A[
|
|
22819
|
-
return m.isOk = !1, m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(
|
|
22814
|
+
const z = C[H];
|
|
22815
|
+
if (v(z.config, T).display !== !1 && z.rule && z.rule.length > 0) {
|
|
22816
|
+
const $ = z.rule.length;
|
|
22817
|
+
for (let M = 0; M < $; M++) {
|
|
22818
|
+
const R = z.rule[M];
|
|
22819
|
+
if (R.pattern = R.pattern ? R.pattern + "" : "", R.pattern && !Xt(A[z.prop || ""]) && !new RegExp(R.pattern.substring(1, R.pattern.length - 1)).test(A[z.prop || ""]))
|
|
22820
|
+
return m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(z.label)}:${i(R.message)}`, m.isOk = !1, m;
|
|
22821
|
+
if (R.required && Xt(A[z.prop || ""]))
|
|
22822
|
+
return m.isOk = !1, m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(z.label)}:${i("不能为空")}`, m;
|
|
22820
22823
|
}
|
|
22821
22824
|
}
|
|
22822
22825
|
}
|
|
@@ -22850,15 +22853,15 @@ var QC = {
|
|
|
22850
22853
|
rowChange: p
|
|
22851
22854
|
}), (m, x) => {
|
|
22852
22855
|
const C = V("j-comp"), k = V("el-form-item"), T = V("el-col"), A = V("j-button"), H = V("el-row");
|
|
22853
|
-
return E(), L(Ce, null, [B("div", Fe({ class: "j-input-cards" }, m.$attrs), [(E(!0), L(Ce, null, He(h.value, (
|
|
22856
|
+
return E(), L(Ce, null, [B("div", Fe({ class: "j-input-cards" }, m.$attrs), [(E(!0), L(Ce, null, He(h.value, (z, $) => (E(), L("div", {
|
|
22854
22857
|
class: "j-input-cards-item",
|
|
22855
|
-
key:
|
|
22858
|
+
key: z.i,
|
|
22856
22859
|
style: { "margin-bottom": "8px" }
|
|
22857
22860
|
}, [Z(H, { gutter: e.gutter }, {
|
|
22858
22861
|
default: K(() => [(E(!0), L(Ce, null, He(e.columns, (M) => (E(), N(T, {
|
|
22859
22862
|
key: M.prop,
|
|
22860
22863
|
span: M.config?.span || e.span || 24,
|
|
22861
|
-
style: le({ "margin-bottom": (M.getInputType ? M.getInputType(
|
|
22864
|
+
style: le({ "margin-bottom": (M.getInputType ? M.getInputType(z) : M.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
22862
22865
|
}, {
|
|
22863
22866
|
default: K(() => [zn(Z(k, {
|
|
22864
22867
|
"label-width": w(M.config?.labelWidth),
|
|
@@ -22867,7 +22870,7 @@ var QC = {
|
|
|
22867
22870
|
tooltip: M.config?.labelTooltip,
|
|
22868
22871
|
required: M.config?.required
|
|
22869
22872
|
}, {
|
|
22870
|
-
default: K(() => [Z(C, Fe({ ref_for: !0 }, M, { row:
|
|
22873
|
+
default: K(() => [Z(C, Fe({ ref_for: !0 }, M, { row: z }), null, 16, ["row"])]),
|
|
22871
22874
|
_: 2
|
|
22872
22875
|
}, 1032, [
|
|
22873
22876
|
"label-width",
|
|
@@ -22875,7 +22878,7 @@ var QC = {
|
|
|
22875
22878
|
"extra",
|
|
22876
22879
|
"tooltip",
|
|
22877
22880
|
"required"
|
|
22878
|
-
]), [[mo, v(M.config,
|
|
22881
|
+
]), [[mo, v(M.config, $).display !== !1]])]),
|
|
22879
22882
|
_: 2
|
|
22880
22883
|
}, 1032, ["span", "style"]))), 128)), d.value && (u.value || h.value.length > 1) && !f.value ? (E(), N(A, {
|
|
22881
22884
|
key: 0,
|
|
@@ -22884,7 +22887,7 @@ var QC = {
|
|
|
22884
22887
|
shape: "circle",
|
|
22885
22888
|
icon: "mdi:close",
|
|
22886
22889
|
danger: "",
|
|
22887
|
-
onClick: (M) => y(
|
|
22890
|
+
onClick: (M) => y($)
|
|
22888
22891
|
}, null, 8, ["onClick"])) : ee("", !0)]),
|
|
22889
22892
|
_: 2
|
|
22890
22893
|
}, 1032, ["gutter"])]))), 128))], 16), l.value && !f.value ? (E(), L("div", {
|