@yidun/antd-super-table 0.0.7 → 0.0.8

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/index.js CHANGED
@@ -1,18 +1,18 @@
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_1rypj_1{position:absolute;z-index:999;right:0;top:12px}._tableConfig_1rypj_8{width:260px}._tableConfig_1rypj_8 ._tableConfigHead_1rypj_11{padding:8px 16px}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14{padding:8px 0;height:300px;overflow:auto}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14 ._columnList_1rypj_19 ._columnItem_1rypj_19{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 16px}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14 ._columnList_1rypj_19 ._columnItem_1rypj_19 ._columnItemContent_1rypj_26{flex:1;cursor:pointer}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14 ._columnList_1rypj_19 ._columnItem_1rypj_19 ._dragIcon_1rypj_30{cursor:grab}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14 ._columnList_1rypj_19 ._columnItem_1rypj_19 ._dragIconDisabled_1rypj_33{cursor:not-allowed}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14 ._columnList_1rypj_19 ._columnItem_1rypj_19 ._dragHandle_1rypj_36{cursor:grab}._tableConfig_1rypj_8 ._tableConfigContent_1rypj_14 ._emptyText_1rypj_39{line-height:200px;text-align:center}._tableConfig_1rypj_8 ._tableConfigFoot_1rypj_43{display:flex;align-items:center;justify-content:flex-end;border-top:1px solid #d9d9d9;padding:8px 16px}.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_1rx9j_1{background-color:#fff;padding:20px 24px}._superTable_1rx9j_1 ._superTableHeader_1rx9j_5{display:flex;gap:16px;border-bottom:1px solid #d9d9d9}._superTable_1rx9j_1 ._superTableHeader_1rx9j_5 ._searchForm_1rx9j_10{flex:1;padding-bottom:12px}._superTable_1rx9j_1 ._superTableHeader_1rx9j_5 ._searchForm_1rx9j_10 ._sceneSelect_1rx9j_14{width:240px}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._toolbar_1rx9j_17{padding-bottom:12px;display:flex;align-items:flex-start;justify-content:flex-end;gap:16px}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._toolbar_1rx9j_17 ._actionBtns_1rx9j_24{display:flex;align-items:center;gap:8px}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._toolbar_1rx9j_17 ._tableHeadWrapper_1rx9j_29{flex:1}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._tableContent_1rx9j_32{position:relative}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._headerCell_1rx9j_35{display:flex;align-items:center;gap:4px}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._headerCell_1rx9j_35 ._headerCellText_1rx9j_40{flex:1}._superTable_1rx9j_1 ._tableWrapper_1rx9j_17 ._headerCell_1rx9j_35 ._headerCellTooltipIcon_1rx9j_43{cursor:pointer}._sceneOpBtnWrapper_1rx9j_47{border-top:1px solid #d9d9d9;padding-top:8px}._sceneOpBtnWrapper_1rx9j_47 ._sceneOpBtn_1rx9j_47{text-align:left}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- var an = Object.defineProperty;
3
- var on = (r, e, n) => e in r ? an(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
4
- var Me = (r, e, n) => on(r, typeof e != "symbol" ? e + "" : e, n);
5
- import { h as X, defineComponent as ie, computed as M, resolveComponent as P, createElementBlock as U, openBlock as I, normalizeClass as $, unref as w, createCommentVNode as N, Fragment as xe, renderList as lt, normalizeStyle as $e, renderSlot as pe, createBlock as E, withCtx as C, createVNode as T, createTextVNode as K, toDisplayString as be, createElementVNode as J, withMemo as Mt, resolveDynamicComponent as Ke, normalizeProps as at, mergeProps as oe, ref as ee, watchEffect as $t, watch as he, useAttrs as sn, reactive as Ze, toRaw as me, createApp as ln, onBeforeUnmount as un, getCurrentInstance as cn, shallowRef as dn, onMounted as pn, createSlots as fn, nextTick as mn } from "vue";
6
- import yn, { theme as gn, Form as vn, RangePicker as hn, DatePicker as bn, TreeSelect as _n, Cascader as Cn, Select as $n, InputNumber as wn, Input as Sn, Empty as In, ConfigProvider as Fn, message as ot } from "ant-design-vue";
7
- import { DownOutlined as xn, HolderOutlined as De, EyeOutlined as kn, SettingOutlined as Tn, MinusCircleOutlined as wt, PlusOutlined as At, PlusCircleFilled as On, SettingFilled as Pn, FilterFilled as qn, ReloadOutlined as jn, InfoCircleFilled as Ln } from "@ant-design/icons-vue";
8
- import { slice as St, isFunction as _e, get as Xe, castArray as je, debounce as yt, pick as ke, cloneDeep as Ge, omit as Nt, set as qe, sortBy as it, unionBy as En, uniqueId as Mn, merge as An } from "lodash-es";
9
- import { useStorage as Nn } from "@vueuse/core";
10
- import Re from "dayjs";
11
- import Bn from "sortablejs";
12
- import { JSONPath as Dn } from "jsonpath-plus";
13
- import { v5 as Rn } from "uuid";
14
- import gt from "vuedraggable";
15
- const Vn = {
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_1lown_1{position:absolute;z-index:999;right:4px;top:14px;background:#fafafa}._tableConfig_1lown_9{width:260px}._tableConfig_1lown_9 ._tableConfigHead_1lown_12{padding:8px}._tableConfig_1lown_9 ._tableConfigActions_1lown_15{display:flex;align-items:center;justify-content:space-between;padding:8px;border-bottom:1px solid #d9d9d9}._tableConfig_1lown_9 ._tableConfigContent_1lown_22{min-height:300px;max-height:60vh;overflow:auto;padding-bottom:12px}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._groupTitle_1lown_28{padding:0 8px;font-size:12px;color:#000000a6;background:#fafafa;line-height:28px}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35{max-height:20vh;overflow-y:auto}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35 ._columnItem_1lown_39{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 8px;position:relative}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35 ._columnItem_1lown_39 ._columnItemContent_1lown_47{flex:1;cursor:pointer}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35 ._columnItem_1lown_39 ._dragIcon_1lown_51,._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35 ._columnItem_1lown_39 ._dragHandle_1lown_54{cursor:grab}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35 ._columnItem_1lown_39 ._fixedActions_1lown_57{display:none;align-items:center;gap:4px}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._columnGroup_1lown_28 ._columnList_1lown_35 ._columnItem_1lown_39:hover ._fixedActions_1lown_57{display:flex}._tableConfig_1lown_9 ._tableConfigContent_1lown_22 ._emptyText_1lown_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}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ var pn = Object.defineProperty;
3
+ var fn = (a, e, n) => e in a ? pn(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n;
4
+ var Ne = (a, e, n) => fn(a, typeof e != "symbol" ? e + "" : e, n);
5
+ import { h as G, defineComponent as fe, computed as j, resolveComponent as E, createElementBlock as H, openBlock as x, normalizeClass as m, unref as f, createCommentVNode as N, Fragment as Te, renderList as ft, normalizeStyle as re, renderSlot as ve, createBlock as B, withCtx as _, createVNode as v, createTextVNode as ne, toDisplayString as _e, createElementVNode as Y, withMemo as Ut, resolveDynamicComponent as et, normalizeProps as ut, mergeProps as ue, ref as te, watchEffect as Ft, watch as Se, 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
+ 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 ct } from "ant-design-vue";
7
+ import { DownOutlined as Ln, HolderOutlined as Pe, 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 Vn } from "@ant-design/icons-vue";
8
+ import { slice as qt, isFunction as ke, get as nt, castArray as Ee, debounce as $t, pick as Ie, omit as Wt, set as Ae, cloneDeep as dt, sortBy as mt, unionBy as At, uniqueId as zn, merge as Yn } from "lodash-es";
9
+ import { useStorage as Hn } from "@vueuse/core";
10
+ import ze from "dayjs";
11
+ import Un from "sortablejs";
12
+ import { JSONPath as Gn } from "jsonpath-plus";
13
+ import { v5 as Wn } from "uuid";
14
+ import Re from "vuedraggable";
15
+ const Qn = {
16
16
  // Options.jsx
17
17
  items_per_page: "条/页",
18
18
  jump_to: "跳至",
@@ -26,16 +26,16 @@ const Vn = {
26
26
  prev_3: "向前 3 页",
27
27
  next_3: "向后 3 页"
28
28
  };
29
- function et() {
30
- return et = Object.assign ? Object.assign.bind() : function(r) {
29
+ function at() {
30
+ return at = Object.assign ? Object.assign.bind() : function(a) {
31
31
  for (var e = 1; e < arguments.length; e++) {
32
32
  var n = arguments[e];
33
- for (var t in n) ({}).hasOwnProperty.call(n, t) && (r[t] = n[t]);
33
+ for (var t in n) ({}).hasOwnProperty.call(n, t) && (a[t] = n[t]);
34
34
  }
35
- return r;
36
- }, et.apply(null, arguments);
35
+ return a;
36
+ }, at.apply(null, arguments);
37
37
  }
38
- const Yn = {
38
+ const Jn = {
39
39
  locale: "zh_CN",
40
40
  today: "今天",
41
41
  now: "此刻",
@@ -62,11 +62,11 @@ const Yn = {
62
62
  nextDecade: "下一年代",
63
63
  previousCentury: "上一世纪",
64
64
  nextCentury: "下一世纪"
65
- }, Bt = {
65
+ }, Qt = {
66
66
  placeholder: "请选择时间",
67
67
  rangePlaceholder: ["开始时间", "结束时间"]
68
- }, ut = {
69
- lang: et({
68
+ }, yt = {
69
+ lang: at({
70
70
  placeholder: "请选择日期",
71
71
  yearPlaceholder: "请选择年份",
72
72
  quarterPlaceholder: "请选择季度",
@@ -77,16 +77,16 @@ const Yn = {
77
77
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
78
78
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
79
79
  rangeWeekPlaceholder: ["开始周", "结束周"]
80
- }, Yn),
81
- timePickerLocale: et({}, Bt)
80
+ }, Jn),
81
+ timePickerLocale: at({}, Qt)
82
82
  };
83
- ut.lang.ok = "确定";
84
- const se = "${label}不是一个有效的${type}", Dt = {
83
+ yt.lang.ok = "确定";
84
+ const ce = "${label}不是一个有效的${type}", Jt = {
85
85
  locale: "zh-cn",
86
- Pagination: Vn,
87
- DatePicker: ut,
88
- TimePicker: Bt,
89
- Calendar: ut,
86
+ Pagination: Qn,
87
+ DatePicker: yt,
88
+ TimePicker: Qt,
89
+ Calendar: yt,
90
90
  // locales for all components
91
91
  global: {
92
92
  placeholder: "请选择"
@@ -169,19 +169,19 @@ const se = "${label}不是一个有效的${type}", Dt = {
169
169
  invalid: "${label}是一个无效日期"
170
170
  },
171
171
  types: {
172
- string: se,
173
- method: se,
174
- array: se,
175
- object: se,
176
- number: se,
177
- date: se,
178
- boolean: se,
179
- integer: se,
180
- float: se,
181
- regexp: se,
182
- email: se,
183
- url: se,
184
- hex: se
172
+ string: ce,
173
+ method: ce,
174
+ array: ce,
175
+ object: ce,
176
+ number: ce,
177
+ date: ce,
178
+ boolean: ce,
179
+ integer: ce,
180
+ float: ce,
181
+ regexp: ce,
182
+ email: ce,
183
+ url: ce,
184
+ hex: ce
185
185
  },
186
186
  string: {
187
187
  len: "${label}须为${len}个字符",
@@ -215,29 +215,29 @@ const se = "${label}不是一个有效的${type}", Dt = {
215
215
  scanned: "已扫描"
216
216
  }
217
217
  };
218
- var Qe = { exports: {} }, Hn = Qe.exports, It;
219
- function Un() {
220
- return It || (It = 1, function(r, e) {
218
+ var Ze = { exports: {} }, Kn = Ze.exports, Et;
219
+ function Zn() {
220
+ return Et || (Et = 1, function(a, e) {
221
221
  (function(n, t) {
222
- r.exports = t(Re);
223
- })(Hn, function(n) {
224
- function t(l) {
225
- return l && typeof l == "object" && "default" in l ? l : { default: l };
222
+ a.exports = t(ze);
223
+ })(Kn, function(n) {
224
+ function t(s) {
225
+ return s && typeof s == "object" && "default" in s ? s : { default: s };
226
226
  }
227
- var a = t(n), o = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(l, s) {
228
- return s === "W" ? l + "周" : l + "日";
229
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(l, s) {
230
- var d = 100 * l + s;
227
+ var r = t(n), o = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(s, l) {
228
+ return l === "W" ? s + "周" : s + "日";
229
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(s, l) {
230
+ var d = 100 * s + l;
231
231
  return d < 600 ? "凌晨" : d < 900 ? "早上" : d < 1100 ? "上午" : d < 1300 ? "中午" : d < 1800 ? "下午" : "晚上";
232
232
  } };
233
- return a.default.locale(o, null, !0), o;
233
+ return r.default.locale(o, null, !0), o;
234
234
  });
235
- }(Qe)), Qe.exports;
235
+ }(Ze)), Ze.exports;
236
236
  }
237
- Un();
238
- const { defaultAlgorithm: Wn, defaultSeed: zn } = gn, we = Wn(zn);
239
- var ve = /* @__PURE__ */ ((r) => (r.order = "_order", r.orderInScene = "_orderInScene", r.defaultValue = "_defaultValue", r.selected = "_selected", r))(ve || {});
240
- const Rt = Object.values(ve), R = {
237
+ Zn();
238
+ const { defaultAlgorithm: Xn, defaultSeed: ea } = Sn, oe = Xn(ea);
239
+ var we = /* @__PURE__ */ ((a) => (a.order = "_order", a.orderInScene = "_orderInScene", a.defaultValue = "_defaultValue", a.selected = "_selected", a))(we || {});
240
+ const Kt = Object.values(we), U = {
241
241
  /** 文本(默认)*/
242
242
  text: "text",
243
243
  /** 链接 */
@@ -252,7 +252,7 @@ const Rt = Object.values(ve), R = {
252
252
  component: "component",
253
253
  /** 排序 */
254
254
  sort: "sort"
255
- }, H = {
255
+ }, J = {
256
256
  /** 输入框 */
257
257
  input: "input",
258
258
  /** 组合输入框 */
@@ -273,38 +273,38 @@ const Rt = Object.values(ve), R = {
273
273
  rangePicker: "rangePicker",
274
274
  /** 自定义组件 */
275
275
  component: "component"
276
- }, ce = {
276
+ }, de = {
277
277
  /** 新增 */
278
278
  create: "create",
279
279
  /** 更新 */
280
280
  update: "update",
281
281
  /** 设置查询条件 */
282
282
  search: "search"
283
- }, Vt = ["key", "index", "width", "visible"];
284
- function Fe() {
285
- return Fe = Object.assign ? Object.assign.bind() : function(r) {
283
+ }, gt = ["key", "index", "width", "visible", "fixed"];
284
+ function xe() {
285
+ return xe = Object.assign ? Object.assign.bind() : function(a) {
286
286
  for (var e = 1; e < arguments.length; e++) {
287
287
  var n = arguments[e];
288
288
  for (var t in n)
289
- Object.prototype.hasOwnProperty.call(n, t) && (r[t] = n[t]);
289
+ Object.prototype.hasOwnProperty.call(n, t) && (a[t] = n[t]);
290
290
  }
291
- return r;
292
- }, Fe.apply(this, arguments);
291
+ return a;
292
+ }, xe.apply(this, arguments);
293
293
  }
294
- function Gn(r, e) {
295
- r.prototype = Object.create(e.prototype), r.prototype.constructor = r, Ve(r, e);
294
+ function ta(a, e) {
295
+ a.prototype = Object.create(e.prototype), a.prototype.constructor = a, Ye(a, e);
296
296
  }
297
- function ct(r) {
298
- return ct = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
297
+ function vt(a) {
298
+ return vt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
299
299
  return n.__proto__ || Object.getPrototypeOf(n);
300
- }, ct(r);
300
+ }, vt(a);
301
301
  }
302
- function Ve(r, e) {
303
- return Ve = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, a) {
304
- return t.__proto__ = a, t;
305
- }, Ve(r, e);
302
+ function Ye(a, e) {
303
+ return Ye = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
304
+ return t.__proto__ = r, t;
305
+ }, Ye(a, e);
306
306
  }
307
- function Qn() {
307
+ function na() {
308
308
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
309
309
  if (typeof Proxy == "function") return !0;
310
310
  try {
@@ -314,195 +314,195 @@ function Qn() {
314
314
  return !1;
315
315
  }
316
316
  }
317
- function Je(r, e, n) {
318
- return Qn() ? Je = Reflect.construct.bind() : Je = function(a, o, l) {
319
- var s = [null];
320
- s.push.apply(s, o);
321
- var d = Function.bind.apply(a, s), v = new d();
322
- return l && Ve(v, l.prototype), v;
323
- }, Je.apply(null, arguments);
317
+ function Xe(a, e, n) {
318
+ return na() ? Xe = Reflect.construct.bind() : Xe = function(r, o, s) {
319
+ var l = [null];
320
+ l.push.apply(l, o);
321
+ var d = Function.bind.apply(r, l), C = new d();
322
+ return s && Ye(C, s.prototype), C;
323
+ }, Xe.apply(null, arguments);
324
324
  }
325
- function Jn(r) {
326
- return Function.toString.call(r).indexOf("[native code]") !== -1;
325
+ function aa(a) {
326
+ return Function.toString.call(a).indexOf("[native code]") !== -1;
327
327
  }
328
- function dt(r) {
328
+ function ht(a) {
329
329
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
330
- return dt = function(t) {
331
- if (t === null || !Jn(t)) return t;
330
+ return ht = function(t) {
331
+ if (t === null || !aa(t)) return t;
332
332
  if (typeof t != "function")
333
333
  throw new TypeError("Super expression must either be null or a function");
334
334
  if (typeof e < "u") {
335
335
  if (e.has(t)) return e.get(t);
336
- e.set(t, a);
336
+ e.set(t, r);
337
337
  }
338
- function a() {
339
- return Je(t, arguments, ct(this).constructor);
338
+ function r() {
339
+ return Xe(t, arguments, vt(this).constructor);
340
340
  }
341
- return a.prototype = Object.create(t.prototype, {
341
+ return r.prototype = Object.create(t.prototype, {
342
342
  constructor: {
343
- value: a,
343
+ value: r,
344
344
  enumerable: !1,
345
345
  writable: !0,
346
346
  configurable: !0
347
347
  }
348
- }), Ve(a, t);
349
- }, dt(r);
348
+ }), Ye(r, t);
349
+ }, ht(a);
350
350
  }
351
- var Kn = /%[sdj%]/g, Yt = function() {
351
+ var ra = /%[sdj%]/g, Zt = function() {
352
352
  };
353
- typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Yt = function(e, n) {
353
+ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Zt = function(e, n) {
354
354
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(t) {
355
355
  return typeof t == "string";
356
356
  }) && console.warn(e, n);
357
357
  });
358
- function pt(r) {
359
- if (!r || !r.length) return null;
358
+ function bt(a) {
359
+ if (!a || !a.length) return null;
360
360
  var e = {};
361
- return r.forEach(function(n) {
361
+ return a.forEach(function(n) {
362
362
  var t = n.field;
363
363
  e[t] = e[t] || [], e[t].push(n);
364
364
  }), e;
365
365
  }
366
- function le(r) {
366
+ function pe(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
- var a = 0, o = n.length;
370
- if (typeof r == "function")
371
- return r.apply(null, n);
372
- if (typeof r == "string") {
373
- var l = r.replace(Kn, function(s) {
374
- if (s === "%%")
369
+ var r = 0, o = n.length;
370
+ if (typeof a == "function")
371
+ return a.apply(null, n);
372
+ if (typeof a == "string") {
373
+ var s = a.replace(ra, function(l) {
374
+ if (l === "%%")
375
375
  return "%";
376
- if (a >= o)
377
- return s;
378
- switch (s) {
376
+ if (r >= o)
377
+ return l;
378
+ switch (l) {
379
379
  case "%s":
380
- return String(n[a++]);
380
+ return String(n[r++]);
381
381
  case "%d":
382
- return Number(n[a++]);
382
+ return Number(n[r++]);
383
383
  case "%j":
384
384
  try {
385
- return JSON.stringify(n[a++]);
385
+ return JSON.stringify(n[r++]);
386
386
  } catch {
387
387
  return "[Circular]";
388
388
  }
389
389
  break;
390
390
  default:
391
- return s;
391
+ return l;
392
392
  }
393
393
  });
394
- return l;
394
+ return s;
395
395
  }
396
- return r;
396
+ return a;
397
397
  }
398
- function Zn(r) {
399
- return r === "string" || r === "url" || r === "hex" || r === "email" || r === "date" || r === "pattern";
398
+ function oa(a) {
399
+ return a === "string" || a === "url" || a === "hex" || a === "email" || a === "date" || a === "pattern";
400
400
  }
401
- function Z(r, e) {
402
- return !!(r == null || e === "array" && Array.isArray(r) && !r.length || Zn(e) && typeof r == "string" && !r);
401
+ function ae(a, e) {
402
+ return !!(a == null || e === "array" && Array.isArray(a) && !a.length || oa(e) && typeof a == "string" && !a);
403
403
  }
404
- function Xn(r, e, n) {
405
- var t = [], a = 0, o = r.length;
406
- function l(s) {
407
- t.push.apply(t, s || []), a++, a === o && n(t);
404
+ function la(a, e, n) {
405
+ var t = [], r = 0, o = a.length;
406
+ function s(l) {
407
+ t.push.apply(t, l || []), r++, r === o && n(t);
408
408
  }
409
- r.forEach(function(s) {
410
- e(s, l);
409
+ a.forEach(function(l) {
410
+ e(l, s);
411
411
  });
412
412
  }
413
- function Ft(r, e, n) {
414
- var t = 0, a = r.length;
415
- function o(l) {
416
- if (l && l.length) {
417
- n(l);
413
+ function Lt(a, e, n) {
414
+ var t = 0, r = a.length;
415
+ function o(s) {
416
+ if (s && s.length) {
417
+ n(s);
418
418
  return;
419
419
  }
420
- var s = t;
421
- t = t + 1, s < a ? e(r[s], o) : n([]);
420
+ var l = t;
421
+ t = t + 1, l < r ? e(a[l], o) : n([]);
422
422
  }
423
423
  o([]);
424
424
  }
425
- function er(r) {
425
+ function sa(a) {
426
426
  var e = [];
427
- return Object.keys(r).forEach(function(n) {
428
- e.push.apply(e, r[n] || []);
427
+ return Object.keys(a).forEach(function(n) {
428
+ e.push.apply(e, a[n] || []);
429
429
  }), e;
430
430
  }
431
- var xt = /* @__PURE__ */ function(r) {
432
- Gn(e, r);
431
+ var Mt = /* @__PURE__ */ function(a) {
432
+ ta(e, a);
433
433
  function e(n, t) {
434
- var a;
435
- return a = r.call(this, "Async Validation Error") || this, a.errors = n, a.fields = t, a;
434
+ var r;
435
+ return r = a.call(this, "Async Validation Error") || this, r.errors = n, r.fields = t, r;
436
436
  }
437
437
  return e;
438
- }(/* @__PURE__ */ dt(Error));
439
- function tr(r, e, n, t, a) {
438
+ }(/* @__PURE__ */ ht(Error));
439
+ function ia(a, e, n, t, r) {
440
440
  if (e.first) {
441
- var o = new Promise(function(c, y) {
442
- var F = function(p) {
443
- return t(p), p.length ? y(new xt(p, pt(p))) : c(a);
444
- }, g = er(r);
445
- Ft(g, n, F);
441
+ var o = new Promise(function(u, h) {
442
+ var T = function(g) {
443
+ return t(g), g.length ? h(new Mt(g, bt(g))) : u(r);
444
+ }, $ = sa(a);
445
+ Lt($, n, T);
446
446
  });
447
- return o.catch(function(c) {
448
- return c;
447
+ return o.catch(function(u) {
448
+ return u;
449
449
  }), o;
450
450
  }
451
- var l = e.firstFields === !0 ? Object.keys(r) : e.firstFields || [], s = Object.keys(r), d = s.length, v = 0, b = [], m = new Promise(function(c, y) {
452
- var F = function(_) {
453
- if (b.push.apply(b, _), v++, v === d)
454
- return t(b), b.length ? y(new xt(b, pt(b))) : c(a);
451
+ var s = e.firstFields === !0 ? Object.keys(a) : e.firstFields || [], l = Object.keys(a), d = l.length, C = 0, k = [], y = new Promise(function(u, h) {
452
+ var T = function(w) {
453
+ if (k.push.apply(k, w), C++, C === d)
454
+ return t(k), k.length ? h(new Mt(k, bt(k))) : u(r);
455
455
  };
456
- s.length || (t(b), c(a)), s.forEach(function(g) {
457
- var _ = r[g];
458
- l.indexOf(g) !== -1 ? Ft(_, n, F) : Xn(_, n, F);
456
+ l.length || (t(k), u(r)), l.forEach(function($) {
457
+ var w = a[$];
458
+ s.indexOf($) !== -1 ? Lt(w, n, T) : la(w, n, T);
459
459
  });
460
460
  });
461
- return m.catch(function(c) {
462
- return c;
463
- }), m;
461
+ return y.catch(function(u) {
462
+ return u;
463
+ }), y;
464
464
  }
465
- function nr(r) {
466
- return !!(r && r.message !== void 0);
465
+ function ua(a) {
466
+ return !!(a && a.message !== void 0);
467
467
  }
468
- function rr(r, e) {
469
- for (var n = r, t = 0; t < e.length; t++) {
468
+ function ca(a, e) {
469
+ for (var n = a, t = 0; t < e.length; t++) {
470
470
  if (n == null)
471
471
  return n;
472
472
  n = n[e[t]];
473
473
  }
474
474
  return n;
475
475
  }
476
- function kt(r, e) {
476
+ function jt(a, e) {
477
477
  return function(n) {
478
478
  var t;
479
- return r.fullFields ? t = rr(e, r.fullFields) : t = e[n.field || r.fullField], nr(n) ? (n.field = n.field || r.fullField, n.fieldValue = t, n) : {
479
+ return a.fullFields ? t = ca(e, a.fullFields) : t = e[n.field || a.fullField], ua(n) ? (n.field = n.field || a.fullField, n.fieldValue = t, n) : {
480
480
  message: typeof n == "function" ? n() : n,
481
481
  fieldValue: t,
482
- field: n.field || r.fullField
482
+ field: n.field || a.fullField
483
483
  };
484
484
  };
485
485
  }
486
- function Tt(r, e) {
486
+ function Nt(a, e) {
487
487
  if (e) {
488
488
  for (var n in e)
489
489
  if (e.hasOwnProperty(n)) {
490
490
  var t = e[n];
491
- typeof t == "object" && typeof r[n] == "object" ? r[n] = Fe({}, r[n], t) : r[n] = t;
491
+ typeof t == "object" && typeof a[n] == "object" ? a[n] = xe({}, a[n], t) : a[n] = t;
492
492
  }
493
493
  }
494
- return r;
494
+ return a;
495
495
  }
496
- var Ht = function(e, n, t, a, o, l) {
497
- e.required && (!t.hasOwnProperty(e.field) || Z(n, l || e.type)) && a.push(le(o.messages.required, e.fullField));
498
- }, ar = function(e, n, t, a, o) {
499
- (/^\s+$/.test(n) || n === "") && a.push(le(o.messages.whitespace, e.fullField));
500
- }, Ue, or = function() {
501
- if (Ue)
502
- return Ue;
503
- var r = "[a-fA-F\\d:]", e = function(S) {
504
- return S && S.includeBoundaries ? "(?:(?<=\\s|^)(?=" + r + ")|(?<=" + r + ")(?=\\s|$))" : "";
505
- }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", t = "[a-fA-F\\d]{1,4}", a = (`
496
+ var Xt = function(e, n, t, r, o, s) {
497
+ e.required && (!t.hasOwnProperty(e.field) || ae(n, s || e.type)) && r.push(pe(o.messages.required, e.fullField));
498
+ }, da = function(e, n, t, r, o) {
499
+ (/^\s+$/.test(n) || n === "") && r.push(pe(o.messages.whitespace, e.fullField));
500
+ }, Qe, pa = function() {
501
+ if (Qe)
502
+ return Qe;
503
+ var a = "[a-fA-F\\d:]", e = function(I) {
504
+ return I && I.includeBoundaries ? "(?:(?<=\\s|^)(?=" + a + ")|(?<=" + a + ")(?=\\s|$))" : "";
505
+ }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", t = "[a-fA-F\\d]{1,4}", r = (`
506
506
  (?:
507
507
  (?:` + t + ":){7}(?:" + t + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
508
508
  (?:` + t + ":){6}(?:" + n + "|:" + t + `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
@@ -513,17 +513,17 @@ var Ht = function(e, n, t, a, o, l) {
513
513
  (?:` + t + ":){1}(?:(?::" + t + "){0,4}:" + n + "|(?::" + t + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
514
514
  (?::(?:(?::` + t + "){0,5}:" + n + "|(?::" + t + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
515
515
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
516
- `).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), o = new RegExp("(?:^" + n + "$)|(?:^" + a + "$)"), l = new RegExp("^" + n + "$"), s = new RegExp("^" + a + "$"), d = function(S) {
517
- return S && S.exact ? o : new RegExp("(?:" + e(S) + n + e(S) + ")|(?:" + e(S) + a + e(S) + ")", "g");
516
+ `).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), o = new RegExp("(?:^" + n + "$)|(?:^" + r + "$)"), s = new RegExp("^" + n + "$"), l = new RegExp("^" + r + "$"), d = function(I) {
517
+ return I && I.exact ? o : new RegExp("(?:" + e(I) + n + e(I) + ")|(?:" + e(I) + r + e(I) + ")", "g");
518
518
  };
519
- d.v4 = function(f) {
520
- return f && f.exact ? l : new RegExp("" + e(f) + n + e(f), "g");
521
- }, d.v6 = function(f) {
522
- return f && f.exact ? s : new RegExp("" + e(f) + a + e(f), "g");
519
+ d.v4 = function(b) {
520
+ return b && b.exact ? s : new RegExp("" + e(b) + n + e(b), "g");
521
+ }, d.v6 = function(b) {
522
+ return b && b.exact ? l : new RegExp("" + e(b) + r + e(b), "g");
523
523
  };
524
- var v = "(?:(?:[a-z]+:)?//)", b = "(?:\\S+(?::\\S*)?@)?", m = d.v4().source, c = d.v6().source, y = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", F = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", g = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", _ = "(?::\\d{2,5})?", p = '(?:[/?#][^\\s"]*)?', L = "(?:" + v + "|www\\.)" + b + "(?:localhost|" + m + "|" + c + "|" + y + F + g + ")" + _ + p;
525
- return Ue = new RegExp("(?:^" + L + "$)", "i"), Ue;
526
- }, Ot = {
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
+ }, 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,}))$/,
529
529
  // url: new RegExp(
@@ -531,12 +531,12 @@ var Ht = function(e, n, t, a, o, l) {
531
531
  // 'i',
532
532
  // ),
533
533
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
534
- }, Ne = {
534
+ }, De = {
535
535
  integer: function(e) {
536
- return Ne.number(e) && parseInt(e, 10) === e;
536
+ return De.number(e) && parseInt(e, 10) === e;
537
537
  },
538
538
  float: function(e) {
539
- return Ne.number(e) && !Ne.integer(e);
539
+ return De.number(e) && !De.integer(e);
540
540
  },
541
541
  array: function(e) {
542
542
  return Array.isArray(e);
@@ -557,188 +557,188 @@ var Ht = function(e, n, t, a, o, l) {
557
557
  return isNaN(e) ? !1 : typeof e == "number";
558
558
  },
559
559
  object: function(e) {
560
- return typeof e == "object" && !Ne.array(e);
560
+ return typeof e == "object" && !De.array(e);
561
561
  },
562
562
  method: function(e) {
563
563
  return typeof e == "function";
564
564
  },
565
565
  email: function(e) {
566
- return typeof e == "string" && e.length <= 320 && !!e.match(Ot.email);
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(or());
569
+ return typeof e == "string" && e.length <= 2048 && !!e.match(pa());
570
570
  },
571
571
  hex: function(e) {
572
- return typeof e == "string" && !!e.match(Ot.hex);
572
+ return typeof e == "string" && !!e.match(Bt.hex);
573
573
  }
574
- }, sr = function(e, n, t, a, o) {
574
+ }, fa = function(e, n, t, r, o) {
575
575
  if (e.required && n === void 0) {
576
- Ht(e, n, t, a, o);
576
+ Xt(e, n, t, r, o);
577
577
  return;
578
578
  }
579
- var l = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = e.type;
580
- l.indexOf(s) > -1 ? Ne[s](n) || a.push(le(o.messages.types[s], e.fullField, e.type)) : s && typeof n !== e.type && a.push(le(o.messages.types[s], e.fullField, e.type));
581
- }, lr = function(e, n, t, a, o) {
582
- var l = typeof e.len == "number", s = typeof e.min == "number", d = typeof e.max == "number", v = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, b = n, m = null, c = typeof n == "number", y = typeof n == "string", F = Array.isArray(n);
583
- if (c ? m = "number" : y ? m = "string" : F && (m = "array"), !m)
579
+ var s = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = e.type;
580
+ s.indexOf(l) > -1 ? De[l](n) || r.push(pe(o.messages.types[l], e.fullField, e.type)) : l && typeof n !== e.type && r.push(pe(o.messages.types[l], e.fullField, e.type));
581
+ }, ma = function(e, n, t, r, o) {
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
+ if (u ? y = "number" : h ? y = "string" : T && (y = "array"), !y)
584
584
  return !1;
585
- F && (b = n.length), y && (b = n.replace(v, "_").length), l ? b !== e.len && a.push(le(o.messages[m].len, e.fullField, e.len)) : s && !d && b < e.min ? a.push(le(o.messages[m].min, e.fullField, e.min)) : d && !s && b > e.max ? a.push(le(o.messages[m].max, e.fullField, e.max)) : s && d && (b < e.min || b > e.max) && a.push(le(o.messages[m].range, e.fullField, e.min, e.max));
586
- }, Pe = "enum", ir = function(e, n, t, a, o) {
587
- e[Pe] = Array.isArray(e[Pe]) ? e[Pe] : [], e[Pe].indexOf(n) === -1 && a.push(le(o.messages[Pe], e.fullField, e[Pe].join(", ")));
588
- }, ur = function(e, n, t, a, o) {
585
+ T && (k = n.length), h && (k = n.replace(C, "_").length), s ? k !== e.len && r.push(pe(o.messages[y].len, e.fullField, e.len)) : l && !d && k < e.min ? r.push(pe(o.messages[y].min, e.fullField, e.min)) : d && !l && k > e.max ? r.push(pe(o.messages[y].max, e.fullField, e.max)) : l && d && (k < e.min || k > e.max) && r.push(pe(o.messages[y].range, e.fullField, e.min, e.max));
586
+ }, qe = "enum", ya = function(e, n, t, r, o) {
587
+ e[qe] = Array.isArray(e[qe]) ? e[qe] : [], e[qe].indexOf(n) === -1 && r.push(pe(o.messages[qe], e.fullField, e[qe].join(", ")));
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) || a.push(le(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
591
+ e.pattern.lastIndex = 0, e.pattern.test(n) || r.push(pe(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
592
592
  else if (typeof e.pattern == "string") {
593
- var l = new RegExp(e.pattern);
594
- l.test(n) || a.push(le(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
593
+ var s = new RegExp(e.pattern);
594
+ s.test(n) || r.push(pe(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
595
595
  }
596
596
  }
597
- }, A = {
598
- required: Ht,
599
- whitespace: ar,
600
- type: sr,
601
- range: lr,
602
- enum: ir,
603
- pattern: ur
604
- }, cr = function(e, n, t, a, o) {
605
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
606
- if (s) {
607
- if (Z(n, "string") && !e.required)
597
+ }, D = {
598
+ required: Xt,
599
+ whitespace: da,
600
+ type: fa,
601
+ range: ma,
602
+ enum: ya,
603
+ pattern: ga
604
+ }, va = function(e, n, t, r, o) {
605
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
606
+ if (l) {
607
+ if (ae(n, "string") && !e.required)
608
608
  return t();
609
- A.required(e, n, a, l, o, "string"), Z(n, "string") || (A.type(e, n, a, l, o), A.range(e, n, a, l, o), A.pattern(e, n, a, l, o), e.whitespace === !0 && A.whitespace(e, n, a, l, o));
609
+ D.required(e, n, r, s, o, "string"), ae(n, "string") || (D.type(e, n, r, s, o), D.range(e, n, r, s, o), D.pattern(e, n, r, s, o), e.whitespace === !0 && D.whitespace(e, n, r, s, o));
610
610
  }
611
- t(l);
612
- }, dr = function(e, n, t, a, o) {
613
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
614
- if (s) {
615
- if (Z(n) && !e.required)
611
+ t(s);
612
+ }, ha = function(e, n, t, r, o) {
613
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
614
+ if (l) {
615
+ if (ae(n) && !e.required)
616
616
  return t();
617
- A.required(e, n, a, l, o), n !== void 0 && A.type(e, n, a, l, o);
617
+ D.required(e, n, r, s, o), n !== void 0 && D.type(e, n, r, s, o);
618
618
  }
619
- t(l);
620
- }, pr = function(e, n, t, a, o) {
621
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
622
- if (s) {
623
- if (n === "" && (n = void 0), Z(n) && !e.required)
619
+ t(s);
620
+ }, ba = function(e, n, t, r, o) {
621
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
622
+ if (l) {
623
+ if (n === "" && (n = void 0), ae(n) && !e.required)
624
624
  return t();
625
- A.required(e, n, a, l, o), n !== void 0 && (A.type(e, n, a, l, o), A.range(e, n, a, l, o));
625
+ D.required(e, n, r, s, o), n !== void 0 && (D.type(e, n, r, s, o), D.range(e, n, r, s, o));
626
626
  }
627
- t(l);
628
- }, fr = function(e, n, t, a, o) {
629
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
630
- if (s) {
631
- if (Z(n) && !e.required)
627
+ t(s);
628
+ }, _a = function(e, n, t, r, o) {
629
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
630
+ if (l) {
631
+ if (ae(n) && !e.required)
632
632
  return t();
633
- A.required(e, n, a, l, o), n !== void 0 && A.type(e, n, a, l, o);
633
+ D.required(e, n, r, s, o), n !== void 0 && D.type(e, n, r, s, o);
634
634
  }
635
- t(l);
636
- }, mr = function(e, n, t, a, o) {
637
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
638
- if (s) {
639
- if (Z(n) && !e.required)
635
+ t(s);
636
+ }, Ca = function(e, n, t, r, o) {
637
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
638
+ if (l) {
639
+ if (ae(n) && !e.required)
640
640
  return t();
641
- A.required(e, n, a, l, o), Z(n) || A.type(e, n, a, l, o);
641
+ D.required(e, n, r, s, o), ae(n) || D.type(e, n, r, s, o);
642
642
  }
643
- t(l);
644
- }, yr = function(e, n, t, a, o) {
645
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
646
- if (s) {
647
- if (Z(n) && !e.required)
643
+ t(s);
644
+ }, $a = function(e, n, t, r, o) {
645
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
646
+ if (l) {
647
+ if (ae(n) && !e.required)
648
648
  return t();
649
- A.required(e, n, a, l, o), n !== void 0 && (A.type(e, n, a, l, o), A.range(e, n, a, l, o));
649
+ D.required(e, n, r, s, o), n !== void 0 && (D.type(e, n, r, s, o), D.range(e, n, r, s, o));
650
650
  }
651
- t(l);
652
- }, gr = function(e, n, t, a, o) {
653
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
654
- if (s) {
655
- if (Z(n) && !e.required)
651
+ t(s);
652
+ }, wa = function(e, n, t, r, o) {
653
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
654
+ if (l) {
655
+ if (ae(n) && !e.required)
656
656
  return t();
657
- A.required(e, n, a, l, o), n !== void 0 && (A.type(e, n, a, l, o), A.range(e, n, a, l, o));
657
+ D.required(e, n, r, s, o), n !== void 0 && (D.type(e, n, r, s, o), D.range(e, n, r, s, o));
658
658
  }
659
- t(l);
660
- }, vr = function(e, n, t, a, o) {
661
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
662
- if (s) {
659
+ t(s);
660
+ }, Sa = function(e, n, t, r, o) {
661
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
662
+ if (l) {
663
663
  if (n == null && !e.required)
664
664
  return t();
665
- A.required(e, n, a, l, o, "array"), n != null && (A.type(e, n, a, l, o), A.range(e, n, a, l, o));
665
+ D.required(e, n, r, s, o, "array"), n != null && (D.type(e, n, r, s, o), D.range(e, n, r, s, o));
666
666
  }
667
- t(l);
668
- }, hr = function(e, n, t, a, o) {
669
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
670
- if (s) {
671
- if (Z(n) && !e.required)
667
+ t(s);
668
+ }, ka = function(e, n, t, r, o) {
669
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
670
+ if (l) {
671
+ if (ae(n) && !e.required)
672
672
  return t();
673
- A.required(e, n, a, l, o), n !== void 0 && A.type(e, n, a, l, o);
673
+ D.required(e, n, r, s, o), n !== void 0 && D.type(e, n, r, s, o);
674
674
  }
675
- t(l);
676
- }, br = "enum", _r = function(e, n, t, a, o) {
677
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
678
- if (s) {
679
- if (Z(n) && !e.required)
675
+ t(s);
676
+ }, Ia = "enum", Fa = function(e, n, t, r, o) {
677
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
678
+ if (l) {
679
+ if (ae(n) && !e.required)
680
680
  return t();
681
- A.required(e, n, a, l, o), n !== void 0 && A[br](e, n, a, l, o);
681
+ D.required(e, n, r, s, o), n !== void 0 && D[Ia](e, n, r, s, o);
682
682
  }
683
- t(l);
684
- }, Cr = function(e, n, t, a, o) {
685
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
686
- if (s) {
687
- if (Z(n, "string") && !e.required)
683
+ t(s);
684
+ }, xa = function(e, n, t, r, o) {
685
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
686
+ if (l) {
687
+ if (ae(n, "string") && !e.required)
688
688
  return t();
689
- A.required(e, n, a, l, o), Z(n, "string") || A.pattern(e, n, a, l, o);
689
+ D.required(e, n, r, s, o), ae(n, "string") || D.pattern(e, n, r, s, o);
690
690
  }
691
- t(l);
692
- }, $r = function(e, n, t, a, o) {
693
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
694
- if (s) {
695
- if (Z(n, "date") && !e.required)
691
+ t(s);
692
+ }, Ta = function(e, n, t, r, o) {
693
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
694
+ if (l) {
695
+ if (ae(n, "date") && !e.required)
696
696
  return t();
697
- if (A.required(e, n, a, l, o), !Z(n, "date")) {
697
+ if (D.required(e, n, r, s, o), !ae(n, "date")) {
698
698
  var d;
699
- n instanceof Date ? d = n : d = new Date(n), A.type(e, d, a, l, o), d && A.range(e, d.getTime(), a, l, o);
699
+ n instanceof Date ? d = n : d = new Date(n), D.type(e, d, r, s, o), d && D.range(e, d.getTime(), r, s, o);
700
700
  }
701
701
  }
702
- t(l);
703
- }, wr = function(e, n, t, a, o) {
704
- var l = [], s = Array.isArray(n) ? "array" : typeof n;
705
- A.required(e, n, a, l, o, s), t(l);
706
- }, st = function(e, n, t, a, o) {
707
- var l = e.type, s = [], d = e.required || !e.required && a.hasOwnProperty(e.field);
702
+ t(s);
703
+ }, Pa = function(e, n, t, r, o) {
704
+ var s = [], l = Array.isArray(n) ? "array" : typeof n;
705
+ D.required(e, n, r, s, o, l), t(s);
706
+ }, pt = function(e, n, t, r, o) {
707
+ var s = e.type, l = [], d = e.required || !e.required && r.hasOwnProperty(e.field);
708
708
  if (d) {
709
- if (Z(n, l) && !e.required)
709
+ if (ae(n, s) && !e.required)
710
710
  return t();
711
- A.required(e, n, a, s, o, l), Z(n, l) || A.type(e, n, a, s, o);
711
+ D.required(e, n, r, l, o, s), ae(n, s) || D.type(e, n, r, l, o);
712
712
  }
713
- t(s);
714
- }, Sr = function(e, n, t, a, o) {
715
- var l = [], s = e.required || !e.required && a.hasOwnProperty(e.field);
716
- if (s) {
717
- if (Z(n) && !e.required)
713
+ t(l);
714
+ }, Oa = function(e, n, t, r, o) {
715
+ var s = [], l = e.required || !e.required && r.hasOwnProperty(e.field);
716
+ if (l) {
717
+ if (ae(n) && !e.required)
718
718
  return t();
719
- A.required(e, n, a, l, o);
719
+ D.required(e, n, r, s, o);
720
720
  }
721
- t(l);
722
- }, Be = {
723
- string: cr,
724
- method: dr,
725
- number: pr,
726
- boolean: fr,
727
- regexp: mr,
728
- integer: yr,
729
- float: gr,
730
- array: vr,
731
- object: hr,
732
- enum: _r,
733
- pattern: Cr,
734
- date: $r,
735
- url: st,
736
- hex: st,
737
- email: st,
738
- required: wr,
739
- any: Sr
721
+ t(s);
722
+ }, Ve = {
723
+ string: va,
724
+ method: ha,
725
+ number: ba,
726
+ boolean: _a,
727
+ regexp: Ca,
728
+ integer: $a,
729
+ float: wa,
730
+ array: Sa,
731
+ object: ka,
732
+ enum: Fa,
733
+ pattern: xa,
734
+ date: Ta,
735
+ url: pt,
736
+ hex: pt,
737
+ email: pt,
738
+ required: Pa,
739
+ any: Oa
740
740
  };
741
- function ft() {
741
+ function _t() {
742
742
  return {
743
743
  default: "Validation error on field %s",
744
744
  required: "%s is required",
@@ -791,188 +791,188 @@ function ft() {
791
791
  }
792
792
  };
793
793
  }
794
- var mt = ft(), Le = /* @__PURE__ */ function() {
795
- function r(n) {
796
- this.rules = null, this._messages = mt, this.define(n);
794
+ var Ct = _t(), Le = /* @__PURE__ */ function() {
795
+ function a(n) {
796
+ this.rules = null, this._messages = Ct, this.define(n);
797
797
  }
798
- var e = r.prototype;
798
+ var e = a.prototype;
799
799
  return e.define = function(t) {
800
- var a = this;
800
+ var r = this;
801
801
  if (!t)
802
802
  throw new Error("Cannot configure a schema with no rules");
803
803
  if (typeof t != "object" || Array.isArray(t))
804
804
  throw new Error("Rules must be an object");
805
805
  this.rules = {}, Object.keys(t).forEach(function(o) {
806
- var l = t[o];
807
- a.rules[o] = Array.isArray(l) ? l : [l];
806
+ var s = t[o];
807
+ r.rules[o] = Array.isArray(s) ? s : [s];
808
808
  });
809
809
  }, e.messages = function(t) {
810
- return t && (this._messages = Tt(ft(), t)), this._messages;
811
- }, e.validate = function(t, a, o) {
812
- var l = this;
813
- a === void 0 && (a = {}), o === void 0 && (o = function() {
810
+ return t && (this._messages = Nt(_t(), t)), this._messages;
811
+ }, e.validate = function(t, r, o) {
812
+ var s = this;
813
+ r === void 0 && (r = {}), o === void 0 && (o = function() {
814
814
  });
815
- var s = t, d = a, v = o;
816
- if (typeof d == "function" && (v = d, d = {}), !this.rules || Object.keys(this.rules).length === 0)
817
- return v && v(null, s), Promise.resolve(s);
818
- function b(g) {
819
- var _ = [], p = {};
820
- function L(S) {
821
- if (Array.isArray(S)) {
822
- var j;
823
- _ = (j = _).concat.apply(j, S);
815
+ var l = t, d = r, C = o;
816
+ if (typeof d == "function" && (C = d, d = {}), !this.rules || Object.keys(this.rules).length === 0)
817
+ return C && C(null, l), Promise.resolve(l);
818
+ function k($) {
819
+ var w = [], g = {};
820
+ function V(I) {
821
+ if (Array.isArray(I)) {
822
+ var p;
823
+ w = (p = w).concat.apply(p, I);
824
824
  } else
825
- _.push(S);
825
+ w.push(I);
826
826
  }
827
- for (var f = 0; f < g.length; f++)
828
- L(g[f]);
829
- _.length ? (p = pt(_), v(_, p)) : v(null, s);
827
+ for (var b = 0; b < $.length; b++)
828
+ V($[b]);
829
+ w.length ? (g = bt(w), C(w, g)) : C(null, l);
830
830
  }
831
831
  if (d.messages) {
832
- var m = this.messages();
833
- m === mt && (m = ft()), Tt(m, d.messages), d.messages = m;
832
+ var y = this.messages();
833
+ y === Ct && (y = _t()), Nt(y, d.messages), d.messages = y;
834
834
  } else
835
835
  d.messages = this.messages();
836
- var c = {}, y = d.keys || Object.keys(this.rules);
837
- y.forEach(function(g) {
838
- var _ = l.rules[g], p = s[g];
839
- _.forEach(function(L) {
840
- var f = L;
841
- typeof f.transform == "function" && (s === t && (s = Fe({}, s)), p = s[g] = f.transform(p)), typeof f == "function" ? f = {
842
- validator: f
843
- } : f = Fe({}, f), f.validator = l.getValidationMethod(f), f.validator && (f.field = g, f.fullField = f.fullField || g, f.type = l.getType(f), c[g] = c[g] || [], c[g].push({
844
- rule: f,
845
- value: p,
846
- source: s,
847
- field: g
836
+ var u = {}, h = d.keys || Object.keys(this.rules);
837
+ h.forEach(function($) {
838
+ var w = s.rules[$], g = l[$];
839
+ w.forEach(function(V) {
840
+ var b = V;
841
+ typeof b.transform == "function" && (l === t && (l = xe({}, l)), g = l[$] = b.transform(g)), typeof b == "function" ? b = {
842
+ validator: b
843
+ } : b = xe({}, b), b.validator = s.getValidationMethod(b), b.validator && (b.field = $, b.fullField = b.fullField || $, b.type = s.getType(b), u[$] = u[$] || [], u[$].push({
844
+ rule: b,
845
+ value: g,
846
+ source: l,
847
+ field: $
848
848
  }));
849
849
  });
850
850
  });
851
- var F = {};
852
- return tr(c, d, function(g, _) {
853
- var p = g.rule, L = (p.type === "object" || p.type === "array") && (typeof p.fields == "object" || typeof p.defaultField == "object");
854
- L = L && (p.required || !p.required && g.value), p.field = g.field;
855
- function f(V, te) {
856
- return Fe({}, te, {
857
- fullField: p.fullField + "." + V,
858
- fullFields: p.fullFields ? [].concat(p.fullFields, [V]) : [V]
851
+ var T = {};
852
+ return ia(u, d, function($, w) {
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
+ function b(L, z) {
856
+ return xe({}, z, {
857
+ fullField: g.fullField + "." + L,
858
+ fullFields: g.fullFields ? [].concat(g.fullFields, [L]) : [L]
859
859
  });
860
860
  }
861
- function S(V) {
862
- V === void 0 && (V = []);
863
- var te = Array.isArray(V) ? V : [V];
864
- !d.suppressWarning && te.length && r.warning("async-validator:", te), te.length && p.message !== void 0 && (te = [].concat(p.message));
865
- var D = te.map(kt(p, s));
866
- if (d.first && D.length)
867
- return F[p.field] = 1, _(D);
868
- if (!L)
869
- _(D);
861
+ function I(L) {
862
+ L === void 0 && (L = []);
863
+ var z = Array.isArray(L) ? L : [L];
864
+ !d.suppressWarning && z.length && a.warning("async-validator:", z), z.length && g.message !== void 0 && (z = [].concat(g.message));
865
+ var W = z.map(jt(g, l));
866
+ if (d.first && W.length)
867
+ return T[g.field] = 1, w(W);
868
+ if (!V)
869
+ w(W);
870
870
  else {
871
- if (p.required && !g.value)
872
- return p.message !== void 0 ? D = [].concat(p.message).map(kt(p, s)) : d.error && (D = [d.error(p, le(d.messages.required, p.field))]), _(D);
873
- var ue = {};
874
- p.defaultField && Object.keys(g.value).map(function(re) {
875
- ue[re] = p.defaultField;
876
- }), ue = Fe({}, ue, g.rule.fields);
877
- var Te = {};
878
- Object.keys(ue).forEach(function(re) {
879
- var ae = ue[re], Ie = Array.isArray(ae) ? ae : [ae];
880
- Te[re] = Ie.map(f.bind(null, re));
871
+ if (g.required && !$.value)
872
+ return g.message !== void 0 ? W = [].concat(g.message).map(jt(g, l)) : d.error && (W = [d.error(g, pe(d.messages.required, g.field))]), w(W);
873
+ var be = {};
874
+ g.defaultField && Object.keys($.value).map(function(le) {
875
+ be[le] = g.defaultField;
876
+ }), be = xe({}, be, $.rule.fields);
877
+ var me = {};
878
+ Object.keys(be).forEach(function(le) {
879
+ var se = be[le], A = Array.isArray(se) ? se : [se];
880
+ me[le] = A.map(b.bind(null, le));
881
881
  });
882
- var Se = new r(Te);
883
- Se.messages(d.messages), g.rule.options && (g.rule.options.messages = d.messages, g.rule.options.error = d.error), Se.validate(g.value, g.rule.options || d, function(re) {
884
- var ae = [];
885
- D && D.length && ae.push.apply(ae, D), re && re.length && ae.push.apply(ae, re), _(ae.length ? ae : null);
882
+ var ie = new a(me);
883
+ ie.messages(d.messages), $.rule.options && ($.rule.options.messages = d.messages, $.rule.options.error = d.error), ie.validate($.value, $.rule.options || d, function(le) {
884
+ var se = [];
885
+ W && W.length && se.push.apply(se, W), le && le.length && se.push.apply(se, le), w(se.length ? se : null);
886
886
  });
887
887
  }
888
888
  }
889
- var j;
890
- if (p.asyncValidator)
891
- j = p.asyncValidator(p, g.value, S, g.source, d);
892
- else if (p.validator) {
889
+ var p;
890
+ if (g.asyncValidator)
891
+ p = g.asyncValidator(g, $.value, I, $.source, d);
892
+ else if (g.validator) {
893
893
  try {
894
- j = p.validator(p, g.value, S, g.source, d);
895
- } catch (V) {
896
- console.error == null || console.error(V), d.suppressValidatorError || setTimeout(function() {
897
- throw V;
898
- }, 0), S(V.message);
894
+ p = g.validator(g, $.value, I, $.source, d);
895
+ } catch (L) {
896
+ console.error == null || console.error(L), d.suppressValidatorError || setTimeout(function() {
897
+ throw L;
898
+ }, 0), I(L.message);
899
899
  }
900
- j === !0 ? S() : j === !1 ? S(typeof p.message == "function" ? p.message(p.fullField || p.field) : p.message || (p.fullField || p.field) + " fails") : j instanceof Array ? S(j) : j instanceof Error && S(j.message);
900
+ p === !0 ? I() : p === !1 ? I(typeof g.message == "function" ? g.message(g.fullField || g.field) : g.message || (g.fullField || g.field) + " fails") : p instanceof Array ? I(p) : p instanceof Error && I(p.message);
901
901
  }
902
- j && j.then && j.then(function() {
903
- return S();
904
- }, function(V) {
905
- return S(V);
902
+ p && p.then && p.then(function() {
903
+ return I();
904
+ }, function(L) {
905
+ return I(L);
906
906
  });
907
- }, function(g) {
908
- b(g);
909
- }, s);
907
+ }, function($) {
908
+ k($);
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 && !Be.hasOwnProperty(t.type))
912
- throw new Error(le("Unknown rule type %s", t.type));
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(pe("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
- var a = Object.keys(t), o = a.indexOf("message");
918
- return o !== -1 && a.splice(o, 1), a.length === 1 && a[0] === "required" ? Be.required : Be[this.getType(t)] || void 0;
919
- }, r;
917
+ var r = Object.keys(t), o = r.indexOf("message");
918
+ return o !== -1 && r.splice(o, 1), r.length === 1 && r[0] === "required" ? Ve.required : Ve[this.getType(t)] || void 0;
919
+ }, a;
920
920
  }();
921
921
  Le.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
- Be[e] = n;
924
+ Ve[e] = n;
925
925
  };
926
- Le.warning = Yt;
927
- Le.messages = mt;
928
- Le.validators = Be;
929
- const ge = (r) => Object.prototype.toString.call(r).slice(8, -1).toLowerCase(), Ir = (r) => (xr(r), r.map((e, n) => ({
926
+ Le.warning = Zt;
927
+ Le.messages = Ct;
928
+ Le.validators = Ve;
929
+ const $e = (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 ?? {},
932
932
  visible: e.visible ?? !0,
933
933
  _order: n,
934
934
  _defaultValue: e.value
935
- }))), Pt = (r) => (kr(r), r.map((e, n) => {
936
- const { content: t, width: a = 120, visible: o = !0, resizable: l = !0, ellipsis: s = !0, component: d } = e;
935
+ }))), Rt = (a) => (Ea(a), a.map((e, n) => {
936
+ const { content: t, width: r = 120, visible: o = !0, resizable: s = !0, ellipsis: l = !0, component: d } = e;
937
937
  return {
938
938
  ...e,
939
939
  dataIndex: typeof t == "string" ? t : void 0,
940
- width: a,
940
+ width: r,
941
941
  visible: o,
942
- resizable: l,
943
- ellipsis: s,
944
- component: d ? X(d) : void 0,
942
+ resizable: s,
943
+ ellipsis: l,
944
+ component: d ? G(d) : void 0,
945
945
  index: n
946
946
  };
947
- })), Fr = (r, e, n) => r.sort((t, a) => n.indexOf(t.code) - n.indexOf(a.code)).map((t) => {
948
- const a = Or(t.value ?? "", null);
949
- if (a)
947
+ })), qa = (a, e, n) => a.sort((t, r) => n.indexOf(t.code) - n.indexOf(r.code)).map((t) => {
948
+ const r = Ma(t.value ?? "", null);
949
+ if (r)
950
950
  return {
951
951
  ...t,
952
- items: a.map((o) => {
953
- var s;
954
- const l = e[o.name];
955
- return l ? l.type !== o.type ? console.warn(`formItem type not match: name = ${o.name}, type = ${o.type}`) : o.type === H.datePicker && o.value ? {
952
+ items: r.map((o) => {
953
+ var l;
954
+ const s = e[o.name];
955
+ return s ? s.type !== o.type ? console.warn(`formItem type not match: name = ${o.name}, type = ${o.type}`) : o.type === J.datePicker && o.value ? {
956
956
  ...o,
957
- value: o.value ? Re(o.value) : void 0
958
- } : o.type === H.rangePicker && ((s = o.value) != null && s.length) ? {
957
+ value: o.value ? ze(o.value) : void 0
958
+ } : o.type === J.rangePicker && ((l = o.value) != null && l.length) ? {
959
959
  ...o,
960
- value: o.value.map(Re)
960
+ value: o.value.map(ze)
961
961
  } : o : console.warn(`formItem not exit: name = ${o.name}`);
962
962
  }).filter(Boolean)
963
963
  };
964
964
  }).filter(Boolean);
965
- function Ce(...r) {
966
- console.log("%c[pro-table]:", "color: #f00; padding: 2px 4px; font-weight: bold; font-size: 14px;", ...r);
965
+ function Fe(...a) {
966
+ console.log("%c[pro-table]:", "color: #f00; padding: 2px 4px; font-weight: bold; font-size: 14px;", ...a);
967
967
  }
968
- const xr = (r) => {
969
- r.forEach((e) => {
968
+ const Aa = (a) => {
969
+ a.forEach((e) => {
970
970
  new Le({
971
971
  type: [
972
972
  { required: !0 },
973
973
  {
974
- validator(t, a, o) {
975
- return ["string", "function"].includes(ge(a)) ? o() : o(new Error("type must be string or function"));
974
+ validator(t, r, o) {
975
+ return ["string", "function"].includes($e(r)) ? o() : o(new Error("type must be string or function"));
976
976
  }
977
977
  }
978
978
  ],
@@ -986,7 +986,7 @@ const xr = (r) => {
986
986
  required: e.type === "component"
987
987
  },
988
988
  props: {
989
- validator: (t, a, o) => a && !["object", "function"].includes(ge(a)) ? o(new Error("props must be object or function")) : o()
989
+ validator: (t, r, o) => r && !["object", "function"].includes($e(r)) ? o(new Error("props must be object or function")) : o()
990
990
  }
991
991
  }).validate(e, (t) => {
992
992
  t && console.error(`[pro-table]: defineFormItems error, [${t[0].message}]`, {
@@ -995,41 +995,41 @@ const xr = (r) => {
995
995
  });
996
996
  });
997
997
  });
998
- }, kr = (r) => {
999
- r.forEach((e) => {
998
+ }, Ea = (a) => {
999
+ a.forEach((e) => {
1000
1000
  new Le({
1001
1001
  key: [{ required: !0, type: "string" }],
1002
1002
  type: [
1003
1003
  {
1004
- validator(t, a, o) {
1005
- return a ? ["string", "function"].includes(ge(a)) ? ge(a) === "string" && !Object.keys(R).includes(a) ? o(new Error(`type must be one of ${Object.keys(R).join(", ")}`)) : o() : o(new Error("type must be string or function")) : o();
1004
+ validator(t, r, o) {
1005
+ return r ? ["string", "function"].includes($e(r)) ? $e(r) === "string" && !Object.keys(U).includes(r) ? o(new Error(`type must be one of ${Object.keys(U).join(", ")}`)) : o() : o(new Error("type must be string or function")) : o();
1006
1006
  }
1007
1007
  }
1008
1008
  ],
1009
1009
  title: [{ required: !0 }, { type: "string" }],
1010
1010
  titleTooltip: {
1011
- validator(t, a, o) {
1012
- return a && !["string", "function"].includes(ge(a)) ? o(new Error("titleTooltip must be string or function")) : o();
1011
+ validator(t, r, o) {
1012
+ return r && !["string", "function"].includes($e(r)) ? o(new Error("titleTooltip must be string or function")) : o();
1013
1013
  }
1014
1014
  },
1015
1015
  content: {
1016
- validator(t, a, o) {
1017
- return a && !["string", "function"].includes(ge(a)) ? o(new Error("content must be string or function")) : o();
1016
+ validator(t, r, o) {
1017
+ return r && !["string", "function"].includes($e(r)) ? o(new Error("content must be string or function")) : o();
1018
1018
  }
1019
1019
  },
1020
1020
  tooltip: {
1021
- validator(t, a, o) {
1022
- return a && !["string", "boolean", "function"].includes(ge(a)) ? o(new Error("tooltip must be string, boolean, or function")) : o();
1021
+ validator(t, r, o) {
1022
+ return r && !["string", "boolean", "function"].includes($e(r)) ? o(new Error("tooltip must be string, boolean, or function")) : o();
1023
1023
  }
1024
1024
  },
1025
1025
  component: {
1026
- required: e.type === R.component
1026
+ required: e.type === U.component
1027
1027
  },
1028
1028
  copyable: { type: "boolean" },
1029
1029
  ellipsis: { type: "boolean" },
1030
1030
  props: {
1031
- validator(t, a, o) {
1032
- return a && !["object", "function"].includes(ge(a)) ? o(new Error("props must be object or function")) : o();
1031
+ validator(t, r, o) {
1032
+ return r && !["object", "function"].includes($e(r)) ? o(new Error("props must be object or function")) : o();
1033
1033
  }
1034
1034
  }
1035
1035
  }).validate(e, (t) => {
@@ -1039,39 +1039,39 @@ const xr = (r) => {
1039
1039
  });
1040
1040
  });
1041
1041
  });
1042
- }, Tr = (r, e) => {
1043
- if (!r) return 0;
1042
+ }, La = (a, e) => {
1043
+ if (!a) return 0;
1044
1044
  const t = document.createElement("canvas").getContext("2d");
1045
1045
  return t ? (t.font = [
1046
1046
  400,
1047
- `${we.fontSize}px`,
1048
- we.fontFamily
1049
- ].join(" "), Math.ceil(t.measureText(r).width)) : 0;
1050
- }, Or = (r, e) => {
1051
- if (r === "" || r === null)
1047
+ `${oe.fontSize}px`,
1048
+ oe.fontFamily
1049
+ ].join(" "), Math.ceil(t.measureText(a).width)) : 0;
1050
+ }, Ma = (a, e) => {
1051
+ if (a === "" || a === null)
1052
1052
  return e;
1053
1053
  try {
1054
- return JSON.parse(r);
1054
+ return JSON.parse(a);
1055
1055
  } catch (n) {
1056
- return Ce(`[pro-table]: parseJsonSafe error, ${n}`, {
1057
- jsonString: r,
1056
+ return Fe(`[pro-table]: parseJsonSafe error, ${n}`, {
1057
+ jsonString: a,
1058
1058
  defaultVal: e
1059
1059
  }), e;
1060
1060
  }
1061
- }, Pr = (r) => {
1061
+ }, ja = (a) => {
1062
1062
  let e = 0;
1063
- for (let n = 0; n < r.length; n++)
1064
- e = (e << 5) - e + r.charCodeAt(n), e |= 0;
1063
+ for (let n = 0; n < a.length; n++)
1064
+ e = (e << 5) - e + a.charCodeAt(n), e |= 0;
1065
1065
  return e.toString(16);
1066
- }, Ut = (r) => {
1067
- const e = Pr(r);
1068
- return Rn(e, "1b671a64-40d5-491e-99b0-da01ff1f3341").replace(/-/g, "");
1069
- }, qr = /* @__PURE__ */ ie({
1066
+ }, en = (a) => {
1067
+ const e = ja(a);
1068
+ return Wn(e, "1b671a64-40d5-491e-99b0-da01ff1f3341").replace(/-/g, "");
1069
+ }, Na = /* @__PURE__ */ fe({
1070
1070
  __name: "EllipsisElement",
1071
1071
  props: {
1072
1072
  /**
1073
1073
  * 当前行数据
1074
- * @type {TableDataItem}
1074
+ * @type {SuperTableDataItem}
1075
1075
  */
1076
1076
  record: {
1077
1077
  type: Object,
@@ -1084,7 +1084,7 @@ const xr = (r) => {
1084
1084
  */
1085
1085
  type: {
1086
1086
  type: String,
1087
- default: R.text
1087
+ default: U.text
1088
1088
  },
1089
1089
  /**
1090
1090
  * 单元格宽度
@@ -1132,92 +1132,92 @@ const xr = (r) => {
1132
1132
  default: "hover"
1133
1133
  }
1134
1134
  },
1135
- setup(r) {
1136
- const e = r, n = M(() => e.list.map((s) => ge(s) === "object" ? s : { label: s }).map((s, d) => ({ ...s, index: d, __key: s.key ?? `${d}-${String(s.label)}` }))), t = M(() => St(n.value, 0, e.maxCount)), a = M(
1137
- () => St(n.value, e.maxCount, n.value.length)
1138
- ), o = M(() => a.value.map(({ index: s, disabled: d, label: v, onClick: b }) => ({
1139
- key: s + e.maxCount,
1140
- label: v,
1135
+ setup(a) {
1136
+ const e = a, n = j(() => e.list.map((l) => $e(l) === "object" ? l : { label: l }).map((l, d) => ({ ...l, index: d, __key: l.key ?? `${d}-${String(l.label)}` }))), t = j(() => qt(n.value, 0, e.maxCount)), r = j(
1137
+ () => qt(n.value, e.maxCount, n.value.length)
1138
+ ), o = j(() => r.value.map(({ index: l, disabled: d, label: C, onClick: k }) => ({
1139
+ key: l + e.maxCount,
1140
+ label: C,
1141
1141
  disabled: d,
1142
- onClick: () => b == null ? void 0 : b(e.record)
1143
- }))), l = M(() => {
1144
- const s = {}, { maxCount: d, cellWidth: v, type: b } = e;
1145
- return b === R.text && (s.flex = 1), b === R.link && t.value.length > 1 && (s.maxWidth = `${((v - 50) / v / d * 100).toFixed(2)}%`), s;
1142
+ onClick: () => k == null ? void 0 : k(e.record)
1143
+ }))), s = j(() => {
1144
+ const l = {}, { maxCount: d, cellWidth: C, type: k } = e;
1145
+ return k === U.text && (l.flex = 1), k === U.link && t.value.length > 1 && (l.maxWidth = `${((C - 50) / C / d * 100).toFixed(2)}%`), l;
1146
1146
  });
1147
- return (s, d) => {
1148
- const v = P("a-tag"), b = P("a-popover"), m = P("a-button"), c = P("a-menu"), y = P("a-dropdown");
1149
- return I(), U("div", {
1150
- class: $([
1151
- s.$style.ellipsisElement,
1147
+ return (l, d) => {
1148
+ const C = E("a-tag"), k = E("a-popover"), y = E("a-button"), u = E("a-menu"), h = E("a-dropdown");
1149
+ return x(), H("div", {
1150
+ class: m([
1151
+ l.$style.ellipsisElement,
1152
1152
  {
1153
- [s.$style.ellipsisElementHasGap]: ![w(R).button, w(R).tag].includes(r.type)
1153
+ [l.$style.ellipsisElementHasGap]: ![f(U).button, f(U).tag].includes(a.type)
1154
1154
  }
1155
1155
  ])
1156
1156
  }, [
1157
- (I(!0), U(xe, null, lt(t.value, (F, g) => (I(), U("div", {
1158
- key: F.__key,
1159
- class: $(s.$style.elementItem),
1160
- style: $e(l.value)
1157
+ (x(!0), H(Te, null, ft(t.value, (T, $) => (x(), H("div", {
1158
+ key: T.__key,
1159
+ class: m(l.$style.elementItem),
1160
+ style: re(s.value)
1161
1161
  }, [
1162
- pe(s.$slots, "default", {
1163
- item: F,
1164
- index: g
1162
+ ve(l.$slots, "default", {
1163
+ item: T,
1164
+ index: $
1165
1165
  })
1166
1166
  ], 6))), 128)),
1167
- a.value.length ? (I(), U(xe, { key: 0 }, [
1168
- r.displayType === "popover" ? (I(), E(b, {
1167
+ r.value.length ? (x(), H(Te, { key: 0 }, [
1168
+ a.displayType === "popover" ? (x(), B(k, {
1169
1169
  key: 0,
1170
- trigger: r.trigger,
1170
+ trigger: a.trigger,
1171
1171
  "overlay-style": { maxWidth: "500px" },
1172
1172
  "destroy-on-close": ""
1173
1173
  }, {
1174
- content: C(() => [
1175
- J("div", {
1176
- class: $(s.$style.ellipsisList)
1174
+ content: _(() => [
1175
+ Y("div", {
1176
+ class: m(l.$style.ellipsisList)
1177
1177
  }, [
1178
- (I(!0), U(xe, null, lt(a.value, (F, g) => pe(s.$slots, "default", {
1179
- key: F.__key,
1180
- item: F,
1181
- index: g + r.maxCount,
1178
+ (x(!0), H(Te, null, ft(r.value, (T, $) => ve(l.$slots, "default", {
1179
+ key: T.__key,
1180
+ item: T,
1181
+ index: $ + a.maxCount,
1182
1182
  inPopover: !0
1183
1183
  })), 128))
1184
1184
  ], 2)
1185
1185
  ]),
1186
- default: C(() => [
1187
- T(v, {
1186
+ default: _(() => [
1187
+ v(C, {
1188
1188
  size: "mini",
1189
1189
  type: "info",
1190
- class: $([
1191
- s.$style.ellipsisTag,
1190
+ class: m([
1191
+ l.$style.ellipsisTag,
1192
1192
  {
1193
- [s.$style.imageEllipsisTag]: r.type === w(R).image
1193
+ [l.$style.imageEllipsisTag]: a.type === f(U).image
1194
1194
  }
1195
1195
  ])
1196
1196
  }, {
1197
- default: C(() => [
1198
- K(be(`+${a.value.length}...`), 1)
1197
+ default: _(() => [
1198
+ ne(_e(`+${r.value.length}...`), 1)
1199
1199
  ]),
1200
1200
  _: 1
1201
1201
  }, 8, ["class"])
1202
1202
  ]),
1203
1203
  _: 3
1204
1204
  }, 8, ["trigger"])) : N("", !0),
1205
- r.displayType === "dropdown" ? (I(), E(y, {
1205
+ a.displayType === "dropdown" ? (x(), B(h, {
1206
1206
  key: 1,
1207
1207
  "destroy-on-close": "",
1208
- trigger: r.trigger
1208
+ trigger: a.trigger
1209
1209
  }, {
1210
- overlay: C(() => [
1211
- T(c, { items: o.value }, null, 8, ["items"])
1210
+ overlay: _(() => [
1211
+ v(u, { items: o.value }, null, 8, ["items"])
1212
1212
  ]),
1213
- default: C(() => [
1214
- T(m, {
1213
+ default: _(() => [
1214
+ v(y, {
1215
1215
  type: "link",
1216
1216
  size: "small"
1217
1217
  }, {
1218
- default: C(() => [
1219
- d[0] || (d[0] = K(" 更多 ")),
1220
- T(w(xn))
1218
+ default: _(() => [
1219
+ d[0] || (d[0] = ne(" 更多 ")),
1220
+ v(f(Ln))
1221
1221
  ]),
1222
1222
  _: 1
1223
1223
  })
@@ -1228,22 +1228,22 @@ const xr = (r) => {
1228
1228
  ], 2);
1229
1229
  };
1230
1230
  }
1231
- }), jr = "_ellipsisElement_6fog1_1", Lr = "_elementItem_6fog1_6", Er = "_ellipsisElementHasGap_6fog1_10", Mr = "_flexWrap_6fog1_14", Ar = "_ellipsisTag_6fog1_18", Nr = "_imageEllipsisTag_6fog1_22", Br = "_ellipsisList_6fog1_29", Dr = {
1232
- ellipsisElement: jr,
1233
- elementItem: Lr,
1234
- ellipsisElementHasGap: Er,
1235
- flexWrap: Mr,
1236
- ellipsisTag: Ar,
1237
- imageEllipsisTag: Nr,
1238
- ellipsisList: Br
1239
- }, fe = (r, e) => {
1240
- const n = r.__vccOpts || r;
1241
- for (const [t, a] of e)
1242
- n[t] = a;
1231
+ }), Ba = "_ellipsisElement_6fog1_1", Da = "_elementItem_6fog1_6", Ra = "_ellipsisElementHasGap_6fog1_10", Va = "_flexWrap_6fog1_14", za = "_ellipsisTag_6fog1_18", Ya = "_imageEllipsisTag_6fog1_22", Ha = "_ellipsisList_6fog1_29", Ua = {
1232
+ ellipsisElement: Ba,
1233
+ elementItem: Da,
1234
+ ellipsisElementHasGap: Ra,
1235
+ flexWrap: Va,
1236
+ ellipsisTag: za,
1237
+ imageEllipsisTag: Ya,
1238
+ ellipsisList: Ha
1239
+ }, he = (a, e) => {
1240
+ const n = a.__vccOpts || a;
1241
+ for (const [t, r] of e)
1242
+ n[t] = r;
1243
1243
  return n;
1244
- }, Rr = {
1245
- $style: Dr
1246
- }, Vr = /* @__PURE__ */ fe(qr, [["__cssModules", Rr]]), Yr = { key: 1 }, Hr = /* @__PURE__ */ ie({
1244
+ }, Ga = {
1245
+ $style: Ua
1246
+ }, Wa = /* @__PURE__ */ he(Na, [["__cssModules", Ga]]), Qa = { key: 1 }, Ja = /* @__PURE__ */ fe({
1247
1247
  __name: "TableCellContent",
1248
1248
  props: {
1249
1249
  /**
@@ -1266,7 +1266,7 @@ const xr = (r) => {
1266
1266
  },
1267
1267
  /**
1268
1268
  * 行数据
1269
- * @type {TableDataItem}
1269
+ * @type {SuperTableDataItem}
1270
1270
  */
1271
1271
  record: {
1272
1272
  type: Object,
@@ -1282,140 +1282,140 @@ const xr = (r) => {
1282
1282
  default: !1
1283
1283
  }
1284
1284
  },
1285
- setup(r) {
1286
- const e = r, n = /* @__PURE__ */ new Map(), t = M(() => {
1287
- const { index: y, record: F, column: g } = e, _ = (g == null ? void 0 : g.type) ?? R.text;
1288
- return _e(_) ? _(F, y) : _;
1289
- }), a = M(() => {
1290
- const { index: y, record: F, column: g } = e, _ = g.content;
1291
- if (_e(_))
1292
- return _(F, y);
1293
- if (typeof _ == "string") {
1294
- if (_.startsWith("$")) {
1295
- let p = n.get(_);
1296
- p || (p = /* @__PURE__ */ new WeakMap(), n.set(_, p));
1297
- const L = p.get(F);
1298
- if (L !== void 0) return L;
1299
- const f = Dn({ path: _, json: F });
1300
- return p.set(F, f), f;
1285
+ setup(a) {
1286
+ const e = a, n = /* @__PURE__ */ new Map(), t = j(() => {
1287
+ const { index: h, record: T, column: $ } = e, w = ($ == null ? void 0 : $.type) ?? U.text;
1288
+ return ke(w) ? w(T, h) : w;
1289
+ }), r = j(() => {
1290
+ const { index: h, record: T, column: $ } = e, w = $.content;
1291
+ if (ke(w))
1292
+ return w(T, h);
1293
+ if (typeof w == "string") {
1294
+ if (w.startsWith("$")) {
1295
+ let g = n.get(w);
1296
+ g || (g = /* @__PURE__ */ new WeakMap(), n.set(w, g));
1297
+ const V = g.get(T);
1298
+ if (V !== void 0) return V;
1299
+ const b = Gn({ path: w, json: T });
1300
+ return g.set(T, b), b;
1301
1301
  }
1302
- return Xe(F, _, "");
1302
+ return nt(T, w, "");
1303
1303
  }
1304
1304
  return "";
1305
- }), o = M(() => je(a.value)), l = M(() => {
1306
- const { index: y, record: F, column: g } = e;
1307
- if (t.value === R.component) {
1308
- const { props: _ = {} } = g;
1309
- return _e(_) ? _(F, y) : {
1310
- ..._,
1311
- index: y,
1312
- record: F
1305
+ }), o = j(() => Ee(r.value)), s = j(() => {
1306
+ const { index: h, record: T, column: $ } = e;
1307
+ if (t.value === U.component) {
1308
+ const { props: w = {} } = $;
1309
+ return ke(w) ? w(T, h) : {
1310
+ ...w,
1311
+ index: h,
1312
+ record: T
1313
1313
  };
1314
1314
  }
1315
1315
  return {};
1316
- }), s = M(() => {
1317
- const { index: y, record: F, column: g } = e, _ = g.tooltip ?? [R.text, R.link].includes(t.value);
1318
- if (!_) return "";
1319
- if (_e(_))
1320
- return _(F, y);
1321
- const p = o.value[0];
1322
- return (p == null ? void 0 : p.label) || p;
1323
- }), d = M(() => !(["", void 0, null].includes(a.value) && ![R.component, R.sort].includes(t.value))), v = (y) => typeof y == "string" && /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(y), b = (y) => e.hasRouter && !v(y), m = (y) => b(y) ? "router-link" : "a", c = (y, F) => b(y) ? { to: y, target: F ?? "_blank" } : { href: y, target: F ?? "_blank" };
1324
- return (y, F) => {
1325
- var f;
1326
- const g = P("a-button"), _ = P("a-typography-text"), p = P("a-tag"), L = P("a-image");
1327
- return d.value ? (I(), U("div", {
1316
+ }), l = j(() => {
1317
+ const { index: h, record: T, column: $ } = e, w = $.tooltip ?? [U.text, U.link].includes(t.value);
1318
+ if (!w) return "";
1319
+ if (ke(w))
1320
+ return w(T, h);
1321
+ const g = o.value[0];
1322
+ return (g == null ? void 0 : g.label) || g;
1323
+ }), d = j(() => !(["", void 0, null].includes(r.value) && ![U.component, U.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
+ return (h, T) => {
1325
+ var b;
1326
+ const $ = E("a-button"), w = E("a-typography-text"), g = E("a-tag"), V = E("a-image");
1327
+ return d.value ? (x(), H("div", {
1328
1328
  key: 0,
1329
- class: $(y.$style.tableCellContent)
1329
+ class: m(h.$style.tableCellContent)
1330
1330
  }, [
1331
- t.value === w(R).sort ? (I(), E(g, {
1331
+ t.value === f(U).sort ? (x(), B($, {
1332
1332
  key: 0,
1333
1333
  type: "text",
1334
1334
  size: "small",
1335
- icon: X(w(De)),
1336
- class: $([y.$style.draggableIcon, "super-table-column-draggable-handle"])
1335
+ icon: G(f(Pe)),
1336
+ class: m([h.$style.draggableIcon, "super-table-column-draggable-handle"])
1337
1337
  }, null, 8, ["icon", "class"])) : N("", !0),
1338
- t.value === w(R).component ? (I(), E(Ke(r.column.component), at(oe({ key: 1 }, l.value)), null, 16)) : Mt([(f = r.column) == null ? void 0 : f.key, r.index, o.value], () => (I(), E(Vr, {
1338
+ t.value === f(U).component ? (x(), B(et(a.column.component), ut(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 === w(R).text ? 1 : r.column.maxCount,
1342
- record: r.record,
1341
+ "max-count": t.value === f(U).text ? 1 : a.column.maxCount,
1342
+ record: a.record,
1343
1343
  type: t.value,
1344
- "cell-width": r.column.width,
1345
- "display-type": [w(R).button].includes(t.value) ? "dropdown" : "popover"
1344
+ "cell-width": a.column.width,
1345
+ "display-type": [f(U).button].includes(t.value) ? "dropdown" : "popover"
1346
1346
  }, {
1347
- default: C(({ item: S, index: j, inPopover: V }) => [
1348
- t.value === w(R).text ? (I(), U(xe, { key: 0 }, [
1349
- j === 0 ? (I(), E(_, {
1347
+ default: _(({ item: I, index: p, inPopover: L }) => [
1348
+ t.value === f(U).text ? (x(), H(Te, { key: 0 }, [
1349
+ p === 0 ? (x(), B(w, {
1350
1350
  key: 0,
1351
- ellipsis: { tooltip: s.value },
1352
- content: String(S.label),
1353
- class: $(y.$style.antTypographyEllipsis)
1354
- }, null, 8, ["ellipsis", "content", "class"])) : (I(), U("div", {
1351
+ ellipsis: { tooltip: l.value },
1352
+ content: String(I.label),
1353
+ class: m(h.$style.antTypographyEllipsis)
1354
+ }, null, 8, ["ellipsis", "content", "class"])) : (x(), H("div", {
1355
1355
  key: 1,
1356
- class: $(y.$style.textListItem)
1357
- }, be(S.label), 3))
1356
+ class: m(h.$style.textListItem)
1357
+ }, _e(I.label), 3))
1358
1358
  ], 64)) : N("", !0),
1359
- t.value === w(R).link ? (I(), E(Ke(m(S.to)), at(oe({ key: 1 }, c(S.to, S.target))), {
1360
- default: C(() => [
1361
- r.column.ellipsis ? (I(), E(_, {
1359
+ t.value === f(U).link ? (x(), B(et(y(I.to)), ut(ue({ key: 1 }, u(I.to, I.target))), {
1360
+ default: _(() => [
1361
+ a.column.ellipsis ? (x(), B(w, {
1362
1362
  key: 0,
1363
- ellipsis: { tooltip: S.label },
1364
- content: String(S.label),
1365
- style: $e({ color: w(we).colorPrimary }),
1366
- class: $(y.$style.antTypographyEllipsis)
1367
- }, null, 8, ["ellipsis", "content", "style", "class"])) : (I(), U("span", Yr, be(S.label), 1))
1363
+ ellipsis: { tooltip: I.label },
1364
+ content: String(I.label),
1365
+ style: re({ color: f(oe).colorPrimary }),
1366
+ class: m(h.$style.antTypographyEllipsis)
1367
+ }, null, 8, ["ellipsis", "content", "style", "class"])) : (x(), H("span", Qa, _e(I.label), 1))
1368
1368
  ]),
1369
1369
  _: 2
1370
1370
  }, 1040)) : N("", !0),
1371
- t.value === w(R).tag ? (I(), E(p, at(oe({ key: 2 }, S)), {
1372
- default: C(() => [
1373
- K(be(S.label), 1)
1371
+ t.value === f(U).tag ? (x(), B(g, ut(ue({ key: 2 }, I)), {
1372
+ default: _(() => [
1373
+ ne(_e(I.label), 1)
1374
1374
  ]),
1375
1375
  _: 2
1376
1376
  }, 1040)) : N("", !0),
1377
- t.value === w(R).button ? (I(), E(g, oe({
1377
+ t.value === f(U).button ? (x(), B($, ue({
1378
1378
  key: 3,
1379
1379
  type: "link",
1380
1380
  size: "small",
1381
- disabled: S.disabled
1382
- }, S.buttonProps, {
1383
- onClick: (te) => {
1384
- var D;
1385
- return (D = S.onClick) == null ? void 0 : D.call(S, r.record, r.index);
1381
+ disabled: I.disabled
1382
+ }, I.buttonProps, {
1383
+ onClick: (z) => {
1384
+ var W;
1385
+ return (W = I.onClick) == null ? void 0 : W.call(I, a.record, a.index);
1386
1386
  }
1387
1387
  }), {
1388
- default: C(() => [
1389
- K(be(S.label), 1)
1388
+ default: _(() => [
1389
+ ne(_e(I.label), 1)
1390
1390
  ]),
1391
1391
  _: 2
1392
1392
  }, 1040, ["disabled", "onClick"])) : N("", !0),
1393
- t.value === w(R).image ? (I(), E(L, {
1393
+ t.value === f(U).image ? (x(), B(V, {
1394
1394
  key: 4,
1395
- width: V ? 100 : 32,
1396
- height: V ? 100 : 32,
1397
- src: S.label,
1395
+ width: L ? 100 : 32,
1396
+ height: L ? 100 : 32,
1397
+ src: I.label,
1398
1398
  style: { objectFit: "cover" }
1399
1399
  }, {
1400
- previewMask: C(() => [
1401
- T(w(kn))
1400
+ previewMask: _(() => [
1401
+ v(f(Mn))
1402
1402
  ]),
1403
1403
  _: 2
1404
1404
  }, 1032, ["width", "height", "src"])) : N("", !0)
1405
1405
  ]),
1406
1406
  _: 1
1407
- }, 8, ["list", "max-count", "record", "type", "cell-width", "display-type"])), F, 0)
1407
+ }, 8, ["list", "max-count", "record", "type", "cell-width", "display-type"])), T, 0)
1408
1408
  ], 2)) : N("", !0);
1409
1409
  };
1410
1410
  }
1411
- }), Ur = "_tableCellContent_1chn7_1", Wr = "_antTypographyEllipsis_1chn7_1", zr = "_draggableIcon_1chn7_4", Gr = "_textListItem_1chn7_8", Qr = {
1412
- tableCellContent: Ur,
1413
- antTypographyEllipsis: Wr,
1414
- draggableIcon: zr,
1415
- textListItem: Gr
1416
- }, Jr = {
1417
- $style: Qr
1418
- }, Kr = /* @__PURE__ */ fe(Hr, [["__cssModules", Jr]]), Zr = ie({
1411
+ }), Ka = "_tableCellContent_1chn7_1", Za = "_antTypographyEllipsis_1chn7_1", Xa = "_draggableIcon_1chn7_4", er = "_textListItem_1chn7_8", tr = {
1412
+ tableCellContent: Ka,
1413
+ antTypographyEllipsis: Za,
1414
+ draggableIcon: Xa,
1415
+ textListItem: er
1416
+ }, nr = {
1417
+ $style: tr
1418
+ }, ar = /* @__PURE__ */ he(Ja, [["__cssModules", nr]]), rr = fe({
1419
1419
  name: "VNodes",
1420
1420
  props: {
1421
1421
  vnodes: {
@@ -1426,7 +1426,7 @@ const xr = (r) => {
1426
1426
  render() {
1427
1427
  return this.vnodes;
1428
1428
  }
1429
- }), Xr = /* @__PURE__ */ ie({
1429
+ }), or = /* @__PURE__ */ fe({
1430
1430
  __name: "TableConfig",
1431
1431
  props: {
1432
1432
  /**
@@ -1440,159 +1440,365 @@ const xr = (r) => {
1440
1440
  }
1441
1441
  },
1442
1442
  emits: ["change"],
1443
- setup(r, { emit: e }) {
1444
- const n = ee(!1), t = r, a = e, o = ee([]), l = ee([]), s = ee(""), d = ee("");
1445
- $t(() => {
1446
- o.value = t.columns;
1443
+ setup(a, { emit: e }) {
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((p) => p.fixed === "left"), l.value = o.value.filter((p) => !p.fixed), d.value = o.value.filter((p) => p.fixed === "right");
1446
+ };
1447
+ Ft(() => {
1448
+ o.value = t.columns, y();
1447
1449
  });
1448
- const v = ({ title: p }) => {
1449
- var f;
1450
- const L = (f = d.value) == null ? void 0 : f.trim();
1450
+ const u = ({ title: p }) => {
1451
+ var z;
1452
+ const L = (z = k.value) == null ? void 0 : z.trim();
1451
1453
  return L ? p.toLocaleLowerCase().includes(L.toLocaleLowerCase()) : !0;
1452
- }, b = M(() => o.value.every((p) => !v(p))), m = yt((p) => {
1453
- d.value = p.target.value;
1454
- }, 300), c = M(() => o.value.every((p) => p.visible === !1)), y = () => {
1455
- n.value = !1, a(
1454
+ }, h = j(() => o.value.every((p) => !u(p))), T = $t((p) => {
1455
+ k.value = p.target.value;
1456
+ }, 300), $ = () => {
1457
+ o.value = [
1458
+ ...s.value,
1459
+ ...l.value,
1460
+ ...d.value
1461
+ ];
1462
+ }, w = () => {
1463
+ $(), r(
1456
1464
  "change",
1457
- o.value.map((p) => ke(p, Vt))
1465
+ o.value.map((p) => Ie(p, gt))
1458
1466
  );
1459
- }, F = () => {
1460
- n.value = !1, o.value = l.value, l.value = [];
1461
- }, g = () => {
1462
- n.value = !1, a("change", []);
1463
- }, _ = (p) => {
1464
- p && (l.value = Ge(o.value));
1467
+ }, g = j({
1468
+ get() {
1469
+ return o.value.every((p) => p.visible);
1470
+ },
1471
+ set(p) {
1472
+ o.value.forEach((L) => {
1473
+ L.visible = p;
1474
+ }), w();
1475
+ }
1476
+ }), V = j(() => {
1477
+ const p = o.value.filter((L) => L.visible).length;
1478
+ return p > 0 && p < o.value.length;
1479
+ }), b = () => {
1480
+ r("change", []);
1481
+ }, I = (p, L) => {
1482
+ p.fixed = L, y(), $(), w();
1465
1483
  };
1466
- return $t(() => {
1467
- n.value || (s.value = "", d.value = "");
1484
+ return Ft(() => {
1485
+ n.value || (C.value = "", k.value = "");
1468
1486
  }), (p, L) => {
1469
- const f = P("a-button"), S = P("a-input"), j = P("a-checkbox"), V = P("a-typography-text"), te = P("a-popover");
1470
- return I(), E(te, {
1471
- open: n.value,
1472
- "onUpdate:open": L[1] || (L[1] = (D) => n.value = D),
1473
- placement: "bottomRight",
1474
- trigger: "click",
1475
- "overlay-inner-style": { padding: 0 },
1476
- "overlay-class-name": "pro-table-config-popover",
1477
- onOpenChange: _
1478
- }, {
1479
- content: C(() => [
1480
- J("div", {
1481
- class: $(p.$style.tableConfig)
1482
- }, [
1483
- J("div", {
1484
- class: $(p.$style.tableConfigHead)
1485
- }, [
1486
- T(S, {
1487
- value: s.value,
1488
- "onUpdate:value": L[0] || (L[0] = (D) => s.value = D),
1489
- placeholder: "搜索标题",
1490
- onChange: w(m)
1491
- }, null, 8, ["value", "onChange"])
1492
- ], 2),
1493
- J("div", {
1494
- class: $(p.$style.tableConfigContent)
1495
- }, [
1496
- T(w(gt), {
1497
- list: o.value,
1498
- "item-key": "key",
1499
- class: $(p.$style.columnList),
1500
- handle: ".table-column-draggable-handle"
1501
- }, {
1502
- item: C(({ element: D }) => [
1503
- v(D) ? (I(), U("div", {
1487
+ const z = E("a-button"), W = 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
+ return x(), B(se, { theme: {
1489
+ token: {
1490
+ borderRadius: 2
1491
+ }
1492
+ } }, {
1493
+ default: _(() => [
1494
+ v(le, {
1495
+ open: n.value,
1496
+ "onUpdate:open": L[2] || (L[2] = (A) => n.value = A),
1497
+ placement: "bottomRight",
1498
+ trigger: "click",
1499
+ "overlay-inner-style": { padding: 0 },
1500
+ "overlay-class-name": "pro-table-config-popover"
1501
+ }, {
1502
+ content: _(() => [
1503
+ Y("div", {
1504
+ class: m(p.$style.tableConfig)
1505
+ }, [
1506
+ Y("div", {
1507
+ class: m(p.$style.tableConfigActions)
1508
+ }, [
1509
+ v(W, {
1510
+ checked: g.value,
1511
+ "onUpdate:checked": L[0] || (L[0] = (A) => g.value = A),
1512
+ indeterminate: V.value
1513
+ }, {
1514
+ default: _(() => L[3] || (L[3] = [
1515
+ ne(" 全选 ")
1516
+ ])),
1517
+ _: 1
1518
+ }, 8, ["checked", "indeterminate"]),
1519
+ v(z, {
1520
+ type: "link",
1521
+ size: "small",
1522
+ onClick: b
1523
+ }, {
1524
+ default: _(() => L[4] || (L[4] = [
1525
+ ne(" 重置 ")
1526
+ ])),
1527
+ _: 1
1528
+ })
1529
+ ], 2),
1530
+ Y("div", {
1531
+ class: m(p.$style.tableConfigHead)
1532
+ }, [
1533
+ v(be, {
1534
+ value: C.value,
1535
+ "onUpdate:value": L[1] || (L[1] = (A) => C.value = A),
1536
+ placeholder: "搜索标题",
1537
+ onChange: f(T)
1538
+ }, null, 8, ["value", "onChange"])
1539
+ ], 2),
1540
+ Y("div", {
1541
+ class: m(p.$style.tableConfigContent)
1542
+ }, [
1543
+ s.value.some((A) => u(A)) ? (x(), H("div", {
1504
1544
  key: 0,
1505
- class: $(p.$style.columnItem),
1506
- style: $e({ background: w(we).colorBgContainer })
1545
+ class: m(p.$style.columnGroup)
1507
1546
  }, [
1508
- T(j, {
1509
- checked: D.visible,
1510
- "onUpdate:checked": (ue) => D.visible = ue
1511
- }, null, 8, ["checked", "onUpdate:checked"]),
1512
- T(V, {
1513
- ellipsis: { tooltip: D.title },
1514
- content: D.title,
1515
- class: $([p.$style.columnItemContent, p.$style.dragHandle, "table-column-draggable-handle"]),
1516
- onClick: (ue) => D.visible = !D.visible
1517
- }, null, 8, ["ellipsis", "content", "class", "onClick"]),
1518
- T(f, {
1519
- type: "text",
1520
- size: "small",
1521
- icon: X(w(De)),
1522
- style: $e({ color: w(we).colorTextQuaternary }),
1523
- class: $([D.fixed ? p.$style.dragIconDisabled : "table-column-draggable-handle", p.$style.dragIcon])
1524
- }, null, 8, ["icon", "style", "class"])
1525
- ], 6)) : N("", !0)
1526
- ]),
1527
- _: 1
1528
- }, 8, ["list", "class"]),
1529
- b.value ? (I(), U("div", {
1530
- key: 0,
1531
- class: $(p.$style.emptyText),
1532
- style: $e({ color: w(we).colorTextSecondary })
1533
- }, " 未找到相关查询项 ", 6)) : N("", !0)
1534
- ], 2),
1535
- J("div", {
1536
- class: $(p.$style.tableConfigFoot)
1537
- }, [
1538
- T(f, {
1539
- type: "link",
1540
- disabled: c.value,
1541
- onClick: y
1542
- }, {
1543
- default: C(() => L[2] || (L[2] = [
1544
- K(" 确定 ")
1545
- ])),
1546
- _: 1
1547
- }, 8, ["disabled"]),
1548
- T(f, {
1549
- type: "link",
1550
- onClick: F
1551
- }, {
1552
- default: C(() => L[3] || (L[3] = [
1553
- K(" 取消 ")
1554
- ])),
1555
- _: 1
1556
- }),
1557
- T(f, {
1558
- type: "link",
1559
- onClick: g
1560
- }, {
1561
- default: C(() => L[4] || (L[4] = [
1562
- K(" 重置 ")
1563
- ])),
1564
- _: 1
1565
- })
1566
- ], 2)
1567
- ], 2)
1568
- ]),
1569
- default: C(() => [
1570
- T(f, {
1571
- type: "text",
1572
- icon: X(w(Tn)),
1573
- class: $(p.$style.configBtn)
1574
- }, null, 8, ["icon", "class"])
1547
+ Y("div", {
1548
+ class: m(p.$style.groupTitle)
1549
+ }, "固定在左侧", 2),
1550
+ v(f(Re), {
1551
+ list: s.value,
1552
+ "item-key": "key",
1553
+ class: m(p.$style.columnList),
1554
+ handle: ".table-column-draggable-handle",
1555
+ onEnd: w
1556
+ }, {
1557
+ item: _(({ element: A }) => [
1558
+ u(A) ? (x(), H("div", {
1559
+ key: 0,
1560
+ class: m(p.$style.columnItem),
1561
+ style: re({ background: f(oe).colorBgContainer })
1562
+ }, [
1563
+ v(z, {
1564
+ type: "text",
1565
+ size: "small",
1566
+ icon: G(f(Pe)),
1567
+ style: re({ color: f(oe).colorTextQuaternary }),
1568
+ class: m(["table-column-draggable-handle", p.$style.dragIcon])
1569
+ }, null, 8, ["icon", "style", "class"]),
1570
+ v(W, {
1571
+ checked: A.visible,
1572
+ "onUpdate:checked": (R) => A.visible = R,
1573
+ onChange: w
1574
+ }, null, 8, ["checked", "onUpdate:checked"]),
1575
+ v(me, {
1576
+ ellipsis: { tooltip: A.title },
1577
+ content: A.title,
1578
+ class: m([p.$style.columnItemContent, p.$style.dragHandle, "table-column-draggable-handle"]),
1579
+ onClick: () => {
1580
+ A.visible = !A.visible, w();
1581
+ }
1582
+ }, null, 8, ["ellipsis", "content", "class", "onClick"]),
1583
+ Y("div", {
1584
+ class: m(p.$style.fixedActions)
1585
+ }, [
1586
+ v(ie, { title: "固定在右侧" }, {
1587
+ default: _(() => [
1588
+ v(z, {
1589
+ type: "text",
1590
+ size: "small",
1591
+ icon: G(f(xt)),
1592
+ style: re({ color: f(oe).colorTextQuaternary }),
1593
+ onClick: (R) => I(A, "right")
1594
+ }, null, 8, ["icon", "style", "onClick"])
1595
+ ]),
1596
+ _: 2
1597
+ }, 1024),
1598
+ v(ie, { title: "取消固定" }, {
1599
+ default: _(() => [
1600
+ v(z, {
1601
+ type: "text",
1602
+ size: "small",
1603
+ icon: G(f(Tt)),
1604
+ style: re({ color: f(oe).colorPrimary }),
1605
+ onClick: (R) => I(A, !1)
1606
+ }, null, 8, ["icon", "style", "onClick"])
1607
+ ]),
1608
+ _: 2
1609
+ }, 1024)
1610
+ ], 2)
1611
+ ], 6)) : N("", !0)
1612
+ ]),
1613
+ _: 1
1614
+ }, 8, ["list", "class"])
1615
+ ], 2)) : N("", !0),
1616
+ l.value.some((A) => u(A)) ? (x(), H("div", {
1617
+ key: 1,
1618
+ class: m(p.$style.columnGroup)
1619
+ }, [
1620
+ Y("div", {
1621
+ class: m(p.$style.groupTitle)
1622
+ }, "不固定", 2),
1623
+ v(f(Re), {
1624
+ list: l.value,
1625
+ "item-key": "key",
1626
+ class: m(p.$style.columnList),
1627
+ handle: ".table-column-draggable-handle",
1628
+ onEnd: w
1629
+ }, {
1630
+ item: _(({ element: A }) => [
1631
+ u(A) ? (x(), H("div", {
1632
+ key: 0,
1633
+ class: m(p.$style.columnItem),
1634
+ style: re({ background: f(oe).colorBgContainer })
1635
+ }, [
1636
+ v(z, {
1637
+ type: "text",
1638
+ size: "small",
1639
+ icon: G(f(Pe)),
1640
+ style: re({ color: f(oe).colorTextQuaternary }),
1641
+ class: m(["table-column-draggable-handle", p.$style.dragIcon])
1642
+ }, null, 8, ["icon", "style", "class"]),
1643
+ v(W, {
1644
+ checked: A.visible,
1645
+ "onUpdate:checked": (R) => A.visible = R,
1646
+ onChange: w
1647
+ }, null, 8, ["checked", "onUpdate:checked"]),
1648
+ v(me, {
1649
+ ellipsis: { tooltip: A.title },
1650
+ content: A.title,
1651
+ class: m([p.$style.columnItemContent, p.$style.dragHandle, "table-column-draggable-handle"]),
1652
+ onClick: () => {
1653
+ A.visible = !A.visible, w();
1654
+ }
1655
+ }, null, 8, ["ellipsis", "content", "class", "onClick"]),
1656
+ Y("div", {
1657
+ class: m(p.$style.fixedActions)
1658
+ }, [
1659
+ v(ie, { title: "固定在左侧" }, {
1660
+ default: _(() => [
1661
+ v(z, {
1662
+ type: "text",
1663
+ size: "small",
1664
+ icon: G(f(Pt)),
1665
+ style: re({ color: f(oe).colorTextQuaternary }),
1666
+ onClick: (R) => I(A, "left")
1667
+ }, null, 8, ["icon", "style", "onClick"])
1668
+ ]),
1669
+ _: 2
1670
+ }, 1024),
1671
+ v(ie, { title: "固定在右侧" }, {
1672
+ default: _(() => [
1673
+ v(z, {
1674
+ type: "text",
1675
+ size: "small",
1676
+ icon: G(f(xt)),
1677
+ style: re({ color: f(oe).colorTextQuaternary }),
1678
+ onClick: (R) => I(A, "right")
1679
+ }, null, 8, ["icon", "style", "onClick"])
1680
+ ]),
1681
+ _: 2
1682
+ }, 1024)
1683
+ ], 2)
1684
+ ], 6)) : N("", !0)
1685
+ ]),
1686
+ _: 1
1687
+ }, 8, ["list", "class"])
1688
+ ], 2)) : N("", !0),
1689
+ d.value.some((A) => u(A)) ? (x(), H("div", {
1690
+ key: 2,
1691
+ class: m(p.$style.columnGroup)
1692
+ }, [
1693
+ Y("div", {
1694
+ class: m(p.$style.groupTitle)
1695
+ }, "固定在右侧", 2),
1696
+ v(f(Re), {
1697
+ list: d.value,
1698
+ "item-key": "key",
1699
+ class: m(p.$style.columnList),
1700
+ handle: ".table-column-draggable-handle",
1701
+ onEnd: w
1702
+ }, {
1703
+ item: _(({ element: A }) => [
1704
+ u(A) ? (x(), H("div", {
1705
+ key: 0,
1706
+ class: m(p.$style.columnItem),
1707
+ style: re({ background: f(oe).colorBgContainer })
1708
+ }, [
1709
+ v(z, {
1710
+ type: "text",
1711
+ size: "small",
1712
+ icon: G(f(Pe)),
1713
+ style: re({ color: f(oe).colorTextQuaternary }),
1714
+ class: m(["table-column-draggable-handle", p.$style.dragIcon])
1715
+ }, null, 8, ["icon", "style", "class"]),
1716
+ v(W, {
1717
+ checked: A.visible,
1718
+ "onUpdate:checked": (R) => A.visible = R,
1719
+ onChange: w
1720
+ }, null, 8, ["checked", "onUpdate:checked"]),
1721
+ v(me, {
1722
+ ellipsis: { tooltip: A.title },
1723
+ content: A.title,
1724
+ class: m([p.$style.columnItemContent, p.$style.dragHandle, "table-column-draggable-handle"]),
1725
+ onClick: () => {
1726
+ A.visible = !A.visible, w();
1727
+ }
1728
+ }, null, 8, ["ellipsis", "content", "class", "onClick"]),
1729
+ Y("div", {
1730
+ class: m(p.$style.fixedActions)
1731
+ }, [
1732
+ v(ie, { title: "固定在左侧" }, {
1733
+ default: _(() => [
1734
+ v(z, {
1735
+ type: "text",
1736
+ size: "small",
1737
+ icon: G(f(Pt)),
1738
+ style: re({ color: f(oe).colorTextQuaternary }),
1739
+ onClick: (R) => I(A, "left")
1740
+ }, null, 8, ["icon", "style", "onClick"])
1741
+ ]),
1742
+ _: 2
1743
+ }, 1024),
1744
+ v(ie, { title: "取消固定" }, {
1745
+ default: _(() => [
1746
+ v(z, {
1747
+ type: "text",
1748
+ size: "small",
1749
+ icon: G(f(Tt)),
1750
+ style: re({ color: f(oe).colorPrimary }),
1751
+ onClick: (R) => I(A, !1)
1752
+ }, null, 8, ["icon", "style", "onClick"])
1753
+ ]),
1754
+ _: 2
1755
+ }, 1024)
1756
+ ], 2)
1757
+ ], 6)) : N("", !0)
1758
+ ]),
1759
+ _: 1
1760
+ }, 8, ["list", "class"])
1761
+ ], 2)) : N("", !0),
1762
+ h.value ? (x(), H("div", {
1763
+ key: 3,
1764
+ class: m(p.$style.emptyText),
1765
+ style: re({ color: f(oe).colorTextSecondary })
1766
+ }, " 未找到相关查询项 ", 6)) : N("", !0)
1767
+ ], 2)
1768
+ ], 2)
1769
+ ]),
1770
+ default: _(() => [
1771
+ v(z, {
1772
+ type: "text",
1773
+ icon: G(f(jn)),
1774
+ class: m(p.$style.configBtn)
1775
+ }, null, 8, ["icon", "class"])
1776
+ ]),
1777
+ _: 1
1778
+ }, 8, ["open"])
1575
1779
  ]),
1576
1780
  _: 1
1577
- }, 8, ["open"]);
1781
+ });
1578
1782
  };
1579
1783
  }
1580
- }), ea = "_configBtn_1rypj_1", ta = "_tableConfig_1rypj_8", na = "_tableConfigHead_1rypj_11", ra = "_tableConfigContent_1rypj_14", aa = "_columnList_1rypj_19", oa = "_columnItem_1rypj_19", sa = "_columnItemContent_1rypj_26", la = "_dragIcon_1rypj_30", ia = "_dragIconDisabled_1rypj_33", ua = "_dragHandle_1rypj_36", ca = "_emptyText_1rypj_39", da = "_tableConfigFoot_1rypj_43", pa = {
1581
- configBtn: ea,
1582
- tableConfig: ta,
1583
- tableConfigHead: na,
1584
- tableConfigContent: ra,
1585
- columnList: aa,
1586
- columnItem: oa,
1587
- columnItemContent: sa,
1588
- dragIcon: la,
1589
- dragIconDisabled: ia,
1590
- dragHandle: ua,
1591
- emptyText: ca,
1592
- tableConfigFoot: da
1593
- }, fa = {
1594
- $style: pa
1595
- }, ma = /* @__PURE__ */ fe(Xr, [["__cssModules", fa]]), ya = /* @__PURE__ */ ie({
1784
+ }), lr = "_configBtn_1lown_1", sr = "_tableConfig_1lown_9", ir = "_tableConfigHead_1lown_12", ur = "_tableConfigActions_1lown_15", cr = "_tableConfigContent_1lown_22", dr = "_columnGroup_1lown_28", pr = "_groupTitle_1lown_28", fr = "_columnList_1lown_35", mr = "_columnItem_1lown_39", yr = "_columnItemContent_1lown_47", gr = "_dragIcon_1lown_51", vr = "_dragHandle_1lown_54", hr = "_fixedActions_1lown_57", br = "_emptyText_1lown_65", _r = {
1785
+ configBtn: lr,
1786
+ tableConfig: sr,
1787
+ tableConfigHead: ir,
1788
+ tableConfigActions: ur,
1789
+ tableConfigContent: cr,
1790
+ columnGroup: dr,
1791
+ groupTitle: pr,
1792
+ columnList: fr,
1793
+ columnItem: mr,
1794
+ columnItemContent: yr,
1795
+ dragIcon: gr,
1796
+ dragHandle: vr,
1797
+ fixedActions: hr,
1798
+ emptyText: br
1799
+ }, Cr = {
1800
+ $style: _r
1801
+ }, $r = /* @__PURE__ */ he(or, [["__cssModules", Cr]]), wr = /* @__PURE__ */ fe({
1596
1802
  __name: "DynamicList",
1597
1803
  props: {
1598
1804
  /**
@@ -1650,7 +1856,7 @@ const xr = (r) => {
1650
1856
  deleteButtonProps: {
1651
1857
  type: [Object, Function],
1652
1858
  default: () => ({
1653
- icon: X(wt)
1859
+ icon: G(Ot)
1654
1860
  })
1655
1861
  },
1656
1862
  /**
@@ -1668,7 +1874,7 @@ const xr = (r) => {
1668
1874
  sortButtonProps: {
1669
1875
  type: [Object, Function],
1670
1876
  default: () => ({
1671
- icon: X(De)
1877
+ icon: G(Pe)
1672
1878
  })
1673
1879
  },
1674
1880
  /**
@@ -1695,104 +1901,104 @@ const xr = (r) => {
1695
1901
  */
1696
1902
  getNewItemData: {
1697
1903
  type: Function,
1698
- default: () => (r) => r
1904
+ default: () => (a) => a
1699
1905
  }
1700
1906
  },
1701
1907
  emits: ["update:value", "add", "remove", "change"],
1702
- setup(r, { emit: e }) {
1703
- const n = r, t = e, a = vn.useInjectFormItemContext(), o = ee(n.value), l = () => {
1704
- const v = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1705
- return Array.from({ length: 16 }).map(() => v[Math.floor(Math.random() * v.length)]).join("");
1706
- }, s = (v) => {
1707
- var b;
1908
+ setup(a, { emit: e }) {
1909
+ const n = a, t = e, r = kn.useInjectFormItemContext(), o = te(n.value), s = () => {
1910
+ const C = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1911
+ return Array.from({ length: 16 }).map(() => C[Math.floor(Math.random() * C.length)]).join("");
1912
+ }, l = (C) => {
1913
+ var k;
1708
1914
  if (o.value.length < n.maxLength) {
1709
- const m = {
1710
- id: l(),
1711
- ...((b = n.getNewItemData) == null ? void 0 : b.call(n)) ?? {}
1915
+ const y = {
1916
+ id: s(),
1917
+ ...((k = n.getNewItemData) == null ? void 0 : k.call(n)) ?? {}
1712
1918
  };
1713
- o.value.splice(v + 1, 0, m), t("add", m, v + 1);
1919
+ o.value.splice(C + 1, 0, y), t("add", y, C + 1);
1714
1920
  }
1715
- }, d = (v) => {
1716
- o.value.splice(v, 1), t("remove", v);
1921
+ }, d = (C) => {
1922
+ o.value.splice(C, 1), t("remove", C);
1717
1923
  };
1718
- return he(
1924
+ return Se(
1719
1925
  () => o.value,
1720
1926
  () => {
1721
- t("update:value", w(o.value)), t("change", w(o.value)), a.onFieldChange();
1927
+ t("update:value", f(o.value)), t("change", f(o.value)), r.onFieldChange();
1722
1928
  },
1723
1929
  {
1724
1930
  deep: !0,
1725
1931
  immediate: !0
1726
1932
  }
1727
- ), he(
1933
+ ), Se(
1728
1934
  () => n.value,
1729
1935
  () => {
1730
- o.value = w(n.value);
1936
+ o.value = f(n.value);
1731
1937
  },
1732
1938
  {
1733
1939
  deep: !0,
1734
1940
  immediate: !0
1735
1941
  }
1736
- ), (v, b) => {
1737
- const m = P("a-button");
1738
- return I(), U(xe, null, [
1739
- T(w(gt), {
1942
+ ), (C, k) => {
1943
+ const y = E("a-button");
1944
+ return x(), H(Te, null, [
1945
+ v(f(Re), {
1740
1946
  list: o.value,
1741
- "item-key": r.itemKey,
1742
- disabled: !r.sortable,
1947
+ "item-key": a.itemKey,
1948
+ disabled: !a.sortable,
1743
1949
  handle: ".draggable-icon",
1744
- class: $([v.$style.dynamicList, r.className])
1950
+ class: m([C.$style.dynamicList, a.className])
1745
1951
  }, {
1746
- item: C(({ element: c, index: y }) => [
1747
- J("div", {
1748
- class: $([v.$style.dynamicListItem, r.itemClassName])
1952
+ item: _(({ element: u, index: h }) => [
1953
+ Y("div", {
1954
+ class: m([C.$style.dynamicListItem, a.itemClassName])
1749
1955
  }, [
1750
- J("div", {
1751
- class: $(v.$style.dynamicListItemContent)
1956
+ Y("div", {
1957
+ class: m(C.$style.dynamicListItemContent)
1752
1958
  }, [
1753
- pe(v.$slots, "default", {
1754
- item: c,
1755
- index: y
1959
+ ve(C.$slots, "default", {
1960
+ item: u,
1961
+ index: h
1756
1962
  })
1757
1963
  ], 2),
1758
- J("div", {
1759
- class: $(v.$style.actionsIcons)
1964
+ Y("div", {
1965
+ class: m(C.$style.actionsIcons)
1760
1966
  }, [
1761
- T(m, oe({
1967
+ v(y, ue({
1762
1968
  type: "link",
1763
1969
  danger: "",
1764
1970
  size: "small",
1765
- icon: X(w(wt))
1766
- }, w(_e)(r.deleteButtonProps) ? r.deleteButtonProps(c, y) : r.deleteButtonProps, {
1767
- onClick: (F) => d(y)
1971
+ icon: G(f(Ot))
1972
+ }, f(ke)(a.deleteButtonProps) ? a.deleteButtonProps(u, h) : a.deleteButtonProps, {
1973
+ onClick: (T) => d(h)
1768
1974
  }), {
1769
- default: C(() => [
1770
- K(be(r.deleteButtonText), 1)
1975
+ default: _(() => [
1976
+ ne(_e(a.deleteButtonText), 1)
1771
1977
  ]),
1772
1978
  _: 2
1773
1979
  }, 1040, ["icon", "onClick"]),
1774
- r.sortable ? (I(), E(m, oe({
1980
+ a.sortable ? (x(), B(y, ue({
1775
1981
  key: 0,
1776
- class: ["draggable-icon", v.$style.dragIcon],
1982
+ class: ["draggable-icon", C.$style.dragIcon],
1777
1983
  size: "small",
1778
1984
  type: "text",
1779
- icon: X(w(De))
1780
- }, w(_e)(r.sortButtonProps) ? r.sortButtonProps(c, y) : r.sortButtonProps), null, 16, ["class", "icon"])) : N("", !0)
1985
+ icon: G(f(Pe))
1986
+ }, f(ke)(a.sortButtonProps) ? a.sortButtonProps(u, h) : a.sortButtonProps), null, 16, ["class", "icon"])) : N("", !0)
1781
1987
  ], 2)
1782
1988
  ], 2)
1783
1989
  ]),
1784
1990
  _: 3
1785
1991
  }, 8, ["list", "item-key", "disabled", "class"]),
1786
- J("div", null, [
1787
- o.value.length < r.maxLength ? (I(), E(m, oe({
1992
+ Y("div", null, [
1993
+ o.value.length < a.maxLength ? (x(), B(y, ue({
1788
1994
  key: 0,
1789
1995
  type: "link",
1790
- icon: X(w(At))
1791
- }, w(_e)(r.addButtonProps) ? r.addButtonProps() : r.addButtonProps, {
1792
- onClick: b[0] || (b[0] = (c) => s(o.value.length - 1))
1996
+ icon: G(f(Gt))
1997
+ }, f(ke)(a.addButtonProps) ? a.addButtonProps() : a.addButtonProps, {
1998
+ onClick: k[0] || (k[0] = (u) => l(o.value.length - 1))
1793
1999
  }), {
1794
- default: C(() => [
1795
- K(be(r.addButtonText), 1)
2000
+ default: _(() => [
2001
+ ne(_e(a.addButtonText), 1)
1796
2002
  ]),
1797
2003
  _: 1
1798
2004
  }, 16, ["icon"])) : N("", !0)
@@ -1800,15 +2006,15 @@ const xr = (r) => {
1800
2006
  ], 64);
1801
2007
  };
1802
2008
  }
1803
- }), ga = "_dynamicList_1woe5_1", va = "_dynamicListItem_1woe5_6", ha = "_dynamicListItemContent_1woe5_13", ba = "_actionsIcons_1woe5_17", _a = "_dragIcon_1woe5_21", Ca = {
1804
- dynamicList: ga,
1805
- dynamicListItem: va,
1806
- dynamicListItemContent: ha,
1807
- actionsIcons: ba,
1808
- dragIcon: _a
1809
- }, $a = {
1810
- $style: Ca
1811
- }, wa = /* @__PURE__ */ fe(ya, [["__cssModules", $a]]), Sa = /* @__PURE__ */ ie({
2009
+ }), Sr = "_dynamicList_1woe5_1", kr = "_dynamicListItem_1woe5_6", Ir = "_dynamicListItemContent_1woe5_13", Fr = "_actionsIcons_1woe5_17", xr = "_dragIcon_1woe5_21", Tr = {
2010
+ dynamicList: Sr,
2011
+ dynamicListItem: kr,
2012
+ dynamicListItemContent: Ir,
2013
+ actionsIcons: Fr,
2014
+ dragIcon: xr
2015
+ }, Pr = {
2016
+ $style: Tr
2017
+ }, Or = /* @__PURE__ */ he(wr, [["__cssModules", Pr]]), qr = /* @__PURE__ */ fe({
1812
2018
  __name: "InputGroup",
1813
2019
  props: {
1814
2020
  /**
@@ -1837,52 +2043,52 @@ const xr = (r) => {
1837
2043
  }
1838
2044
  },
1839
2045
  emits: ["update:value", "change"],
1840
- setup(r, { emit: e }) {
1841
- const n = r, t = e, a = M({
2046
+ setup(a, { emit: e }) {
2047
+ const n = a, t = e, r = j({
1842
2048
  get() {
1843
2049
  return n.value;
1844
2050
  },
1845
- set(l) {
1846
- t("update:value", l), t("change", l);
2051
+ set(s) {
2052
+ t("update:value", s), t("change", s);
1847
2053
  }
1848
- }), o = M(() => {
1849
- var s, d;
1850
- const l = n.inModal ? "30%" : "50%";
1851
- return ((d = (s = n.formItem.addonSelectProps) == null ? void 0 : s.style) == null ? void 0 : d.width) ?? l;
2054
+ }), o = j(() => {
2055
+ var l, d;
2056
+ const s = n.inModal ? "30%" : "50%";
2057
+ return ((d = (l = n.formItem.addonSelectProps) == null ? void 0 : l.style) == null ? void 0 : d.width) ?? s;
1852
2058
  });
1853
- return (l, s) => {
1854
- const d = P("a-select"), v = P("a-input"), b = P("a-input-group");
1855
- return I(), E(b, {
2059
+ return (s, l) => {
2060
+ const d = E("a-select"), C = E("a-input"), k = E("a-input-group");
2061
+ return x(), B(k, {
1856
2062
  compact: "",
1857
- class: $(l.$style.inputGroup)
2063
+ class: m(s.$style.inputGroup)
1858
2064
  }, {
1859
- default: C(() => [
1860
- T(d, oe({
1861
- value: a.value.select,
1862
- "onUpdate:value": s[0] || (s[0] = (m) => a.value.select = m),
2065
+ default: _(() => [
2066
+ v(d, ue({
2067
+ value: r.value.select,
2068
+ "onUpdate:value": l[0] || (l[0] = (y) => r.value.select = y),
1863
2069
  style: {
1864
- ...w(Xe)(r.formItem, "addonBeforeProps.style", {}),
2070
+ ...f(nt)(a.formItem, "addonBeforeProps.style", {}),
1865
2071
  width: o.value
1866
2072
  }
1867
- }, w(Nt)(r.formItem.addonBeforeProps, ["style"])), null, 16, ["value", "style"]),
1868
- T(v, oe({
1869
- value: a.value.value,
1870
- "onUpdate:value": s[1] || (s[1] = (m) => a.value.value = m),
2073
+ }, f(Wt)(a.formItem.addonBeforeProps, ["style"])), null, 16, ["value", "style"]),
2074
+ v(C, ue({
2075
+ value: r.value.value,
2076
+ "onUpdate:value": l[1] || (l[1] = (y) => r.value.value = y),
1871
2077
  style: {
1872
- ...w(Xe)(r.formItem, "props.style", {}),
2078
+ ...f(nt)(a.formItem, "props.style", {}),
1873
2079
  width: `calc(100% - ${o.value})`
1874
2080
  }
1875
- }, w(ke)(r.formItem, ["props"])), null, 16, ["value", "style"])
2081
+ }, f(Ie)(a.formItem, ["props"])), null, 16, ["value", "style"])
1876
2082
  ]),
1877
2083
  _: 1
1878
2084
  }, 8, ["class"]);
1879
2085
  };
1880
2086
  }
1881
- }), Ia = "_inputGroup_eukv3_1", Fa = {
1882
- inputGroup: Ia
1883
- }, xa = {
1884
- $style: Fa
1885
- }, ka = /* @__PURE__ */ fe(Sa, [["__cssModules", xa]]), We = null, Ta = /* @__PURE__ */ ie({
2087
+ }), Ar = "_inputGroup_eukv3_1", Er = {
2088
+ inputGroup: Ar
2089
+ }, Lr = {
2090
+ $style: Er
2091
+ }, Mr = /* @__PURE__ */ he(qr, [["__cssModules", Lr]]), Je = null, jr = /* @__PURE__ */ fe({
1886
2092
  __name: "InputNumberRange",
1887
2093
  props: {
1888
2094
  /**
@@ -1903,64 +2109,64 @@ const xr = (r) => {
1903
2109
  }
1904
2110
  },
1905
2111
  emits: ["update:value"],
1906
- setup(r, { emit: e }) {
1907
- const n = r, t = e, a = M({
2112
+ setup(a, { emit: e }) {
2113
+ const n = a, t = e, r = j({
1908
2114
  get() {
1909
- var s;
1910
- return ((s = n.value) == null ? void 0 : s[0]) ?? We;
2115
+ var l;
2116
+ return ((l = n.value) == null ? void 0 : l[0]) ?? Je;
1911
2117
  },
1912
- set(s) {
2118
+ set(l) {
1913
2119
  var d;
1914
- t("update:value", [s, ((d = n.value) == null ? void 0 : d[1]) ?? We]);
2120
+ t("update:value", [l, ((d = n.value) == null ? void 0 : d[1]) ?? Je]);
1915
2121
  }
1916
- }), o = M({
2122
+ }), o = j({
1917
2123
  get() {
1918
- var s;
1919
- return ((s = n.value) == null ? void 0 : s[1]) ?? We;
2124
+ var l;
2125
+ return ((l = n.value) == null ? void 0 : l[1]) ?? Je;
1920
2126
  },
1921
- set(s) {
2127
+ set(l) {
1922
2128
  var d;
1923
- t("update:value", [((d = n.value) == null ? void 0 : d[0]) ?? We, s]);
2129
+ t("update:value", [((d = n.value) == null ? void 0 : d[0]) ?? Je, l]);
1924
2130
  }
1925
- }), l = M(() => Nt(n.formItem.props, ["placeholder"]));
1926
- return (s, d) => {
1927
- var b, m, c, y;
1928
- const v = P("a-input-number");
1929
- return I(), U("div", {
1930
- class: $([s.$style.inputNumberGroup, "input-number-group"])
2131
+ }), s = j(() => Wt(n.formItem.props, ["placeholder"]));
2132
+ return (l, d) => {
2133
+ var k, y, u, h;
2134
+ const C = E("a-input-number");
2135
+ return x(), H("div", {
2136
+ class: m([l.$style.inputNumberGroup, "input-number-group"])
1931
2137
  }, [
1932
- J("div", {
1933
- class: $(s.$style.inputNumberGroupContent)
2138
+ Y("div", {
2139
+ class: m(l.$style.inputNumberGroupContent)
1934
2140
  }, [
1935
- T(v, oe(l.value, {
1936
- value: a.value,
1937
- "onUpdate:value": d[0] || (d[0] = (F) => a.value = F),
1938
- class: [s.$style.inputNumber, s.$style.startInputNumber],
1939
- placeholder: ((m = w(je)((b = n.formItem.props) == null ? void 0 : b.placeholder)) == null ? void 0 : m[0]) ?? "请输入"
2141
+ v(C, ue(s.value, {
2142
+ value: r.value,
2143
+ "onUpdate:value": d[0] || (d[0] = (T) => r.value = T),
2144
+ class: [l.$style.inputNumber, l.$style.startInputNumber],
2145
+ placeholder: ((y = f(Ee)((k = n.formItem.props) == null ? void 0 : k.placeholder)) == null ? void 0 : y[0]) ?? "请输入"
1940
2146
  }), null, 16, ["value", "class", "placeholder"]),
1941
- J("span", {
1942
- class: $(s.$style.divider)
2147
+ Y("span", {
2148
+ class: m(l.$style.divider)
1943
2149
  }, "~", 2),
1944
- T(v, oe(l.value, {
2150
+ v(C, ue(s.value, {
1945
2151
  value: o.value,
1946
- "onUpdate:value": d[1] || (d[1] = (F) => o.value = F),
1947
- class: [s.$style.inputNumber, s.$style.endInputNumber],
1948
- placeholder: ((y = w(je)((c = n.formItem.props) == null ? void 0 : c.placeholder)) == null ? void 0 : y[1]) ?? "请输入"
2152
+ "onUpdate:value": d[1] || (d[1] = (T) => o.value = T),
2153
+ class: [l.$style.inputNumber, l.$style.endInputNumber],
2154
+ placeholder: ((h = f(Ee)((u = n.formItem.props) == null ? void 0 : u.placeholder)) == null ? void 0 : h[1]) ?? "请输入"
1949
2155
  }), null, 16, ["value", "class", "placeholder"])
1950
2156
  ], 2)
1951
2157
  ], 2);
1952
2158
  };
1953
2159
  }
1954
- }), Oa = "_inputNumberGroup_149g6_1", Pa = "_inputNumberGroupContent_149g6_4", qa = "_inputNumber_149g6_1", ja = "_startInputNumber_149g6_13", La = "_endInputNumber_149g6_21", Ea = "_divider_149g6_29", Ma = {
1955
- inputNumberGroup: Oa,
1956
- inputNumberGroupContent: Pa,
1957
- inputNumber: qa,
1958
- startInputNumber: ja,
1959
- endInputNumber: La,
1960
- divider: Ea
1961
- }, Aa = {
1962
- $style: Ma
1963
- }, Na = /* @__PURE__ */ fe(Ta, [["__cssModules", Aa]]), Ba = 8, Da = /* @__PURE__ */ ie({
2160
+ }), Nr = "_inputNumberGroup_149g6_1", Br = "_inputNumberGroupContent_149g6_4", Dr = "_inputNumber_149g6_1", Rr = "_startInputNumber_149g6_13", Vr = "_endInputNumber_149g6_21", zr = "_divider_149g6_29", Yr = {
2161
+ inputNumberGroup: Nr,
2162
+ inputNumberGroupContent: Br,
2163
+ inputNumber: Dr,
2164
+ startInputNumber: Rr,
2165
+ endInputNumber: Vr,
2166
+ divider: zr
2167
+ }, Hr = {
2168
+ $style: Yr
2169
+ }, Ur = /* @__PURE__ */ he(jr, [["__cssModules", Hr]]), Gr = 8, Wr = /* @__PURE__ */ fe({
1964
2170
  __name: "FormFieldItem",
1965
2171
  props: {
1966
2172
  /**
@@ -2001,49 +2207,49 @@ const xr = (r) => {
2001
2207
  }
2002
2208
  },
2003
2209
  emits: ["update:value", "change"],
2004
- setup(r, { emit: e }) {
2210
+ setup(a, { emit: e }) {
2005
2211
  const n = {
2006
- [H.input]: Sn,
2007
- [H.inputGroup]: ka,
2008
- [H.inputNumber]: wn,
2009
- [H.inputNumberRange]: Na,
2010
- [H.select]: $n,
2011
- [H.cascader]: Cn,
2012
- [H.treeSelect]: _n,
2013
- [H.datePicker]: bn,
2014
- [H.rangePicker]: hn
2015
- }, t = r, a = e, o = sn(), l = M({
2212
+ [J.input]: qn,
2213
+ [J.inputGroup]: Mr,
2214
+ [J.inputNumber]: On,
2215
+ [J.inputNumberRange]: Ur,
2216
+ [J.select]: Pn,
2217
+ [J.cascader]: Tn,
2218
+ [J.treeSelect]: xn,
2219
+ [J.datePicker]: Fn,
2220
+ [J.rangePicker]: In
2221
+ }, t = a, r = e, o = mn(), s = j({
2016
2222
  get() {
2017
2223
  return t.value;
2018
2224
  },
2019
- set(c) {
2020
- a("update:value", c), a("change", c);
2225
+ set(u) {
2226
+ r("update:value", u), r("change", u);
2021
2227
  }
2022
- }), s = M(() => !t.inModal && t.formItem.showLabel !== !1), d = M(() => {
2023
- const c = Tr(t.formItem.label);
2024
- return Math.max(c, 20) + Ba * 2 + 2;
2025
- }), v = M(() => {
2026
- const { type: c, component: y } = t.formItem;
2027
- return c === "component" ? y : n[c];
2028
- }), b = M(() => {
2029
- var g;
2030
- const c = t.formItem, y = {
2031
- [H.input]: {
2228
+ }), l = j(() => !t.inModal && t.formItem.showLabel !== !1), d = j(() => {
2229
+ const u = La(t.formItem.label);
2230
+ return Math.max(u, 20) + Gr * 2 + 2;
2231
+ }), C = j(() => {
2232
+ const { type: u, component: h } = t.formItem;
2233
+ return u === "component" ? h : n[u];
2234
+ }), k = j(() => {
2235
+ var $;
2236
+ const u = t.formItem, h = {
2237
+ [J.input]: {
2032
2238
  placeholder: "请输入",
2033
2239
  clearable: !0
2034
2240
  },
2035
- [H.inputGroup]: {
2241
+ [J.inputGroup]: {
2036
2242
  placeholder: "请输入",
2037
2243
  clearable: !0,
2038
- formItem: c
2244
+ formItem: u
2039
2245
  },
2040
- [H.inputNumber]: {
2246
+ [J.inputNumber]: {
2041
2247
  placeholder: "请输入"
2042
2248
  },
2043
- [H.inputNumberRange]: {
2044
- formItem: c
2249
+ [J.inputNumberRange]: {
2250
+ formItem: u
2045
2251
  },
2046
- [H.select]: {
2252
+ [J.select]: {
2047
2253
  placeholder: "请选择",
2048
2254
  optionFilterProp: "label",
2049
2255
  destroyedOnClose: !0,
@@ -2052,67 +2258,67 @@ const xr = (r) => {
2052
2258
  maxTagTextLength: 40,
2053
2259
  maxTagCount: "responsive"
2054
2260
  }
2055
- }, F = {
2261
+ }, T = {
2056
2262
  ...o,
2057
- ...y[c.type] ?? {},
2058
- ...c.props ?? {},
2263
+ ...h[u.type] ?? {},
2264
+ ...u.props ?? {},
2059
2265
  style: {
2060
- ...((g = c.props) == null ? void 0 : g.style) ?? {},
2061
- width: c.type !== H.component ? "100%" : void 0
2266
+ ...(($ = u.props) == null ? void 0 : $.style) ?? {},
2267
+ width: u.type !== J.component ? "100%" : void 0
2062
2268
  },
2063
2269
  inModal: t.inModal
2064
2270
  };
2065
- return t.inModal || (s.value && qe(F, "style.width", `calc(100% - ${d.value}px)`), c.type === H.select && qe(F, "maxTagCount", "responsive")), F;
2066
- }), m = M(() => t.formItem.modelPropName ?? "value");
2067
- return (c, y) => {
2068
- const F = P("a-input"), g = P("a-input-group");
2069
- return I(), U("div", {
2070
- class: $(c.$style.formFieldItem)
2271
+ return t.inModal || (l.value && Ae(T, "style.width", `calc(100% - ${d.value}px)`), u.type === J.select && Ae(T, "maxTagCount", "responsive")), T;
2272
+ }), y = j(() => t.formItem.modelPropName ?? "value");
2273
+ return (u, h) => {
2274
+ const T = E("a-input"), $ = E("a-input-group");
2275
+ return x(), H("div", {
2276
+ class: m(u.$style.formFieldItem)
2071
2277
  }, [
2072
- s.value ? (I(), E(g, {
2278
+ l.value ? (x(), B($, {
2073
2279
  key: 0,
2074
2280
  compact: "",
2075
- class: $([c.$style.inputGroup, "super-table-input-group"])
2281
+ class: m([u.$style.inputGroup, "super-table-input-group"])
2076
2282
  }, {
2077
- default: C(() => [
2078
- r.inModal ? N("", !0) : (I(), E(F, {
2283
+ default: _(() => [
2284
+ a.inModal ? N("", !0) : (x(), B(T, {
2079
2285
  key: 0,
2080
- value: r.formItem.label,
2286
+ value: a.formItem.label,
2081
2287
  disabled: "",
2082
- style: $e({
2083
- color: w(we).colorText,
2288
+ style: re({
2289
+ color: f(oe).colorText,
2084
2290
  width: `${d.value}px`
2085
2291
  }),
2086
- class: $([c.$style.formFieldItemLabel, "super-table-filter-form-item-label"])
2292
+ class: m([u.$style.formFieldItemLabel, "super-table-filter-form-item-label"])
2087
2293
  }, null, 8, ["value", "style", "class"])),
2088
- v.value ? (I(), E(Ke(v.value), oe({
2294
+ C.value ? (x(), B(et(C.value), ue({
2089
2295
  key: 1,
2090
- [m.value]: l.value,
2091
- ["onUpdate:" + m.value]: y[0] || (y[0] = (_) => l.value = _)
2092
- }, b.value), null, 16)) : N("", !0)
2296
+ [y.value]: s.value,
2297
+ ["onUpdate:" + y.value]: h[0] || (h[0] = (w) => s.value = w)
2298
+ }, k.value), null, 16)) : N("", !0)
2093
2299
  ]),
2094
2300
  _: 1
2095
- }, 8, ["class"])) : (I(), U(xe, { key: 1 }, [
2096
- r.formItem.type === w(H).component && r.formItem.showLabel ? (I(), U("span", {
2301
+ }, 8, ["class"])) : (x(), H(Te, { key: 1 }, [
2302
+ a.formItem.type === f(J).component && a.formItem.showLabel ? (x(), H("span", {
2097
2303
  key: 0,
2098
- class: $(c.$style.customItemLabel)
2099
- }, be(r.formItem.label), 3)) : N("", !0),
2100
- (I(), E(Ke(v.value), oe({
2101
- [m.value]: l.value,
2102
- ["onUpdate:" + m.value]: y[1] || (y[1] = (_) => l.value = _)
2103
- }, b.value), null, 16))
2304
+ class: m(u.$style.customItemLabel)
2305
+ }, _e(a.formItem.label), 3)) : N("", !0),
2306
+ (x(), B(et(C.value), ue({
2307
+ [y.value]: s.value,
2308
+ ["onUpdate:" + y.value]: h[1] || (h[1] = (w) => s.value = w)
2309
+ }, k.value), null, 16))
2104
2310
  ], 64))
2105
2311
  ], 2);
2106
2312
  };
2107
2313
  }
2108
- }), Ra = "_formFieldItem_1imun_1", Va = "_inputGroup_1imun_7", Ya = "_formFieldItemLabel_1imun_11", Ha = "_customItemLabel_1imun_20", Ua = {
2109
- formFieldItem: Ra,
2110
- inputGroup: Va,
2111
- formFieldItemLabel: Ya,
2112
- customItemLabel: Ha
2113
- }, Wa = {
2114
- $style: Ua
2115
- }, Wt = /* @__PURE__ */ fe(Da, [["__cssModules", Wa]]), za = /* @__PURE__ */ ie({
2314
+ }), Qr = "_formFieldItem_1imun_1", Jr = "_inputGroup_1imun_7", Kr = "_formFieldItemLabel_1imun_11", Zr = "_customItemLabel_1imun_20", Xr = {
2315
+ formFieldItem: Qr,
2316
+ inputGroup: Jr,
2317
+ formFieldItemLabel: Kr,
2318
+ customItemLabel: Zr
2319
+ }, eo = {
2320
+ $style: Xr
2321
+ }, tn = /* @__PURE__ */ he(Wr, [["__cssModules", eo]]), to = /* @__PURE__ */ fe({
2116
2322
  __name: "SceneConfigModal",
2117
2323
  props: {
2118
2324
  // 当前编辑的场景
@@ -2120,6 +2326,7 @@ const xr = (r) => {
2120
2326
  type: Object,
2121
2327
  default: null
2122
2328
  },
2329
+ // 表单项配置映射
2123
2330
  formConfigMap: {
2124
2331
  type: Object,
2125
2332
  default: () => ({}),
@@ -2133,7 +2340,7 @@ const xr = (r) => {
2133
2340
  // 弹窗操作类型 新增、更新、设置查询条件
2134
2341
  actionType: {
2135
2342
  type: String,
2136
- default: ce.create
2343
+ default: de.create
2137
2344
  },
2138
2345
  // 是否允许新增
2139
2346
  allowCreateScene: {
@@ -2152,15 +2359,31 @@ const xr = (r) => {
2152
2359
  }
2153
2360
  },
2154
2361
  emits: ["cancel", "search", "form-item-change", "update-form-config"],
2155
- setup(r, { expose: e, emit: n }) {
2156
- var Ie, Y;
2157
- const t = r, a = n, o = ee(Ge(t.formConfigMap)), l = M(() => it(
2158
- Object.values(o.value).filter(({ visible: x }) => x !== !1),
2159
- ve.order
2160
- )), s = ["name", "value", "type"], d = l.value.filter((x) => x._selected).map((x) => ke(x, s)), v = ee(!0), b = ee(!1), m = ee(), c = Ze({
2161
- name: ((Ie = t.currentScene) == null ? void 0 : Ie.name) ?? "",
2162
- items: t.actionType === ce.search ? d : Ge(((Y = t.currentScene) == null ? void 0 : Y.items) ?? [])
2163
- }), y = Ze({
2362
+ setup(a, { expose: e, emit: n }) {
2363
+ var Oe, He;
2364
+ const t = a, r = n, o = te(dt(t.formConfigMap)), s = j(() => mt(
2365
+ Object.values(o.value).filter(({ visible: P }) => P !== !1),
2366
+ we.order
2367
+ )), l = ["name", "value", "type"], d = s.value.filter((P) => P._selected).map((P) => Ie(P, l)), C = te(!0), k = te(!1), y = te(), u = tt({
2368
+ name: ((Oe = t.currentScene) == null ? void 0 : Oe.name) ?? "",
2369
+ items: t.actionType === de.search ? d : dt(((He = t.currentScene) == null ? void 0 : He.items) ?? [])
2370
+ }), h = j({
2371
+ get() {
2372
+ const P = s.value.filter((F) => !F.fixed);
2373
+ return P.length === 0 ? !1 : P.every((F) => u.items.some((M) => M.name === F.name));
2374
+ },
2375
+ set(P) {
2376
+ if (P) {
2377
+ const F = s.value.map((M) => Ie(M, l));
2378
+ u.items = At(u.items, F, "name");
2379
+ } else {
2380
+ const F = s.value.filter((M) => M.fixed).map((M) => M.name);
2381
+ u.items = u.items.filter((M) => F.includes(M.name));
2382
+ }
2383
+ }
2384
+ }), T = j(() => s.value.filter(
2385
+ (P) => u.items.some((F) => F.name === P.name)
2386
+ ).length), $ = j(() => T.value > 0 && T.value < s.value.length), w = tt({
2164
2387
  name: [
2165
2388
  {
2166
2389
  required: !0,
@@ -2179,181 +2402,203 @@ const xr = (r) => {
2179
2402
  type: "array"
2180
2403
  }
2181
2404
  ]
2182
- }), F = M(() => c.items.map(({ name: x }) => x)), g = () => {
2183
- const x = l.value.find((k) => !F.value.includes(k.name));
2184
- return x ? ke(Ge(x), s) : {};
2185
- }, _ = M(() => ({
2186
- [ce.create]: "新建场景",
2187
- [ce.update]: "更新场景",
2188
- [ce.search]: "高级筛选"
2189
- })[t.actionType]), p = (x, k) => {
2190
- const B = t.formConfigMap[k.name];
2191
- B && (k.type = B.type, k.value = B.value, k.label = B.label, f(k.name, k.value));
2192
- }, L = (x) => {
2193
- const k = t.formConfigMap[x], B = c.items.map((ne) => ne.name), W = l.value.filter((ne) => !B.includes(ne.name));
2194
- return [k, ...W];
2195
- }, f = (x, k) => {
2196
- const B = c.items.reduce(
2197
- (W, ne) => (W[ne.name] = ne.value, W),
2405
+ }), g = j(() => u.items.map(({ name: P }) => P)), V = () => {
2406
+ const P = s.value.find((F) => !g.value.includes(F.name));
2407
+ return P ? Ie(dt(P), l) : {};
2408
+ }, b = j(() => ({
2409
+ [de.create]: "新建场景",
2410
+ [de.update]: "更新场景",
2411
+ [de.search]: "高级筛选"
2412
+ })[t.actionType]), I = (P, F) => {
2413
+ const M = t.formConfigMap[F.name];
2414
+ M && (F.type = M.type, F.value = M.value, F.label = M.label, L(F.name, F.value));
2415
+ }, p = (P) => {
2416
+ const F = t.formConfigMap[P], M = u.items.map((ee) => ee.name), K = s.value.filter((ee) => !M.includes(ee.name));
2417
+ return [F, ...K];
2418
+ }, L = (P, F) => {
2419
+ const M = u.items.reduce(
2420
+ (K, ee) => (K[ee.name] = ee.value, K),
2198
2421
  {}
2199
2422
  );
2200
- a("form-item-change", x, k, B);
2201
- }, S = ({ name: x, value: k }) => {
2202
- f(x, k);
2203
- }, j = async () => {
2204
- var B;
2205
- const x = c.items.map((W, ne) => {
2206
- const de = o.value[W.name];
2207
- return de && (de.value = W.value, de[ve.orderInScene] = ne, de[ve.selected] = !0), de;
2423
+ r("form-item-change", P, F, M);
2424
+ }, z = ({ name: P, value: F }) => {
2425
+ L(P, F);
2426
+ }, W = async () => {
2427
+ var M;
2428
+ const P = u.items.map((K, ee) => {
2429
+ const ye = o.value[K.name];
2430
+ return ye && (ye.value = K.value, ye[we.orderInScene] = ee, ye[we.selected] = !0), ye;
2208
2431
  }).filter(Boolean);
2209
- if (t.actionType === ce.search && !b.value) {
2210
- a("update-form-config", x), a("search", c.items, x), a("cancel");
2432
+ if (t.actionType === de.search && !k.value) {
2433
+ r("update-form-config", P), r("search", u.items, P), r("cancel");
2211
2434
  return;
2212
2435
  }
2213
- await ((B = m.value) == null ? void 0 : B.validateFields());
2214
- const k = me(c);
2436
+ await ((M = y.value) == null ? void 0 : M.validateFields());
2437
+ const F = ge(u);
2215
2438
  t.currentScene ? await t.onUpdate({
2216
2439
  ...t.currentScene,
2217
- ...k
2218
- }) : await t.onCreate(k), a("update-form-config", x), a("cancel");
2440
+ ...F
2441
+ }) : await t.onCreate(F), r("update-form-config", P), r("cancel");
2219
2442
  };
2220
2443
  (() => {
2221
- if (c.items.length) return;
2222
- const x = En(
2223
- l.value.filter(({ fixed: B, selected: W }) => B || W),
2444
+ if (u.items.length) return;
2445
+ const P = At(
2446
+ s.value.filter(({ fixed: M, selected: K }) => M || K),
2224
2447
  "name"
2225
2448
  );
2226
- if (x.length) {
2227
- c.items = it(x, "_order").map((B) => ke(B, s)), console.log("formState.items", c.items);
2449
+ if (P.length) {
2450
+ u.items = mt(P, "_order").map((M) => Ie(M, l));
2228
2451
  return;
2229
2452
  }
2230
- const k = g();
2231
- k && c.items.push(k);
2453
+ const F = V();
2454
+ F && u.items.push(F);
2232
2455
  })();
2233
- const te = (x) => {
2234
- var k;
2456
+ const me = (P) => {
2457
+ var F;
2235
2458
  return {
2236
- disabled: (k = o.value[x.name]) == null ? void 0 : k.fixed
2459
+ disabled: (F = o.value[P.name]) == null ? void 0 : F.fixed
2237
2460
  };
2238
- }, D = (x) => o.value[x], ue = (x, k, B) => {
2239
- if (Rt.includes(k))
2240
- return Ce("setFormItem error,", `form item with prop "${x}" is readonly`);
2241
- if (!D(x))
2242
- return Ce("setFormItem error,", `Cannot find form item with name "${x}"`);
2243
- if (k === "visible" && o.value[x].fixed)
2244
- return Ce("setFormItem error,", "Cannot change the visible of a fixed form item");
2245
- qe(o.value, `${x}.${k}`, B), o.value[x].visible || (c.items = c.items.filter((W) => W.name !== x));
2246
- }, Te = (x) => {
2247
- var k;
2248
- return (k = c.items.find((B) => B.name === x)) == null ? void 0 : k.value;
2249
- }, Se = (x, k) => {
2250
- const B = c.items.find((W) => W.name === x);
2251
- B && (B.value = k);
2252
- }, re = (x) => {
2253
- Object.entries(x).forEach(([k, B]) => {
2254
- Se(k, B);
2461
+ }, ie = (P) => o.value[P], le = (P, F, M) => {
2462
+ if (Kt.includes(F))
2463
+ return Fe("setFormItem error,", `form item with prop "${P}" is readonly`);
2464
+ if (!ie(P))
2465
+ return Fe("setFormItem error,", `Cannot find form item with name "${P}"`);
2466
+ if (F === "visible" && o.value[P].fixed)
2467
+ return Fe("setFormItem error,", "Cannot change the visible of a fixed form item");
2468
+ Ae(o.value, `${P}.${F}`, M), o.value[P].visible || (u.items = u.items.filter((K) => K.name !== P));
2469
+ }, se = (P) => {
2470
+ var F;
2471
+ return (F = u.items.find((M) => M.name === P)) == null ? void 0 : F.value;
2472
+ }, A = (P, F) => {
2473
+ const M = u.items.find((K) => K.name === P);
2474
+ M && (M.value = F);
2475
+ }, R = (P) => {
2476
+ Object.entries(P).forEach(([F, M]) => {
2477
+ A(F, M);
2255
2478
  });
2256
2479
  };
2257
- function ae(x) {
2258
- return (x ? je(x) : c.items.map((B) => B.name)).reduce(
2259
- (B, W) => {
2260
- const ne = c.items.find((de) => de.name === W);
2261
- return ne && (B[W] = ne.value), B;
2480
+ function rt(P) {
2481
+ return (P ? Ee(P) : u.items.map((M) => M.name)).reduce(
2482
+ (M, K) => {
2483
+ const ee = u.items.find((ye) => ye.name === K);
2484
+ return ee && (M[K] = ee.value), M;
2262
2485
  },
2263
2486
  {}
2264
2487
  );
2265
2488
  }
2266
2489
  return e({
2267
- getFormItem: D,
2268
- setFormItem: ue,
2269
- getFormValues: ae,
2270
- setFormValues: re,
2271
- getFormValue: Te,
2272
- setFormValue: Se
2273
- }), (x, k) => {
2274
- const B = P("a-input"), W = P("a-form-item"), ne = P("a-select"), de = P("a-form"), tt = P("a-checkbox"), Oe = P("a-modal");
2275
- return I(), E(Oe, {
2276
- open: v.value,
2277
- "onUpdate:open": k[3] || (k[3] = (Q) => v.value = Q),
2278
- title: _.value,
2490
+ getFormItem: ie,
2491
+ setFormItem: le,
2492
+ getFormValues: rt,
2493
+ setFormValues: R,
2494
+ getFormValue: se,
2495
+ setFormValue: A
2496
+ }), (P, F) => {
2497
+ const M = E("a-input"), K = E("a-form-item"), ee = E("a-checkbox"), ye = E("a-space"), ot = E("a-select"), lt = E("a-form"), Ue = E("a-modal");
2498
+ return x(), B(Ue, {
2499
+ open: C.value,
2500
+ "onUpdate:open": F[4] || (F[4] = (Q) => C.value = Q),
2501
+ title: b.value,
2279
2502
  width: 720,
2280
2503
  "body-style": {
2281
2504
  maxHeight: "70vh",
2282
2505
  overflow: "auto"
2283
2506
  },
2284
- onOk: j,
2285
- onCancel: k[4] || (k[4] = (Q) => a("cancel"))
2507
+ onOk: W,
2508
+ onCancel: F[5] || (F[5] = (Q) => r("cancel"))
2286
2509
  }, {
2287
- default: C(() => [
2288
- T(de, {
2510
+ default: _(() => [
2511
+ v(lt, {
2289
2512
  ref_key: "formRef",
2290
- ref: m,
2291
- model: c,
2292
- rules: y,
2293
- class: $(x.$style.sceneForm)
2513
+ ref: y,
2514
+ model: u,
2515
+ rules: w,
2516
+ class: m(P.$style.sceneForm)
2294
2517
  }, {
2295
- default: C(() => [
2296
- r.actionType !== w(ce).search || b.value ? (I(), E(W, {
2518
+ default: _(() => [
2519
+ a.actionType !== f(de).search || k.value ? (x(), B(K, {
2297
2520
  key: 0,
2298
2521
  label: "场景名称",
2299
2522
  name: "name",
2300
2523
  "label-col": { span: 24 },
2301
2524
  "wrapper-col": { span: 12 }
2302
2525
  }, {
2303
- default: C(() => [
2304
- T(B, {
2305
- value: c.name,
2306
- "onUpdate:value": k[0] || (k[0] = (Q) => c.name = Q),
2526
+ default: _(() => [
2527
+ v(M, {
2528
+ value: u.name,
2529
+ "onUpdate:value": F[0] || (F[0] = (Q) => u.name = Q),
2307
2530
  placeholder: "请输入"
2308
2531
  }, null, 8, ["value"])
2309
2532
  ]),
2310
2533
  _: 1
2311
2534
  })) : N("", !0),
2312
- T(W, {
2313
- label: "筛选条件",
2535
+ v(K, {
2314
2536
  name: "items",
2315
2537
  "label-col": { span: 24 },
2316
2538
  "wrapper-col": { span: 24 }
2317
2539
  }, {
2318
- default: C(() => [
2319
- T(wa, {
2320
- value: c.items,
2321
- "onUpdate:value": k[1] || (k[1] = (Q) => c.items = Q),
2540
+ label: _(() => [
2541
+ v(ye, null, {
2542
+ default: _(() => [
2543
+ F[6] || (F[6] = Y("span", null, "筛选条件", -1)),
2544
+ v(ee, {
2545
+ checked: h.value,
2546
+ "onUpdate:checked": F[1] || (F[1] = (Q) => h.value = Q),
2547
+ indeterminate: $.value
2548
+ }, {
2549
+ default: _(() => [
2550
+ ne(" 全选 (" + _e(T.value) + "/" + _e(s.value.length) + ") ", 1)
2551
+ ]),
2552
+ _: 1
2553
+ }, 8, ["checked", "indeterminate"])
2554
+ ]),
2555
+ _: 1
2556
+ })
2557
+ ]),
2558
+ default: _(() => [
2559
+ v(Or, {
2560
+ value: u.items,
2561
+ "onUpdate:value": F[2] || (F[2] = (Q) => u.items = Q),
2322
2562
  "add-button-text": "添加筛选条件",
2323
- "get-new-item-data": g,
2324
- "max-length": l.value.length,
2325
- "delete-button-props": te,
2326
- onAdd: S
2563
+ "get-new-item-data": V,
2564
+ "max-length": s.value.length,
2565
+ "delete-button-props": me,
2566
+ sortButtonProps: me,
2567
+ onAdd: z
2327
2568
  }, {
2328
- default: C(({ item: Q }) => [
2329
- J("div", {
2330
- class: $(x.$style.queryFieldItem)
2331
- }, [
2332
- T(ne, {
2333
- value: Q.name,
2334
- "onUpdate:value": (ye) => Q.name = ye,
2335
- "show-search": "",
2336
- options: L(Q.name),
2337
- "field-names": { value: "name" },
2338
- "option-filter-prop": "label",
2339
- placeholder: "请选择要筛选的字段名",
2340
- class: $(x.$style.fieldSelect),
2341
- onChange: (ye) => p(ye, Q)
2342
- }, null, 8, ["value", "onUpdate:value", "options", "class", "onChange"]),
2343
- J("div", {
2344
- class: $(x.$style.fieldComponent)
2569
+ default: _(({ item: Q }) => {
2570
+ var Me;
2571
+ return [
2572
+ Y("div", {
2573
+ class: m(P.$style.queryFieldItem)
2345
2574
  }, [
2346
- Q.name ? (I(), E(Wt, {
2347
- key: 0,
2348
- value: Q.value,
2349
- "onUpdate:value": (ye) => Q.value = ye,
2350
- "in-modal": "",
2351
- "form-item": o.value[Q.name],
2352
- onChange: (ye) => f(Q.name, ye)
2353
- }, null, 8, ["value", "onUpdate:value", "form-item", "onChange"])) : N("", !0)
2575
+ v(ot, {
2576
+ value: Q.name,
2577
+ "onUpdate:value": (Ce) => Q.name = Ce,
2578
+ "show-search": "",
2579
+ options: p(Q.name),
2580
+ "field-names": { value: "name" },
2581
+ "option-filter-prop": "label",
2582
+ placeholder: "请选择要筛选的字段名",
2583
+ disabled: (Me = o.value[Q.name]) == null ? void 0 : Me.fixed,
2584
+ class: m(P.$style.fieldSelect),
2585
+ onChange: (Ce) => I(Ce, Q)
2586
+ }, null, 8, ["value", "onUpdate:value", "options", "disabled", "class", "onChange"]),
2587
+ Y("div", {
2588
+ class: m(P.$style.fieldComponent)
2589
+ }, [
2590
+ Q.name ? (x(), B(tn, {
2591
+ key: 0,
2592
+ value: Q.value,
2593
+ "onUpdate:value": (Ce) => Q.value = Ce,
2594
+ "in-modal": "",
2595
+ "form-item": o.value[Q.name],
2596
+ onChange: (Ce) => L(Q.name, Ce)
2597
+ }, null, 8, ["value", "onUpdate:value", "form-item", "onChange"])) : N("", !0)
2598
+ ], 2)
2354
2599
  ], 2)
2355
- ], 2)
2356
- ]),
2600
+ ];
2601
+ }),
2357
2602
  _: 1
2358
2603
  }, 8, ["value", "max-length"])
2359
2604
  ]),
@@ -2362,13 +2607,13 @@ const xr = (r) => {
2362
2607
  ]),
2363
2608
  _: 1
2364
2609
  }, 8, ["model", "rules", "class"]),
2365
- r.actionType === w(ce).search && r.allowCreateScene ? (I(), E(tt, {
2610
+ a.actionType === f(de).search && a.allowCreateScene ? (x(), B(ee, {
2366
2611
  key: 0,
2367
- checked: b.value,
2368
- "onUpdate:checked": k[2] || (k[2] = (Q) => b.value = Q)
2612
+ checked: k.value,
2613
+ "onUpdate:checked": F[3] || (F[3] = (Q) => k.value = Q)
2369
2614
  }, {
2370
- default: C(() => k[5] || (k[5] = [
2371
- K(" 保存为场景 ")
2615
+ default: _(() => F[7] || (F[7] = [
2616
+ ne(" 保存为场景 ")
2372
2617
  ])),
2373
2618
  _: 1
2374
2619
  }, 8, ["checked"])) : N("", !0)
@@ -2377,14 +2622,14 @@ const xr = (r) => {
2377
2622
  }, 8, ["open", "title"]);
2378
2623
  };
2379
2624
  }
2380
- }), Ga = "_sceneForm_njdgy_1", Qa = "_queryFieldItem_njdgy_1", Ja = "_fieldSelect_njdgy_7", Ka = "_fieldComponent_njdgy_10", Za = {
2381
- sceneForm: Ga,
2382
- queryFieldItem: Qa,
2383
- fieldSelect: Ja,
2384
- fieldComponent: Ka
2385
- }, Xa = {
2386
- $style: Za
2387
- }, eo = /* @__PURE__ */ fe(za, [["__cssModules", Xa]]), to = /* @__PURE__ */ ie({
2625
+ }), no = "_sceneForm_njdgy_1", ao = "_queryFieldItem_njdgy_1", ro = "_fieldSelect_njdgy_7", oo = "_fieldComponent_njdgy_10", lo = {
2626
+ sceneForm: no,
2627
+ queryFieldItem: ao,
2628
+ fieldSelect: ro,
2629
+ fieldComponent: oo
2630
+ }, so = {
2631
+ $style: lo
2632
+ }, io = /* @__PURE__ */ he(to, [["__cssModules", so]]), uo = /* @__PURE__ */ fe({
2388
2633
  __name: "SceneListModal",
2389
2634
  props: {
2390
2635
  /**
@@ -2424,120 +2669,120 @@ const xr = (r) => {
2424
2669
  }
2425
2670
  },
2426
2671
  emits: ["cancel", "create", "update", "delete", "sort"],
2427
- setup(r, { emit: e }) {
2428
- const n = r, t = e, a = ee(n.list), o = ee(!0), l = () => t("cancel"), s = async (m) => {
2429
- await n.onDelete(m), a.value = a.value.filter((c) => c.code !== m);
2672
+ setup(a, { emit: e }) {
2673
+ const n = a, t = e, r = te(n.list), o = te(!0), s = () => t("cancel"), l = async (y) => {
2674
+ await n.onDelete(y), r.value = r.value.filter((u) => u.code !== y);
2430
2675
  }, d = () => {
2431
- l(), t("create");
2432
- }, v = (m) => {
2433
- l(), t("update", m);
2434
- }, b = () => {
2676
+ s(), t("create");
2677
+ }, C = (y) => {
2678
+ s(), t("update", y);
2679
+ }, k = () => {
2435
2680
  t(
2436
2681
  "sort",
2437
- a.value.map(({ code: m }) => m)
2682
+ r.value.map(({ code: y }) => y)
2438
2683
  );
2439
2684
  };
2440
- return (m, c) => {
2441
- const y = P("a-col"), F = P("a-row"), g = P("a-typography-text"), _ = P("a-button"), p = P("a-popconfirm"), L = P("a-empty"), f = P("a-modal");
2442
- return I(), E(f, {
2685
+ return (y, u) => {
2686
+ 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");
2687
+ return x(), B(b, {
2443
2688
  open: o.value,
2444
- "onUpdate:open": c[0] || (c[0] = (S) => o.value = S),
2689
+ "onUpdate:open": u[0] || (u[0] = (I) => o.value = I),
2445
2690
  title: "场景管理",
2446
2691
  width: 720,
2447
2692
  footer: null,
2448
- onCancel: l
2693
+ onCancel: s
2449
2694
  }, {
2450
- default: C(() => [
2451
- J("div", {
2452
- class: $(m.$style.sceneList)
2695
+ default: _(() => [
2696
+ Y("div", {
2697
+ class: m(y.$style.sceneList)
2453
2698
  }, [
2454
- T(F, {
2455
- class: $(m.$style.sceneListHead)
2699
+ v(T, {
2700
+ class: m(y.$style.sceneListHead)
2456
2701
  }, {
2457
- default: C(() => [
2458
- T(y, {
2702
+ default: _(() => [
2703
+ v(h, {
2459
2704
  span: 16,
2460
- class: $(m.$style.col)
2705
+ class: m(y.$style.col)
2461
2706
  }, {
2462
- default: C(() => c[1] || (c[1] = [
2463
- K(" 场景名称 ")
2707
+ default: _(() => u[1] || (u[1] = [
2708
+ ne(" 场景名称 ")
2464
2709
  ])),
2465
2710
  _: 1
2466
2711
  }, 8, ["class"]),
2467
- T(y, {
2712
+ v(h, {
2468
2713
  span: 8,
2469
- class: $(m.$style.col)
2714
+ class: m(y.$style.col)
2470
2715
  }, {
2471
- default: C(() => c[2] || (c[2] = [
2472
- K(" 操作 ")
2716
+ default: _(() => u[2] || (u[2] = [
2717
+ ne(" 操作 ")
2473
2718
  ])),
2474
2719
  _: 1
2475
2720
  }, 8, ["class"])
2476
2721
  ]),
2477
2722
  _: 1
2478
2723
  }, 8, ["class"]),
2479
- a.value.length ? (I(), E(w(gt), {
2724
+ r.value.length ? (x(), B(f(Re), {
2480
2725
  key: 0,
2481
- list: a.value,
2726
+ list: r.value,
2482
2727
  "item-key": "id",
2483
2728
  handle: ".table-column-draggable-icon",
2484
- onChange: b
2729
+ onChange: k
2485
2730
  }, {
2486
- item: C(({ element: S }) => [
2487
- T(F, {
2488
- class: $(m.$style.sceneListItem)
2731
+ item: _(({ element: I }) => [
2732
+ v(T, {
2733
+ class: m(y.$style.sceneListItem)
2489
2734
  }, {
2490
- default: C(() => [
2491
- T(y, {
2735
+ default: _(() => [
2736
+ v(h, {
2492
2737
  span: 16,
2493
- class: $(m.$style.col)
2738
+ class: m(y.$style.col)
2494
2739
  }, {
2495
- default: C(() => [
2496
- T(g, {
2497
- ellipsis: { tooltip: S.name },
2498
- content: S.name
2740
+ default: _(() => [
2741
+ v($, {
2742
+ ellipsis: { tooltip: I.name },
2743
+ content: I.name
2499
2744
  }, null, 8, ["ellipsis", "content"])
2500
2745
  ]),
2501
2746
  _: 2
2502
2747
  }, 1032, ["class"]),
2503
- T(y, {
2748
+ v(h, {
2504
2749
  span: 8,
2505
- class: $(m.$style.col)
2750
+ class: m(y.$style.col)
2506
2751
  }, {
2507
- default: C(() => [
2508
- T(_, {
2752
+ default: _(() => [
2753
+ v(w, {
2509
2754
  type: "link",
2510
2755
  size: "small",
2511
- onClick: (j) => v(S)
2756
+ onClick: (p) => C(I)
2512
2757
  }, {
2513
- default: C(() => c[3] || (c[3] = [
2514
- K(" 编辑 ")
2758
+ default: _(() => u[3] || (u[3] = [
2759
+ ne(" 编辑 ")
2515
2760
  ])),
2516
2761
  _: 2
2517
2762
  }, 1032, ["onClick"]),
2518
- T(p, {
2763
+ v(g, {
2519
2764
  title: "确定删除?",
2520
- onConfirm: (j) => s(S.code)
2765
+ onConfirm: (p) => l(I.code)
2521
2766
  }, {
2522
- default: C(() => [
2523
- T(_, {
2767
+ default: _(() => [
2768
+ v(w, {
2524
2769
  type: "link",
2525
2770
  size: "small",
2526
2771
  danger: ""
2527
2772
  }, {
2528
- default: C(() => c[4] || (c[4] = [
2529
- K(" 删除 ")
2773
+ default: _(() => u[4] || (u[4] = [
2774
+ ne(" 删除 ")
2530
2775
  ])),
2531
2776
  _: 1
2532
2777
  })
2533
2778
  ]),
2534
2779
  _: 2
2535
2780
  }, 1032, ["onConfirm"]),
2536
- T(_, {
2781
+ v(w, {
2537
2782
  type: "text",
2538
2783
  size: "small",
2539
- icon: X(w(De)),
2540
- class: $(["table-column-draggable-icon", m.$style.dragIcon])
2784
+ icon: G(f(Pe)),
2785
+ class: m(["table-column-draggable-icon", y.$style.dragIcon])
2541
2786
  }, null, 8, ["icon", "class"])
2542
2787
  ]),
2543
2788
  _: 2
@@ -2547,19 +2792,19 @@ const xr = (r) => {
2547
2792
  }, 1032, ["class"])
2548
2793
  ]),
2549
2794
  _: 1
2550
- }, 8, ["list"])) : (I(), E(L, {
2795
+ }, 8, ["list"])) : (x(), B(V, {
2551
2796
  key: 1,
2552
- image: w(In).PRESENTED_IMAGE_SIMPLE
2797
+ image: f(An).PRESENTED_IMAGE_SIMPLE
2553
2798
  }, null, 8, ["image"]))
2554
2799
  ], 2),
2555
- r.allowCreateScene ? (I(), E(_, {
2800
+ a.allowCreateScene ? (x(), B(w, {
2556
2801
  key: 0,
2557
2802
  type: "link",
2558
- icon: X(w(At)),
2803
+ icon: G(f(Gt)),
2559
2804
  onClick: d
2560
2805
  }, {
2561
- default: C(() => c[5] || (c[5] = [
2562
- K(" 新建场景 ")
2806
+ default: _(() => u[5] || (u[5] = [
2807
+ ne(" 新建场景 ")
2563
2808
  ])),
2564
2809
  _: 1
2565
2810
  }, 8, ["icon"])) : N("", !0)
@@ -2568,15 +2813,15 @@ const xr = (r) => {
2568
2813
  }, 8, ["open"]);
2569
2814
  };
2570
2815
  }
2571
- }), no = "_sceneList_3nrgr_1", ro = "_sceneListHead_3nrgr_5", ao = "_sceneListItem_3nrgr_8", oo = "_col_3nrgr_16", so = "_dragIcon_3nrgr_20", lo = {
2572
- sceneList: no,
2573
- sceneListHead: ro,
2574
- sceneListItem: ao,
2575
- col: oo,
2576
- dragIcon: so
2577
- }, io = {
2578
- $style: lo
2579
- }, uo = /* @__PURE__ */ fe(to, [["__cssModules", io]]), co = /* @__PURE__ */ ie({
2816
+ }), co = "_sceneList_3nrgr_1", po = "_sceneListHead_3nrgr_5", fo = "_sceneListItem_3nrgr_8", mo = "_col_3nrgr_16", yo = "_dragIcon_3nrgr_20", go = {
2817
+ sceneList: co,
2818
+ sceneListHead: po,
2819
+ sceneListItem: fo,
2820
+ col: mo,
2821
+ dragIcon: yo
2822
+ }, vo = {
2823
+ $style: go
2824
+ }, ho = /* @__PURE__ */ he(uo, [["__cssModules", vo]]), bo = /* @__PURE__ */ fe({
2580
2825
  __name: "FormSearchParams",
2581
2826
  props: {
2582
2827
  /**
@@ -2596,36 +2841,36 @@ const xr = (r) => {
2596
2841
  }
2597
2842
  },
2598
2843
  emits: ["form-item-change"],
2599
- setup(r, { emit: e }) {
2600
- const n = r, t = e, a = M(() => it(
2601
- Object.values(n.formConfigMap).filter((d) => d[ve.selected]),
2602
- ve.orderInScene
2603
- )), o = (d, v) => {
2604
- t("form-item-change", d, v);
2605
- }, l = yt(o, 500), s = (d, v) => {
2844
+ setup(a, { emit: e }) {
2845
+ const n = a, t = e, r = j(() => mt(
2846
+ Object.values(n.formConfigMap).filter((d) => d[we.selected]),
2847
+ we.orderInScene
2848
+ )), o = (d, C) => {
2849
+ t("form-item-change", d, C);
2850
+ }, s = $t(o, 500), l = (d, C) => {
2606
2851
  [
2607
- H.input,
2608
- H.inputNumber,
2609
- H.inputGroup,
2610
- H.inputNumberRange
2611
- ].includes(n.formConfigMap[d].type) ? l(d, v) : o(d, v);
2852
+ J.input,
2853
+ J.inputNumber,
2854
+ J.inputGroup,
2855
+ J.inputNumberRange
2856
+ ].includes(n.formConfigMap[d].type) ? s(d, C) : o(d, C);
2612
2857
  };
2613
- return (d, v) => {
2614
- const b = P("a-col"), m = P("a-row");
2615
- return I(), E(m, {
2858
+ return (d, C) => {
2859
+ const k = E("a-col"), y = E("a-row");
2860
+ return x(), B(y, {
2616
2861
  gutter: [8, 8],
2617
- class: $(d.$style.searchParams)
2862
+ class: m(d.$style.searchParams)
2618
2863
  }, {
2619
- default: C(() => [
2620
- (I(!0), U(xe, null, lt(a.value, (c) => (I(), E(b, {
2621
- key: c.name,
2622
- span: (r.formConfigMap[c.name].span ?? 1) * r.formItemColSpan
2864
+ default: _(() => [
2865
+ (x(!0), H(Te, null, ft(r.value, (u) => (x(), B(k, {
2866
+ key: u.name,
2867
+ span: (a.formConfigMap[u.name].span ?? 1) * a.formItemColSpan
2623
2868
  }, {
2624
- default: C(() => [
2625
- T(Wt, {
2626
- value: r.formConfigMap[c.name].value,
2627
- "form-item": r.formConfigMap[c.name],
2628
- onChange: (y) => s(c.name, y)
2869
+ default: _(() => [
2870
+ v(tn, {
2871
+ value: a.formConfigMap[u.name].value,
2872
+ "form-item": a.formConfigMap[u.name],
2873
+ onChange: (h) => l(u.name, h)
2629
2874
  }, null, 8, ["value", "form-item", "onChange"])
2630
2875
  ]),
2631
2876
  _: 2
@@ -2635,21 +2880,21 @@ const xr = (r) => {
2635
2880
  }, 8, ["class"]);
2636
2881
  };
2637
2882
  }
2638
- }), po = "_searchParams_1vdwi_1", fo = {
2639
- searchParams: po
2640
- }, mo = {
2641
- $style: fo
2642
- }, yo = /* @__PURE__ */ fe(co, [["__cssModules", mo]]);
2643
- Re.locale("zh-cn");
2644
- function qt(r) {
2645
- return Array.from(document.body.children).includes(r);
2883
+ }), _o = "_searchParams_1vdwi_1", Co = {
2884
+ searchParams: _o
2885
+ }, $o = {
2886
+ $style: Co
2887
+ }, wo = /* @__PURE__ */ he(bo, [["__cssModules", $o]]);
2888
+ ze.locale("zh-cn");
2889
+ function Vt(a) {
2890
+ return Array.from(document.body.children).includes(a);
2646
2891
  }
2647
- class go {
2892
+ class So {
2648
2893
  constructor(e = {}) {
2649
- Me(this, "currents");
2650
- Me(this, "dialogs");
2651
- Me(this, "staticDialogs");
2652
- Me(this, "rootVm");
2894
+ Ne(this, "currents");
2895
+ Ne(this, "dialogs");
2896
+ Ne(this, "staticDialogs");
2897
+ Ne(this, "rootVm");
2653
2898
  this.currents = [], this.dialogs = {}, this.staticDialogs = e, this.rootVm = null;
2654
2899
  }
2655
2900
  // 设置rootVm
@@ -2658,7 +2903,7 @@ class go {
2658
2903
  }
2659
2904
  // 注册dialog
2660
2905
  register(e, n) {
2661
- this.dialogs[e] || (this.dialogs[e] = ie(n));
2906
+ this.dialogs[e] || (this.dialogs[e] = fe(n));
2662
2907
  }
2663
2908
  // 注销dialog
2664
2909
  unregister(e) {
@@ -2666,46 +2911,46 @@ class go {
2666
2911
  }
2667
2912
  // 打开dialog
2668
2913
  open(e, n) {
2669
- const { props: t, onCreated: a, onMounted: o } = n || {}, l = this.staticDialogs[e] || this.dialogs[e] || null;
2670
- if (!l) {
2914
+ const { props: t, onCreated: r, onMounted: o } = n || {}, s = this.staticDialogs[e] || this.dialogs[e] || null;
2915
+ if (!s) {
2671
2916
  console.error(`Dialog "${e}" is not existing, please register it firstly.`);
2672
2917
  return;
2673
2918
  }
2674
- const s = document.createElement("div"), d = `dialog_${Mn()}`;
2675
- s.setAttribute("id", d), document.body.appendChild(s);
2676
- const v = ln({
2919
+ const l = document.createElement("div"), d = `dialog_${zn()}`;
2920
+ l.setAttribute("id", d), document.body.appendChild(l);
2921
+ const C = yn({
2677
2922
  data() {
2678
2923
  return {
2679
2924
  open: !0
2680
2925
  };
2681
2926
  },
2682
2927
  render() {
2683
- return X(
2684
- Fn,
2928
+ return G(
2929
+ En,
2685
2930
  {
2686
2931
  key: d,
2687
- locale: Dt
2932
+ locale: Jt
2688
2933
  },
2689
2934
  () => [
2690
- X(l, {
2935
+ G(s, {
2691
2936
  key: d,
2692
2937
  destroyOnClose: !0,
2693
2938
  ...t,
2694
2939
  open: this.open,
2695
2940
  onCancel: () => {
2696
- var m;
2697
- this.open = !1, (m = t == null ? void 0 : t.onCancel) == null || m.call(t);
2941
+ var y;
2942
+ this.open = !1, (y = t == null ? void 0 : t.onCancel) == null || y.call(t);
2698
2943
  }
2699
2944
  })
2700
2945
  ]
2701
2946
  );
2702
2947
  }
2703
- }).use(yn);
2704
- a == null || a(v);
2705
- const b = v.mount(`#${d}`);
2706
- return o == null || o(b), b.$watch("open", (m) => {
2707
- m || this.destroy();
2708
- }), this.currents.push(v), v;
2948
+ }).use(wn);
2949
+ r == null || r(C);
2950
+ const k = C.mount(`#${d}`);
2951
+ return o == null || o(k), k.$watch("open", (y) => {
2952
+ y || this.destroy();
2953
+ }), this.currents.push(C), C;
2709
2954
  }
2710
2955
  // 关闭dialog
2711
2956
  close() {
@@ -2715,88 +2960,88 @@ class go {
2715
2960
  }
2716
2961
  // 销毁dialog
2717
2962
  destroy() {
2718
- var n, t, a;
2963
+ var n, t, r;
2719
2964
  const e = this.currents.pop();
2720
2965
  if (e) {
2721
- const o = qt((n = e._instance) == null ? void 0 : n.vnode.el) ? (t = e._instance) == null ? void 0 : t.vnode.el : (a = e._instance) == null ? void 0 : a.vnode.el.parentElement;
2722
- qt(o) && document.body.removeChild(o), e.unmount();
2966
+ const o = Vt((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;
2967
+ Vt(o) && document.body.removeChild(o), e.unmount();
2723
2968
  }
2724
2969
  }
2725
2970
  }
2726
- const Ae = new go();
2727
- function jt(r, e) {
2971
+ const Be = new So();
2972
+ function zt(a, e) {
2728
2973
  const n = Symbol("dialog");
2729
- Ae.register(n, r);
2974
+ Be.register(n, a);
2730
2975
  function t() {
2731
- Ae.open(n, w(e));
2976
+ Be.open(n, f(e));
2732
2977
  }
2733
- function a() {
2734
- Ae.close();
2978
+ function r() {
2979
+ Be.close();
2735
2980
  }
2736
- function o(l) {
2737
- Ae.open(n, l);
2981
+ function o(s) {
2982
+ Be.open(n, s);
2738
2983
  }
2739
- return un(() => {
2740
- Ae.unregister(n);
2984
+ return gn(() => {
2985
+ Be.unregister(n);
2741
2986
  }), {
2742
2987
  open: t,
2743
- close: a,
2988
+ close: r,
2744
2989
  openByConfig: o
2745
2990
  };
2746
2991
  }
2747
- const ze = 2e3, vo = (r) => {
2748
- const { getScenes: e, setScenes: n } = r;
2992
+ const Ke = 2e3, ko = (a) => {
2993
+ const { getScenes: e, setScenes: n } = a;
2749
2994
  return {
2750
2995
  querySceneList: async (t) => {
2751
- const a = e(), o = t.type ? a.filter((l) => l.type === t.type) : a;
2996
+ const r = e(), o = t.type ? r.filter((s) => s.type === t.type) : r;
2752
2997
  return {
2753
- code: ze,
2998
+ code: Ke,
2754
2999
  data: o,
2755
3000
  msg: "success"
2756
3001
  };
2757
3002
  },
2758
3003
  createScene: async (t) => {
2759
- const a = e(), o = Ut(Math.random().toString());
2760
- return a.push({ ...t, code: o }), n(a), {
2761
- code: ze,
3004
+ const r = e(), o = en(Math.random().toString());
3005
+ return r.push({ ...t, code: o }), n(r), {
3006
+ code: Ke,
2762
3007
  data: o,
2763
3008
  msg: "success"
2764
3009
  };
2765
3010
  },
2766
3011
  updateScene: async (t) => {
2767
- const a = e(), o = a.findIndex((l) => l.code === t.code);
3012
+ const r = e(), o = r.findIndex((s) => s.code === t.code);
2768
3013
  return o === -1 ? {
2769
3014
  code: 404,
2770
3015
  data: null,
2771
3016
  msg: "Scene not found"
2772
- } : (a[o] = { ...a[o], ...t }, n(a), {
2773
- code: ze,
2774
- data: a[o],
3017
+ } : (r[o] = { ...r[o], ...t }, n(r), {
3018
+ code: Ke,
3019
+ data: r[o],
2775
3020
  msg: "success"
2776
3021
  });
2777
3022
  },
2778
3023
  deleteScene: async (t) => {
2779
- const o = e().filter((l) => !t.includes(l.code));
3024
+ const o = e().filter((s) => !t.includes(s.code));
2780
3025
  return n(o), {
2781
- code: ze,
3026
+ code: Ke,
2782
3027
  data: null,
2783
3028
  msg: "success"
2784
3029
  };
2785
3030
  }
2786
3031
  };
2787
- }, Lt = () => {
2788
- const r = {
3032
+ }, Yt = () => {
3033
+ const a = {
2789
3034
  code: -1,
2790
3035
  data: [],
2791
3036
  msg: "场景功能已关闭"
2792
3037
  };
2793
3038
  return {
2794
- querySceneList: async () => r,
2795
- createScene: async () => r,
2796
- updateScene: async () => r,
2797
- deleteScene: async () => r
3039
+ querySceneList: async () => a,
3040
+ createScene: async () => a,
3041
+ updateScene: async () => a,
3042
+ deleteScene: async () => a
2798
3043
  };
2799
- }, ho = ["innerHTML"], bo = /* @__PURE__ */ ie({
3044
+ }, Io = ["innerHTML"], Fo = /* @__PURE__ */ fe({
2800
3045
  __name: "SuperTable",
2801
3046
  props: {
2802
3047
  /**
@@ -2855,7 +3100,7 @@ const ze = 2e3, vo = (r) => {
2855
3100
  /** 转换表格数据 */
2856
3101
  formatDataSource: {
2857
3102
  type: Function,
2858
- default: (r) => r
3103
+ default: (a) => a
2859
3104
  },
2860
3105
  /** 可排序 */
2861
3106
  sortable: {
@@ -2904,72 +3149,73 @@ const ze = 2e3, vo = (r) => {
2904
3149
  }
2905
3150
  },
2906
3151
  emits: ["sort-change", "row-sort-end", "form-item-change", "scene-change"],
2907
- setup(r, { expose: e, emit: n }) {
2908
- var _t;
2909
- Re.locale("zh-cn");
2910
- const t = r, a = n, o = ee(!1), l = M(() => {
2911
- var u, h, O;
2912
- const i = (u = cn()) == null ? void 0 : u.appContext.app;
2913
- return !!((O = (h = i == null ? void 0 : i.config) == null ? void 0 : h.globalProperties) != null && O.$router);
2914
- }), s = ee(), { openByConfig: d } = jt(eo), { openByConfig: v } = jt(uo), b = Pt(t.columns).reduce(
2915
- (i, u) => (i[u.key] = ke(u, Vt), i),
3152
+ setup(a, { expose: e, emit: n }) {
3153
+ var kt;
3154
+ ze.locale("zh-cn");
3155
+ const t = a, r = n, o = te(!1), s = j(() => {
3156
+ var c, S, O;
3157
+ const i = (c = vn()) == null ? void 0 : c.appContext.app;
3158
+ return !!((O = (S = i == null ? void 0 : i.config) == null ? void 0 : S.globalProperties) != null && O.$router);
3159
+ }), l = te(), { openByConfig: d } = zt(io), { openByConfig: C } = zt(ho), k = Rt(t.columns).reduce(
3160
+ (i, c) => (i[c.key] = Ie(c, gt), i),
2916
3161
  {}
2917
- ), m = Ut([location.hostname, location.pathname, t.sceneType].join("")), c = Nn(`superTable_${m}`, {
3162
+ ), y = en([location.hostname, location.pathname, t.sceneType].join("")), u = Hn(`superTable_${y}`, {
2918
3163
  pathname: location.pathname,
2919
3164
  sceneCode: null,
2920
3165
  sceneSort: [],
2921
3166
  sceneList: [],
2922
- columnConfig: b
2923
- }), y = M(() => t.enableScene ? t.sceneStorageType === "api" ? t.sceneRequest ? t.sceneRequest : (console.error('SuperTable: sceneStorageType 为 "api" 时,必须提供 sceneRequest 配置'), Lt()) : vo({
2924
- getScenes: () => c.value.sceneList,
3167
+ columnConfig: k
3168
+ }), h = j(() => t.enableScene ? t.sceneStorageType === "api" ? t.sceneRequest ? t.sceneRequest : (console.error('SuperTable: sceneStorageType 为 "api" 时,必须提供 sceneRequest 配置'), Yt()) : ko({
3169
+ getScenes: () => u.value.sceneList,
2925
3170
  setScenes: (i) => {
2926
- c.value.sceneList = i;
3171
+ u.value.sceneList = i;
2927
3172
  }
2928
- }) : Lt()), F = ee(!1), g = M(() => Object.keys(t.customQueryParams).length > 0), _ = ee(!1), p = yt(async () => {
3173
+ }) : Yt()), T = te(!1), $ = j(() => Object.keys(t.customQueryParams).length > 0), w = te(!1), g = $t(async () => {
2929
3174
  try {
2930
- Y.loading = !0;
2931
- const { total: i, data: u } = await t.request({
2932
- params: bt(),
2933
- pageSize: Y.pagination.pageSize,
2934
- pageNum: Y.pagination.current
3175
+ R.loading = !0;
3176
+ const { total: i, data: c } = await t.request({
3177
+ params: wt(),
3178
+ pageSize: R.pagination.pageSize,
3179
+ pageNum: R.pagination.current
2935
3180
  });
2936
- Y.dataSource = u, Y.pagination.total = i;
3181
+ R.dataSource = c, R.pagination.total = i;
2937
3182
  } catch (i) {
2938
- Y.dataSource = [], console.error(i);
3183
+ R.dataSource = [], console.error(i);
2939
3184
  } finally {
2940
- Y.loading = !1;
3185
+ R.loading = !1;
2941
3186
  }
2942
- }, t.debounceWait), L = () => {
2943
- t.enableScene && !j.loaded || (Y.pagination.current = 1, p());
2944
- }, f = ee({}), S = (i = []) => {
2945
- for (const u in f.value) {
2946
- const h = f.value[u], O = i.find((q) => q.name === u);
2947
- h.value = O ? O.value : h._defaultValue, h[ve.selected] = !!O, h[ve.orderInScene] = O ? i.findIndex((q) => q.name === (O == null ? void 0 : O.name)) : void 0;
3187
+ }, t.debounceWait), V = () => {
3188
+ t.enableScene && !p.loaded || (R.pagination.current = 1, g());
3189
+ }, b = te({}), I = (i = []) => {
3190
+ for (const c in b.value) {
3191
+ const S = b.value[c], O = i.find((q) => q.name === c);
3192
+ S.value = O ? O.value : S._defaultValue, S[we.selected] = !!O, S[we.orderInScene] = O ? i.findIndex((q) => q.name === (O == null ? void 0 : O.name)) : void 0;
2948
3193
  }
2949
- L();
2950
- }, j = Ze({
3194
+ V();
3195
+ }, p = tt({
2951
3196
  list: [],
2952
3197
  loading: !1,
2953
3198
  submiting: !1,
2954
3199
  loaded: !1
2955
- }), V = M(() => je(me(t.defaultScene)).filter(Boolean).map(({ name: u = "默认场景", code: h = "default_scene", items: O }) => ({
2956
- name: u,
2957
- code: h,
3200
+ }), L = j(() => Ee(ge(t.defaultScene)).filter(Boolean).map(({ name: c = "默认场景", code: S = "default_scene", items: O }) => ({
3201
+ name: c,
3202
+ code: S,
2958
3203
  isCustom: !0,
2959
- items: O.filter((q) => !!f.value[q.name]).map((q) => {
2960
- var z;
3204
+ items: O.filter((q) => !!b.value[q.name]).map((q) => {
3205
+ var Z;
2961
3206
  return {
2962
3207
  name: q.name,
2963
- value: q.value ?? f.value[q.name]._defaultValue,
2964
- type: (z = f.value[q.name]) == null ? void 0 : z.type
3208
+ value: q.value ?? b.value[q.name]._defaultValue,
3209
+ type: (Z = b.value[q.name]) == null ? void 0 : Z.type
2965
3210
  };
2966
3211
  })
2967
3212
  })));
2968
- he(
3213
+ Se(
2969
3214
  () => t.formItems,
2970
3215
  () => {
2971
- Ir(me(t.formItems)).forEach((i) => {
2972
- f.value[i.name] = An(me(f.value[i.name]) ?? {}, i);
3216
+ Dt(ge(t.formItems)).forEach((i) => {
3217
+ const c = { ...i };
3218
+ c.component && (c.component = hn(c.component)), b.value[i.name] = Yn(ge(b.value[i.name]) ?? {}, c);
2973
3219
  });
2974
3220
  },
2975
3221
  {
@@ -2977,78 +3223,78 @@ const ze = 2e3, vo = (r) => {
2977
3223
  deep: !0
2978
3224
  }
2979
3225
  );
2980
- const te = async () => {
3226
+ const z = async () => {
2981
3227
  try {
2982
- j.loading = !0;
2983
- const { code: i, data: u = [], msg: h } = await y.value.querySceneList({ type: m });
3228
+ p.loading = !0;
3229
+ const { code: i, data: c = [], msg: S } = await h.value.querySceneList({ type: y });
2984
3230
  if (i === 2e3) {
2985
- const O = j.list.find((z) => z.code === c.value.sceneCode);
2986
- j.list = Fr(u, f.value, c.value.sceneSort);
2987
- const q = j.list.find((z) => z.code === c.value.sceneCode);
2988
- if (!j.loaded && g.value) {
2989
- c.value.sceneCode = null, j.loaded = !0;
2990
- const z = Object.entries(t.customQueryParams).map(([Ye, rt]) => {
2991
- var He;
3231
+ const O = p.list.find((Z) => Z.code === u.value.sceneCode);
3232
+ p.list = qa(c, b.value, u.value.sceneSort);
3233
+ const q = p.list.find((Z) => Z.code === u.value.sceneCode);
3234
+ if (!p.loaded && $.value) {
3235
+ u.value.sceneCode = null, p.loaded = !0;
3236
+ const Z = Object.entries(t.customQueryParams).map(([Ge, it]) => {
3237
+ var We;
2992
3238
  return {
2993
- name: Ye,
2994
- value: rt,
2995
- type: (He = f.value[Ye]) == null ? void 0 : He.type
3239
+ name: Ge,
3240
+ value: it,
3241
+ type: (We = b.value[Ge]) == null ? void 0 : We.type
2996
3242
  };
2997
3243
  });
2998
- S(z);
3244
+ I(Z);
2999
3245
  return;
3000
3246
  }
3001
- (!j.loaded || O && O.value !== (q == null ? void 0 : q.value)) && S(q == null ? void 0 : q.items), j.loaded = !0;
3247
+ (!p.loaded || O && O.value !== (q == null ? void 0 : q.value)) && I(q == null ? void 0 : q.items), p.loaded = !0;
3002
3248
  } else
3003
- ot.error(h);
3249
+ ct.error(S);
3004
3250
  } finally {
3005
- j.loading = !1;
3251
+ p.loading = !1;
3006
3252
  }
3007
- }, D = ({ code: i, msg: u }) => i === 2e3 ? (ot.success("操作成功"), te(), Promise.resolve(u)) : (ot.error(u), Promise.reject(u)), ue = async ({ name: i, items: u }) => {
3253
+ }, W = ({ code: i, msg: c }) => i === 2e3 ? (ct.success("操作成功"), z(), Promise.resolve(c)) : (ct.error(c), Promise.reject(c)), be = async ({ name: i, items: c }) => {
3008
3254
  try {
3009
- const h = await y.value.createScene({
3010
- type: m,
3255
+ const S = await h.value.createScene({
3256
+ type: y,
3011
3257
  name: i,
3012
- value: JSON.stringify(u),
3258
+ value: JSON.stringify(c),
3013
3259
  asPrivate: !0
3014
3260
  });
3015
- c.value.sceneCode = h == null ? void 0 : h.data, D(h);
3016
- } catch (h) {
3017
- return Promise.reject(h);
3261
+ u.value.sceneCode = S == null ? void 0 : S.data, W(S);
3262
+ } catch (S) {
3263
+ return Promise.reject(S);
3018
3264
  }
3019
- }, Te = async (i) => {
3265
+ }, me = async (i) => {
3020
3266
  try {
3021
- const u = await y.value.updateScene({
3267
+ const c = await h.value.updateScene({
3022
3268
  code: i.code,
3023
3269
  name: i.name,
3024
3270
  value: JSON.stringify(i.items)
3025
3271
  });
3026
- return D(u);
3027
- } catch (u) {
3028
- return Promise.reject(u);
3272
+ return W(c);
3273
+ } catch (c) {
3274
+ return Promise.reject(c);
3029
3275
  }
3030
- }, Se = async (i) => {
3276
+ }, ie = async (i) => {
3031
3277
  try {
3032
- const u = await y.value.deleteScene([i]);
3033
- u.code === 2e3 && (c.value.sceneCode = null, i === c.value.sceneCode && (S([]), c.value.sceneCode = void 0)), D(u);
3034
- } catch (u) {
3035
- return Promise.reject(u);
3278
+ const c = await h.value.deleteScene([i]);
3279
+ c.code === 2e3 && (u.value.sceneCode = null, i === u.value.sceneCode && (I([]), u.value.sceneCode = void 0)), W(c);
3280
+ } catch (c) {
3281
+ return Promise.reject(c);
3036
3282
  }
3037
- }, re = M(() => j.list.length < t.maxSceneCount);
3038
- he(
3039
- () => [c.value.sceneCode, j.list],
3283
+ }, le = j(() => p.list.length < t.maxSceneCount);
3284
+ Se(
3285
+ () => [u.value.sceneCode, p.list],
3040
3286
  () => {
3041
- if (g.value && !_.value) {
3042
- _.value = !0;
3287
+ if ($.value && !w.value) {
3288
+ w.value = !0;
3043
3289
  return;
3044
3290
  }
3045
- const i = [...V.value, ...j.list].find(
3046
- (u) => u.code === c.value.sceneCode
3291
+ const i = [...L.value, ...p.list].find(
3292
+ (c) => c.code === u.value.sceneCode
3047
3293
  );
3048
- S((i == null ? void 0 : i.items) ?? []);
3294
+ I((i == null ? void 0 : i.items) ?? []);
3049
3295
  }
3050
3296
  );
3051
- const ae = M(() => `super_table_row_${m}`), Ie = dn(), Y = Ze({
3297
+ const se = j(() => `super_table_row_${y}`), A = bn(), R = tt({
3052
3298
  ...t.tableProps,
3053
3299
  dataSource: [],
3054
3300
  columns: [],
@@ -3061,14 +3307,14 @@ const ze = 2e3, vo = (r) => {
3061
3307
  showQuickJumper: !0,
3062
3308
  showSizeChanger: !0,
3063
3309
  showTotal: (i) => `共${i}条数据`,
3064
- ...Xe(t.tableProps, "pagination", {}),
3065
- onShowSizeChange: (i, u) => {
3066
- var h, O, q, z;
3067
- ((h = t.tableProps) == null ? void 0 : h.pagination) !== !1 && ((z = (q = (O = t.tableProps) == null ? void 0 : O.pagination) == null ? void 0 : q.onShowSizeChange) == null || z.call(q, 1, u));
3310
+ ...nt(t.tableProps, "pagination", {}),
3311
+ onShowSizeChange: (i, c) => {
3312
+ var S, O, q, Z;
3313
+ ((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));
3068
3314
  },
3069
- onChange: (i, u) => {
3070
- var h, O, q, z;
3071
- Y.pagination.current = u !== Y.pagination.pageSize ? 1 : i, Y.pagination.pageSize = u, ((h = t.tableProps) == null ? void 0 : h.pagination) !== !1 && ((z = (q = (O = t.tableProps) == null ? void 0 : O.pagination) == null ? void 0 : q.onChange) == null || z.call(q, i, u)), p();
3315
+ onChange: (i, c) => {
3316
+ var S, O, q, Z;
3317
+ 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();
3072
3318
  }
3073
3319
  },
3074
3320
  tableLayout: "fixed",
@@ -3076,55 +3322,52 @@ const ze = 2e3, vo = (r) => {
3076
3322
  x: "100%",
3077
3323
  y: Math.max(500, window.innerWidth * 0.8),
3078
3324
  scrollToFirstRowOnChange: !0,
3079
- ...((_t = t.tableProps) == null ? void 0 : _t.scroll) ?? {}
3325
+ ...((kt = t.tableProps) == null ? void 0 : kt.scroll) ?? {}
3080
3326
  },
3081
- rowClassName: (i, u, h) => {
3082
- var z;
3327
+ rowClassName: (i, c, S) => {
3328
+ var Z;
3083
3329
  let O = "";
3084
- const q = (z = t.tableProps) == null ? void 0 : z.rowClassName;
3085
- return _e(q) ? O = q(i, u, h) : typeof q == "string" && (O = q), [O, ae.value].join(" ");
3330
+ const q = (Z = t.tableProps) == null ? void 0 : Z.rowClassName;
3331
+ return ke(q) ? O = q(i, c, S) : typeof q == "string" && (O = q), [O, se.value].join(" ");
3086
3332
  }
3087
- }), x = M(() => {
3333
+ }), rt = j(() => {
3088
3334
  try {
3089
- return t.formatDataSource(me(Y.dataSource));
3335
+ return t.formatDataSource(ge(R.dataSource));
3090
3336
  } catch {
3091
- return me(Y.dataSource);
3337
+ return ge(R.dataSource);
3092
3338
  }
3093
- }), k = M(() => Pt(t.columns).map((i) => {
3094
- const u = c.value.columnConfig[i.key];
3095
- return {
3096
- ...i,
3097
- width: (u == null ? void 0 : u.width) ?? i.width,
3098
- visible: (u == null ? void 0 : u.visible) ?? i.visible,
3099
- index: (u == null ? void 0 : u.index) ?? i.index
3100
- };
3101
- })), B = (i, u) => {
3102
- c.value.columnConfig[u.key] = {
3103
- ...c.value.columnConfig[u.key] ?? {},
3339
+ }), Oe = j(() => Rt(t.columns).map((i) => {
3340
+ const c = u.value.columnConfig[i.key], S = { ...i };
3341
+ return gt.forEach((O) => {
3342
+ O !== "key" && (c == null ? void 0 : c[O]) !== void 0 && (S[O] = c[O]);
3343
+ }), S;
3344
+ })), He = (i, c) => {
3345
+ u.value.columnConfig[c.key] = {
3346
+ ...u.value.columnConfig[c.key] ?? {},
3104
3347
  width: i
3105
3348
  };
3106
- }, W = (i) => {
3107
- c.value.columnConfig = i.reduce(
3108
- (u, h, O) => (u[h.key] = {
3109
- ...h,
3349
+ }, P = (i) => {
3350
+ i.length === 0 ? u.value.columnConfig = {} : u.value.columnConfig = i.reduce(
3351
+ (c, S, O) => (c[S.key] = {
3352
+ ...S,
3110
3353
  index: O
3111
- }, u),
3354
+ }, c),
3112
3355
  {}
3113
3356
  );
3114
3357
  };
3115
- he(
3116
- () => [k.value, t.sortable],
3358
+ Se(
3359
+ () => [Oe.value, t.sortable],
3117
3360
  () => {
3118
3361
  const i = {
3119
- key: R.sort,
3120
- type: R.sort,
3362
+ key: U.sort,
3363
+ type: U.sort,
3121
3364
  title: "",
3122
- fixed: !0,
3365
+ fixed: "left",
3123
3366
  width: 60
3124
3367
  };
3125
- Y.columns = [
3368
+ R.columns = [
3126
3369
  ...t.sortable ? [i] : [],
3127
- ...k.value.filter(({ visible: u }) => u).sort((u, h) => u.index - h.index)
3370
+ ...Oe.value.filter(({ visible: c }) => c).sort((c, S) => c.index - S.index)
3128
3371
  ];
3129
3372
  },
3130
3373
  {
@@ -3132,377 +3375,395 @@ const ze = 2e3, vo = (r) => {
3132
3375
  immediate: !0
3133
3376
  }
3134
3377
  );
3135
- const ne = () => new Promise((i) => {
3136
- const u = () => {
3378
+ const F = () => new Promise((i) => {
3379
+ const c = () => {
3137
3380
  var O, q;
3138
- const h = (q = (O = Ie.value) == null ? void 0 : O.$el) == null ? void 0 : q.querySelector(".ant-table-tbody");
3139
- if (h) {
3140
- i(h);
3381
+ const S = (q = (O = A.value) == null ? void 0 : O.$el) == null ? void 0 : q.querySelector(".ant-table-tbody");
3382
+ if (S) {
3383
+ i(S);
3141
3384
  return;
3142
3385
  }
3143
- requestAnimationFrame(u);
3386
+ requestAnimationFrame(c);
3144
3387
  };
3145
- u();
3146
- }), de = async () => {
3147
- const i = await ne();
3148
- i && new Bn(i, {
3388
+ c();
3389
+ }), M = async () => {
3390
+ const i = await F();
3391
+ i && new Un(i, {
3149
3392
  animation: 150,
3150
3393
  handle: ".super-table-column-draggable-handle",
3151
- setData: (u) => {
3152
- const h = new Image();
3153
- h.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", u.setDragImage(h, 0, 0);
3394
+ setData: (c) => {
3395
+ const S = new Image();
3396
+ S.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", c.setDragImage(S, 0, 0);
3154
3397
  },
3155
- onEnd: (u) => {
3156
- const { oldIndex: h, newIndex: O } = u;
3157
- if (h === void 0 || O === void 0) return;
3158
- const q = me(Y.dataSource), [z] = q.splice(h, 1);
3159
- q.splice(O, 0, z), a("row-sort-end", q);
3398
+ onEnd: (c) => {
3399
+ const { oldIndex: S, newIndex: O } = c;
3400
+ if (S === void 0 || O === void 0) return;
3401
+ const q = ge(R.dataSource), [Z] = q.splice(S, 1);
3402
+ q.splice(O, 0, Z), r("row-sort-end", q);
3160
3403
  }
3161
3404
  });
3162
- }, tt = (i, u) => {
3163
- f.value[i].value = u, a("form-item-change", i, u, me(f.value[i]), nt), f.value[i].quiet !== !0 && L();
3164
- }, Oe = (i, u) => {
3165
- F.value = !1, d({
3405
+ }, K = (i, c) => {
3406
+ b.value[i].value = c, r("form-item-change", i, c, ge(b.value[i]), st, St), b.value[i].quiet !== !0 && V();
3407
+ }, ee = (i, c) => {
3408
+ T.value = !1;
3409
+ let S = ge(b.value);
3410
+ i === de.create && (S = Dt(t.formItems).reduce((O, q) => (O[q.name] = q, O), {})), d({
3166
3411
  props: {
3167
- ref: s,
3168
- currentScene: u,
3412
+ ref: l,
3413
+ currentScene: c,
3169
3414
  actionType: i,
3170
- formConfigMap: f.value,
3171
- onCreate: ue,
3172
- onUpdate: Te,
3173
- onUpdateFormConfig: (h) => {
3174
- h.forEach((O) => {
3175
- qe(f.value, O.name, O);
3415
+ formConfigMap: S,
3416
+ onCreate: be,
3417
+ onUpdate: me,
3418
+ onUpdateFormConfig: (O) => {
3419
+ O.forEach((q) => {
3420
+ Ae(b.value, q.name, q);
3176
3421
  });
3177
3422
  },
3178
- onSearch: (h) => {
3179
- S(h);
3423
+ onSearch: (O) => {
3424
+ I(O);
3180
3425
  },
3181
- onFormItemChange(h, O) {
3182
- a("form-item-change", h, O, me(f.value[h]), nt);
3426
+ onFormItemChange(O, q) {
3427
+ r("form-item-change", O, q, ge(b.value[O]), st);
3183
3428
  },
3184
3429
  onCancel() {
3185
- s.value = void 0;
3430
+ l.value = void 0;
3186
3431
  }
3187
3432
  }
3188
3433
  });
3189
- }, Q = () => {
3190
- F.value = !1, v({
3434
+ }, ye = () => {
3435
+ T.value = !1, C({
3191
3436
  props: {
3192
- list: j.list,
3193
- allowCreateScene: w(re),
3194
- onCreate: () => Oe(ce.create),
3195
- onUpdate: (i) => Oe(ce.update, i),
3196
- onDelete: (i) => Se(i),
3437
+ list: p.list,
3438
+ allowCreateScene: f(le),
3439
+ onCreate: () => ee(de.create),
3440
+ onUpdate: (i) => ee(de.update, i),
3441
+ onDelete: (i) => ie(i),
3197
3442
  onSort: (i) => {
3198
- c.value.sceneSort = i, j.list = j.list.sort((u, h) => i.indexOf(u.code) - i.indexOf(h.code));
3443
+ u.value.sceneSort = i, p.list = p.list.sort((c, S) => i.indexOf(c.code) - i.indexOf(S.code));
3199
3444
  }
3200
3445
  }
3201
3446
  });
3202
- }, ye = async (i) => {
3203
- await mn();
3204
- const u = j.list.find((h) => h.code === i);
3205
- a("scene-change", u);
3206
- }, zt = ({ name: i }) => {
3207
- qe(f.value, `${i}._selected`, !1), L();
3208
- }, vt = (i) => f.value[i], Gt = (i, u, h) => {
3209
- if (Rt.includes(u))
3210
- return Ce("setFormItem error,", `form item with prop "${i}" is readonly`);
3211
- if (!vt(i))
3212
- return Ce("setFormItem error,", `Cannot find form item with name "${i}"`);
3213
- if (u === "visible" && f.value[i].fixed)
3214
- return Ce("setFormItem error,", "Cannot change the visible of a fixed form item");
3215
- qe(f.value, `${i}.${u}`, h);
3216
- }, ht = (i, u) => {
3217
- if (!f.value[i])
3218
- return Ce("setFormValue error,", `Cannot find form item with name "${i}"`);
3219
- f.value[i].value = u;
3220
- }, Qt = (i) => {
3221
- Object.entries(i).forEach(([u, h]) => {
3222
- ht(u, h);
3447
+ }, ot = async (i) => {
3448
+ await $n();
3449
+ const c = p.list.find((S) => S.code === i);
3450
+ r("scene-change", c);
3451
+ }, lt = ({ name: i }) => {
3452
+ Ae(b.value, `${i}._selected`, !1), V();
3453
+ }, Ue = (i) => b.value[i], Q = (i, c, S) => {
3454
+ if (Kt.includes(c))
3455
+ return Fe("setFormItem error,", `form item with prop "${i}" is readonly`);
3456
+ if (!Ue(i))
3457
+ return Fe("setFormItem error,", `Cannot find form item with name "${i}"`);
3458
+ if (c === "visible" && b.value[i].fixed)
3459
+ return Fe("setFormItem error,", "Cannot change the visible of a fixed form item");
3460
+ Ae(b.value, `${i}.${c}`, S);
3461
+ }, Me = (i, c) => {
3462
+ if (!b.value[i])
3463
+ return Fe("setFormValue error,", `Cannot find form item with name "${i}"`);
3464
+ b.value[i].value = c;
3465
+ }, Ce = (i) => {
3466
+ Object.entries(i).forEach(([c, S]) => {
3467
+ Me(c, S);
3223
3468
  });
3224
- }, Jt = (i) => {
3225
- var u;
3226
- return (u = f.value[i]) == null ? void 0 : u.value;
3227
- }, bt = (i) => {
3228
- const u = {}, h = i ? ke(f.value, je(i)) : f.value;
3229
- for (const O in h) {
3230
- const q = h[O];
3231
- q._selected && (u[O] = me(q.value));
3469
+ }, nn = (i) => {
3470
+ var c;
3471
+ return (c = b.value[i]) == null ? void 0 : c.value;
3472
+ }, wt = (i) => {
3473
+ const c = {}, S = i ? Ie(b.value, Ee(i)) : b.value;
3474
+ for (const O in S) {
3475
+ const q = S[O];
3476
+ q._selected && (c[O] = ge(q.value));
3232
3477
  }
3233
- return u;
3234
- }, Kt = () => Y.dataSource, Zt = (i) => {
3235
- Y.dataSource = i;
3236
- }, Xt = (i, u) => {
3237
- Y.dataSource[i] = u;
3238
- }, nt = {
3478
+ return c;
3479
+ }, an = () => R.dataSource, rn = (i) => {
3480
+ R.dataSource = i;
3481
+ }, on = (i, c) => {
3482
+ R.dataSource[i] = c;
3483
+ }, st = {
3239
3484
  getFormItem(i) {
3240
- return s.value ? s.value.getFormItem(i) : vt(i);
3485
+ return l.value ? l.value.getFormItem(i) : Ue(i);
3241
3486
  },
3242
- setFormItem(i, u, h) {
3243
- s.value ? s.value.setFormItem(i, u, h) : Gt(i, u, h);
3487
+ setFormItem(i, c, S) {
3488
+ l.value ? l.value.setFormItem(i, c, S) : Q(i, c, S);
3244
3489
  },
3245
3490
  getFormValues(i) {
3246
- return s.value ? s.value.getFormValues(i) : bt(i);
3491
+ return l.value ? l.value.getFormValues(i) : wt(i);
3247
3492
  },
3248
3493
  setFormValues(i) {
3249
- s.value ? s.value.setFormValues(i) : Qt(i);
3494
+ l.value ? l.value.setFormValues(i) : Ce(i);
3250
3495
  },
3251
3496
  getFormValue(i) {
3252
- return s.value ? s.value.getFormValue(i) : Jt(i);
3497
+ return l.value ? l.value.getFormValue(i) : nn(i);
3253
3498
  },
3254
- setFormValue(i, u) {
3255
- s.value ? s.value.setFormValue(i, u) : ht(i, u);
3499
+ setFormValue(i, c) {
3500
+ l.value ? l.value.setFormValue(i, c) : Me(i, c);
3256
3501
  }
3257
- }, en = {
3258
- ...nt,
3259
- ...{
3260
- getTableData: Kt,
3261
- setTableData: Zt,
3262
- setTableDataItem: Xt
3263
- },
3264
- onRefresh: L,
3502
+ }, St = {
3503
+ getTableData: an,
3504
+ setTableData: rn,
3505
+ setTableDataItem: on,
3506
+ onRefresh: V
3507
+ }, ln = {
3508
+ ...st,
3509
+ ...St,
3510
+ onRefresh: V,
3265
3511
  isInitialized: o
3266
3512
  };
3267
- return e(en), he(() => [...t.refreshDeps], L, {
3513
+ e(ln), Se(() => [...t.refreshDeps], V, {
3268
3514
  deep: !0,
3269
3515
  immediate: !0
3270
- }), he(
3516
+ }), Se(
3271
3517
  () => t.enableScene,
3272
3518
  (i) => {
3273
- i ? te() : S([]);
3519
+ i ? z() : I([]);
3274
3520
  }
3275
- ), he(
3521
+ ), Se(
3276
3522
  () => t.sortable,
3277
3523
  (i) => {
3278
- i && de();
3524
+ i && M();
3279
3525
  },
3280
3526
  {
3281
3527
  immediate: !0
3282
3528
  }
3283
- ), pn(async () => {
3284
- t.enableScene ? await te() : p(), o.value = !0;
3285
- }), (i, u) => {
3286
- const h = P("a-form-item"), O = P("a-button"), q = P("a-select"), z = P("a-divider"), Ye = P("a-space"), rt = P("a-form"), He = P("a-typography-text"), tn = P("a-tooltip"), nn = P("a-table"), rn = P("a-config-provider");
3287
- return I(), E(rn, { locale: w(Dt) }, {
3288
- default: C(() => [
3289
- J("div", {
3290
- class: $([i.$style.superTable, "ants-super-table"]),
3291
- style: $e(r.wrapperStyle)
3529
+ ), _n(async () => {
3530
+ t.enableScene ? await z() : g(), o.value = !0;
3531
+ });
3532
+ const sn = {
3533
+ token: {
3534
+ borderRadius: 4
3535
+ }
3536
+ };
3537
+ return (i, c) => {
3538
+ const S = E("a-form-item"), O = E("a-button"), q = E("a-select"), Z = E("a-divider"), Ge = E("a-space"), it = E("a-form"), We = E("a-typography-text"), un = E("a-tooltip"), cn = E("a-table"), dn = E("a-config-provider");
3539
+ return x(), B(dn, {
3540
+ locale: f(Jt),
3541
+ theme: sn
3542
+ }, {
3543
+ default: _(() => [
3544
+ Y("div", {
3545
+ class: m([i.$style.superTable, "antd-super-table"]),
3546
+ style: re(a.wrapperStyle)
3292
3547
  }, [
3293
- r.enableScene || i.$slots.extra ? (I(), U("div", {
3548
+ a.enableScene || i.$slots.extra ? (x(), H("div", {
3294
3549
  key: 0,
3295
- class: $(i.$style.superTableHeader)
3550
+ class: m(i.$style.superTableHeader)
3296
3551
  }, [
3297
- r.enableScene ? (I(), E(rt, {
3298
- key: 0,
3299
- layout: "inline",
3300
- class: $(i.$style.searchForm)
3301
- }, {
3302
- default: C(() => [
3303
- i.$slots.sceneAddonBefore ? (I(), E(h, { key: 0 }, {
3304
- default: C(() => [
3305
- pe(i.$slots, "sceneAddonBefore")
3306
- ]),
3307
- _: 3
3308
- })) : N("", !0),
3309
- T(h, { label: "场景选择" }, {
3310
- default: C(() => [
3311
- T(q, {
3312
- value: w(c).sceneCode,
3313
- "onUpdate:value": u[1] || (u[1] = (G) => w(c).sceneCode = G),
3314
- class: $(i.$style.sceneSelect),
3315
- placeholder: "请选择",
3316
- "allow-clear": "",
3317
- "show-search": "",
3318
- "option-filter-prop": "name",
3319
- options: [...V.value, ...j.list],
3320
- "field-names": { value: "code", label: "name" },
3321
- open: F.value,
3322
- loading: j.loading,
3323
- onChange: ye,
3324
- onDropdownVisibleChange: u[2] || (u[2] = (G) => F.value = G)
3325
- }, {
3326
- dropdownRender: C(({ menuNode: G }) => [
3327
- T(w(Zr), { vnodes: G }, null, 8, ["vnodes"]),
3328
- J("div", {
3329
- class: $(i.$style.sceneOpBtnWrapper)
3330
- }, [
3331
- T(O, {
3332
- type: "link",
3333
- block: "",
3334
- icon: X(w(On)),
3335
- class: $(i.$style.sceneOpBtn),
3336
- disabled: !re.value,
3337
- onClick: u[0] || (u[0] = (Ee) => Oe(w(ce).create))
3552
+ Y("div", {
3553
+ class: m(i.$style.searchFormWrapper)
3554
+ }, [
3555
+ a.enableScene ? (x(), B(it, {
3556
+ key: 0,
3557
+ layout: "inline",
3558
+ class: m(i.$style.searchForm)
3559
+ }, {
3560
+ default: _(() => [
3561
+ i.$slots.sceneAddonBefore ? (x(), B(S, { key: 0 }, {
3562
+ default: _(() => [
3563
+ ve(i.$slots, "sceneAddonBefore")
3564
+ ]),
3565
+ _: 3
3566
+ })) : N("", !0),
3567
+ v(S, { label: "场景选择" }, {
3568
+ default: _(() => [
3569
+ v(q, {
3570
+ value: f(u).sceneCode,
3571
+ "onUpdate:value": c[1] || (c[1] = (X) => f(u).sceneCode = X),
3572
+ class: m(i.$style.sceneSelect),
3573
+ placeholder: "请选择",
3574
+ "allow-clear": "",
3575
+ "show-search": "",
3576
+ "option-filter-prop": "name",
3577
+ options: [...L.value, ...p.list],
3578
+ "field-names": { value: "code", label: "name" },
3579
+ open: T.value,
3580
+ loading: p.loading,
3581
+ onChange: ot,
3582
+ onDropdownVisibleChange: c[2] || (c[2] = (X) => T.value = X)
3583
+ }, {
3584
+ dropdownRender: _(({ menuNode: X }) => [
3585
+ v(f(rr), { vnodes: X }, null, 8, ["vnodes"]),
3586
+ Y("div", {
3587
+ class: m(i.$style.sceneOpBtnWrapper)
3588
+ }, [
3589
+ v(O, {
3590
+ type: "link",
3591
+ block: "",
3592
+ icon: G(f(Nn)),
3593
+ class: m(i.$style.sceneOpBtn),
3594
+ disabled: !le.value,
3595
+ onClick: c[0] || (c[0] = (je) => ee(f(de).create))
3596
+ }, {
3597
+ default: _(() => c[6] || (c[6] = [
3598
+ ne(" 新建场景 ")
3599
+ ])),
3600
+ _: 1
3601
+ }, 8, ["icon", "class", "disabled"]),
3602
+ v(O, {
3603
+ type: "link",
3604
+ block: "",
3605
+ icon: G(f(Bn)),
3606
+ class: m(i.$style.sceneOpBtn),
3607
+ onClick: ye
3608
+ }, {
3609
+ default: _(() => c[7] || (c[7] = [
3610
+ ne(" 场景管理 ")
3611
+ ])),
3612
+ _: 1
3613
+ }, 8, ["icon", "class"])
3614
+ ], 2)
3615
+ ]),
3616
+ _: 1
3617
+ }, 8, ["value", "class", "options", "open", "loading"])
3618
+ ]),
3619
+ _: 1
3620
+ }),
3621
+ v(S, null, {
3622
+ default: _(() => [
3623
+ v(Ge, null, {
3624
+ split: _(() => [
3625
+ v(Z, { type: "vertical" })
3626
+ ]),
3627
+ default: _(() => [
3628
+ v(O, {
3629
+ type: "primary",
3630
+ icon: G(f(Dn)),
3631
+ onClick: c[3] || (c[3] = (X) => ee(f(de).search))
3338
3632
  }, {
3339
- default: C(() => u[6] || (u[6] = [
3340
- K(" 新建场景 ")
3633
+ default: _(() => c[8] || (c[8] = [
3634
+ ne(" 高级筛选 ")
3341
3635
  ])),
3342
3636
  _: 1
3343
- }, 8, ["icon", "class", "disabled"]),
3344
- T(O, {
3345
- type: "link",
3346
- block: "",
3347
- icon: X(w(Pn)),
3348
- class: $(i.$style.sceneOpBtn),
3349
- onClick: Q
3637
+ }, 8, ["icon"]),
3638
+ a.showRefreshButton ? (x(), B(O, {
3639
+ key: 0,
3640
+ type: "primary",
3641
+ ghost: "",
3642
+ icon: G(f(Rn)),
3643
+ loading: R.loading,
3644
+ onClick: V
3350
3645
  }, {
3351
- default: C(() => u[7] || (u[7] = [
3352
- K(" 场景管理 ")
3646
+ default: _(() => c[9] || (c[9] = [
3647
+ ne(" 刷新 ")
3353
3648
  ])),
3354
3649
  _: 1
3355
- }, 8, ["icon", "class"])
3356
- ], 2)
3357
- ]),
3358
- _: 1
3359
- }, 8, ["value", "class", "options", "open", "loading"])
3360
- ]),
3361
- _: 1
3362
- }),
3363
- T(h, null, {
3364
- default: C(() => [
3365
- T(Ye, null, {
3366
- split: C(() => [
3367
- T(z, { type: "vertical" })
3368
- ]),
3369
- default: C(() => [
3370
- T(O, {
3371
- type: "primary",
3372
- icon: X(w(qn)),
3373
- onClick: u[3] || (u[3] = (G) => Oe(w(ce).search))
3374
- }, {
3375
- default: C(() => u[8] || (u[8] = [
3376
- K(" 高级筛选 ")
3377
- ])),
3378
- _: 1
3379
- }, 8, ["icon"]),
3380
- r.showRefreshButton ? (I(), E(O, {
3381
- key: 0,
3382
- type: "primary",
3383
- ghost: "",
3384
- icon: X(w(jn)),
3385
- loading: Y.loading,
3386
- onClick: L
3387
- }, {
3388
- default: C(() => u[9] || (u[9] = [
3389
- K(" 刷新 ")
3390
- ])),
3391
- _: 1
3392
- }, 8, ["icon", "loading"])) : N("", !0)
3393
- ]),
3394
- _: 1
3395
- })
3396
- ]),
3397
- _: 1
3398
- }),
3399
- i.$slots.sceneAddonAfter ? (I(), E(h, { key: 1 }, {
3400
- default: C(() => [
3401
- pe(i.$slots, "sceneAddonAfter")
3402
- ]),
3403
- _: 3
3404
- })) : N("", !0)
3405
- ]),
3406
- _: 3
3407
- }, 8, ["class"])) : N("", !0),
3408
- i.$slots.extra ? (I(), U("div", {
3409
- key: 1,
3410
- class: $(i.$style.superTableExtra)
3650
+ }, 8, ["icon", "loading"])) : N("", !0)
3651
+ ]),
3652
+ _: 1
3653
+ })
3654
+ ]),
3655
+ _: 1
3656
+ }),
3657
+ i.$slots.sceneAddonAfter ? (x(), B(S, { key: 1 }, {
3658
+ default: _(() => [
3659
+ ve(i.$slots, "sceneAddonAfter")
3660
+ ]),
3661
+ _: 3
3662
+ })) : N("", !0)
3663
+ ]),
3664
+ _: 3
3665
+ }, 8, ["class"])) : N("", !0)
3666
+ ], 2),
3667
+ i.$slots.extra ? (x(), H("div", {
3668
+ key: 0,
3669
+ class: m(i.$style.superTableExtra)
3411
3670
  }, [
3412
- pe(i.$slots, "extra")
3671
+ ve(i.$slots, "extra")
3413
3672
  ], 2)) : N("", !0)
3414
3673
  ], 2)) : N("", !0),
3415
- T(yo, {
3416
- "form-config-map": f.value,
3417
- "form-item-col-span": r.formItemColSpan,
3418
- onFormItemChange: tt,
3419
- onDelete: u[4] || (u[4] = (G) => zt(G))
3674
+ v(wo, {
3675
+ "form-config-map": b.value,
3676
+ "form-item-col-span": a.formItemColSpan,
3677
+ onFormItemChange: K,
3678
+ onDelete: c[4] || (c[4] = (X) => lt(X))
3420
3679
  }, null, 8, ["form-config-map", "form-item-col-span"]),
3421
- J("div", {
3422
- class: $(i.$style.tableWrapper)
3680
+ Y("div", {
3681
+ class: m(i.$style.tableWrapper)
3423
3682
  }, [
3424
- i.$slots.tableHead || i.$slots.toolBar ? (I(), U("div", {
3683
+ i.$slots.tableHead || i.$slots.toolBar ? (x(), H("div", {
3425
3684
  key: 0,
3426
- class: $(i.$style.toolbar)
3685
+ class: m(i.$style.toolbar)
3427
3686
  }, [
3428
- J("div", {
3429
- class: $(i.$style.tableHeadWrapper)
3687
+ Y("div", {
3688
+ class: m(i.$style.tableHeadWrapper)
3430
3689
  }, [
3431
- pe(i.$slots, "tableHead")
3690
+ ve(i.$slots, "tableHead")
3432
3691
  ], 2),
3433
- i.$slots.toolBarExtra ? (I(), U("div", {
3692
+ i.$slots.toolBarExtra ? (x(), H("div", {
3434
3693
  key: 0,
3435
- class: $(i.$style.actionBtns)
3694
+ class: m(i.$style.actionBtns)
3436
3695
  }, [
3437
- pe(i.$slots, "toolBarExtra")
3696
+ ve(i.$slots, "toolBarExtra")
3438
3697
  ], 2)) : N("", !0)
3439
3698
  ], 2)) : N("", !0),
3440
- J("div", {
3441
- class: $(i.$style.tableContent)
3699
+ Y("div", {
3700
+ class: m(i.$style.tableContent)
3442
3701
  }, [
3443
- r.enableTableConfig ? (I(), E(ma, {
3702
+ a.enableTableConfig ? (x(), B($r, {
3444
3703
  key: 0,
3445
- columns: k.value,
3446
- onChange: W
3704
+ columns: Oe.value,
3705
+ onChange: P
3447
3706
  }, null, 8, ["columns"])) : N("", !0),
3448
- T(nn, oe({
3707
+ v(cn, ue({
3449
3708
  ref_key: "tableRef",
3450
- ref: Ie,
3451
- "data-source": x.value
3452
- }, Y, { onResizeColumn: B }), fn({
3453
- headerCell: C(({ column: G }) => [
3454
- G.class !== "ant-table-row-expand-icon-cell" ? (I(), U("div", {
3709
+ ref: A
3710
+ }, {
3711
+ ...R,
3712
+ dataSource: rt.value
3713
+ }, { onResizeColumn: He }), Cn({
3714
+ headerCell: _(({ column: X }) => [
3715
+ X.class !== "ant-table-row-expand-icon-cell" ? (x(), H("div", {
3455
3716
  key: 0,
3456
- class: $(i.$style.headerCell)
3717
+ class: m(i.$style.headerCell)
3457
3718
  }, [
3458
- T(He, {
3459
- ellipsis: { tooltip: G.title },
3460
- content: G.title,
3461
- class: $(i.$style.headerCellText)
3719
+ v(We, {
3720
+ ellipsis: { tooltip: X.title },
3721
+ content: X.title,
3722
+ class: m(i.$style.headerCellText)
3462
3723
  }, null, 8, ["ellipsis", "content", "class"]),
3463
- G.titleTooltip ? (I(), E(tn, { key: 0 }, {
3464
- title: C(() => [
3465
- J("span", {
3466
- innerHTML: G.titleTooltip
3467
- }, null, 8, ho)
3724
+ X.titleTooltip ? (x(), B(un, { key: 0 }, {
3725
+ title: _(() => [
3726
+ Y("span", {
3727
+ innerHTML: X.titleTooltip
3728
+ }, null, 8, Io)
3468
3729
  ]),
3469
- default: C(() => [
3470
- T(w(Ln), {
3471
- style: $e({ color: w(we).colorTextQuaternary }),
3472
- class: $(i.$style.headerCellTooltipIcon)
3730
+ default: _(() => [
3731
+ v(f(Vn), {
3732
+ style: re({ color: f(oe).colorTextQuaternary }),
3733
+ class: m(i.$style.headerCellTooltipIcon)
3473
3734
  }, null, 8, ["style", "class"])
3474
3735
  ]),
3475
3736
  _: 2
3476
3737
  }, 1024)) : N("", !0)
3477
3738
  ], 2)) : N("", !0)
3478
3739
  ]),
3479
- bodyCell: C(({ column: G, record: Ee, index: Ct }) => [
3480
- Mt([Ee == null ? void 0 : Ee[Y.rowKey], G == null ? void 0 : G.key, Ct], () => T(Kr, {
3481
- column: G,
3482
- record: Ee,
3483
- index: Ct,
3484
- hasRouter: l.value
3485
- }, null, 8, ["column", "record", "index", "hasRouter"]), u, 5)
3740
+ bodyCell: _(({ column: X, record: je, index: It }) => [
3741
+ Ut([je == null ? void 0 : je[R.rowKey], X == null ? void 0 : X.key, It], () => v(ar, {
3742
+ column: X,
3743
+ record: je,
3744
+ index: It,
3745
+ hasRouter: s.value
3746
+ }, null, 8, ["column", "record", "index", "hasRouter"]), c, 5)
3486
3747
  ]),
3487
- default: C(() => [
3488
- i.$slots.expandColumnTitle ? pe(i.$slots, "expandColumnTitle", { key: 0 }) : N("", !0)
3748
+ default: _(() => [
3749
+ i.$slots.expandColumnTitle ? ve(i.$slots, "expandColumnTitle", { key: 0 }) : N("", !0)
3489
3750
  ]),
3490
3751
  _: 2
3491
3752
  }, [
3492
3753
  i.$slots.expandedRowRender ? {
3493
3754
  name: "expandedRowRender",
3494
- fn: C(({ record: G }) => [
3495
- pe(i.$slots, "expandedRowRender", { record: G })
3755
+ fn: _(({ record: X }) => [
3756
+ ve(i.$slots, "expandedRowRender", { record: X })
3496
3757
  ]),
3497
3758
  key: "0"
3498
3759
  } : void 0
3499
- ]), 1040, ["data-source"])
3760
+ ]), 1040)
3500
3761
  ], 2),
3501
- i.$slots.tableFoot ? (I(), U("div", {
3762
+ i.$slots.tableFoot ? (x(), H("div", {
3502
3763
  key: 1,
3503
- class: $(i.$style.tableFootWrapper)
3764
+ class: m(i.$style.tableFootWrapper)
3504
3765
  }, [
3505
- pe(i.$slots, "tableFoot")
3766
+ ve(i.$slots, "tableFoot")
3506
3767
  ], 2)) : N("", !0)
3507
3768
  ], 2)
3508
3769
  ], 6)
@@ -3511,29 +3772,31 @@ const ze = 2e3, vo = (r) => {
3511
3772
  }, 8, ["locale"]);
3512
3773
  };
3513
3774
  }
3514
- }), _o = "_superTable_1rx9j_1", Co = "_superTableHeader_1rx9j_5", $o = "_searchForm_1rx9j_10", wo = "_sceneSelect_1rx9j_14", So = "_tableWrapper_1rx9j_17", Io = "_toolbar_1rx9j_17", Fo = "_actionBtns_1rx9j_24", xo = "_tableHeadWrapper_1rx9j_29", ko = "_tableContent_1rx9j_32", To = "_headerCell_1rx9j_35", Oo = "_headerCellText_1rx9j_40", Po = "_headerCellTooltipIcon_1rx9j_43", qo = "_sceneOpBtnWrapper_1rx9j_47", jo = "_sceneOpBtn_1rx9j_47", Lo = {
3515
- superTable: _o,
3516
- superTableHeader: Co,
3517
- searchForm: $o,
3518
- sceneSelect: wo,
3519
- tableWrapper: So,
3520
- toolbar: Io,
3521
- actionBtns: Fo,
3522
- tableHeadWrapper: xo,
3523
- tableContent: ko,
3524
- headerCell: To,
3525
- headerCellText: Oo,
3526
- headerCellTooltipIcon: Po,
3527
- sceneOpBtnWrapper: qo,
3528
- sceneOpBtn: jo
3529
- }, Eo = {
3530
- $style: Lo
3531
- }, Et = /* @__PURE__ */ fe(bo, [["__cssModules", Eo]]);
3532
- Et.install = (r) => {
3533
- r.component("SuperTable", Et);
3775
+ }), 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", Vo = "_sceneOpBtn_1j2zk_50", zo = {
3776
+ superTable: xo,
3777
+ superTableHeader: To,
3778
+ searchFormWrapper: Po,
3779
+ searchForm: Oo,
3780
+ sceneSelect: qo,
3781
+ tableWrapper: Ao,
3782
+ toolbar: Eo,
3783
+ actionBtns: Lo,
3784
+ tableHeadWrapper: Mo,
3785
+ tableContent: jo,
3786
+ headerCell: No,
3787
+ headerCellText: Bo,
3788
+ headerCellTooltipIcon: Do,
3789
+ sceneOpBtnWrapper: Ro,
3790
+ sceneOpBtn: Vo
3791
+ }, Yo = {
3792
+ $style: zo
3793
+ }, Ht = /* @__PURE__ */ he(Fo, [["__cssModules", Yo]]);
3794
+ Ht.install = (a) => {
3795
+ a.component("SuperTable", Ht);
3534
3796
  };
3535
3797
  export {
3536
- R as SuperTableColumnTypeEnum,
3537
- H as SuperTableFormItemTypeEnum,
3538
- Et as default
3798
+ Or as DynamicList,
3799
+ U as SuperTableColumnTypeEnum,
3800
+ J as SuperTableFormItemTypeEnum,
3801
+ Ht as default
3539
3802
  };