@yidun/antd-super-table 0.0.9 → 0.1.1
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/dist/example/type-example.d.ts +0 -0
- package/dist/index.js +262 -262
- package/dist/{typings.ts → interface.d.ts} +17 -2
- package/dist/src/config.d.ts +1 -1
- package/dist/src/index.d.ts +1 -3
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/service.d.ts +1 -1
- package/example/index.vue +2 -2
- package/example/type-example.ts +0 -0
- package/package.json +3 -3
- package/dist/src/typings.d.ts +0 -358
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._ellipsisElement_6fog1_1{width:100%;overflow:hidden;display:flex}._ellipsisElement_6fog1_1 ._elementItem_6fog1_6{min-width:0}._ellipsisElementHasGap_6fog1_10{gap:8px}._flexWrap_6fog1_14{flex-wrap:wrap}._ellipsisTag_6fog1_18{cursor:pointer}._imageEllipsisTag_6fog1_22{line-height:30px;min-width:32px;padding:0;text-align:center}._ellipsisList_6fog1_29{max-width:500px;display:flex;gap:8px;flex-wrap:wrap}._tableCellContent_1chn7_1 ._antTypographyEllipsis_1chn7_1{width:100%}._tableCellContent_1chn7_1 ._draggableIcon_1chn7_4{cursor:grab}._textListItem_1chn7_8{width:100%;margin-bottom:4px}.
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Be = (a, e, n) =>
|
|
5
|
-
import { h as W, defineComponent as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._ellipsisElement_6fog1_1{width:100%;overflow:hidden;display:flex}._ellipsisElement_6fog1_1 ._elementItem_6fog1_6{min-width:0}._ellipsisElementHasGap_6fog1_10{gap:8px}._flexWrap_6fog1_14{flex-wrap:wrap}._ellipsisTag_6fog1_18{cursor:pointer}._imageEllipsisTag_6fog1_22{line-height:30px;min-width:32px;padding:0;text-align:center}._ellipsisList_6fog1_29{max-width:500px;display:flex;gap:8px;flex-wrap:wrap}._tableCellContent_1chn7_1 ._antTypographyEllipsis_1chn7_1{width:100%}._tableCellContent_1chn7_1 ._draggableIcon_1chn7_4{cursor:grab}._textListItem_1chn7_8{width:100%;margin-bottom:4px}._configBtn_fstz6_1{position:absolute;z-index:999;right:4px;top:8px;background:#fafafa}._tableConfig_fstz6_9{width:260px}._tableConfig_fstz6_9 ._tableConfigHead_fstz6_12{padding:8px}._tableConfig_fstz6_9 ._tableConfigActions_fstz6_15{display:flex;align-items:center;justify-content:space-between;padding:8px;border-bottom:1px solid #d9d9d9}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22{min-height:300px;max-height:60vh;overflow:auto;padding-bottom:12px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._groupTitle_fstz6_28{padding:0 8px;font-size:12px;color:#000000a6;background:#fafafa;line-height:28px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35{max-height:20vh;overflow-y:auto}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 8px;position:relative}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._columnItemContent_fstz6_47{flex:1;cursor:pointer}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._dragIcon_fstz6_51,._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._dragHandle_fstz6_54{cursor:grab}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._fixedActions_fstz6_57{display:none;align-items:center;gap:4px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39:hover ._fixedActions_fstz6_57{display:flex}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._emptyText_fstz6_65{line-height:200px;text-align:center}.pro-table-config-popover .ant-popover-inner-content{padding:0}._dynamicList_1woe5_1{list-style:none;padding:0;margin:0}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6{display:flex;align-items:center;gap:16px;padding:8px;background-color:#fff}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._dynamicListItemContent_1woe5_13{flex:1;min-width:0}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._actionsIcons_1woe5_17{display:flex;align-items:center}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._actionsIcons_1woe5_17 ._dragIcon_1woe5_21{cursor:grab}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6:last-child{border-bottom:none;margin-bottom:16px}._inputGroup_eukv3_1,._inputNumberGroup_149g6_1{width:100%}._inputNumberGroup_149g6_1 ._inputNumberGroupContent_149g6_4{width:100%;display:flex;align-items:center}._inputNumberGroup_149g6_1 ._inputNumber_149g6_1{width:unset!important;flex:1}._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13{border-top-right-radius:0;border-bottom-right-radius:0;border-right-color:transparent}._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13:focus,._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13:hover{border-right-color:#1677ff}._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:transparent}._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21:focus,._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21:hover{border-left-color:#1677ff}._inputNumberGroup_149g6_1 ._divider_149g6_29{display:inline-block;padding:0 8px;line-height:30px;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9}._formFieldItem_1imun_1{display:flex;align-items:center;min-width:0}._inputGroup_1imun_7{width:unset}._formFieldItemLabel_1imun_11{padding-left:8px;padding-right:8px;background-color:transparent!important;text-align:center;cursor:default!important;border-right:none!important}._customItemLabel_1imun_20{font-size:14px;padding-right:8px;color:#000000e0}.super-table-input-group{width:100%}.super-table-input-group .super-table-filter-form-item-label+.ant-input,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector,.super-table-input-group .super-table-filter-form-item-label+.ant-picker,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group{border-left-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-picker:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-picker:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group:hover{border-left-color:#1677ff!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input{border-left-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input:hover{border-left-color:#1677ff!important;border-right-color:#1677ff!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector{border-start-start-radius:0!important;border-end-start-radius:0!important;border-left-color:transparent!important;border-right-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector:hover{border-left-color:#1677ff!important;border-right-color:#1677ff!important}.super-table-input-group .input-number-group .ant-input-number:first-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:transparent!important}.super-table-input-group .input-number-group .ant-input-number:first-child:focus,.super-table-input-group .input-number-group .ant-input-number:first-child:hover{border-left-color:#1677ff!important}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1{display:flex;align-items:center;gap:8px;min-width:0}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1 ._fieldSelect_njdgy_7{width:200px}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1 ._fieldComponent_njdgy_10{flex:1;min-width:0}._sceneList_3nrgr_1{max-height:50vh;overflow:auto}._sceneList_3nrgr_1 ._sceneListHead_3nrgr_5{background-color:#fafafa}._sceneList_3nrgr_1 ._sceneListItem_3nrgr_8{border-top:1px solid #d9d9d9;transition:all .3s;background-color:#fff}._sceneList_3nrgr_1 ._sceneListItem_3nrgr_8:hover{background-color:#f9f9f9}._sceneList_3nrgr_1 ._col_3nrgr_16{padding:12px 16px}._dragIcon_3nrgr_20{cursor:grab}._searchParams_1vdwi_1{flex:1;margin:12px 0}._superTable_1j2zk_1{background-color:#fff;padding:20px 24px}._superTable_1j2zk_1 ._superTableHeader_1j2zk_5{display:flex;gap:16px;border-bottom:1px solid #d9d9d9}._superTable_1j2zk_1 ._superTableHeader_1j2zk_5 ._searchFormWrapper_1j2zk_10{flex:1}._superTable_1j2zk_1 ._superTableHeader_1j2zk_5 ._searchFormWrapper_1j2zk_10 ._searchForm_1j2zk_10{flex:1;padding-bottom:12px}._superTable_1j2zk_1 ._superTableHeader_1j2zk_5 ._searchFormWrapper_1j2zk_10 ._searchForm_1j2zk_10 ._sceneSelect_1j2zk_17{width:240px}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._toolbar_1j2zk_20{padding-bottom:12px;display:flex;align-items:flex-start;justify-content:flex-end;gap:16px}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._toolbar_1j2zk_20 ._actionBtns_1j2zk_27{display:flex;align-items:center;gap:8px}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._toolbar_1j2zk_20 ._tableHeadWrapper_1j2zk_32{flex:1}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._tableContent_1j2zk_35{position:relative}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._headerCell_1j2zk_38{display:flex;align-items:center;gap:4px}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._headerCell_1j2zk_38 ._headerCellText_1j2zk_43{flex:1}._superTable_1j2zk_1 ._tableWrapper_1j2zk_20 ._headerCell_1j2zk_38 ._headerCellTooltipIcon_1j2zk_46{cursor:pointer}._sceneOpBtnWrapper_1j2zk_50{border-top:1px solid #d9d9d9;padding-top:8px}._sceneOpBtnWrapper_1j2zk_50 ._sceneOpBtn_1j2zk_50{text-align:left}.antd-super-table .ant-table-body{overflow-y:auto!important}.antd-super-table .ant-table-cell{padding:12px!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
var fn = Object.defineProperty;
|
|
3
|
+
var pn = (a, e, n) => e in a ? fn(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n;
|
|
4
|
+
var Be = (a, e, n) => pn(a, typeof e != "symbol" ? e + "" : e, n);
|
|
5
|
+
import { h as W, defineComponent as pe, computed as j, resolveComponent as E, createElementBlock as U, openBlock as x, normalizeClass as m, unref as p, createCommentVNode as N, Fragment as Pe, renderList as mt, normalizeStyle as re, renderSlot as ve, createBlock as B, withCtx as _, createVNode as v, createTextVNode as ne, toDisplayString as Ce, createElementVNode as H, withMemo as Ut, resolveDynamicComponent as et, normalizeProps as ct, mergeProps as ue, ref as te, watchEffect as Ft, watch as ke, useAttrs as mn, reactive as tt, toRaw as ge, createApp as yn, onBeforeUnmount as gn, getCurrentInstance as vn, markRaw as hn, shallowRef as bn, onMounted as _n, createSlots as Cn, nextTick as $n } from "vue";
|
|
6
6
|
import wn, { theme as Sn, Form as kn, RangePicker as In, DatePicker as Fn, TreeSelect as xn, Cascader as Tn, Select as Pn, InputNumber as On, Input as qn, Empty as An, ConfigProvider as En, message as dt } from "ant-design-vue";
|
|
7
|
-
import { DownOutlined as Ln, HolderOutlined as Oe, EyeOutlined as Mn, SettingOutlined as jn, VerticalAlignBottomOutlined as xt, PushpinOutlined as Tt, VerticalAlignTopOutlined as Pt, MinusCircleOutlined as Ot, PlusOutlined as Gt, PlusCircleFilled as Nn, SettingFilled as Bn, FilterFilled as Dn, ReloadOutlined as Rn, InfoCircleFilled as
|
|
8
|
-
import { slice as qt, isFunction as Ie, get as nt, castArray as Le, debounce as wt, pick as Fe, omit as Wt, set as Ee, cloneDeep as
|
|
7
|
+
import { DownOutlined as Ln, HolderOutlined as Oe, EyeOutlined as Mn, SettingOutlined as jn, VerticalAlignBottomOutlined as xt, PushpinOutlined as Tt, VerticalAlignTopOutlined as Pt, MinusCircleOutlined as Ot, PlusOutlined as Gt, PlusCircleFilled as Nn, SettingFilled as Bn, FilterFilled as Dn, ReloadOutlined as Rn, InfoCircleFilled as zn } from "@ant-design/icons-vue";
|
|
8
|
+
import { slice as qt, isFunction as Ie, get as nt, castArray as Le, debounce as wt, pick as Fe, omit as Wt, set as Ee, cloneDeep as ft, sortBy as yt, unionBy as At, uniqueId as Vn, merge as Yn } from "lodash-es";
|
|
9
9
|
import { useStorage as Hn } from "@vueuse/core";
|
|
10
10
|
import Ye from "dayjs";
|
|
11
11
|
import Un from "sortablejs";
|
|
12
12
|
import { JSONPath as Gn } from "jsonpath-plus";
|
|
13
13
|
import { v5 as Wn } from "uuid";
|
|
14
|
-
import
|
|
14
|
+
import ze from "vuedraggable";
|
|
15
15
|
const Qn = {
|
|
16
16
|
// Options.jsx
|
|
17
17
|
items_per_page: "条/页",
|
|
@@ -363,7 +363,7 @@ function _t(a) {
|
|
|
363
363
|
e[t] = e[t] || [], e[t].push(n);
|
|
364
364
|
}), e;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function fe(a) {
|
|
367
367
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++)
|
|
368
368
|
n[t - 1] = arguments[t];
|
|
369
369
|
var r = 0, o = n.length;
|
|
@@ -494,10 +494,10 @@ function Nt(a, e) {
|
|
|
494
494
|
return a;
|
|
495
495
|
}
|
|
496
496
|
var Xt = function(e, n, t, r, o, s) {
|
|
497
|
-
e.required && (!t.hasOwnProperty(e.field) || ae(n, s || e.type)) && r.push(
|
|
497
|
+
e.required && (!t.hasOwnProperty(e.field) || ae(n, s || e.type)) && r.push(fe(o.messages.required, e.fullField));
|
|
498
498
|
}, da = function(e, n, t, r, o) {
|
|
499
|
-
(/^\s+$/.test(n) || n === "") && r.push(
|
|
500
|
-
}, Qe,
|
|
499
|
+
(/^\s+$/.test(n) || n === "") && r.push(fe(o.messages.whitespace, e.fullField));
|
|
500
|
+
}, Qe, fa = function() {
|
|
501
501
|
if (Qe)
|
|
502
502
|
return Qe;
|
|
503
503
|
var a = "[a-fA-F\\d:]", e = function(I) {
|
|
@@ -521,8 +521,8 @@ var Xt = function(e, n, t, r, o, s) {
|
|
|
521
521
|
}, d.v6 = function(b) {
|
|
522
522
|
return b && b.exact ? l : new RegExp("" + e(b) + r + e(b), "g");
|
|
523
523
|
};
|
|
524
|
-
var C = "(?:(?:[a-z]+:)?//)", k = "(?:\\S+(?::\\S*)?@)?", y = d.v4().source, u = d.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", T = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", $ = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", w = "(?::\\d{2,5})?", g = '(?:[/?#][^\\s"]*)?',
|
|
525
|
-
return Qe = new RegExp("(?:^" +
|
|
524
|
+
var C = "(?:(?:[a-z]+:)?//)", k = "(?:\\S+(?::\\S*)?@)?", y = d.v4().source, u = d.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", T = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", $ = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", w = "(?::\\d{2,5})?", g = '(?:[/?#][^\\s"]*)?', V = "(?:" + C + "|www\\.)" + k + "(?:localhost|" + y + "|" + u + "|" + h + T + $ + ")" + w + g;
|
|
525
|
+
return Qe = new RegExp("(?:^" + V + "$)", "i"), Qe;
|
|
526
526
|
}, Bt = {
|
|
527
527
|
// http://emailregex.com/
|
|
528
528
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
@@ -566,38 +566,38 @@ var Xt = function(e, n, t, r, o, s) {
|
|
|
566
566
|
return typeof e == "string" && e.length <= 320 && !!e.match(Bt.email);
|
|
567
567
|
},
|
|
568
568
|
url: function(e) {
|
|
569
|
-
return typeof e == "string" && e.length <= 2048 && !!e.match(
|
|
569
|
+
return typeof e == "string" && e.length <= 2048 && !!e.match(fa());
|
|
570
570
|
},
|
|
571
571
|
hex: function(e) {
|
|
572
572
|
return typeof e == "string" && !!e.match(Bt.hex);
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, pa = function(e, n, t, r, o) {
|
|
575
575
|
if (e.required && n === void 0) {
|
|
576
576
|
Xt(e, n, t, r, o);
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
579
|
var s = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = e.type;
|
|
580
|
-
s.indexOf(l) > -1 ? Re[l](n) || r.push(
|
|
580
|
+
s.indexOf(l) > -1 ? Re[l](n) || r.push(fe(o.messages.types[l], e.fullField, e.type)) : l && typeof n !== e.type && r.push(fe(o.messages.types[l], e.fullField, e.type));
|
|
581
581
|
}, ma = function(e, n, t, r, o) {
|
|
582
582
|
var s = typeof e.len == "number", l = typeof e.min == "number", d = typeof e.max == "number", C = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, k = n, y = null, u = typeof n == "number", h = typeof n == "string", T = Array.isArray(n);
|
|
583
583
|
if (u ? y = "number" : h ? y = "string" : T && (y = "array"), !y)
|
|
584
584
|
return !1;
|
|
585
|
-
T && (k = n.length), h && (k = n.replace(C, "_").length), s ? k !== e.len && r.push(
|
|
585
|
+
T && (k = n.length), h && (k = n.replace(C, "_").length), s ? k !== e.len && r.push(fe(o.messages[y].len, e.fullField, e.len)) : l && !d && k < e.min ? r.push(fe(o.messages[y].min, e.fullField, e.min)) : d && !l && k > e.max ? r.push(fe(o.messages[y].max, e.fullField, e.max)) : l && d && (k < e.min || k > e.max) && r.push(fe(o.messages[y].range, e.fullField, e.min, e.max));
|
|
586
586
|
}, Ae = "enum", ya = function(e, n, t, r, o) {
|
|
587
|
-
e[Ae] = Array.isArray(e[Ae]) ? e[Ae] : [], e[Ae].indexOf(n) === -1 && r.push(
|
|
587
|
+
e[Ae] = Array.isArray(e[Ae]) ? e[Ae] : [], e[Ae].indexOf(n) === -1 && r.push(fe(o.messages[Ae], e.fullField, e[Ae].join(", ")));
|
|
588
588
|
}, ga = function(e, n, t, r, o) {
|
|
589
589
|
if (e.pattern) {
|
|
590
590
|
if (e.pattern instanceof RegExp)
|
|
591
|
-
e.pattern.lastIndex = 0, e.pattern.test(n) || r.push(
|
|
591
|
+
e.pattern.lastIndex = 0, e.pattern.test(n) || r.push(fe(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
|
|
592
592
|
else if (typeof e.pattern == "string") {
|
|
593
593
|
var s = new RegExp(e.pattern);
|
|
594
|
-
s.test(n) || r.push(
|
|
594
|
+
s.test(n) || r.push(fe(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
}, D = {
|
|
598
598
|
required: Xt,
|
|
599
599
|
whitespace: da,
|
|
600
|
-
type:
|
|
600
|
+
type: pa,
|
|
601
601
|
range: ma,
|
|
602
602
|
enum: ya,
|
|
603
603
|
pattern: ga
|
|
@@ -703,7 +703,7 @@ var Xt = function(e, n, t, r, o, s) {
|
|
|
703
703
|
}, Pa = function(e, n, t, r, o) {
|
|
704
704
|
var s = [], l = Array.isArray(n) ? "array" : typeof n;
|
|
705
705
|
D.required(e, n, r, s, o, l), t(s);
|
|
706
|
-
},
|
|
706
|
+
}, pt = function(e, n, t, r, o) {
|
|
707
707
|
var s = e.type, l = [], d = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
708
708
|
if (d) {
|
|
709
709
|
if (ae(n, s) && !e.required)
|
|
@@ -719,7 +719,7 @@ var Xt = function(e, n, t, r, o, s) {
|
|
|
719
719
|
D.required(e, n, r, s, o);
|
|
720
720
|
}
|
|
721
721
|
t(s);
|
|
722
|
-
},
|
|
722
|
+
}, Ve = {
|
|
723
723
|
string: va,
|
|
724
724
|
method: ha,
|
|
725
725
|
number: ba,
|
|
@@ -732,9 +732,9 @@ var Xt = function(e, n, t, r, o, s) {
|
|
|
732
732
|
enum: Fa,
|
|
733
733
|
pattern: xa,
|
|
734
734
|
date: Ta,
|
|
735
|
-
url:
|
|
736
|
-
hex:
|
|
737
|
-
email:
|
|
735
|
+
url: pt,
|
|
736
|
+
hex: pt,
|
|
737
|
+
email: pt,
|
|
738
738
|
required: Pa,
|
|
739
739
|
any: Oa
|
|
740
740
|
};
|
|
@@ -817,15 +817,15 @@ var $t = Ct(), Me = /* @__PURE__ */ function() {
|
|
|
817
817
|
return C && C(null, l), Promise.resolve(l);
|
|
818
818
|
function k($) {
|
|
819
819
|
var w = [], g = {};
|
|
820
|
-
function
|
|
820
|
+
function V(I) {
|
|
821
821
|
if (Array.isArray(I)) {
|
|
822
|
-
var
|
|
823
|
-
w = (
|
|
822
|
+
var f;
|
|
823
|
+
w = (f = w).concat.apply(f, I);
|
|
824
824
|
} else
|
|
825
825
|
w.push(I);
|
|
826
826
|
}
|
|
827
827
|
for (var b = 0; b < $.length; b++)
|
|
828
|
-
|
|
828
|
+
V($[b]);
|
|
829
829
|
w.length ? (g = _t(w), C(w, g)) : C(null, l);
|
|
830
830
|
}
|
|
831
831
|
if (d.messages) {
|
|
@@ -836,8 +836,8 @@ var $t = Ct(), Me = /* @__PURE__ */ function() {
|
|
|
836
836
|
var u = {}, h = d.keys || Object.keys(this.rules);
|
|
837
837
|
h.forEach(function($) {
|
|
838
838
|
var w = s.rules[$], g = l[$];
|
|
839
|
-
w.forEach(function(
|
|
840
|
-
var b =
|
|
839
|
+
w.forEach(function(V) {
|
|
840
|
+
var b = V;
|
|
841
841
|
typeof b.transform == "function" && (l === t && (l = Te({}, l)), g = l[$] = b.transform(g)), typeof b == "function" ? b = {
|
|
842
842
|
validator: b
|
|
843
843
|
} : b = Te({}, b), b.validator = s.getValidationMethod(b), b.validator && (b.field = $, b.fullField = b.fullField || $, b.type = s.getType(b), u[$] = u[$] || [], u[$].push({
|
|
@@ -850,8 +850,8 @@ var $t = Ct(), Me = /* @__PURE__ */ function() {
|
|
|
850
850
|
});
|
|
851
851
|
var T = {};
|
|
852
852
|
return ia(u, d, function($, w) {
|
|
853
|
-
var g = $.rule,
|
|
854
|
-
|
|
853
|
+
var g = $.rule, V = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
|
|
854
|
+
V = V && (g.required || !g.required && $.value), g.field = $.field;
|
|
855
855
|
function b(L, Y) {
|
|
856
856
|
return Te({}, Y, {
|
|
857
857
|
fullField: g.fullField + "." + L,
|
|
@@ -865,11 +865,11 @@ var $t = Ct(), Me = /* @__PURE__ */ function() {
|
|
|
865
865
|
var Q = Y.map(jt(g, l));
|
|
866
866
|
if (d.first && Q.length)
|
|
867
867
|
return T[g.field] = 1, w(Q);
|
|
868
|
-
if (!
|
|
868
|
+
if (!V)
|
|
869
869
|
w(Q);
|
|
870
870
|
else {
|
|
871
871
|
if (g.required && !$.value)
|
|
872
|
-
return g.message !== void 0 ? Q = [].concat(g.message).map(jt(g, l)) : d.error && (Q = [d.error(g,
|
|
872
|
+
return g.message !== void 0 ? Q = [].concat(g.message).map(jt(g, l)) : d.error && (Q = [d.error(g, fe(d.messages.required, g.field))]), w(Q);
|
|
873
873
|
var be = {};
|
|
874
874
|
g.defaultField && Object.keys($.value).map(function(le) {
|
|
875
875
|
be[le] = g.defaultField;
|
|
@@ -886,20 +886,20 @@ var $t = Ct(), Me = /* @__PURE__ */ function() {
|
|
|
886
886
|
});
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
var
|
|
889
|
+
var f;
|
|
890
890
|
if (g.asyncValidator)
|
|
891
|
-
|
|
891
|
+
f = g.asyncValidator(g, $.value, I, $.source, d);
|
|
892
892
|
else if (g.validator) {
|
|
893
893
|
try {
|
|
894
|
-
|
|
894
|
+
f = g.validator(g, $.value, I, $.source, d);
|
|
895
895
|
} catch (L) {
|
|
896
896
|
console.error == null || console.error(L), d.suppressValidatorError || setTimeout(function() {
|
|
897
897
|
throw L;
|
|
898
898
|
}, 0), I(L.message);
|
|
899
899
|
}
|
|
900
|
-
|
|
900
|
+
f === !0 ? I() : f === !1 ? I(typeof g.message == "function" ? g.message(g.fullField || g.field) : g.message || (g.fullField || g.field) + " fails") : f instanceof Array ? I(f) : f instanceof Error && I(f.message);
|
|
901
901
|
}
|
|
902
|
-
|
|
902
|
+
f && f.then && f.then(function() {
|
|
903
903
|
return I();
|
|
904
904
|
}, function(L) {
|
|
905
905
|
return I(L);
|
|
@@ -908,24 +908,24 @@ var $t = Ct(), Me = /* @__PURE__ */ function() {
|
|
|
908
908
|
k($);
|
|
909
909
|
}, l);
|
|
910
910
|
}, e.getType = function(t) {
|
|
911
|
-
if (t.type === void 0 && t.pattern instanceof RegExp && (t.type = "pattern"), typeof t.validator != "function" && t.type && !
|
|
912
|
-
throw new Error(
|
|
911
|
+
if (t.type === void 0 && t.pattern instanceof RegExp && (t.type = "pattern"), typeof t.validator != "function" && t.type && !Ve.hasOwnProperty(t.type))
|
|
912
|
+
throw new Error(fe("Unknown rule type %s", t.type));
|
|
913
913
|
return t.type || "string";
|
|
914
914
|
}, e.getValidationMethod = function(t) {
|
|
915
915
|
if (typeof t.validator == "function")
|
|
916
916
|
return t.validator;
|
|
917
917
|
var r = Object.keys(t), o = r.indexOf("message");
|
|
918
|
-
return o !== -1 && r.splice(o, 1), r.length === 1 && r[0] === "required" ?
|
|
918
|
+
return o !== -1 && r.splice(o, 1), r.length === 1 && r[0] === "required" ? Ve.required : Ve[this.getType(t)] || void 0;
|
|
919
919
|
}, a;
|
|
920
920
|
}();
|
|
921
921
|
Me.register = function(e, n) {
|
|
922
922
|
if (typeof n != "function")
|
|
923
923
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
924
|
-
|
|
924
|
+
Ve[e] = n;
|
|
925
925
|
};
|
|
926
926
|
Me.warning = Zt;
|
|
927
927
|
Me.messages = $t;
|
|
928
|
-
Me.validators =
|
|
928
|
+
Me.validators = Ve;
|
|
929
929
|
const we = (a) => Object.prototype.toString.call(a).slice(8, -1).toLowerCase(), Dt = (a) => (Aa(a), a.map((e, n) => ({
|
|
930
930
|
...e,
|
|
931
931
|
props: e.props ?? {},
|
|
@@ -1066,7 +1066,7 @@ const Aa = (a) => {
|
|
|
1066
1066
|
}, en = (a) => {
|
|
1067
1067
|
const e = ja(a);
|
|
1068
1068
|
return Wn(e, "1b671a64-40d5-491e-99b0-da01ff1f3341").replace(/-/g, "");
|
|
1069
|
-
}, Na = /* @__PURE__ */
|
|
1069
|
+
}, Na = /* @__PURE__ */ pe({
|
|
1070
1070
|
__name: "EllipsisElement",
|
|
1071
1071
|
props: {
|
|
1072
1072
|
/**
|
|
@@ -1150,7 +1150,7 @@ const Aa = (a) => {
|
|
|
1150
1150
|
class: m([
|
|
1151
1151
|
l.$style.ellipsisElement,
|
|
1152
1152
|
{
|
|
1153
|
-
[l.$style.ellipsisElementHasGap]: ![
|
|
1153
|
+
[l.$style.ellipsisElementHasGap]: ![p(G).button, p(G).tag].includes(a.type)
|
|
1154
1154
|
}
|
|
1155
1155
|
])
|
|
1156
1156
|
}, [
|
|
@@ -1190,7 +1190,7 @@ const Aa = (a) => {
|
|
|
1190
1190
|
class: m([
|
|
1191
1191
|
l.$style.ellipsisTag,
|
|
1192
1192
|
{
|
|
1193
|
-
[l.$style.imageEllipsisTag]: a.type ===
|
|
1193
|
+
[l.$style.imageEllipsisTag]: a.type === p(G).image
|
|
1194
1194
|
}
|
|
1195
1195
|
])
|
|
1196
1196
|
}, {
|
|
@@ -1217,7 +1217,7 @@ const Aa = (a) => {
|
|
|
1217
1217
|
}, {
|
|
1218
1218
|
default: _(() => [
|
|
1219
1219
|
d[0] || (d[0] = ne(" 更多 ")),
|
|
1220
|
-
v(
|
|
1220
|
+
v(p(Ln))
|
|
1221
1221
|
]),
|
|
1222
1222
|
_: 1
|
|
1223
1223
|
})
|
|
@@ -1228,12 +1228,12 @@ const Aa = (a) => {
|
|
|
1228
1228
|
], 2);
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
}), Ba = "_ellipsisElement_6fog1_1", Da = "_elementItem_6fog1_6", Ra = "_ellipsisElementHasGap_6fog1_10",
|
|
1231
|
+
}), Ba = "_ellipsisElement_6fog1_1", Da = "_elementItem_6fog1_6", Ra = "_ellipsisElementHasGap_6fog1_10", za = "_flexWrap_6fog1_14", Va = "_ellipsisTag_6fog1_18", Ya = "_imageEllipsisTag_6fog1_22", Ha = "_ellipsisList_6fog1_29", Ua = {
|
|
1232
1232
|
ellipsisElement: Ba,
|
|
1233
1233
|
elementItem: Da,
|
|
1234
1234
|
ellipsisElementHasGap: Ra,
|
|
1235
|
-
flexWrap:
|
|
1236
|
-
ellipsisTag:
|
|
1235
|
+
flexWrap: za,
|
|
1236
|
+
ellipsisTag: Va,
|
|
1237
1237
|
imageEllipsisTag: Ya,
|
|
1238
1238
|
ellipsisList: Ha
|
|
1239
1239
|
}, he = (a, e) => {
|
|
@@ -1243,7 +1243,7 @@ const Aa = (a) => {
|
|
|
1243
1243
|
return n;
|
|
1244
1244
|
}, Ga = {
|
|
1245
1245
|
$style: Ua
|
|
1246
|
-
}, Wa = /* @__PURE__ */ he(Na, [["__cssModules", Ga]]), Qa = { key: 1 }, Ja = /* @__PURE__ */
|
|
1246
|
+
}, Wa = /* @__PURE__ */ he(Na, [["__cssModules", Ga]]), Qa = { key: 1 }, Ja = /* @__PURE__ */ pe({
|
|
1247
1247
|
__name: "TableCellContent",
|
|
1248
1248
|
props: {
|
|
1249
1249
|
/**
|
|
@@ -1294,8 +1294,8 @@ const Aa = (a) => {
|
|
|
1294
1294
|
if (w.startsWith("$")) {
|
|
1295
1295
|
let g = n.get(w);
|
|
1296
1296
|
g || (g = /* @__PURE__ */ new WeakMap(), n.set(w, g));
|
|
1297
|
-
const
|
|
1298
|
-
if (
|
|
1297
|
+
const V = g.get(T);
|
|
1298
|
+
if (V !== void 0) return V;
|
|
1299
1299
|
const b = Gn({ path: w, json: T });
|
|
1300
1300
|
return g.set(T, b), b;
|
|
1301
1301
|
}
|
|
@@ -1323,30 +1323,30 @@ const Aa = (a) => {
|
|
|
1323
1323
|
}), d = j(() => !(["", void 0, null].includes(r.value) && ![G.component, G.sort].includes(t.value))), C = (h) => typeof h == "string" && /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(h), k = (h) => e.hasRouter && !C(h), y = (h) => k(h) ? "router-link" : "a", u = (h, T) => k(h) ? { to: h, target: T ?? "_blank" } : { href: h, target: T ?? "_blank" };
|
|
1324
1324
|
return (h, T) => {
|
|
1325
1325
|
var b;
|
|
1326
|
-
const $ = E("a-button"), w = E("a-typography-text"), g = E("a-tag"),
|
|
1326
|
+
const $ = E("a-button"), w = E("a-typography-text"), g = E("a-tag"), V = E("a-image");
|
|
1327
1327
|
return d.value ? (x(), U("div", {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
class: m(h.$style.tableCellContent)
|
|
1330
1330
|
}, [
|
|
1331
|
-
t.value ===
|
|
1331
|
+
t.value === p(G).sort ? (x(), B($, {
|
|
1332
1332
|
key: 0,
|
|
1333
1333
|
type: "text",
|
|
1334
1334
|
size: "small",
|
|
1335
|
-
icon: W(
|
|
1335
|
+
icon: W(p(Oe)),
|
|
1336
1336
|
class: m([h.$style.draggableIcon, "super-table-column-draggable-handle"])
|
|
1337
1337
|
}, null, 8, ["icon", "class"])) : N("", !0),
|
|
1338
|
-
t.value ===
|
|
1338
|
+
t.value === p(G).component ? (x(), B(et(a.column.component), ct(ue({ key: 1 }, s.value)), null, 16)) : Ut([(b = a.column) == null ? void 0 : b.key, a.index, o.value], () => (x(), B(Wa, {
|
|
1339
1339
|
key: 2,
|
|
1340
1340
|
list: o.value,
|
|
1341
|
-
"max-count": t.value ===
|
|
1341
|
+
"max-count": t.value === p(G).text ? 1 : a.column.maxCount,
|
|
1342
1342
|
record: a.record,
|
|
1343
1343
|
type: t.value,
|
|
1344
1344
|
"cell-width": a.column.width,
|
|
1345
|
-
"display-type": [
|
|
1345
|
+
"display-type": [p(G).button].includes(t.value) ? "dropdown" : "popover"
|
|
1346
1346
|
}, {
|
|
1347
|
-
default: _(({ item: I, index:
|
|
1348
|
-
t.value ===
|
|
1349
|
-
|
|
1347
|
+
default: _(({ item: I, index: f, inPopover: L }) => [
|
|
1348
|
+
t.value === p(G).text ? (x(), U(Pe, { key: 0 }, [
|
|
1349
|
+
f === 0 ? (x(), B(w, {
|
|
1350
1350
|
key: 0,
|
|
1351
1351
|
ellipsis: { tooltip: l.value },
|
|
1352
1352
|
content: String(I.label),
|
|
@@ -1356,25 +1356,25 @@ const Aa = (a) => {
|
|
|
1356
1356
|
class: m(h.$style.textListItem)
|
|
1357
1357
|
}, Ce(I.label), 3))
|
|
1358
1358
|
], 64)) : N("", !0),
|
|
1359
|
-
t.value ===
|
|
1359
|
+
t.value === p(G).link ? (x(), B(et(y(I.to)), ct(ue({ key: 1 }, u(I.to, I.target))), {
|
|
1360
1360
|
default: _(() => [
|
|
1361
1361
|
a.column.ellipsis ? (x(), B(w, {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
ellipsis: { tooltip: I.label },
|
|
1364
1364
|
content: String(I.label),
|
|
1365
|
-
style: re({ color:
|
|
1365
|
+
style: re({ color: p(oe).colorPrimary }),
|
|
1366
1366
|
class: m(h.$style.antTypographyEllipsis)
|
|
1367
1367
|
}, null, 8, ["ellipsis", "content", "style", "class"])) : (x(), U("span", Qa, Ce(I.label), 1))
|
|
1368
1368
|
]),
|
|
1369
1369
|
_: 2
|
|
1370
1370
|
}, 1040)) : N("", !0),
|
|
1371
|
-
t.value ===
|
|
1371
|
+
t.value === p(G).tag ? (x(), B(g, ct(ue({ key: 2 }, I)), {
|
|
1372
1372
|
default: _(() => [
|
|
1373
1373
|
ne(Ce(I.label), 1)
|
|
1374
1374
|
]),
|
|
1375
1375
|
_: 2
|
|
1376
1376
|
}, 1040)) : N("", !0),
|
|
1377
|
-
t.value ===
|
|
1377
|
+
t.value === p(G).button ? (x(), B($, ue({
|
|
1378
1378
|
key: 3,
|
|
1379
1379
|
type: "link",
|
|
1380
1380
|
size: "small",
|
|
@@ -1390,7 +1390,7 @@ const Aa = (a) => {
|
|
|
1390
1390
|
]),
|
|
1391
1391
|
_: 2
|
|
1392
1392
|
}, 1040, ["disabled", "onClick"])) : N("", !0),
|
|
1393
|
-
t.value ===
|
|
1393
|
+
t.value === p(G).image ? (x(), B(V, {
|
|
1394
1394
|
key: 4,
|
|
1395
1395
|
width: L ? 100 : 32,
|
|
1396
1396
|
height: L ? 100 : 32,
|
|
@@ -1398,7 +1398,7 @@ const Aa = (a) => {
|
|
|
1398
1398
|
style: { objectFit: "cover" }
|
|
1399
1399
|
}, {
|
|
1400
1400
|
previewMask: _(() => [
|
|
1401
|
-
v(
|
|
1401
|
+
v(p(Mn))
|
|
1402
1402
|
]),
|
|
1403
1403
|
_: 2
|
|
1404
1404
|
}, 1032, ["width", "height", "src"])) : N("", !0)
|
|
@@ -1415,7 +1415,7 @@ const Aa = (a) => {
|
|
|
1415
1415
|
textListItem: er
|
|
1416
1416
|
}, nr = {
|
|
1417
1417
|
$style: tr
|
|
1418
|
-
}, ar = /* @__PURE__ */ he(Ja, [["__cssModules", nr]]), rr =
|
|
1418
|
+
}, ar = /* @__PURE__ */ he(Ja, [["__cssModules", nr]]), rr = pe({
|
|
1419
1419
|
name: "VNodes",
|
|
1420
1420
|
props: {
|
|
1421
1421
|
vnodes: {
|
|
@@ -1426,7 +1426,7 @@ const Aa = (a) => {
|
|
|
1426
1426
|
render() {
|
|
1427
1427
|
return this.vnodes;
|
|
1428
1428
|
}
|
|
1429
|
-
}), or = /* @__PURE__ */
|
|
1429
|
+
}), or = /* @__PURE__ */ pe({
|
|
1430
1430
|
__name: "TableConfig",
|
|
1431
1431
|
props: {
|
|
1432
1432
|
/**
|
|
@@ -1442,17 +1442,17 @@ const Aa = (a) => {
|
|
|
1442
1442
|
emits: ["change"],
|
|
1443
1443
|
setup(a, { emit: e }) {
|
|
1444
1444
|
const n = te(!1), t = a, r = e, o = te([]), s = te([]), l = te([]), d = te([]), C = te(""), k = te(""), y = () => {
|
|
1445
|
-
s.value = o.value.filter((
|
|
1445
|
+
s.value = o.value.filter((f) => f.fixed === "left"), l.value = o.value.filter((f) => !f.fixed), d.value = o.value.filter((f) => f.fixed === "right");
|
|
1446
1446
|
};
|
|
1447
1447
|
Ft(() => {
|
|
1448
1448
|
o.value = t.columns, y();
|
|
1449
1449
|
});
|
|
1450
|
-
const u = ({ title:
|
|
1450
|
+
const u = ({ title: f }) => {
|
|
1451
1451
|
var Y;
|
|
1452
1452
|
const L = (Y = k.value) == null ? void 0 : Y.trim();
|
|
1453
|
-
return L ?
|
|
1454
|
-
}, h = j(() => o.value.every((
|
|
1455
|
-
k.value =
|
|
1453
|
+
return L ? f.toLocaleLowerCase().includes(L.toLocaleLowerCase()) : !0;
|
|
1454
|
+
}, h = j(() => o.value.every((f) => !u(f))), T = wt((f) => {
|
|
1455
|
+
k.value = f.target.value;
|
|
1456
1456
|
}, 300), $ = () => {
|
|
1457
1457
|
o.value = [
|
|
1458
1458
|
...s.value,
|
|
@@ -1462,28 +1462,28 @@ const Aa = (a) => {
|
|
|
1462
1462
|
}, w = () => {
|
|
1463
1463
|
$(), r(
|
|
1464
1464
|
"change",
|
|
1465
|
-
o.value.map((
|
|
1465
|
+
o.value.map((f) => Fe(f, vt))
|
|
1466
1466
|
);
|
|
1467
1467
|
}, g = j({
|
|
1468
1468
|
get() {
|
|
1469
|
-
return o.value.every((
|
|
1469
|
+
return o.value.every((f) => f.visible);
|
|
1470
1470
|
},
|
|
1471
|
-
set(
|
|
1471
|
+
set(f) {
|
|
1472
1472
|
o.value.forEach((L) => {
|
|
1473
|
-
L.visible =
|
|
1473
|
+
L.visible = f;
|
|
1474
1474
|
}), w();
|
|
1475
1475
|
}
|
|
1476
|
-
}),
|
|
1477
|
-
const
|
|
1478
|
-
return
|
|
1476
|
+
}), V = j(() => {
|
|
1477
|
+
const f = o.value.filter((L) => L.visible).length;
|
|
1478
|
+
return f > 0 && f < o.value.length;
|
|
1479
1479
|
}), b = () => {
|
|
1480
1480
|
r("change", []);
|
|
1481
|
-
}, I = (
|
|
1482
|
-
|
|
1481
|
+
}, I = (f, L) => {
|
|
1482
|
+
f.fixed = L, y(), $(), w();
|
|
1483
1483
|
};
|
|
1484
1484
|
return Ft(() => {
|
|
1485
1485
|
n.value || (C.value = "", k.value = "");
|
|
1486
|
-
}), (
|
|
1486
|
+
}), (f, L) => {
|
|
1487
1487
|
const Y = E("a-button"), Q = E("a-checkbox"), be = E("a-input"), me = E("a-typography-text"), ie = E("a-tooltip"), le = E("a-popover"), se = E("a-config-provider");
|
|
1488
1488
|
return x(), B(se, { theme: {
|
|
1489
1489
|
token: {
|
|
@@ -1501,15 +1501,15 @@ const Aa = (a) => {
|
|
|
1501
1501
|
}, {
|
|
1502
1502
|
content: _(() => [
|
|
1503
1503
|
H("div", {
|
|
1504
|
-
class: m(
|
|
1504
|
+
class: m(f.$style.tableConfig)
|
|
1505
1505
|
}, [
|
|
1506
1506
|
H("div", {
|
|
1507
|
-
class: m(
|
|
1507
|
+
class: m(f.$style.tableConfigActions)
|
|
1508
1508
|
}, [
|
|
1509
1509
|
v(Q, {
|
|
1510
1510
|
checked: g.value,
|
|
1511
1511
|
"onUpdate:checked": L[0] || (L[0] = (A) => g.value = A),
|
|
1512
|
-
indeterminate:
|
|
1512
|
+
indeterminate: V.value
|
|
1513
1513
|
}, {
|
|
1514
1514
|
default: _(() => L[3] || (L[3] = [
|
|
1515
1515
|
ne(" 全选 ")
|
|
@@ -1528,29 +1528,29 @@ const Aa = (a) => {
|
|
|
1528
1528
|
})
|
|
1529
1529
|
], 2),
|
|
1530
1530
|
H("div", {
|
|
1531
|
-
class: m(
|
|
1531
|
+
class: m(f.$style.tableConfigHead)
|
|
1532
1532
|
}, [
|
|
1533
1533
|
v(be, {
|
|
1534
1534
|
value: C.value,
|
|
1535
1535
|
"onUpdate:value": L[1] || (L[1] = (A) => C.value = A),
|
|
1536
1536
|
placeholder: "搜索标题",
|
|
1537
|
-
onChange:
|
|
1537
|
+
onChange: p(T)
|
|
1538
1538
|
}, null, 8, ["value", "onChange"])
|
|
1539
1539
|
], 2),
|
|
1540
1540
|
H("div", {
|
|
1541
|
-
class: m(
|
|
1541
|
+
class: m(f.$style.tableConfigContent)
|
|
1542
1542
|
}, [
|
|
1543
1543
|
s.value.some((A) => u(A)) ? (x(), U("div", {
|
|
1544
1544
|
key: 0,
|
|
1545
|
-
class: m(
|
|
1545
|
+
class: m(f.$style.columnGroup)
|
|
1546
1546
|
}, [
|
|
1547
1547
|
H("div", {
|
|
1548
|
-
class: m(
|
|
1548
|
+
class: m(f.$style.groupTitle)
|
|
1549
1549
|
}, "固定在左侧", 2),
|
|
1550
|
-
v(
|
|
1550
|
+
v(p(ze), {
|
|
1551
1551
|
list: s.value,
|
|
1552
1552
|
"item-key": "key",
|
|
1553
|
-
class: m(
|
|
1553
|
+
class: m(f.$style.columnList),
|
|
1554
1554
|
handle: ".table-column-draggable-handle",
|
|
1555
1555
|
disabled: s.value.length <= 1,
|
|
1556
1556
|
onEnd: w
|
|
@@ -1558,15 +1558,15 @@ const Aa = (a) => {
|
|
|
1558
1558
|
item: _(({ element: A }) => [
|
|
1559
1559
|
u(A) ? (x(), U("div", {
|
|
1560
1560
|
key: 0,
|
|
1561
|
-
class: m(
|
|
1562
|
-
style: re({ background:
|
|
1561
|
+
class: m(f.$style.columnItem),
|
|
1562
|
+
style: re({ background: p(oe).colorBgContainer })
|
|
1563
1563
|
}, [
|
|
1564
1564
|
v(Y, {
|
|
1565
1565
|
type: "text",
|
|
1566
1566
|
size: "small",
|
|
1567
|
-
icon: W(
|
|
1568
|
-
style: re({ color:
|
|
1569
|
-
class: m(["table-column-draggable-handle",
|
|
1567
|
+
icon: W(p(Oe)),
|
|
1568
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1569
|
+
class: m(["table-column-draggable-handle", f.$style.dragIcon])
|
|
1570
1570
|
}, null, 8, ["icon", "style", "class"]),
|
|
1571
1571
|
v(Q, {
|
|
1572
1572
|
checked: A.visible,
|
|
@@ -1576,21 +1576,21 @@ const Aa = (a) => {
|
|
|
1576
1576
|
v(me, {
|
|
1577
1577
|
ellipsis: { tooltip: A.title },
|
|
1578
1578
|
content: A.title,
|
|
1579
|
-
class: m([
|
|
1579
|
+
class: m([f.$style.columnItemContent, f.$style.dragHandle, "table-column-draggable-handle"]),
|
|
1580
1580
|
onClick: () => {
|
|
1581
1581
|
A.visible = !A.visible, w();
|
|
1582
1582
|
}
|
|
1583
1583
|
}, null, 8, ["ellipsis", "content", "class", "onClick"]),
|
|
1584
1584
|
H("div", {
|
|
1585
|
-
class: m(
|
|
1585
|
+
class: m(f.$style.fixedActions)
|
|
1586
1586
|
}, [
|
|
1587
1587
|
v(ie, { title: "固定在右侧" }, {
|
|
1588
1588
|
default: _(() => [
|
|
1589
1589
|
v(Y, {
|
|
1590
1590
|
type: "text",
|
|
1591
1591
|
size: "small",
|
|
1592
|
-
icon: W(
|
|
1593
|
-
style: re({ color:
|
|
1592
|
+
icon: W(p(xt)),
|
|
1593
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1594
1594
|
onClick: (R) => I(A, "right")
|
|
1595
1595
|
}, null, 8, ["icon", "style", "onClick"])
|
|
1596
1596
|
]),
|
|
@@ -1601,8 +1601,8 @@ const Aa = (a) => {
|
|
|
1601
1601
|
v(Y, {
|
|
1602
1602
|
type: "text",
|
|
1603
1603
|
size: "small",
|
|
1604
|
-
icon: W(
|
|
1605
|
-
style: re({ color:
|
|
1604
|
+
icon: W(p(Tt)),
|
|
1605
|
+
style: re({ color: p(oe).colorPrimary }),
|
|
1606
1606
|
onClick: (R) => I(A, !1)
|
|
1607
1607
|
}, null, 8, ["icon", "style", "onClick"])
|
|
1608
1608
|
]),
|
|
@@ -1616,15 +1616,15 @@ const Aa = (a) => {
|
|
|
1616
1616
|
], 2)) : N("", !0),
|
|
1617
1617
|
l.value.some((A) => u(A)) ? (x(), U("div", {
|
|
1618
1618
|
key: 1,
|
|
1619
|
-
class: m(
|
|
1619
|
+
class: m(f.$style.columnGroup)
|
|
1620
1620
|
}, [
|
|
1621
1621
|
H("div", {
|
|
1622
|
-
class: m(
|
|
1622
|
+
class: m(f.$style.groupTitle)
|
|
1623
1623
|
}, "不固定", 2),
|
|
1624
|
-
v(
|
|
1624
|
+
v(p(ze), {
|
|
1625
1625
|
list: l.value,
|
|
1626
1626
|
"item-key": "key",
|
|
1627
|
-
class: m(
|
|
1627
|
+
class: m(f.$style.columnList),
|
|
1628
1628
|
handle: ".table-column-draggable-handle",
|
|
1629
1629
|
disabled: l.value.length <= 1,
|
|
1630
1630
|
onEnd: w
|
|
@@ -1632,15 +1632,15 @@ const Aa = (a) => {
|
|
|
1632
1632
|
item: _(({ element: A }) => [
|
|
1633
1633
|
u(A) ? (x(), U("div", {
|
|
1634
1634
|
key: 0,
|
|
1635
|
-
class: m(
|
|
1636
|
-
style: re({ background:
|
|
1635
|
+
class: m(f.$style.columnItem),
|
|
1636
|
+
style: re({ background: p(oe).colorBgContainer })
|
|
1637
1637
|
}, [
|
|
1638
1638
|
v(Y, {
|
|
1639
1639
|
type: "text",
|
|
1640
1640
|
size: "small",
|
|
1641
|
-
icon: W(
|
|
1642
|
-
style: re({ color:
|
|
1643
|
-
class: m(["table-column-draggable-handle",
|
|
1641
|
+
icon: W(p(Oe)),
|
|
1642
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1643
|
+
class: m(["table-column-draggable-handle", f.$style.dragIcon])
|
|
1644
1644
|
}, null, 8, ["icon", "style", "class"]),
|
|
1645
1645
|
v(Q, {
|
|
1646
1646
|
checked: A.visible,
|
|
@@ -1650,21 +1650,21 @@ const Aa = (a) => {
|
|
|
1650
1650
|
v(me, {
|
|
1651
1651
|
ellipsis: { tooltip: A.title },
|
|
1652
1652
|
content: A.title,
|
|
1653
|
-
class: m([
|
|
1653
|
+
class: m([f.$style.columnItemContent, f.$style.dragHandle, "table-column-draggable-handle"]),
|
|
1654
1654
|
onClick: () => {
|
|
1655
1655
|
A.visible = !A.visible, w();
|
|
1656
1656
|
}
|
|
1657
1657
|
}, null, 8, ["ellipsis", "content", "class", "onClick"]),
|
|
1658
1658
|
H("div", {
|
|
1659
|
-
class: m(
|
|
1659
|
+
class: m(f.$style.fixedActions)
|
|
1660
1660
|
}, [
|
|
1661
1661
|
v(ie, { title: "固定在左侧" }, {
|
|
1662
1662
|
default: _(() => [
|
|
1663
1663
|
v(Y, {
|
|
1664
1664
|
type: "text",
|
|
1665
1665
|
size: "small",
|
|
1666
|
-
icon: W(
|
|
1667
|
-
style: re({ color:
|
|
1666
|
+
icon: W(p(Pt)),
|
|
1667
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1668
1668
|
onClick: (R) => I(A, "left")
|
|
1669
1669
|
}, null, 8, ["icon", "style", "onClick"])
|
|
1670
1670
|
]),
|
|
@@ -1675,8 +1675,8 @@ const Aa = (a) => {
|
|
|
1675
1675
|
v(Y, {
|
|
1676
1676
|
type: "text",
|
|
1677
1677
|
size: "small",
|
|
1678
|
-
icon: W(
|
|
1679
|
-
style: re({ color:
|
|
1678
|
+
icon: W(p(xt)),
|
|
1679
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1680
1680
|
onClick: (R) => I(A, "right")
|
|
1681
1681
|
}, null, 8, ["icon", "style", "onClick"])
|
|
1682
1682
|
]),
|
|
@@ -1690,15 +1690,15 @@ const Aa = (a) => {
|
|
|
1690
1690
|
], 2)) : N("", !0),
|
|
1691
1691
|
d.value.some((A) => u(A)) ? (x(), U("div", {
|
|
1692
1692
|
key: 2,
|
|
1693
|
-
class: m(
|
|
1693
|
+
class: m(f.$style.columnGroup)
|
|
1694
1694
|
}, [
|
|
1695
1695
|
H("div", {
|
|
1696
|
-
class: m(
|
|
1696
|
+
class: m(f.$style.groupTitle)
|
|
1697
1697
|
}, "固定在右侧", 2),
|
|
1698
|
-
v(
|
|
1698
|
+
v(p(ze), {
|
|
1699
1699
|
list: d.value,
|
|
1700
1700
|
"item-key": "key",
|
|
1701
|
-
class: m(
|
|
1701
|
+
class: m(f.$style.columnList),
|
|
1702
1702
|
handle: ".table-column-draggable-handle",
|
|
1703
1703
|
disabled: d.value.length <= 1,
|
|
1704
1704
|
onEnd: w
|
|
@@ -1706,15 +1706,15 @@ const Aa = (a) => {
|
|
|
1706
1706
|
item: _(({ element: A }) => [
|
|
1707
1707
|
u(A) ? (x(), U("div", {
|
|
1708
1708
|
key: 0,
|
|
1709
|
-
class: m(
|
|
1710
|
-
style: re({ background:
|
|
1709
|
+
class: m(f.$style.columnItem),
|
|
1710
|
+
style: re({ background: p(oe).colorBgContainer })
|
|
1711
1711
|
}, [
|
|
1712
1712
|
v(Y, {
|
|
1713
1713
|
type: "text",
|
|
1714
1714
|
size: "small",
|
|
1715
|
-
icon: W(
|
|
1716
|
-
style: re({ color:
|
|
1717
|
-
class: m(["table-column-draggable-handle",
|
|
1715
|
+
icon: W(p(Oe)),
|
|
1716
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1717
|
+
class: m(["table-column-draggable-handle", f.$style.dragIcon])
|
|
1718
1718
|
}, null, 8, ["icon", "style", "class"]),
|
|
1719
1719
|
v(Q, {
|
|
1720
1720
|
checked: A.visible,
|
|
@@ -1724,21 +1724,21 @@ const Aa = (a) => {
|
|
|
1724
1724
|
v(me, {
|
|
1725
1725
|
ellipsis: { tooltip: A.title },
|
|
1726
1726
|
content: A.title,
|
|
1727
|
-
class: m([
|
|
1727
|
+
class: m([f.$style.columnItemContent, f.$style.dragHandle, "table-column-draggable-handle"]),
|
|
1728
1728
|
onClick: () => {
|
|
1729
1729
|
A.visible = !A.visible, w();
|
|
1730
1730
|
}
|
|
1731
1731
|
}, null, 8, ["ellipsis", "content", "class", "onClick"]),
|
|
1732
1732
|
H("div", {
|
|
1733
|
-
class: m(
|
|
1733
|
+
class: m(f.$style.fixedActions)
|
|
1734
1734
|
}, [
|
|
1735
1735
|
v(ie, { title: "固定在左侧" }, {
|
|
1736
1736
|
default: _(() => [
|
|
1737
1737
|
v(Y, {
|
|
1738
1738
|
type: "text",
|
|
1739
1739
|
size: "small",
|
|
1740
|
-
icon: W(
|
|
1741
|
-
style: re({ color:
|
|
1740
|
+
icon: W(p(Pt)),
|
|
1741
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
1742
1742
|
onClick: (R) => I(A, "left")
|
|
1743
1743
|
}, null, 8, ["icon", "style", "onClick"])
|
|
1744
1744
|
]),
|
|
@@ -1749,8 +1749,8 @@ const Aa = (a) => {
|
|
|
1749
1749
|
v(Y, {
|
|
1750
1750
|
type: "text",
|
|
1751
1751
|
size: "small",
|
|
1752
|
-
icon: W(
|
|
1753
|
-
style: re({ color:
|
|
1752
|
+
icon: W(p(Tt)),
|
|
1753
|
+
style: re({ color: p(oe).colorPrimary }),
|
|
1754
1754
|
onClick: (R) => I(A, !1)
|
|
1755
1755
|
}, null, 8, ["icon", "style", "onClick"])
|
|
1756
1756
|
]),
|
|
@@ -1764,8 +1764,8 @@ const Aa = (a) => {
|
|
|
1764
1764
|
], 2)) : N("", !0),
|
|
1765
1765
|
h.value ? (x(), U("div", {
|
|
1766
1766
|
key: 3,
|
|
1767
|
-
class: m(
|
|
1768
|
-
style: re({ color:
|
|
1767
|
+
class: m(f.$style.emptyText),
|
|
1768
|
+
style: re({ color: p(oe).colorTextSecondary })
|
|
1769
1769
|
}, " 未找到相关查询项 ", 6)) : N("", !0)
|
|
1770
1770
|
], 2)
|
|
1771
1771
|
], 2)
|
|
@@ -1773,8 +1773,8 @@ const Aa = (a) => {
|
|
|
1773
1773
|
default: _(() => [
|
|
1774
1774
|
v(Y, {
|
|
1775
1775
|
type: "text",
|
|
1776
|
-
icon: W(
|
|
1777
|
-
class: m(
|
|
1776
|
+
icon: W(p(jn)),
|
|
1777
|
+
class: m(f.$style.configBtn)
|
|
1778
1778
|
}, null, 8, ["icon", "class"])
|
|
1779
1779
|
]),
|
|
1780
1780
|
_: 1
|
|
@@ -1784,15 +1784,15 @@ const Aa = (a) => {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
|
-
}), lr = "
|
|
1787
|
+
}), lr = "_configBtn_fstz6_1", sr = "_tableConfig_fstz6_9", ir = "_tableConfigHead_fstz6_12", ur = "_tableConfigActions_fstz6_15", cr = "_tableConfigContent_fstz6_22", dr = "_columnGroup_fstz6_28", fr = "_groupTitle_fstz6_28", pr = "_columnList_fstz6_35", mr = "_columnItem_fstz6_39", yr = "_columnItemContent_fstz6_47", gr = "_dragIcon_fstz6_51", vr = "_dragHandle_fstz6_54", hr = "_fixedActions_fstz6_57", br = "_emptyText_fstz6_65", _r = {
|
|
1788
1788
|
configBtn: lr,
|
|
1789
1789
|
tableConfig: sr,
|
|
1790
1790
|
tableConfigHead: ir,
|
|
1791
1791
|
tableConfigActions: ur,
|
|
1792
1792
|
tableConfigContent: cr,
|
|
1793
1793
|
columnGroup: dr,
|
|
1794
|
-
groupTitle:
|
|
1795
|
-
columnList:
|
|
1794
|
+
groupTitle: fr,
|
|
1795
|
+
columnList: pr,
|
|
1796
1796
|
columnItem: mr,
|
|
1797
1797
|
columnItemContent: yr,
|
|
1798
1798
|
dragIcon: gr,
|
|
@@ -1801,7 +1801,7 @@ const Aa = (a) => {
|
|
|
1801
1801
|
emptyText: br
|
|
1802
1802
|
}, Cr = {
|
|
1803
1803
|
$style: _r
|
|
1804
|
-
}, $r = /* @__PURE__ */ he(or, [["__cssModules", Cr]]), wr = /* @__PURE__ */
|
|
1804
|
+
}, $r = /* @__PURE__ */ he(or, [["__cssModules", Cr]]), wr = /* @__PURE__ */ pe({
|
|
1805
1805
|
__name: "DynamicList",
|
|
1806
1806
|
props: {
|
|
1807
1807
|
/**
|
|
@@ -1927,7 +1927,7 @@ const Aa = (a) => {
|
|
|
1927
1927
|
return ke(
|
|
1928
1928
|
() => o.value,
|
|
1929
1929
|
() => {
|
|
1930
|
-
t("update:value",
|
|
1930
|
+
t("update:value", p(o.value)), t("change", p(o.value)), r.onFieldChange();
|
|
1931
1931
|
},
|
|
1932
1932
|
{
|
|
1933
1933
|
deep: !0,
|
|
@@ -1936,7 +1936,7 @@ const Aa = (a) => {
|
|
|
1936
1936
|
), ke(
|
|
1937
1937
|
() => n.value,
|
|
1938
1938
|
() => {
|
|
1939
|
-
o.value =
|
|
1939
|
+
o.value = p(n.value);
|
|
1940
1940
|
},
|
|
1941
1941
|
{
|
|
1942
1942
|
deep: !0,
|
|
@@ -1945,7 +1945,7 @@ const Aa = (a) => {
|
|
|
1945
1945
|
), (C, k) => {
|
|
1946
1946
|
const y = E("a-button");
|
|
1947
1947
|
return x(), U(Pe, null, [
|
|
1948
|
-
v(
|
|
1948
|
+
v(p(ze), {
|
|
1949
1949
|
list: o.value,
|
|
1950
1950
|
"item-key": a.itemKey,
|
|
1951
1951
|
disabled: !a.sortable,
|
|
@@ -1971,8 +1971,8 @@ const Aa = (a) => {
|
|
|
1971
1971
|
type: "link",
|
|
1972
1972
|
danger: "",
|
|
1973
1973
|
size: "small",
|
|
1974
|
-
icon: W(
|
|
1975
|
-
},
|
|
1974
|
+
icon: W(p(Ot))
|
|
1975
|
+
}, p(Ie)(a.deleteButtonProps) ? a.deleteButtonProps(u, h) : a.deleteButtonProps, {
|
|
1976
1976
|
onClick: (T) => d(h)
|
|
1977
1977
|
}), {
|
|
1978
1978
|
default: _(() => [
|
|
@@ -1985,8 +1985,8 @@ const Aa = (a) => {
|
|
|
1985
1985
|
class: ["draggable-icon", C.$style.dragIcon],
|
|
1986
1986
|
size: "small",
|
|
1987
1987
|
type: "text",
|
|
1988
|
-
icon: W(
|
|
1989
|
-
},
|
|
1988
|
+
icon: W(p(Oe))
|
|
1989
|
+
}, p(Ie)(a.sortButtonProps) ? a.sortButtonProps(u, h) : a.sortButtonProps), null, 16, ["class", "icon"])) : N("", !0)
|
|
1990
1990
|
], 2)
|
|
1991
1991
|
], 2)
|
|
1992
1992
|
]),
|
|
@@ -1996,8 +1996,8 @@ const Aa = (a) => {
|
|
|
1996
1996
|
o.value.length < a.maxLength ? (x(), B(y, ue({
|
|
1997
1997
|
key: 0,
|
|
1998
1998
|
type: "link",
|
|
1999
|
-
icon: W(
|
|
2000
|
-
},
|
|
1999
|
+
icon: W(p(Gt))
|
|
2000
|
+
}, p(Ie)(a.addButtonProps) ? a.addButtonProps() : a.addButtonProps, {
|
|
2001
2001
|
onClick: k[0] || (k[0] = (u) => l(o.value.length - 1))
|
|
2002
2002
|
}), {
|
|
2003
2003
|
default: _(() => [
|
|
@@ -2017,7 +2017,7 @@ const Aa = (a) => {
|
|
|
2017
2017
|
dragIcon: xr
|
|
2018
2018
|
}, Pr = {
|
|
2019
2019
|
$style: Tr
|
|
2020
|
-
}, Or = /* @__PURE__ */ he(wr, [["__cssModules", Pr]]), qr = /* @__PURE__ */
|
|
2020
|
+
}, Or = /* @__PURE__ */ he(wr, [["__cssModules", Pr]]), qr = /* @__PURE__ */ pe({
|
|
2021
2021
|
__name: "InputGroup",
|
|
2022
2022
|
props: {
|
|
2023
2023
|
/**
|
|
@@ -2070,18 +2070,18 @@ const Aa = (a) => {
|
|
|
2070
2070
|
value: r.value.select,
|
|
2071
2071
|
"onUpdate:value": l[0] || (l[0] = (y) => r.value.select = y),
|
|
2072
2072
|
style: {
|
|
2073
|
-
...
|
|
2073
|
+
...p(nt)(a.formItem, "addonBeforeProps.style", {}),
|
|
2074
2074
|
width: o.value
|
|
2075
2075
|
}
|
|
2076
|
-
},
|
|
2076
|
+
}, p(Wt)(a.formItem.addonBeforeProps, ["style"])), null, 16, ["value", "style"]),
|
|
2077
2077
|
v(C, ue({
|
|
2078
2078
|
value: r.value.value,
|
|
2079
2079
|
"onUpdate:value": l[1] || (l[1] = (y) => r.value.value = y),
|
|
2080
2080
|
style: {
|
|
2081
|
-
...
|
|
2081
|
+
...p(nt)(a.formItem, "props.style", {}),
|
|
2082
2082
|
width: `calc(100% - ${o.value})`
|
|
2083
2083
|
}
|
|
2084
|
-
},
|
|
2084
|
+
}, p(Fe)(a.formItem, ["props"])), null, 16, ["value", "style"])
|
|
2085
2085
|
]),
|
|
2086
2086
|
_: 1
|
|
2087
2087
|
}, 8, ["class"]);
|
|
@@ -2091,7 +2091,7 @@ const Aa = (a) => {
|
|
|
2091
2091
|
inputGroup: Ar
|
|
2092
2092
|
}, Lr = {
|
|
2093
2093
|
$style: Er
|
|
2094
|
-
}, Mr = /* @__PURE__ */ he(qr, [["__cssModules", Lr]]), Je = null, jr = /* @__PURE__ */
|
|
2094
|
+
}, Mr = /* @__PURE__ */ he(qr, [["__cssModules", Lr]]), Je = null, jr = /* @__PURE__ */ pe({
|
|
2095
2095
|
__name: "InputNumberRange",
|
|
2096
2096
|
props: {
|
|
2097
2097
|
/**
|
|
@@ -2145,7 +2145,7 @@ const Aa = (a) => {
|
|
|
2145
2145
|
value: r.value,
|
|
2146
2146
|
"onUpdate:value": d[0] || (d[0] = (T) => r.value = T),
|
|
2147
2147
|
class: [l.$style.inputNumber, l.$style.startInputNumber],
|
|
2148
|
-
placeholder: ((y =
|
|
2148
|
+
placeholder: ((y = p(Le)((k = n.formItem.props) == null ? void 0 : k.placeholder)) == null ? void 0 : y[0]) ?? "请输入"
|
|
2149
2149
|
}), null, 16, ["value", "class", "placeholder"]),
|
|
2150
2150
|
H("span", {
|
|
2151
2151
|
class: m(l.$style.divider)
|
|
@@ -2154,22 +2154,22 @@ const Aa = (a) => {
|
|
|
2154
2154
|
value: o.value,
|
|
2155
2155
|
"onUpdate:value": d[1] || (d[1] = (T) => o.value = T),
|
|
2156
2156
|
class: [l.$style.inputNumber, l.$style.endInputNumber],
|
|
2157
|
-
placeholder: ((h =
|
|
2157
|
+
placeholder: ((h = p(Le)((u = n.formItem.props) == null ? void 0 : u.placeholder)) == null ? void 0 : h[1]) ?? "请输入"
|
|
2158
2158
|
}), null, 16, ["value", "class", "placeholder"])
|
|
2159
2159
|
], 2)
|
|
2160
2160
|
], 2);
|
|
2161
2161
|
};
|
|
2162
2162
|
}
|
|
2163
|
-
}), Nr = "_inputNumberGroup_149g6_1", Br = "_inputNumberGroupContent_149g6_4", Dr = "_inputNumber_149g6_1", Rr = "_startInputNumber_149g6_13",
|
|
2163
|
+
}), Nr = "_inputNumberGroup_149g6_1", Br = "_inputNumberGroupContent_149g6_4", Dr = "_inputNumber_149g6_1", Rr = "_startInputNumber_149g6_13", zr = "_endInputNumber_149g6_21", Vr = "_divider_149g6_29", Yr = {
|
|
2164
2164
|
inputNumberGroup: Nr,
|
|
2165
2165
|
inputNumberGroupContent: Br,
|
|
2166
2166
|
inputNumber: Dr,
|
|
2167
2167
|
startInputNumber: Rr,
|
|
2168
|
-
endInputNumber:
|
|
2169
|
-
divider:
|
|
2168
|
+
endInputNumber: zr,
|
|
2169
|
+
divider: Vr
|
|
2170
2170
|
}, Hr = {
|
|
2171
2171
|
$style: Yr
|
|
2172
|
-
}, Ur = /* @__PURE__ */ he(jr, [["__cssModules", Hr]]), Gr = 8, Wr = /* @__PURE__ */
|
|
2172
|
+
}, Ur = /* @__PURE__ */ he(jr, [["__cssModules", Hr]]), Gr = 8, Wr = /* @__PURE__ */ pe({
|
|
2173
2173
|
__name: "FormFieldItem",
|
|
2174
2174
|
props: {
|
|
2175
2175
|
/**
|
|
@@ -2289,7 +2289,7 @@ const Aa = (a) => {
|
|
|
2289
2289
|
value: a.formItem.label,
|
|
2290
2290
|
disabled: "",
|
|
2291
2291
|
style: re({
|
|
2292
|
-
color:
|
|
2292
|
+
color: p(oe).colorText,
|
|
2293
2293
|
width: `${d.value}px`
|
|
2294
2294
|
}),
|
|
2295
2295
|
class: m([u.$style.formFieldItemLabel, "super-table-filter-form-item-label"])
|
|
@@ -2302,7 +2302,7 @@ const Aa = (a) => {
|
|
|
2302
2302
|
]),
|
|
2303
2303
|
_: 1
|
|
2304
2304
|
}, 8, ["class"])) : (x(), U(Pe, { key: 1 }, [
|
|
2305
|
-
a.formItem.type ===
|
|
2305
|
+
a.formItem.type === p(K).component && a.formItem.showLabel ? (x(), U("span", {
|
|
2306
2306
|
key: 0,
|
|
2307
2307
|
class: m(u.$style.customItemLabel)
|
|
2308
2308
|
}, Ce(a.formItem.label), 3)) : N("", !0),
|
|
@@ -2321,7 +2321,7 @@ const Aa = (a) => {
|
|
|
2321
2321
|
customItemLabel: Zr
|
|
2322
2322
|
}, eo = {
|
|
2323
2323
|
$style: Xr
|
|
2324
|
-
}, tn = /* @__PURE__ */ he(Wr, [["__cssModules", eo]]), to = /* @__PURE__ */
|
|
2324
|
+
}, tn = /* @__PURE__ */ he(Wr, [["__cssModules", eo]]), to = /* @__PURE__ */ pe({
|
|
2325
2325
|
__name: "SceneConfigModal",
|
|
2326
2326
|
props: {
|
|
2327
2327
|
// 当前编辑的场景
|
|
@@ -2364,12 +2364,12 @@ const Aa = (a) => {
|
|
|
2364
2364
|
emits: ["cancel", "search", "form-item-change", "update-form-config"],
|
|
2365
2365
|
setup(a, { expose: e, emit: n }) {
|
|
2366
2366
|
var qe, Ue;
|
|
2367
|
-
const t = a, r = n, o = te(
|
|
2367
|
+
const t = a, r = n, o = te(ft(t.formConfigMap)), s = j(() => yt(
|
|
2368
2368
|
Object.values(o.value).filter(({ visible: P }) => P !== !1),
|
|
2369
2369
|
Se.order
|
|
2370
2370
|
)), l = ["name", "value", "type"], d = s.value.filter((P) => P._selected).map((P) => Fe(P, l)), C = te(!0), k = te(!1), y = te(), u = tt({
|
|
2371
2371
|
name: ((qe = t.currentScene) == null ? void 0 : qe.name) ?? "",
|
|
2372
|
-
items: t.actionType === de.search ? d :
|
|
2372
|
+
items: t.actionType === de.search ? d : ft(((Ue = t.currentScene) == null ? void 0 : Ue.items) ?? [])
|
|
2373
2373
|
}), h = j({
|
|
2374
2374
|
get() {
|
|
2375
2375
|
const P = s.value.filter((F) => !F.fixed);
|
|
@@ -2405,9 +2405,9 @@ const Aa = (a) => {
|
|
|
2405
2405
|
type: "array"
|
|
2406
2406
|
}
|
|
2407
2407
|
]
|
|
2408
|
-
}), g = j(() => u.items.map(({ name: P }) => P)),
|
|
2408
|
+
}), g = j(() => u.items.map(({ name: P }) => P)), V = () => {
|
|
2409
2409
|
const P = s.value.find((F) => !g.value.includes(F.name));
|
|
2410
|
-
return P ? Fe(
|
|
2410
|
+
return P ? Fe(ft(P), l) : {};
|
|
2411
2411
|
}, b = j(() => ({
|
|
2412
2412
|
[de.create]: "新建场景",
|
|
2413
2413
|
[de.update]: "更新场景",
|
|
@@ -2415,7 +2415,7 @@ const Aa = (a) => {
|
|
|
2415
2415
|
})[t.actionType]), I = (P, F) => {
|
|
2416
2416
|
const M = t.formConfigMap[F.name];
|
|
2417
2417
|
M && (F.type = M.type, F.value = M.value, F.label = M.label, L(F.name, F.value));
|
|
2418
|
-
},
|
|
2418
|
+
}, f = (P) => {
|
|
2419
2419
|
const F = t.formConfigMap[P], M = u.items.map((ee) => ee.name), Z = s.value.filter((ee) => !M.includes(ee.name));
|
|
2420
2420
|
return [F, ...Z];
|
|
2421
2421
|
}, L = (P, F) => {
|
|
@@ -2453,7 +2453,7 @@ const Aa = (a) => {
|
|
|
2453
2453
|
u.items = yt(P, "_order").map((M) => Fe(M, l));
|
|
2454
2454
|
return;
|
|
2455
2455
|
}
|
|
2456
|
-
const F =
|
|
2456
|
+
const F = V();
|
|
2457
2457
|
F && u.items.push(F);
|
|
2458
2458
|
})();
|
|
2459
2459
|
const me = (P) => {
|
|
@@ -2519,7 +2519,7 @@ const Aa = (a) => {
|
|
|
2519
2519
|
class: m(P.$style.sceneForm)
|
|
2520
2520
|
}, {
|
|
2521
2521
|
default: _(() => [
|
|
2522
|
-
a.actionType !==
|
|
2522
|
+
a.actionType !== p(de).search || k.value ? (x(), B(Z, {
|
|
2523
2523
|
key: 0,
|
|
2524
2524
|
label: "场景名称",
|
|
2525
2525
|
name: "name",
|
|
@@ -2563,7 +2563,7 @@ const Aa = (a) => {
|
|
|
2563
2563
|
value: u.items,
|
|
2564
2564
|
"onUpdate:value": F[2] || (F[2] = (J) => u.items = J),
|
|
2565
2565
|
"add-button-text": "添加筛选条件",
|
|
2566
|
-
"get-new-item-data":
|
|
2566
|
+
"get-new-item-data": V,
|
|
2567
2567
|
"max-length": s.value.length,
|
|
2568
2568
|
"delete-button-props": me,
|
|
2569
2569
|
sortButtonProps: me,
|
|
@@ -2579,7 +2579,7 @@ const Aa = (a) => {
|
|
|
2579
2579
|
value: J.name,
|
|
2580
2580
|
"onUpdate:value": ($e) => J.name = $e,
|
|
2581
2581
|
"show-search": "",
|
|
2582
|
-
options:
|
|
2582
|
+
options: f(J.name),
|
|
2583
2583
|
"field-names": { value: "name" },
|
|
2584
2584
|
"option-filter-prop": "label",
|
|
2585
2585
|
placeholder: "请选择要筛选的字段名",
|
|
@@ -2610,7 +2610,7 @@ const Aa = (a) => {
|
|
|
2610
2610
|
]),
|
|
2611
2611
|
_: 1
|
|
2612
2612
|
}, 8, ["model", "rules", "class"]),
|
|
2613
|
-
a.actionType ===
|
|
2613
|
+
a.actionType === p(de).search && a.allowCreateScene ? (x(), B(ee, {
|
|
2614
2614
|
key: 0,
|
|
2615
2615
|
checked: k.value,
|
|
2616
2616
|
"onUpdate:checked": F[3] || (F[3] = (J) => k.value = J)
|
|
@@ -2632,7 +2632,7 @@ const Aa = (a) => {
|
|
|
2632
2632
|
fieldComponent: oo
|
|
2633
2633
|
}, so = {
|
|
2634
2634
|
$style: lo
|
|
2635
|
-
}, io = /* @__PURE__ */ he(to, [["__cssModules", so]]), uo = /* @__PURE__ */
|
|
2635
|
+
}, io = /* @__PURE__ */ he(to, [["__cssModules", so]]), uo = /* @__PURE__ */ pe({
|
|
2636
2636
|
__name: "SceneListModal",
|
|
2637
2637
|
props: {
|
|
2638
2638
|
/**
|
|
@@ -2686,7 +2686,7 @@ const Aa = (a) => {
|
|
|
2686
2686
|
);
|
|
2687
2687
|
};
|
|
2688
2688
|
return (y, u) => {
|
|
2689
|
-
const h = E("a-col"), T = E("a-row"), $ = E("a-typography-text"), w = E("a-button"), g = E("a-popconfirm"),
|
|
2689
|
+
const h = E("a-col"), T = E("a-row"), $ = E("a-typography-text"), w = E("a-button"), g = E("a-popconfirm"), V = E("a-empty"), b = E("a-modal");
|
|
2690
2690
|
return x(), B(b, {
|
|
2691
2691
|
open: o.value,
|
|
2692
2692
|
"onUpdate:open": u[0] || (u[0] = (I) => o.value = I),
|
|
@@ -2724,7 +2724,7 @@ const Aa = (a) => {
|
|
|
2724
2724
|
]),
|
|
2725
2725
|
_: 1
|
|
2726
2726
|
}, 8, ["class"]),
|
|
2727
|
-
r.value.length ? (x(), B(
|
|
2727
|
+
r.value.length ? (x(), B(p(ze), {
|
|
2728
2728
|
key: 0,
|
|
2729
2729
|
list: r.value,
|
|
2730
2730
|
"item-key": "id",
|
|
@@ -2756,7 +2756,7 @@ const Aa = (a) => {
|
|
|
2756
2756
|
v(w, {
|
|
2757
2757
|
type: "link",
|
|
2758
2758
|
size: "small",
|
|
2759
|
-
onClick: (
|
|
2759
|
+
onClick: (f) => C(I)
|
|
2760
2760
|
}, {
|
|
2761
2761
|
default: _(() => u[3] || (u[3] = [
|
|
2762
2762
|
ne(" 编辑 ")
|
|
@@ -2765,7 +2765,7 @@ const Aa = (a) => {
|
|
|
2765
2765
|
}, 1032, ["onClick"]),
|
|
2766
2766
|
v(g, {
|
|
2767
2767
|
title: "确定删除?",
|
|
2768
|
-
onConfirm: (
|
|
2768
|
+
onConfirm: (f) => l(I.code)
|
|
2769
2769
|
}, {
|
|
2770
2770
|
default: _(() => [
|
|
2771
2771
|
v(w, {
|
|
@@ -2784,7 +2784,7 @@ const Aa = (a) => {
|
|
|
2784
2784
|
v(w, {
|
|
2785
2785
|
type: "text",
|
|
2786
2786
|
size: "small",
|
|
2787
|
-
icon: W(
|
|
2787
|
+
icon: W(p(Oe)),
|
|
2788
2788
|
class: m(["table-column-draggable-icon", y.$style.dragIcon])
|
|
2789
2789
|
}, null, 8, ["icon", "class"])
|
|
2790
2790
|
]),
|
|
@@ -2795,15 +2795,15 @@ const Aa = (a) => {
|
|
|
2795
2795
|
}, 1032, ["class"])
|
|
2796
2796
|
]),
|
|
2797
2797
|
_: 1
|
|
2798
|
-
}, 8, ["list"])) : (x(), B(
|
|
2798
|
+
}, 8, ["list"])) : (x(), B(V, {
|
|
2799
2799
|
key: 1,
|
|
2800
|
-
image:
|
|
2800
|
+
image: p(An).PRESENTED_IMAGE_SIMPLE
|
|
2801
2801
|
}, null, 8, ["image"]))
|
|
2802
2802
|
], 2),
|
|
2803
2803
|
a.allowCreateScene ? (x(), B(w, {
|
|
2804
2804
|
key: 0,
|
|
2805
2805
|
type: "link",
|
|
2806
|
-
icon: W(
|
|
2806
|
+
icon: W(p(Gt)),
|
|
2807
2807
|
onClick: d
|
|
2808
2808
|
}, {
|
|
2809
2809
|
default: _(() => u[5] || (u[5] = [
|
|
@@ -2816,15 +2816,15 @@ const Aa = (a) => {
|
|
|
2816
2816
|
}, 8, ["open"]);
|
|
2817
2817
|
};
|
|
2818
2818
|
}
|
|
2819
|
-
}), co = "_sceneList_3nrgr_1",
|
|
2819
|
+
}), co = "_sceneList_3nrgr_1", fo = "_sceneListHead_3nrgr_5", po = "_sceneListItem_3nrgr_8", mo = "_col_3nrgr_16", yo = "_dragIcon_3nrgr_20", go = {
|
|
2820
2820
|
sceneList: co,
|
|
2821
|
-
sceneListHead:
|
|
2822
|
-
sceneListItem:
|
|
2821
|
+
sceneListHead: fo,
|
|
2822
|
+
sceneListItem: po,
|
|
2823
2823
|
col: mo,
|
|
2824
2824
|
dragIcon: yo
|
|
2825
2825
|
}, vo = {
|
|
2826
2826
|
$style: go
|
|
2827
|
-
}, ho = /* @__PURE__ */ he(uo, [["__cssModules", vo]]), bo = /* @__PURE__ */
|
|
2827
|
+
}, ho = /* @__PURE__ */ he(uo, [["__cssModules", vo]]), bo = /* @__PURE__ */ pe({
|
|
2828
2828
|
__name: "FormSearchParams",
|
|
2829
2829
|
props: {
|
|
2830
2830
|
/**
|
|
@@ -2889,7 +2889,7 @@ const Aa = (a) => {
|
|
|
2889
2889
|
$style: Co
|
|
2890
2890
|
}, wo = /* @__PURE__ */ he(bo, [["__cssModules", $o]]);
|
|
2891
2891
|
Ye.locale("zh-cn");
|
|
2892
|
-
function
|
|
2892
|
+
function zt(a) {
|
|
2893
2893
|
return Array.from(document.body.children).includes(a);
|
|
2894
2894
|
}
|
|
2895
2895
|
class So {
|
|
@@ -2906,7 +2906,7 @@ class So {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
// 注册dialog
|
|
2908
2908
|
register(e, n) {
|
|
2909
|
-
this.dialogs[e] || (this.dialogs[e] =
|
|
2909
|
+
this.dialogs[e] || (this.dialogs[e] = pe(n));
|
|
2910
2910
|
}
|
|
2911
2911
|
// 注销dialog
|
|
2912
2912
|
unregister(e) {
|
|
@@ -2919,7 +2919,7 @@ class So {
|
|
|
2919
2919
|
console.error(`Dialog "${e}" is not existing, please register it firstly.`);
|
|
2920
2920
|
return;
|
|
2921
2921
|
}
|
|
2922
|
-
const l = document.createElement("div"), d = `dialog_${
|
|
2922
|
+
const l = document.createElement("div"), d = `dialog_${Vn()}`;
|
|
2923
2923
|
l.setAttribute("id", d), document.body.appendChild(l);
|
|
2924
2924
|
const C = yn({
|
|
2925
2925
|
data() {
|
|
@@ -2966,17 +2966,17 @@ class So {
|
|
|
2966
2966
|
var n, t, r;
|
|
2967
2967
|
const e = this.currents.pop();
|
|
2968
2968
|
if (e) {
|
|
2969
|
-
const o =
|
|
2970
|
-
|
|
2969
|
+
const o = zt((n = e._instance) == null ? void 0 : n.vnode.el) ? (t = e._instance) == null ? void 0 : t.vnode.el : (r = e._instance) == null ? void 0 : r.vnode.el.parentElement;
|
|
2970
|
+
zt(o) && document.body.removeChild(o), e.unmount();
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
}
|
|
2974
2974
|
const De = new So();
|
|
2975
|
-
function
|
|
2975
|
+
function Vt(a, e) {
|
|
2976
2976
|
const n = Symbol("dialog");
|
|
2977
2977
|
De.register(n, a);
|
|
2978
2978
|
function t() {
|
|
2979
|
-
De.open(n,
|
|
2979
|
+
De.open(n, p(e));
|
|
2980
2980
|
}
|
|
2981
2981
|
function r() {
|
|
2982
2982
|
De.close();
|
|
@@ -3044,7 +3044,7 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3044
3044
|
updateScene: async () => a,
|
|
3045
3045
|
deleteScene: async () => a
|
|
3046
3046
|
};
|
|
3047
|
-
}, Io = ["innerHTML"], Fo = /* @__PURE__ */
|
|
3047
|
+
}, Io = ["innerHTML"], Fo = /* @__PURE__ */ pe({
|
|
3048
3048
|
__name: "SuperTable",
|
|
3049
3049
|
props: {
|
|
3050
3050
|
/**
|
|
@@ -3159,7 +3159,7 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3159
3159
|
var c, S, O;
|
|
3160
3160
|
const i = (c = vn()) == null ? void 0 : c.appContext.app;
|
|
3161
3161
|
return !!((O = (S = i == null ? void 0 : i.config) == null ? void 0 : S.globalProperties) != null && O.$router);
|
|
3162
|
-
}), l = te(), { openByConfig: d } =
|
|
3162
|
+
}), l = te(), { openByConfig: d } = Vt(io), { openByConfig: C } = Vt(ho), k = Rt(t.columns).reduce(
|
|
3163
3163
|
(i, c) => (i[c.key] = Fe(c, vt), i),
|
|
3164
3164
|
{}
|
|
3165
3165
|
), y = en([location.hostname, location.pathname, t.sceneType].join("")), u = Hn(`superTable_${y}`, {
|
|
@@ -3187,15 +3187,15 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3187
3187
|
} finally {
|
|
3188
3188
|
R.loading = !1;
|
|
3189
3189
|
}
|
|
3190
|
-
}, t.debounceWait),
|
|
3191
|
-
t.enableScene && !
|
|
3190
|
+
}, t.debounceWait), V = () => {
|
|
3191
|
+
t.enableScene && !f.loaded || (R.pagination.current = 1, g());
|
|
3192
3192
|
}, b = te({}), I = (i = []) => {
|
|
3193
3193
|
for (const c in b.value) {
|
|
3194
3194
|
const S = b.value[c], O = i.find((q) => q.name === c);
|
|
3195
3195
|
S.value = O ? O.value : S._defaultValue, S[Se.selected] = !!O, S[Se.orderInScene] = O ? i.findIndex((q) => q.name === (O == null ? void 0 : O.name)) : void 0;
|
|
3196
3196
|
}
|
|
3197
|
-
|
|
3198
|
-
},
|
|
3197
|
+
V();
|
|
3198
|
+
}, f = tt({
|
|
3199
3199
|
list: [],
|
|
3200
3200
|
loading: !1,
|
|
3201
3201
|
submiting: !1,
|
|
@@ -3205,11 +3205,11 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3205
3205
|
code: S,
|
|
3206
3206
|
isCustom: !0,
|
|
3207
3207
|
items: O.filter((q) => !!b.value[q.name]).map((q) => {
|
|
3208
|
-
var
|
|
3208
|
+
var z;
|
|
3209
3209
|
return {
|
|
3210
3210
|
name: q.name,
|
|
3211
3211
|
value: q.value ?? b.value[q.name]._defaultValue,
|
|
3212
|
-
type: (
|
|
3212
|
+
type: (z = b.value[q.name]) == null ? void 0 : z.type
|
|
3213
3213
|
};
|
|
3214
3214
|
})
|
|
3215
3215
|
})));
|
|
@@ -3228,15 +3228,15 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3228
3228
|
);
|
|
3229
3229
|
const Y = async () => {
|
|
3230
3230
|
try {
|
|
3231
|
-
|
|
3231
|
+
f.loading = !0;
|
|
3232
3232
|
const { code: i, data: c = [], msg: S } = await h.value.querySceneList({ type: y });
|
|
3233
3233
|
if (i === 2e3) {
|
|
3234
|
-
const O =
|
|
3235
|
-
|
|
3236
|
-
const q =
|
|
3237
|
-
if (!
|
|
3238
|
-
u.value.sceneCode = null,
|
|
3239
|
-
const
|
|
3234
|
+
const O = f.list.find((z) => z.code === u.value.sceneCode);
|
|
3235
|
+
f.list = qa(c, b.value, u.value.sceneSort);
|
|
3236
|
+
const q = f.list.find((z) => z.code === u.value.sceneCode);
|
|
3237
|
+
if (!f.loaded && $.value) {
|
|
3238
|
+
u.value.sceneCode = null, f.loaded = !0;
|
|
3239
|
+
const z = Object.entries(t.customQueryParams).map(([_e, ut]) => {
|
|
3240
3240
|
var We;
|
|
3241
3241
|
return {
|
|
3242
3242
|
name: _e,
|
|
@@ -3244,14 +3244,14 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3244
3244
|
type: (We = b.value[_e]) == null ? void 0 : We.type
|
|
3245
3245
|
};
|
|
3246
3246
|
});
|
|
3247
|
-
I(
|
|
3247
|
+
I(z);
|
|
3248
3248
|
return;
|
|
3249
3249
|
}
|
|
3250
|
-
(!
|
|
3250
|
+
(!f.loaded || O && O.value !== (q == null ? void 0 : q.value)) && I(q == null ? void 0 : q.items), f.loaded = !0;
|
|
3251
3251
|
} else
|
|
3252
3252
|
dt.error(S);
|
|
3253
3253
|
} finally {
|
|
3254
|
-
|
|
3254
|
+
f.loading = !1;
|
|
3255
3255
|
}
|
|
3256
3256
|
}, Q = ({ code: i, msg: c }) => i === 2e3 ? (dt.success("操作成功"), Y(), Promise.resolve(c)) : (dt.error(c), Promise.reject(c)), be = async ({ name: i, items: c }) => {
|
|
3257
3257
|
try {
|
|
@@ -3283,15 +3283,15 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3283
3283
|
} catch (c) {
|
|
3284
3284
|
return Promise.reject(c);
|
|
3285
3285
|
}
|
|
3286
|
-
}, le = j(() =>
|
|
3286
|
+
}, le = j(() => f.list.length < t.maxSceneCount);
|
|
3287
3287
|
ke(
|
|
3288
|
-
() => [u.value.sceneCode,
|
|
3288
|
+
() => [u.value.sceneCode, f.list],
|
|
3289
3289
|
() => {
|
|
3290
3290
|
if ($.value && !w.value) {
|
|
3291
3291
|
w.value = !0;
|
|
3292
3292
|
return;
|
|
3293
3293
|
}
|
|
3294
|
-
const i = [...L.value, ...
|
|
3294
|
+
const i = [...L.value, ...f.list].find(
|
|
3295
3295
|
(c) => c.code === u.value.sceneCode
|
|
3296
3296
|
);
|
|
3297
3297
|
I((i == null ? void 0 : i.items) ?? []);
|
|
@@ -3312,12 +3312,12 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3312
3312
|
showTotal: (i) => `共${i}条数据`,
|
|
3313
3313
|
...nt(t.tableProps, "pagination", {}),
|
|
3314
3314
|
onShowSizeChange: (i, c) => {
|
|
3315
|
-
var S, O, q,
|
|
3316
|
-
((S = t.tableProps) == null ? void 0 : S.pagination) !== !1 && ((
|
|
3315
|
+
var S, O, q, z;
|
|
3316
|
+
((S = t.tableProps) == null ? void 0 : S.pagination) !== !1 && ((z = (q = (O = t.tableProps) == null ? void 0 : O.pagination) == null ? void 0 : q.onShowSizeChange) == null || z.call(q, 1, c));
|
|
3317
3317
|
},
|
|
3318
3318
|
onChange: (i, c) => {
|
|
3319
|
-
var S, O, q,
|
|
3320
|
-
R.pagination.current = c !== R.pagination.pageSize ? 1 : i, R.pagination.pageSize = c, ((S = t.tableProps) == null ? void 0 : S.pagination) !== !1 && ((
|
|
3319
|
+
var S, O, q, z;
|
|
3320
|
+
R.pagination.current = c !== R.pagination.pageSize ? 1 : i, R.pagination.pageSize = c, ((S = t.tableProps) == null ? void 0 : S.pagination) !== !1 && ((z = (q = (O = t.tableProps) == null ? void 0 : O.pagination) == null ? void 0 : q.onChange) == null || z.call(q, i, c)), g();
|
|
3321
3321
|
}
|
|
3322
3322
|
},
|
|
3323
3323
|
tableLayout: "fixed",
|
|
@@ -3328,9 +3328,9 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3328
3328
|
...((kt = t.tableProps) == null ? void 0 : kt.scroll) ?? {}
|
|
3329
3329
|
},
|
|
3330
3330
|
rowClassName: (i, c, S) => {
|
|
3331
|
-
var
|
|
3331
|
+
var z;
|
|
3332
3332
|
let O = "";
|
|
3333
|
-
const q = (
|
|
3333
|
+
const q = (z = t.tableProps) == null ? void 0 : z.rowClassName;
|
|
3334
3334
|
return Ie(q) ? O = q(i, c, S) : typeof q == "string" && (O = q), [O, se.value].join(" ");
|
|
3335
3335
|
}
|
|
3336
3336
|
}), rt = j(() => {
|
|
@@ -3367,7 +3367,7 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3367
3367
|
title: "",
|
|
3368
3368
|
fixed: "left",
|
|
3369
3369
|
width: 60
|
|
3370
|
-
}, c = qe.value.filter(({ visible:
|
|
3370
|
+
}, c = qe.value.filter(({ visible: z }) => z), S = c.filter((z) => z.fixed === "left").sort((z, _e) => z.index - _e.index), O = c.filter((z) => !z.fixed).sort((z, _e) => z.index - _e.index), q = c.filter((z) => z.fixed === "right").sort((z, _e) => z.index - _e.index);
|
|
3371
3371
|
R.columns = [
|
|
3372
3372
|
...t.sortable ? [i] : [],
|
|
3373
3373
|
...S,
|
|
@@ -3403,12 +3403,12 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3403
3403
|
onEnd: (c) => {
|
|
3404
3404
|
const { oldIndex: S, newIndex: O } = c;
|
|
3405
3405
|
if (S === void 0 || O === void 0) return;
|
|
3406
|
-
const q = ge(R.dataSource), [
|
|
3407
|
-
q.splice(O, 0,
|
|
3406
|
+
const q = ge(R.dataSource), [z] = q.splice(S, 1);
|
|
3407
|
+
q.splice(O, 0, z), r("row-sort-end", q);
|
|
3408
3408
|
}
|
|
3409
3409
|
});
|
|
3410
3410
|
}, Z = (i, c) => {
|
|
3411
|
-
b.value[i].value = c, r("form-item-change", i, c, ge(b.value[i]), st, it), b.value[i].quiet !== !0 &&
|
|
3411
|
+
b.value[i].value = c, r("form-item-change", i, c, ge(b.value[i]), st, it), b.value[i].quiet !== !0 && V();
|
|
3412
3412
|
}, ee = (i, c) => {
|
|
3413
3413
|
T.value = !1;
|
|
3414
3414
|
let S = ge(b.value);
|
|
@@ -3439,22 +3439,22 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3439
3439
|
}, ye = () => {
|
|
3440
3440
|
T.value = !1, C({
|
|
3441
3441
|
props: {
|
|
3442
|
-
list:
|
|
3443
|
-
allowCreateScene:
|
|
3442
|
+
list: f.list,
|
|
3443
|
+
allowCreateScene: p(le),
|
|
3444
3444
|
onCreate: () => ee(de.create),
|
|
3445
3445
|
onUpdate: (i) => ee(de.update, i),
|
|
3446
3446
|
onDelete: (i) => ie(i),
|
|
3447
3447
|
onSort: (i) => {
|
|
3448
|
-
u.value.sceneSort = i,
|
|
3448
|
+
u.value.sceneSort = i, f.list = f.list.sort((c, S) => i.indexOf(c.code) - i.indexOf(S.code));
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
3451
|
});
|
|
3452
3452
|
}, ot = async (i) => {
|
|
3453
3453
|
await $n();
|
|
3454
|
-
const c =
|
|
3454
|
+
const c = f.list.find((S) => S.code === i);
|
|
3455
3455
|
r("scene-change", c);
|
|
3456
3456
|
}, lt = ({ name: i }) => {
|
|
3457
|
-
Ee(b.value, `${i}._selected`, !1),
|
|
3457
|
+
Ee(b.value, `${i}._selected`, !1), V();
|
|
3458
3458
|
}, Ge = (i) => b.value[i], J = (i, c, S) => {
|
|
3459
3459
|
if (Kt.includes(c))
|
|
3460
3460
|
return xe("setFormItem error,", `form item with prop "${i}" is readonly`);
|
|
@@ -3508,14 +3508,14 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3508
3508
|
getTableData: an,
|
|
3509
3509
|
setTableData: rn,
|
|
3510
3510
|
setTableDataItem: on,
|
|
3511
|
-
onRefresh:
|
|
3511
|
+
onRefresh: V
|
|
3512
3512
|
}, ln = {
|
|
3513
3513
|
...st,
|
|
3514
3514
|
...it,
|
|
3515
|
-
onRefresh:
|
|
3515
|
+
onRefresh: V,
|
|
3516
3516
|
isInitialized: o
|
|
3517
3517
|
};
|
|
3518
|
-
e(ln), ke(() => [...t.refreshDeps],
|
|
3518
|
+
e(ln), ke(() => [...t.refreshDeps], V, {
|
|
3519
3519
|
deep: !0,
|
|
3520
3520
|
immediate: !0
|
|
3521
3521
|
}), ke(
|
|
@@ -3536,13 +3536,13 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3536
3536
|
});
|
|
3537
3537
|
const sn = {
|
|
3538
3538
|
token: {
|
|
3539
|
-
borderRadius:
|
|
3539
|
+
borderRadius: 2
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
3542
3542
|
return (i, c) => {
|
|
3543
|
-
const S = E("a-form-item"), O = E("a-button"), q = E("a-select"),
|
|
3543
|
+
const S = E("a-form-item"), O = E("a-button"), q = E("a-select"), z = E("a-divider"), _e = E("a-space"), ut = E("a-form"), We = E("a-typography-text"), un = E("a-tooltip"), cn = E("a-table"), dn = E("a-config-provider");
|
|
3544
3544
|
return x(), B(dn, {
|
|
3545
|
-
locale:
|
|
3545
|
+
locale: p(Jt),
|
|
3546
3546
|
theme: sn
|
|
3547
3547
|
}, {
|
|
3548
3548
|
default: _(() => [
|
|
@@ -3572,32 +3572,32 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3572
3572
|
v(S, { label: "场景选择" }, {
|
|
3573
3573
|
default: _(() => [
|
|
3574
3574
|
v(q, {
|
|
3575
|
-
value:
|
|
3576
|
-
"onUpdate:value": c[1] || (c[1] = (X) =>
|
|
3575
|
+
value: p(u).sceneCode,
|
|
3576
|
+
"onUpdate:value": c[1] || (c[1] = (X) => p(u).sceneCode = X),
|
|
3577
3577
|
class: m(i.$style.sceneSelect),
|
|
3578
3578
|
placeholder: "请选择",
|
|
3579
3579
|
"allow-clear": "",
|
|
3580
3580
|
"show-search": "",
|
|
3581
3581
|
"option-filter-prop": "name",
|
|
3582
|
-
options: [...L.value, ...
|
|
3582
|
+
options: [...L.value, ...f.list],
|
|
3583
3583
|
"field-names": { value: "code", label: "name" },
|
|
3584
3584
|
open: T.value,
|
|
3585
|
-
loading:
|
|
3585
|
+
loading: f.loading,
|
|
3586
3586
|
onChange: ot,
|
|
3587
3587
|
onDropdownVisibleChange: c[2] || (c[2] = (X) => T.value = X)
|
|
3588
3588
|
}, {
|
|
3589
3589
|
dropdownRender: _(({ menuNode: X }) => [
|
|
3590
|
-
v(
|
|
3590
|
+
v(p(rr), { vnodes: X }, null, 8, ["vnodes"]),
|
|
3591
3591
|
H("div", {
|
|
3592
3592
|
class: m(i.$style.sceneOpBtnWrapper)
|
|
3593
3593
|
}, [
|
|
3594
3594
|
v(O, {
|
|
3595
3595
|
type: "link",
|
|
3596
3596
|
block: "",
|
|
3597
|
-
icon: W(
|
|
3597
|
+
icon: W(p(Nn)),
|
|
3598
3598
|
class: m(i.$style.sceneOpBtn),
|
|
3599
3599
|
disabled: !le.value,
|
|
3600
|
-
onClick: c[0] || (c[0] = (Ne) => ee(
|
|
3600
|
+
onClick: c[0] || (c[0] = (Ne) => ee(p(de).create))
|
|
3601
3601
|
}, {
|
|
3602
3602
|
default: _(() => c[6] || (c[6] = [
|
|
3603
3603
|
ne(" 新建场景 ")
|
|
@@ -3607,7 +3607,7 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3607
3607
|
v(O, {
|
|
3608
3608
|
type: "link",
|
|
3609
3609
|
block: "",
|
|
3610
|
-
icon: W(
|
|
3610
|
+
icon: W(p(Bn)),
|
|
3611
3611
|
class: m(i.$style.sceneOpBtn),
|
|
3612
3612
|
onClick: ye
|
|
3613
3613
|
}, {
|
|
@@ -3627,13 +3627,13 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3627
3627
|
default: _(() => [
|
|
3628
3628
|
v(_e, null, {
|
|
3629
3629
|
split: _(() => [
|
|
3630
|
-
v(
|
|
3630
|
+
v(z, { type: "vertical" })
|
|
3631
3631
|
]),
|
|
3632
3632
|
default: _(() => [
|
|
3633
3633
|
v(O, {
|
|
3634
3634
|
type: "primary",
|
|
3635
|
-
icon: W(
|
|
3636
|
-
onClick: c[3] || (c[3] = (X) => ee(
|
|
3635
|
+
icon: W(p(Dn)),
|
|
3636
|
+
onClick: c[3] || (c[3] = (X) => ee(p(de).search))
|
|
3637
3637
|
}, {
|
|
3638
3638
|
default: _(() => c[8] || (c[8] = [
|
|
3639
3639
|
ne(" 高级筛选 ")
|
|
@@ -3644,9 +3644,9 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3644
3644
|
key: 0,
|
|
3645
3645
|
type: "primary",
|
|
3646
3646
|
ghost: "",
|
|
3647
|
-
icon: W(
|
|
3647
|
+
icon: W(p(Rn)),
|
|
3648
3648
|
loading: R.loading,
|
|
3649
|
-
onClick:
|
|
3649
|
+
onClick: V
|
|
3650
3650
|
}, {
|
|
3651
3651
|
default: _(() => c[9] || (c[9] = [
|
|
3652
3652
|
ne(" 刷新 ")
|
|
@@ -3733,8 +3733,8 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3733
3733
|
}, null, 8, Io)
|
|
3734
3734
|
]),
|
|
3735
3735
|
default: _(() => [
|
|
3736
|
-
v(
|
|
3737
|
-
style: re({ color:
|
|
3736
|
+
v(p(zn), {
|
|
3737
|
+
style: re({ color: p(oe).colorTextQuaternary }),
|
|
3738
3738
|
class: m(i.$style.headerCellTooltipIcon)
|
|
3739
3739
|
}, null, 8, ["style", "class"])
|
|
3740
3740
|
]),
|
|
@@ -3777,7 +3777,7 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3777
3777
|
}, 8, ["locale"]);
|
|
3778
3778
|
};
|
|
3779
3779
|
}
|
|
3780
|
-
}), xo = "_superTable_1j2zk_1", To = "_superTableHeader_1j2zk_5", Po = "_searchFormWrapper_1j2zk_10", Oo = "_searchForm_1j2zk_10", qo = "_sceneSelect_1j2zk_17", Ao = "_tableWrapper_1j2zk_20", Eo = "_toolbar_1j2zk_20", Lo = "_actionBtns_1j2zk_27", Mo = "_tableHeadWrapper_1j2zk_32", jo = "_tableContent_1j2zk_35", No = "_headerCell_1j2zk_38", Bo = "_headerCellText_1j2zk_43", Do = "_headerCellTooltipIcon_1j2zk_46", Ro = "_sceneOpBtnWrapper_1j2zk_50",
|
|
3780
|
+
}), xo = "_superTable_1j2zk_1", To = "_superTableHeader_1j2zk_5", Po = "_searchFormWrapper_1j2zk_10", Oo = "_searchForm_1j2zk_10", qo = "_sceneSelect_1j2zk_17", Ao = "_tableWrapper_1j2zk_20", Eo = "_toolbar_1j2zk_20", Lo = "_actionBtns_1j2zk_27", Mo = "_tableHeadWrapper_1j2zk_32", jo = "_tableContent_1j2zk_35", No = "_headerCell_1j2zk_38", Bo = "_headerCellText_1j2zk_43", Do = "_headerCellTooltipIcon_1j2zk_46", Ro = "_sceneOpBtnWrapper_1j2zk_50", zo = "_sceneOpBtn_1j2zk_50", Vo = {
|
|
3781
3781
|
superTable: xo,
|
|
3782
3782
|
superTableHeader: To,
|
|
3783
3783
|
searchFormWrapper: Po,
|
|
@@ -3792,9 +3792,9 @@ const Ke = 2e3, ko = (a) => {
|
|
|
3792
3792
|
headerCellText: Bo,
|
|
3793
3793
|
headerCellTooltipIcon: Do,
|
|
3794
3794
|
sceneOpBtnWrapper: Ro,
|
|
3795
|
-
sceneOpBtn:
|
|
3795
|
+
sceneOpBtn: zo
|
|
3796
3796
|
}, Yo = {
|
|
3797
|
-
$style:
|
|
3797
|
+
$style: Vo
|
|
3798
3798
|
}, Ht = /* @__PURE__ */ he(Fo, [["__cssModules", Yo]]);
|
|
3799
3799
|
Ht.install = (a) => {
|
|
3800
3800
|
a.component("SuperTable", Ht);
|