@yidun/antd-super-table 0.1.9 → 0.1.10
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/README.md +21 -13
- package/dist/index.js +736 -725
- package/dist/interface.d.ts +6 -0
- package/dist/utils/index.d.ts +1 -0
- package/example/index.vue +51 -0
- package/example/tableColumns.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._ellipsisElement_6fog1_1{width:100%;overflow:hidden;display:flex}._ellipsisElement_6fog1_1 ._elementItem_6fog1_6{min-width:0}._ellipsisElementHasGap_6fog1_10{gap:8px}._flexWrap_6fog1_14{flex-wrap:wrap}._ellipsisTag_6fog1_18{cursor:pointer}._imageEllipsisTag_6fog1_22{line-height:30px;min-width:32px;padding:0;text-align:center}._ellipsisList_6fog1_29{max-width:500px;display:flex;gap:8px;flex-wrap:wrap}._tableCellContent_1chn7_1 ._antTypographyEllipsis_1chn7_1{width:100%}._tableCellContent_1chn7_1 ._draggableIcon_1chn7_4{cursor:grab}._textListItem_1chn7_8{width:100%;margin-bottom:4px}._configBtn_fstz6_1{position:absolute;z-index:999;right:4px;top:8px;background:#fafafa}._tableConfig_fstz6_9{width:260px}._tableConfig_fstz6_9 ._tableConfigHead_fstz6_12{padding:8px}._tableConfig_fstz6_9 ._tableConfigActions_fstz6_15{display:flex;align-items:center;justify-content:space-between;padding:8px;border-bottom:1px solid #d9d9d9}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22{min-height:300px;max-height:60vh;overflow:auto;padding-bottom:12px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._groupTitle_fstz6_28{padding:0 8px;font-size:12px;color:#000000a6;background:#fafafa;line-height:28px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35{max-height:20vh;overflow-y:auto}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 8px;position:relative}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._columnItemContent_fstz6_47{flex:1;cursor:pointer}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._dragIcon_fstz6_51,._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._dragHandle_fstz6_54{cursor:grab}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._fixedActions_fstz6_57{display:none;align-items:center;gap:4px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39:hover ._fixedActions_fstz6_57{display:flex}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._emptyText_fstz6_65{line-height:200px;text-align:center}.pro-table-config-popover .ant-popover-inner-content{padding:0}._dynamicList_1woe5_1{list-style:none;padding:0;margin:0}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6{display:flex;align-items:center;gap:16px;padding:8px;background-color:#fff}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._dynamicListItemContent_1woe5_13{flex:1;min-width:0}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._actionsIcons_1woe5_17{display:flex;align-items:center}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._actionsIcons_1woe5_17 ._dragIcon_1woe5_21{cursor:grab}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6:last-child{border-bottom:none;margin-bottom:16px}._inputGroup_eukv3_1,._inputNumberGroup_149g6_1{width:100%}._inputNumberGroup_149g6_1 ._inputNumberGroupContent_149g6_4{width:100%;display:flex;align-items:center}._inputNumberGroup_149g6_1 ._inputNumber_149g6_1{width:unset!important;flex:1}._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13{border-top-right-radius:0;border-bottom-right-radius:0;border-right-color:transparent}._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13:focus,._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13:hover{border-right-color:#1677ff}._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:transparent}._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21:focus,._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21:hover{border-left-color:#1677ff}._inputNumberGroup_149g6_1 ._divider_149g6_29{display:inline-block;padding:0 8px;line-height:30px;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9}._formFieldItem_1imun_1{display:flex;align-items:center;min-width:0}._inputGroup_1imun_7{width:unset}._formFieldItemLabel_1imun_11{padding-left:8px;padding-right:8px;background-color:transparent!important;text-align:center;cursor:default!important;border-right:none!important}._customItemLabel_1imun_20{font-size:14px;padding-right:8px;color:#000000e0}.super-table-input-group{width:100%}.super-table-input-group .super-table-filter-form-item-label+.ant-input,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector,.super-table-input-group .super-table-filter-form-item-label+.ant-picker,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group{border-left-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-picker:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-picker:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group:hover{border-left-color:#1677ff!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input{border-left-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input:hover{border-left-color:#1677ff!important;border-right-color:#1677ff!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector{border-start-start-radius:0!important;border-end-start-radius:0!important;border-left-color:transparent!important;border-right-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector:hover{border-left-color:#1677ff!important;border-right-color:#1677ff!important}.super-table-input-group .input-number-group .ant-input-number:first-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:transparent!important}.super-table-input-group .input-number-group .ant-input-number:first-child:focus,.super-table-input-group .input-number-group .ant-input-number:first-child:hover{border-left-color:#1677ff!important}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1{display:flex;align-items:center;gap:8px;min-width:0}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1 ._fieldSelect_njdgy_7{width:200px}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1 ._fieldComponent_njdgy_10{flex:1;min-width:0}._sceneList_3nrgr_1{max-height:50vh;overflow:auto}._sceneList_3nrgr_1 ._sceneListHead_3nrgr_5{background-color:#fafafa}._sceneList_3nrgr_1 ._sceneListItem_3nrgr_8{border-top:1px solid #d9d9d9;transition:all .3s;background-color:#fff}._sceneList_3nrgr_1 ._sceneListItem_3nrgr_8:hover{background-color:#f9f9f9}._sceneList_3nrgr_1 ._col_3nrgr_16{padding:12px 16px}._dragIcon_3nrgr_20{cursor:grab}._searchParamsWrapper_mo3ie_1{padding:16px;background-color:#fff;margin-bottom:0}._searchParamsWrapper_mo3ie_1._hasActions_mo3ie_6{margin-bottom:16px}._searchParams_mo3ie_1{flex:1}._searchActionsWrapper_mo3ie_14{display:flex;justify-content:flex-end;gap:8px}._superTable_1jyjb_1 ._querySection_1jyjb_1 ._sceneHeader_1jyjb_1{padding:16px;display:flex;gap:16px;background-color:#fff}._superTable_1jyjb_1 ._querySection_1jyjb_1 ._sceneHeader_1jyjb_1 ._sceneFormWrapper_1jyjb_7,._superTable_1jyjb_1 ._querySection_1jyjb_1 ._sceneHeader_1jyjb_1 ._sceneFormWrapper_1jyjb_7 ._sceneForm_1jyjb_7{flex:1}._superTable_1jyjb_1 ._querySection_1jyjb_1 ._sceneHeader_1jyjb_1 ._sceneFormWrapper_1jyjb_7 ._sceneForm_1jyjb_7 ._sceneSelect_1jyjb_13{width:240px}._superTable_1jyjb_1 ._querySection_1jyjb_1 ._sceneHeader_1jyjb_1 ._sceneExtra_1jyjb_16{flex-shrink:0}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19{background:#fff;padding:16px}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._toolbar_1jyjb_23{padding-bottom:12px;display:flex;align-items:flex-start;justify-content:flex-end;gap:16px}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._toolbar_1jyjb_23 ._actionBtns_1jyjb_30{display:flex;align-items:center;gap:8px}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._toolbar_1jyjb_23 ._tableHeadWrapper_1jyjb_35{flex:1}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._tableContent_1jyjb_38{position:relative}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._headerCell_1jyjb_41{display:flex;align-items:center;gap:4px}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._headerCell_1jyjb_41 ._headerCellText_1jyjb_46{flex:1}._superTable_1jyjb_1 ._tableWrapper_1jyjb_19 ._headerCell_1jyjb_41 ._headerCellTooltipIcon_1jyjb_49{cursor:pointer}._sceneOpBtnWrapper_1jyjb_53{border-top:1px solid #d9d9d9;padding-top:8px}._sceneOpBtnWrapper_1jyjb_53 ._sceneOpBtn_1jyjb_53{text-align:left}.antd-super-table .ant-table-body{overflow-y:auto!important}.antd-super-table .ant-table-cell{padding:12px!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._ellipsisElement_6fog1_1{width:100%;overflow:hidden;display:flex}._ellipsisElement_6fog1_1 ._elementItem_6fog1_6{min-width:0}._ellipsisElementHasGap_6fog1_10{gap:8px}._flexWrap_6fog1_14{flex-wrap:wrap}._ellipsisTag_6fog1_18{cursor:pointer}._imageEllipsisTag_6fog1_22{line-height:30px;min-width:32px;padding:0;text-align:center}._ellipsisList_6fog1_29{max-width:500px;display:flex;gap:8px;flex-wrap:wrap}._tableCellContent_1chn7_1 ._antTypographyEllipsis_1chn7_1{width:100%}._tableCellContent_1chn7_1 ._draggableIcon_1chn7_4{cursor:grab}._textListItem_1chn7_8{width:100%;margin-bottom:4px}._configBtn_fstz6_1{position:absolute;z-index:999;right:4px;top:8px;background:#fafafa}._tableConfig_fstz6_9{width:260px}._tableConfig_fstz6_9 ._tableConfigHead_fstz6_12{padding:8px}._tableConfig_fstz6_9 ._tableConfigActions_fstz6_15{display:flex;align-items:center;justify-content:space-between;padding:8px;border-bottom:1px solid #d9d9d9}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22{min-height:300px;max-height:60vh;overflow:auto;padding-bottom:12px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._groupTitle_fstz6_28{padding:0 8px;font-size:12px;color:#000000a6;background:#fafafa;line-height:28px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35{max-height:20vh;overflow-y:auto}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 8px;position:relative}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._columnItemContent_fstz6_47{flex:1;cursor:pointer}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._dragIcon_fstz6_51,._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._dragHandle_fstz6_54{cursor:grab}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39 ._fixedActions_fstz6_57{display:none;align-items:center;gap:4px}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._columnGroup_fstz6_28 ._columnList_fstz6_35 ._columnItem_fstz6_39:hover ._fixedActions_fstz6_57{display:flex}._tableConfig_fstz6_9 ._tableConfigContent_fstz6_22 ._emptyText_fstz6_65{line-height:200px;text-align:center}.pro-table-config-popover .ant-popover-inner-content{padding:0}._dynamicList_1woe5_1{list-style:none;padding:0;margin:0}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6{display:flex;align-items:center;gap:16px;padding:8px;background-color:#fff}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._dynamicListItemContent_1woe5_13{flex:1;min-width:0}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._actionsIcons_1woe5_17{display:flex;align-items:center}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6 ._actionsIcons_1woe5_17 ._dragIcon_1woe5_21{cursor:grab}._dynamicList_1woe5_1 ._dynamicListItem_1woe5_6:last-child{border-bottom:none;margin-bottom:16px}._inputGroup_eukv3_1,._inputNumberGroup_149g6_1{width:100%}._inputNumberGroup_149g6_1 ._inputNumberGroupContent_149g6_4{width:100%;display:flex;align-items:center}._inputNumberGroup_149g6_1 ._inputNumber_149g6_1{width:unset!important;flex:1}._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13{border-top-right-radius:0;border-bottom-right-radius:0;border-right-color:transparent}._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13:focus,._inputNumberGroup_149g6_1 ._startInputNumber_149g6_13:hover{border-right-color:#1677ff}._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:transparent}._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21:focus,._inputNumberGroup_149g6_1 ._endInputNumber_149g6_21:hover{border-left-color:#1677ff}._inputNumberGroup_149g6_1 ._divider_149g6_29{display:inline-block;padding:0 8px;line-height:30px;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9}._formFieldItem_1imun_1{display:flex;align-items:center;min-width:0}._inputGroup_1imun_7{width:unset}._formFieldItemLabel_1imun_11{padding-left:8px;padding-right:8px;background-color:transparent!important;text-align:center;cursor:default!important;border-right:none!important}._customItemLabel_1imun_20{font-size:14px;padding-right:8px;color:#000000e0}.super-table-input-group{width:100%}.super-table-input-group .super-table-filter-form-item-label+.ant-input,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector,.super-table-input-group .super-table-filter-form-item-label+.ant-picker,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group{border-left-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-number:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-select .ant-select-selector:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-picker:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-picker:hover,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group:hover{border-left-color:#1677ff!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input{border-left-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-input:hover{border-left-color:#1677ff!important;border-right-color:#1677ff!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector{border-start-start-radius:0!important;border-end-start-radius:0!important;border-left-color:transparent!important;border-right-color:transparent!important}.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector:focus,.super-table-input-group .super-table-filter-form-item-label+.ant-input-group .ant-select .ant-select-selector:hover{border-left-color:#1677ff!important;border-right-color:#1677ff!important}.super-table-input-group .input-number-group .ant-input-number:first-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:transparent!important}.super-table-input-group .input-number-group .ant-input-number:first-child:focus,.super-table-input-group .input-number-group .ant-input-number:first-child:hover{border-left-color:#1677ff!important}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1{display:flex;align-items:center;gap:8px;min-width:0}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1 ._fieldSelect_njdgy_7{width:200px}._sceneForm_njdgy_1 ._queryFieldItem_njdgy_1 ._fieldComponent_njdgy_10{flex:1;min-width:0}._sceneList_3nrgr_1{max-height:50vh;overflow:auto}._sceneList_3nrgr_1 ._sceneListHead_3nrgr_5{background-color:#fafafa}._sceneList_3nrgr_1 ._sceneListItem_3nrgr_8{border-top:1px solid #d9d9d9;transition:all .3s;background-color:#fff}._sceneList_3nrgr_1 ._sceneListItem_3nrgr_8:hover{background-color:#f9f9f9}._sceneList_3nrgr_1 ._col_3nrgr_16{padding:12px 16px}._dragIcon_3nrgr_20{cursor:grab}._searchParamsWrapper_mo3ie_1{padding:16px;background-color:#fff;margin-bottom:0}._searchParamsWrapper_mo3ie_1._hasActions_mo3ie_6{margin-bottom:16px}._searchParams_mo3ie_1{flex:1}._searchActionsWrapper_mo3ie_14{display:flex;justify-content:flex-end;gap:8px}._superTable_1wr7z_1 ._querySection_1wr7z_1 ._sceneHeader_1wr7z_1{padding:16px;display:flex;gap:16px;background-color:#fff}._superTable_1wr7z_1 ._querySection_1wr7z_1 ._sceneHeader_1wr7z_1 ._sceneFormWrapper_1wr7z_7,._superTable_1wr7z_1 ._querySection_1wr7z_1 ._sceneHeader_1wr7z_1 ._sceneFormWrapper_1wr7z_7 ._sceneForm_1wr7z_7{flex:1}._superTable_1wr7z_1 ._querySection_1wr7z_1 ._sceneHeader_1wr7z_1 ._sceneFormWrapper_1wr7z_7 ._sceneForm_1wr7z_7 ._sceneSelect_1wr7z_13{width:240px}._superTable_1wr7z_1 ._querySection_1wr7z_1 ._sceneHeader_1wr7z_1 ._sceneExtra_1wr7z_16{flex-shrink:0}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19{background:#fff;padding:16px}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._toolbar_1wr7z_23{padding-bottom:12px;display:flex;align-items:flex-start;justify-content:flex-end;gap:16px}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._toolbar_1wr7z_23 ._actionBtns_1wr7z_30{display:flex;align-items:center;gap:8px}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._toolbar_1wr7z_23 ._tableHeadWrapper_1wr7z_35{flex:1}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._tableContent_1wr7z_38{position:relative}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._headerCell_1wr7z_41{display:flex;align-items:center;gap:4px}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._headerCell_1wr7z_41 ._headerCellText_1wr7z_46{flex:1}._superTable_1wr7z_1 ._tableWrapper_1wr7z_19 ._headerCell_1wr7z_41 ._headerCellTooltipIcon_1wr7z_49{cursor:pointer}._sceneOpBtnWrapper_1wr7z_53{border-top:1px solid #d9d9d9;padding-top:8px}._sceneOpBtnWrapper_1wr7z_53 ._sceneOpBtn_1wr7z_53{text-align:left}._customSlotCell_1wr7z_61{white-space:normal}.antd-super-table .ant-table-body{overflow-y:auto!important}.antd-super-table .ant-table-cell{padding:12px!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
var an = Object.defineProperty;
|
|
3
3
|
var sn = (t, e, o) => e in t ? an(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
4
4
|
var Be = (t, e, o) => sn(t, typeof e != "symbol" ? e + "" : e, o);
|
|
5
|
-
import { h as W, defineComponent as pe, computed as F, resolveComponent as L, createElementBlock as
|
|
6
|
-
import gn, { theme as bn, Form as vn, RangePicker as Cn, DatePicker as _n, TreeSelect as En, Cascader as Sn, Select as
|
|
7
|
-
import { DownOutlined as Bt, HolderOutlined as Ae, EyeOutlined as On, SettingOutlined as An, VerticalAlignBottomOutlined as Et, PushpinOutlined as St, VerticalAlignTopOutlined as
|
|
8
|
-
import { slice as $t, isFunction as $e, get as
|
|
9
|
-
import { useLocalStorage as
|
|
5
|
+
import { h as W, defineComponent as pe, computed as F, resolveComponent as L, createElementBlock as H, openBlock as k, normalizeClass as g, unref as y, createCommentVNode as N, Fragment as Oe, renderList as ut, normalizeStyle as ne, renderSlot as fe, createBlock as j, withCtx as C, createVNode as S, createTextVNode as ee, toDisplayString as be, createElementVNode as z, withMemo as Mt, resolveDynamicComponent as Ke, normalizeProps as st, mergeProps as le, ref as oe, watchEffect as _t, watch as xe, useAttrs as ln, reactive as Qe, toRaw as ge, createApp as cn, onBeforeUnmount as un, getCurrentInstance as dn, markRaw as pn, shallowRef as mn, onMounted as fn, createSlots as hn, nextTick as yn } from "vue";
|
|
6
|
+
import gn, { theme as bn, Form as vn, RangePicker as Cn, DatePicker as _n, TreeSelect as En, Cascader as Sn, Select as wn, InputNumber as xn, Input as $n, Empty as kn, ConfigProvider as In, message as lt } from "ant-design-vue";
|
|
7
|
+
import { DownOutlined as Bt, HolderOutlined as Ae, EyeOutlined as On, SettingOutlined as An, VerticalAlignBottomOutlined as Et, PushpinOutlined as St, VerticalAlignTopOutlined as wt, MinusCircleOutlined as xt, PlusOutlined as Rt, UpOutlined as Pn, PlusCircleFilled as Tn, SettingFilled as Ln, FilterFilled as Dn, ReloadOutlined as Fn, InfoCircleFilled as Mn } from "@ant-design/icons-vue";
|
|
8
|
+
import { slice as $t, isFunction as $e, get as Xe, castArray as De, debounce as ht, pick as ke, omit as Nt, set as je, cloneDeep as it, sortBy as dt, unionBy as kt, uniqueId as Bn, merge as Rn } from "lodash-es";
|
|
9
|
+
import { useLocalStorage as Nn, useStorage as jn } from "@vueuse/core";
|
|
10
10
|
import Ue from "dayjs";
|
|
11
11
|
import Un from "sortablejs";
|
|
12
|
-
import
|
|
12
|
+
import jt from "async-validator";
|
|
13
13
|
import { v5 as zn } from "uuid";
|
|
14
|
-
import
|
|
14
|
+
import Ne from "vuedraggable";
|
|
15
15
|
const Hn = {
|
|
16
16
|
// Options.jsx
|
|
17
17
|
items_per_page: "条/页",
|
|
@@ -26,14 +26,14 @@ const Hn = {
|
|
|
26
26
|
prev_3: "向前 3 页",
|
|
27
27
|
next_3: "向后 3 页"
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
return
|
|
29
|
+
function Ze() {
|
|
30
|
+
return Ze = Object.assign ? Object.assign.bind() : function(t) {
|
|
31
31
|
for (var e = 1; e < arguments.length; e++) {
|
|
32
32
|
var o = arguments[e];
|
|
33
33
|
for (var n in o) ({}).hasOwnProperty.call(o, n) && (t[n] = o[n]);
|
|
34
34
|
}
|
|
35
35
|
return t;
|
|
36
|
-
},
|
|
36
|
+
}, Ze.apply(null, arguments);
|
|
37
37
|
}
|
|
38
38
|
const qn = {
|
|
39
39
|
locale: "zh_CN",
|
|
@@ -65,8 +65,8 @@ const qn = {
|
|
|
65
65
|
}, Ut = {
|
|
66
66
|
placeholder: "请选择时间",
|
|
67
67
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
68
|
-
},
|
|
69
|
-
lang:
|
|
68
|
+
}, pt = {
|
|
69
|
+
lang: Ze({
|
|
70
70
|
placeholder: "请选择日期",
|
|
71
71
|
yearPlaceholder: "请选择年份",
|
|
72
72
|
quarterPlaceholder: "请选择季度",
|
|
@@ -78,15 +78,15 @@ const qn = {
|
|
|
78
78
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
79
79
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
80
80
|
}, qn),
|
|
81
|
-
timePickerLocale:
|
|
81
|
+
timePickerLocale: Ze({}, Ut)
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
pt.lang.ok = "确定";
|
|
84
84
|
const ue = "${label}不是一个有效的${type}", zt = {
|
|
85
85
|
locale: "zh-cn",
|
|
86
86
|
Pagination: Hn,
|
|
87
|
-
DatePicker:
|
|
87
|
+
DatePicker: pt,
|
|
88
88
|
TimePicker: Ut,
|
|
89
|
-
Calendar:
|
|
89
|
+
Calendar: pt,
|
|
90
90
|
// locales for all components
|
|
91
91
|
global: {
|
|
92
92
|
placeholder: "请选择"
|
|
@@ -215,7 +215,7 @@ const ue = "${label}不是一个有效的${type}", zt = {
|
|
|
215
215
|
scanned: "已扫描"
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
var
|
|
218
|
+
var Ge = { exports: {} }, Yn = Ge.exports, It;
|
|
219
219
|
function Vn() {
|
|
220
220
|
return It || (It = 1, function(t, e) {
|
|
221
221
|
(function(o, n) {
|
|
@@ -232,7 +232,7 @@ function Vn() {
|
|
|
232
232
|
} };
|
|
233
233
|
return r.default.locale(s, null, !0), s;
|
|
234
234
|
});
|
|
235
|
-
}(
|
|
235
|
+
}(Ge)), Ge.exports;
|
|
236
236
|
}
|
|
237
237
|
Vn();
|
|
238
238
|
const { defaultAlgorithm: Wn, defaultSeed: Gn } = bn, re = Wn(Gn);
|
|
@@ -252,7 +252,7 @@ const Ht = Object.values(ve), G = {
|
|
|
252
252
|
component: "component",
|
|
253
253
|
/** 排序 */
|
|
254
254
|
sort: "sort"
|
|
255
|
-
},
|
|
255
|
+
}, Z = {
|
|
256
256
|
/** 输入框 */
|
|
257
257
|
input: "input",
|
|
258
258
|
/** 组合输入框 */
|
|
@@ -280,7 +280,7 @@ const Ht = Object.values(ve), G = {
|
|
|
280
280
|
update: "update",
|
|
281
281
|
/** 设置查询条件 */
|
|
282
282
|
search: "search"
|
|
283
|
-
},
|
|
283
|
+
}, mt = ["key", "index", "width", "visible", "fixed"];
|
|
284
284
|
class Kn {
|
|
285
285
|
/**
|
|
286
286
|
* @callback HookCallback
|
|
@@ -650,7 +650,7 @@ class u {
|
|
|
650
650
|
prec: n,
|
|
651
651
|
right_a: u.right_associative.has(o)
|
|
652
652
|
}, f = o;
|
|
653
|
-
const v = (
|
|
653
|
+
const v = (b) => s.right_a && b.right_a ? n > b.prec : n <= b.prec;
|
|
654
654
|
for (; r.length > 2 && v(r[r.length - 2]); )
|
|
655
655
|
c = r.pop(), o = r.pop().value, l = r.pop(), e = {
|
|
656
656
|
type: u.BINARY_EXP,
|
|
@@ -1069,10 +1069,10 @@ var no = {
|
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
|
-
const
|
|
1072
|
+
const ct = 43, oo = 45, Le = {
|
|
1073
1073
|
name: "assignment",
|
|
1074
1074
|
assignmentOperators: /* @__PURE__ */ new Set(["=", "*=", "**=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|=", "||=", "&&=", "??="]),
|
|
1075
|
-
updateOperators: [
|
|
1075
|
+
updateOperators: [ct, oo],
|
|
1076
1076
|
assignmentPrecedence: 0.9,
|
|
1077
1077
|
init(t) {
|
|
1078
1078
|
const e = [t.IDENTIFIER, t.MEMBER_EXP];
|
|
@@ -1080,7 +1080,7 @@ const it = 43, oo = 45, Le = {
|
|
|
1080
1080
|
const s = this.code;
|
|
1081
1081
|
Le.updateOperators.some((l) => l === s && l === this.expr.charCodeAt(this.index + 1)) && (this.index += 2, r.node = {
|
|
1082
1082
|
type: "UpdateExpression",
|
|
1083
|
-
operator: s ===
|
|
1083
|
+
operator: s === ct ? "++" : "--",
|
|
1084
1084
|
argument: this.gobbleTokenProperty(this.gobbleIdentifier()),
|
|
1085
1085
|
prefix: !0
|
|
1086
1086
|
}, (!r.node.argument || !e.includes(r.node.argument.type)) && this.throwError(`Unexpected ${r.node.operator}`));
|
|
@@ -1089,7 +1089,7 @@ const it = 43, oo = 45, Le = {
|
|
|
1089
1089
|
const s = this.code;
|
|
1090
1090
|
Le.updateOperators.some((l) => l === s && l === this.expr.charCodeAt(this.index + 1)) && (e.includes(r.node.type) || this.throwError(`Unexpected ${r.node.operator}`), this.index += 2, r.node = {
|
|
1091
1091
|
type: "UpdateExpression",
|
|
1092
|
-
operator: s ===
|
|
1092
|
+
operator: s === ct ? "++" : "--",
|
|
1093
1093
|
argument: r.node,
|
|
1094
1094
|
prefix: !1
|
|
1095
1095
|
});
|
|
@@ -1243,10 +1243,10 @@ class ao {
|
|
|
1243
1243
|
return Y.evalAst(this.ast, o);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function we(t, e) {
|
|
1247
1247
|
return t = t.slice(), t.push(e), t;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function ft(t, e) {
|
|
1250
1250
|
return e = e.slice(), e.unshift(t), e;
|
|
1251
1251
|
}
|
|
1252
1252
|
class so extends Error {
|
|
@@ -1302,8 +1302,8 @@ U.prototype.evaluate = function(t, e, o, n) {
|
|
|
1302
1302
|
const f = this._trace(p, e, ["$"], r, s, o).filter(function(v) {
|
|
1303
1303
|
return v && !v.isParentSelector;
|
|
1304
1304
|
});
|
|
1305
|
-
return f.length ? !c && f.length === 1 && !f[0].hasArrExpr ? this._getPreferredOutput(f[0]) : f.reduce((v,
|
|
1306
|
-
const d = this._getPreferredOutput(
|
|
1305
|
+
return f.length ? !c && f.length === 1 && !f[0].hasArrExpr ? this._getPreferredOutput(f[0]) : f.reduce((v, b) => {
|
|
1306
|
+
const d = this._getPreferredOutput(b);
|
|
1307
1307
|
return l && Array.isArray(d) ? v = v.concat(d) : v.push(d), v;
|
|
1308
1308
|
}, []) : c ? [] : void 0;
|
|
1309
1309
|
};
|
|
@@ -1342,21 +1342,21 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1342
1342
|
parentProperty: r,
|
|
1343
1343
|
hasArrExpr: l
|
|
1344
1344
|
}, this._handleCallback(p, s, "value"), p;
|
|
1345
|
-
const f = t[0], v = t.slice(1),
|
|
1345
|
+
const f = t[0], v = t.slice(1), b = [];
|
|
1346
1346
|
function d(m) {
|
|
1347
|
-
Array.isArray(m) ? m.forEach((
|
|
1348
|
-
|
|
1349
|
-
}) :
|
|
1347
|
+
Array.isArray(m) ? m.forEach((x) => {
|
|
1348
|
+
b.push(x);
|
|
1349
|
+
}) : b.push(m);
|
|
1350
1350
|
}
|
|
1351
1351
|
if ((typeof f != "string" || c) && e && Object.hasOwn(e, f))
|
|
1352
|
-
d(this._trace(v, e[f],
|
|
1352
|
+
d(this._trace(v, e[f], we(o, f), e, f, s, l));
|
|
1353
1353
|
else if (f === "*")
|
|
1354
1354
|
this._walk(e, (m) => {
|
|
1355
|
-
d(this._trace(v, e[m],
|
|
1355
|
+
d(this._trace(v, e[m], we(o, m), e, m, s, !0, !0));
|
|
1356
1356
|
});
|
|
1357
1357
|
else if (f === "..")
|
|
1358
1358
|
d(this._trace(v, e, o, n, r, s, l)), this._walk(e, (m) => {
|
|
1359
|
-
typeof e[m] == "object" && d(this._trace(t.slice(), e[m],
|
|
1359
|
+
typeof e[m] == "object" && d(this._trace(t.slice(), e[m], we(o, m), e, m, s, !0));
|
|
1360
1360
|
});
|
|
1361
1361
|
else {
|
|
1362
1362
|
if (f === "^")
|
|
@@ -1367,7 +1367,7 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
if (f === "~")
|
|
1369
1369
|
return p = {
|
|
1370
|
-
path:
|
|
1370
|
+
path: we(o, f),
|
|
1371
1371
|
value: r,
|
|
1372
1372
|
parent: n,
|
|
1373
1373
|
parentProperty: null
|
|
@@ -1379,21 +1379,21 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1379
1379
|
else if (f.indexOf("?(") === 0) {
|
|
1380
1380
|
if (this.currEval === !1)
|
|
1381
1381
|
throw new Error("Eval [?(expr)] prevented in JSONPath expression.");
|
|
1382
|
-
const m = f.replace(/^\?\((.*?)\)$/u, "$1"),
|
|
1383
|
-
|
|
1384
|
-
const
|
|
1385
|
-
this._trace(
|
|
1382
|
+
const m = f.replace(/^\?\((.*?)\)$/u, "$1"), x = /@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(m);
|
|
1383
|
+
x ? this._walk(e, (P) => {
|
|
1384
|
+
const w = [x[2]], M = x[1] ? e[P][x[1]] : e[P];
|
|
1385
|
+
this._trace(w, M, o, n, r, s, !0).length > 0 && d(this._trace(v, e[P], we(o, P), e, P, s, !0));
|
|
1386
1386
|
}) : this._walk(e, (P) => {
|
|
1387
|
-
this._eval(m, e[P], P, o, n, r) && d(this._trace(v, e[P],
|
|
1387
|
+
this._eval(m, e[P], P, o, n, r) && d(this._trace(v, e[P], we(o, P), e, P, s, !0));
|
|
1388
1388
|
});
|
|
1389
1389
|
} else if (f[0] === "(") {
|
|
1390
1390
|
if (this.currEval === !1)
|
|
1391
1391
|
throw new Error("Eval [(expr)] prevented in JSONPath expression.");
|
|
1392
|
-
d(this._trace(
|
|
1392
|
+
d(this._trace(ft(this._eval(f, e, o.at(-1), o.slice(0, -1), n, r), v), e, o, n, r, s, l));
|
|
1393
1393
|
} else if (f[0] === "@") {
|
|
1394
1394
|
let m = !1;
|
|
1395
|
-
const
|
|
1396
|
-
switch (
|
|
1395
|
+
const x = f.slice(1, -2);
|
|
1396
|
+
switch (x) {
|
|
1397
1397
|
case "scalar":
|
|
1398
1398
|
(!e || !["object", "function"].includes(typeof e)) && (m = !0);
|
|
1399
1399
|
break;
|
|
@@ -1401,7 +1401,7 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1401
1401
|
case "string":
|
|
1402
1402
|
case "undefined":
|
|
1403
1403
|
case "function":
|
|
1404
|
-
typeof e ===
|
|
1404
|
+
typeof e === x && (m = !0);
|
|
1405
1405
|
break;
|
|
1406
1406
|
case "integer":
|
|
1407
1407
|
Number.isFinite(e) && !(e % 1) && (m = !0);
|
|
@@ -1413,7 +1413,7 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1413
1413
|
typeof e == "number" && !Number.isFinite(e) && (m = !0);
|
|
1414
1414
|
break;
|
|
1415
1415
|
case "object":
|
|
1416
|
-
e && typeof e ===
|
|
1416
|
+
e && typeof e === x && (m = !0);
|
|
1417
1417
|
break;
|
|
1418
1418
|
case "array":
|
|
1419
1419
|
Array.isArray(e) && (m = !0);
|
|
@@ -1426,7 +1426,7 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1426
1426
|
break;
|
|
1427
1427
|
/* c8 ignore next 2 */
|
|
1428
1428
|
default:
|
|
1429
|
-
throw new TypeError("Unknown value type " +
|
|
1429
|
+
throw new TypeError("Unknown value type " + x);
|
|
1430
1430
|
}
|
|
1431
1431
|
if (m)
|
|
1432
1432
|
return p = {
|
|
@@ -1437,28 +1437,28 @@ U.prototype._trace = function(t, e, o, n, r, s, l, c) {
|
|
|
1437
1437
|
}, this._handleCallback(p, s, "value"), p;
|
|
1438
1438
|
} else if (f[0] === "`" && e && Object.hasOwn(e, f.slice(1))) {
|
|
1439
1439
|
const m = f.slice(1);
|
|
1440
|
-
d(this._trace(v, e[m],
|
|
1440
|
+
d(this._trace(v, e[m], we(o, m), e, m, s, l, !0));
|
|
1441
1441
|
} else if (f.includes(",")) {
|
|
1442
1442
|
const m = f.split(",");
|
|
1443
|
-
for (const
|
|
1444
|
-
d(this._trace(
|
|
1445
|
-
} else !c && e && Object.hasOwn(e, f) && d(this._trace(v, e[f],
|
|
1443
|
+
for (const x of m)
|
|
1444
|
+
d(this._trace(ft(x, v), e, o, n, r, s, !0));
|
|
1445
|
+
} else !c && e && Object.hasOwn(e, f) && d(this._trace(v, e[f], we(o, f), e, f, s, l, !0));
|
|
1446
1446
|
}
|
|
1447
1447
|
if (this._hasParentSelector)
|
|
1448
|
-
for (let m = 0; m <
|
|
1449
|
-
const
|
|
1450
|
-
if (
|
|
1451
|
-
const P = this._trace(
|
|
1448
|
+
for (let m = 0; m < b.length; m++) {
|
|
1449
|
+
const x = b[m];
|
|
1450
|
+
if (x && x.isParentSelector) {
|
|
1451
|
+
const P = this._trace(x.expr, e, x.path, n, r, s, l);
|
|
1452
1452
|
if (Array.isArray(P)) {
|
|
1453
|
-
|
|
1454
|
-
const
|
|
1455
|
-
for (let M = 1; M <
|
|
1456
|
-
m++,
|
|
1453
|
+
b[m] = P[0];
|
|
1454
|
+
const w = P.length;
|
|
1455
|
+
for (let M = 1; M < w; M++)
|
|
1456
|
+
m++, b.splice(m, 0, P[M]);
|
|
1457
1457
|
} else
|
|
1458
|
-
|
|
1458
|
+
b[m] = P;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
return
|
|
1461
|
+
return b;
|
|
1462
1462
|
};
|
|
1463
1463
|
U.prototype._walk = function(t, e) {
|
|
1464
1464
|
if (Array.isArray(t)) {
|
|
@@ -1473,11 +1473,11 @@ U.prototype._slice = function(t, e, o, n, r, s, l) {
|
|
|
1473
1473
|
if (!Array.isArray(o))
|
|
1474
1474
|
return;
|
|
1475
1475
|
const c = o.length, p = t.split(":"), f = p[2] && Number.parseInt(p[2]) || 1;
|
|
1476
|
-
let v = p[0] && Number.parseInt(p[0]) || 0,
|
|
1477
|
-
v = v < 0 ? Math.max(0, v + c) : Math.min(c, v),
|
|
1476
|
+
let v = p[0] && Number.parseInt(p[0]) || 0, b = p[1] && Number.parseInt(p[1]) || c;
|
|
1477
|
+
v = v < 0 ? Math.max(0, v + c) : Math.min(c, v), b = b < 0 ? Math.max(0, b + c) : Math.min(c, b);
|
|
1478
1478
|
const d = [];
|
|
1479
|
-
for (let m = v; m <
|
|
1480
|
-
this._trace(
|
|
1479
|
+
for (let m = v; m < b; m += f)
|
|
1480
|
+
this._trace(ft(m, e), o, n, r, s, l, !0).forEach((P) => {
|
|
1481
1481
|
d.push(P);
|
|
1482
1482
|
});
|
|
1483
1483
|
return d;
|
|
@@ -1572,8 +1572,8 @@ class io {
|
|
|
1572
1572
|
lo(n, r, (f) => typeof e[f] == "function");
|
|
1573
1573
|
const s = n.map((f) => e[f]);
|
|
1574
1574
|
o = r.reduce((f, v) => {
|
|
1575
|
-
let
|
|
1576
|
-
return /function/u.test(
|
|
1575
|
+
let b = e[v].toString();
|
|
1576
|
+
return /function/u.test(b) || (b = "function " + b), "var " + v + "=" + b + ";" + f;
|
|
1577
1577
|
}, "") + o, !/(['"])use strict\1/u.test(o) && !n.includes("arguments") && (o = "var arguments = undefined;" + o), o = o.replace(/;\s*$/u, "");
|
|
1578
1578
|
const c = o.lastIndexOf(";"), p = c !== -1 ? o.slice(0, c + 1) + " return " + o.slice(c + 1) : " return " + o;
|
|
1579
1579
|
return new Function(...n, p)(...s);
|
|
@@ -1608,10 +1608,10 @@ const _e = (t) => Object.prototype.toString.call(t).slice(8, -1).toLowerCase(),
|
|
|
1608
1608
|
items: r.map((s) => {
|
|
1609
1609
|
var c;
|
|
1610
1610
|
const l = e[s.name];
|
|
1611
|
-
return l ? l.type !== s.type ? console.warn(`formItem type not match: name = ${s.name}, type = ${s.type}`) : s.type ===
|
|
1611
|
+
return l ? l.type !== s.type ? console.warn(`formItem type not match: name = ${s.name}, type = ${s.type}`) : s.type === Z.datePicker && s.value ? {
|
|
1612
1612
|
...s,
|
|
1613
1613
|
value: s.value ? Ue(s.value) : void 0
|
|
1614
|
-
} : s.type ===
|
|
1614
|
+
} : s.type === Z.rangePicker && ((c = s.value) != null && c.length) ? {
|
|
1615
1615
|
...s,
|
|
1616
1616
|
value: s.value.map(Ue)
|
|
1617
1617
|
} : s : console.warn(`formItem not exit: name = ${s.name}`);
|
|
@@ -1623,7 +1623,7 @@ function Ie(...t) {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
const uo = (t) => {
|
|
1625
1625
|
t.forEach((e) => {
|
|
1626
|
-
new
|
|
1626
|
+
new jt({
|
|
1627
1627
|
type: [
|
|
1628
1628
|
{ required: !0 },
|
|
1629
1629
|
{
|
|
@@ -1653,7 +1653,7 @@ const uo = (t) => {
|
|
|
1653
1653
|
});
|
|
1654
1654
|
}, po = (t) => {
|
|
1655
1655
|
t.forEach((e) => {
|
|
1656
|
-
new
|
|
1656
|
+
new jt({
|
|
1657
1657
|
key: [{ required: !0, type: "string" }],
|
|
1658
1658
|
type: [
|
|
1659
1659
|
{
|
|
@@ -1801,27 +1801,27 @@ const uo = (t) => {
|
|
|
1801
1801
|
return v === G.text && (c.flex = 1), v === G.link && n.value.length > 1 && (c.maxWidth = `${((f - 50) / f / p * 100).toFixed(2)}%`), c;
|
|
1802
1802
|
});
|
|
1803
1803
|
return (c, p) => {
|
|
1804
|
-
const f = L("a-tag"), v = L("a-popover"),
|
|
1805
|
-
return k(),
|
|
1806
|
-
class:
|
|
1804
|
+
const f = L("a-tag"), v = L("a-popover"), b = L("a-button"), d = L("a-menu"), m = L("a-dropdown");
|
|
1805
|
+
return k(), H("div", {
|
|
1806
|
+
class: g([
|
|
1807
1807
|
c.$style.ellipsisElement,
|
|
1808
1808
|
{
|
|
1809
1809
|
[c.$style.ellipsisElementHasGap]: ![y(G).button, y(G).tag].includes(t.type)
|
|
1810
1810
|
}
|
|
1811
1811
|
])
|
|
1812
1812
|
}, [
|
|
1813
|
-
(k(!0),
|
|
1814
|
-
key:
|
|
1815
|
-
class:
|
|
1813
|
+
(k(!0), H(Oe, null, ut(n.value, (x, P) => (k(), H("div", {
|
|
1814
|
+
key: x.__key,
|
|
1815
|
+
class: g(c.$style.elementItem),
|
|
1816
1816
|
style: ne(l.value)
|
|
1817
1817
|
}, [
|
|
1818
|
-
|
|
1819
|
-
item:
|
|
1818
|
+
fe(c.$slots, "default", {
|
|
1819
|
+
item: x,
|
|
1820
1820
|
index: P
|
|
1821
1821
|
})
|
|
1822
1822
|
], 6))), 128)),
|
|
1823
|
-
r.value.length ? (k(),
|
|
1824
|
-
t.displayType === "popover" ? (k(),
|
|
1823
|
+
r.value.length ? (k(), H(Oe, { key: 0 }, [
|
|
1824
|
+
t.displayType === "popover" ? (k(), j(v, {
|
|
1825
1825
|
key: 0,
|
|
1826
1826
|
trigger: t.trigger,
|
|
1827
1827
|
"overlay-style": { maxWidth: "500px" },
|
|
@@ -1829,21 +1829,21 @@ const uo = (t) => {
|
|
|
1829
1829
|
}, {
|
|
1830
1830
|
content: C(() => [
|
|
1831
1831
|
z("div", {
|
|
1832
|
-
class:
|
|
1832
|
+
class: g(c.$style.ellipsisList)
|
|
1833
1833
|
}, [
|
|
1834
|
-
(k(!0),
|
|
1835
|
-
key:
|
|
1836
|
-
item:
|
|
1834
|
+
(k(!0), H(Oe, null, ut(r.value, (x, P) => fe(c.$slots, "default", {
|
|
1835
|
+
key: x.__key,
|
|
1836
|
+
item: x,
|
|
1837
1837
|
index: P + t.maxCount,
|
|
1838
1838
|
inPopover: !0
|
|
1839
1839
|
})), 128))
|
|
1840
1840
|
], 2)
|
|
1841
1841
|
]),
|
|
1842
1842
|
default: C(() => [
|
|
1843
|
-
|
|
1843
|
+
S(f, {
|
|
1844
1844
|
size: "mini",
|
|
1845
1845
|
type: "info",
|
|
1846
|
-
class:
|
|
1846
|
+
class: g([
|
|
1847
1847
|
c.$style.ellipsisTag,
|
|
1848
1848
|
{
|
|
1849
1849
|
[c.$style.imageEllipsisTag]: t.type === y(G).image
|
|
@@ -1851,40 +1851,40 @@ const uo = (t) => {
|
|
|
1851
1851
|
])
|
|
1852
1852
|
}, {
|
|
1853
1853
|
default: C(() => [
|
|
1854
|
-
|
|
1854
|
+
ee(be(`+${r.value.length}...`), 1)
|
|
1855
1855
|
]),
|
|
1856
1856
|
_: 1
|
|
1857
1857
|
}, 8, ["class"])
|
|
1858
1858
|
]),
|
|
1859
1859
|
_: 3
|
|
1860
|
-
}, 8, ["trigger"])) :
|
|
1861
|
-
t.displayType === "dropdown" ? (k(),
|
|
1860
|
+
}, 8, ["trigger"])) : N("", !0),
|
|
1861
|
+
t.displayType === "dropdown" ? (k(), j(m, {
|
|
1862
1862
|
key: 1,
|
|
1863
1863
|
"destroy-on-close": "",
|
|
1864
1864
|
trigger: t.trigger
|
|
1865
1865
|
}, {
|
|
1866
1866
|
overlay: C(() => [
|
|
1867
|
-
|
|
1867
|
+
S(d, { items: s.value }, null, 8, ["items"])
|
|
1868
1868
|
]),
|
|
1869
1869
|
default: C(() => [
|
|
1870
|
-
|
|
1870
|
+
S(b, {
|
|
1871
1871
|
type: "link",
|
|
1872
1872
|
size: "small"
|
|
1873
1873
|
}, {
|
|
1874
1874
|
default: C(() => [
|
|
1875
|
-
p[0] || (p[0] =
|
|
1876
|
-
|
|
1875
|
+
p[0] || (p[0] = ee(" 更多 ")),
|
|
1876
|
+
S(y(Bt))
|
|
1877
1877
|
]),
|
|
1878
1878
|
_: 1
|
|
1879
1879
|
})
|
|
1880
1880
|
]),
|
|
1881
1881
|
_: 1
|
|
1882
|
-
}, 8, ["trigger"])) :
|
|
1883
|
-
], 64)) :
|
|
1882
|
+
}, 8, ["trigger"])) : N("", !0)
|
|
1883
|
+
], 64)) : N("", !0)
|
|
1884
1884
|
], 2);
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
|
-
}), go = "_ellipsisElement_6fog1_1", bo = "_elementItem_6fog1_6", vo = "_ellipsisElementHasGap_6fog1_10", Co = "_flexWrap_6fog1_14", _o = "_ellipsisTag_6fog1_18", Eo = "_imageEllipsisTag_6fog1_22", So = "_ellipsisList_6fog1_29",
|
|
1887
|
+
}), go = "_ellipsisElement_6fog1_1", bo = "_elementItem_6fog1_6", vo = "_ellipsisElementHasGap_6fog1_10", Co = "_flexWrap_6fog1_14", _o = "_ellipsisTag_6fog1_18", Eo = "_imageEllipsisTag_6fog1_22", So = "_ellipsisList_6fog1_29", wo = {
|
|
1888
1888
|
ellipsisElement: go,
|
|
1889
1889
|
elementItem: bo,
|
|
1890
1890
|
ellipsisElementHasGap: vo,
|
|
@@ -1897,9 +1897,9 @@ const uo = (t) => {
|
|
|
1897
1897
|
for (const [n, r] of e)
|
|
1898
1898
|
o[n] = r;
|
|
1899
1899
|
return o;
|
|
1900
|
-
},
|
|
1901
|
-
$style:
|
|
1902
|
-
}, $o = /* @__PURE__ */ Ce(yo, [["__cssModules",
|
|
1900
|
+
}, xo = {
|
|
1901
|
+
$style: wo
|
|
1902
|
+
}, $o = /* @__PURE__ */ Ce(yo, [["__cssModules", xo]]), ko = { key: 1 }, Io = /* @__PURE__ */ pe({
|
|
1903
1903
|
__name: "TableCellContent",
|
|
1904
1904
|
props: {
|
|
1905
1905
|
/**
|
|
@@ -1940,58 +1940,58 @@ const uo = (t) => {
|
|
|
1940
1940
|
},
|
|
1941
1941
|
setup(t) {
|
|
1942
1942
|
const e = t, o = /* @__PURE__ */ new Map(), n = F(() => {
|
|
1943
|
-
const { index: m, record:
|
|
1944
|
-
return $e(
|
|
1943
|
+
const { index: m, record: x, column: P } = e, w = (P == null ? void 0 : P.type) ?? G.text;
|
|
1944
|
+
return $e(w) ? w(x, m) : w;
|
|
1945
1945
|
}), r = F(() => {
|
|
1946
|
-
const { index: m, record:
|
|
1947
|
-
if ($e(
|
|
1948
|
-
return x
|
|
1949
|
-
if (typeof
|
|
1950
|
-
if (
|
|
1951
|
-
let M = o.get(
|
|
1952
|
-
M || (M = /* @__PURE__ */ new WeakMap(), o.set(
|
|
1953
|
-
const V = M.get(
|
|
1946
|
+
const { index: m, record: x, column: P } = e, w = P.content;
|
|
1947
|
+
if ($e(w))
|
|
1948
|
+
return w(x, m);
|
|
1949
|
+
if (typeof w == "string") {
|
|
1950
|
+
if (w.startsWith("$")) {
|
|
1951
|
+
let M = o.get(w);
|
|
1952
|
+
M || (M = /* @__PURE__ */ new WeakMap(), o.set(w, M));
|
|
1953
|
+
const V = M.get(x);
|
|
1954
1954
|
if (V !== void 0) return V;
|
|
1955
|
-
const
|
|
1956
|
-
return M.set(
|
|
1955
|
+
const q = U({ path: w, json: x });
|
|
1956
|
+
return M.set(x, q), q;
|
|
1957
1957
|
}
|
|
1958
|
-
return
|
|
1958
|
+
return Xe(x, w, "");
|
|
1959
1959
|
}
|
|
1960
1960
|
return "";
|
|
1961
1961
|
}), s = F(() => De(r.value)), l = F(() => {
|
|
1962
|
-
const { index: m, record:
|
|
1962
|
+
const { index: m, record: x, column: P } = e;
|
|
1963
1963
|
if (n.value === G.component) {
|
|
1964
|
-
const { props:
|
|
1965
|
-
return $e(
|
|
1966
|
-
...
|
|
1964
|
+
const { props: w = {} } = P;
|
|
1965
|
+
return $e(w) ? w(x, m) : {
|
|
1966
|
+
...w,
|
|
1967
1967
|
index: m,
|
|
1968
|
-
record:
|
|
1968
|
+
record: x
|
|
1969
1969
|
};
|
|
1970
1970
|
}
|
|
1971
1971
|
return {};
|
|
1972
1972
|
}), c = F(() => {
|
|
1973
|
-
const { index: m, record:
|
|
1974
|
-
if (!
|
|
1975
|
-
if ($e(
|
|
1976
|
-
return x
|
|
1973
|
+
const { index: m, record: x, column: P } = e, w = P.tooltip ?? [G.text, G.link].includes(n.value);
|
|
1974
|
+
if (!w) return "";
|
|
1975
|
+
if ($e(w))
|
|
1976
|
+
return w(x, m);
|
|
1977
1977
|
const M = s.value[0];
|
|
1978
1978
|
return (M == null ? void 0 : M.label) || M;
|
|
1979
|
-
}), p = F(() => !(["", void 0, null].includes(r.value) && ![G.component, G.sort].includes(n.value))), f = (m) => typeof m == "string" && /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(m), v = (m) => e.hasRouter && !f(m),
|
|
1980
|
-
return (m,
|
|
1981
|
-
var
|
|
1982
|
-
const P = L("a-button"),
|
|
1983
|
-
return p.value ? (k(),
|
|
1979
|
+
}), p = F(() => !(["", void 0, null].includes(r.value) && ![G.component, G.sort].includes(n.value))), f = (m) => typeof m == "string" && /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(m), v = (m) => e.hasRouter && !f(m), b = (m) => v(m) ? "router-link" : "a", d = (m, x) => v(m) ? { to: m, target: x ?? "_blank" } : { href: m, target: x ?? "_blank" };
|
|
1980
|
+
return (m, x) => {
|
|
1981
|
+
var q;
|
|
1982
|
+
const P = L("a-button"), w = L("a-typography-text"), M = L("a-tag"), V = L("a-image");
|
|
1983
|
+
return p.value ? (k(), H("div", {
|
|
1984
1984
|
key: 0,
|
|
1985
|
-
class:
|
|
1985
|
+
class: g(m.$style.tableCellContent)
|
|
1986
1986
|
}, [
|
|
1987
|
-
n.value === y(G).sort ? (k(),
|
|
1987
|
+
n.value === y(G).sort ? (k(), j(P, {
|
|
1988
1988
|
key: 0,
|
|
1989
1989
|
type: "text",
|
|
1990
1990
|
size: "small",
|
|
1991
1991
|
icon: W(y(Ae)),
|
|
1992
|
-
class:
|
|
1993
|
-
}, null, 8, ["icon", "class"])) :
|
|
1994
|
-
n.value === y(G).component ? (k(),
|
|
1992
|
+
class: g([m.$style.draggableIcon, "super-table-column-draggable-handle"])
|
|
1993
|
+
}, null, 8, ["icon", "class"])) : N("", !0),
|
|
1994
|
+
n.value === y(G).component ? (k(), j(Ke(t.column.component), st(le({ key: 1 }, l.value)), null, 16)) : Mt([(q = t.column) == null ? void 0 : q.key, t.index, s.value], () => (k(), j($o, {
|
|
1995
1995
|
key: 2,
|
|
1996
1996
|
list: s.value,
|
|
1997
1997
|
"max-count": n.value === y(G).text ? 1 : t.column.maxCount,
|
|
@@ -2001,52 +2001,52 @@ const uo = (t) => {
|
|
|
2001
2001
|
"display-type": [y(G).button].includes(n.value) ? "dropdown" : "popover"
|
|
2002
2002
|
}, {
|
|
2003
2003
|
default: C(({ item: $, index: _, inPopover: T }) => [
|
|
2004
|
-
n.value === y(G).text ? (k(),
|
|
2005
|
-
_ === 0 ? (k(),
|
|
2004
|
+
n.value === y(G).text ? (k(), H(Oe, { key: 0 }, [
|
|
2005
|
+
_ === 0 ? (k(), j(w, {
|
|
2006
2006
|
key: 0,
|
|
2007
2007
|
ellipsis: { tooltip: c.value },
|
|
2008
2008
|
content: String($.label),
|
|
2009
|
-
class:
|
|
2010
|
-
}, null, 8, ["ellipsis", "content", "class"])) : (k(),
|
|
2009
|
+
class: g(m.$style.antTypographyEllipsis)
|
|
2010
|
+
}, null, 8, ["ellipsis", "content", "class"])) : (k(), H("div", {
|
|
2011
2011
|
key: 1,
|
|
2012
|
-
class:
|
|
2012
|
+
class: g(m.$style.textListItem)
|
|
2013
2013
|
}, be($.label), 3))
|
|
2014
|
-
], 64)) :
|
|
2015
|
-
n.value === y(G).link ? (k(),
|
|
2014
|
+
], 64)) : N("", !0),
|
|
2015
|
+
n.value === y(G).link ? (k(), j(Ke(b($.to)), st(le({ key: 1 }, d($.to, $.target))), {
|
|
2016
2016
|
default: C(() => [
|
|
2017
|
-
t.column.ellipsis ? (k(),
|
|
2017
|
+
t.column.ellipsis ? (k(), j(w, {
|
|
2018
2018
|
key: 0,
|
|
2019
2019
|
ellipsis: { tooltip: $.label },
|
|
2020
2020
|
content: String($.label),
|
|
2021
2021
|
style: ne({ color: y(re).colorPrimary }),
|
|
2022
|
-
class:
|
|
2023
|
-
}, null, 8, ["ellipsis", "content", "style", "class"])) : (k(),
|
|
2022
|
+
class: g(m.$style.antTypographyEllipsis)
|
|
2023
|
+
}, null, 8, ["ellipsis", "content", "style", "class"])) : (k(), H("span", ko, be($.label), 1))
|
|
2024
2024
|
]),
|
|
2025
2025
|
_: 2
|
|
2026
|
-
}, 1040)) :
|
|
2027
|
-
n.value === y(G).tag ? (k(),
|
|
2026
|
+
}, 1040)) : N("", !0),
|
|
2027
|
+
n.value === y(G).tag ? (k(), j(M, st(le({ key: 2 }, $)), {
|
|
2028
2028
|
default: C(() => [
|
|
2029
|
-
|
|
2029
|
+
ee(be($.label), 1)
|
|
2030
2030
|
]),
|
|
2031
2031
|
_: 2
|
|
2032
|
-
}, 1040)) :
|
|
2033
|
-
n.value === y(G).button ? (k(),
|
|
2032
|
+
}, 1040)) : N("", !0),
|
|
2033
|
+
n.value === y(G).button ? (k(), j(P, le({
|
|
2034
2034
|
key: 3,
|
|
2035
2035
|
type: "link",
|
|
2036
2036
|
size: "small",
|
|
2037
2037
|
disabled: $.disabled
|
|
2038
2038
|
}, $.buttonProps, {
|
|
2039
|
-
onClick: (
|
|
2039
|
+
onClick: (J) => {
|
|
2040
2040
|
var ie;
|
|
2041
2041
|
return (ie = $.onClick) == null ? void 0 : ie.call($, t.record, t.index);
|
|
2042
2042
|
}
|
|
2043
2043
|
}), {
|
|
2044
2044
|
default: C(() => [
|
|
2045
|
-
|
|
2045
|
+
ee(be($.label), 1)
|
|
2046
2046
|
]),
|
|
2047
2047
|
_: 2
|
|
2048
|
-
}, 1040, ["disabled", "onClick"])) :
|
|
2049
|
-
n.value === y(G).image ? (k(),
|
|
2048
|
+
}, 1040, ["disabled", "onClick"])) : N("", !0),
|
|
2049
|
+
n.value === y(G).image ? (k(), j(V, {
|
|
2050
2050
|
key: 4,
|
|
2051
2051
|
width: T ? 100 : 32,
|
|
2052
2052
|
height: T ? 100 : 32,
|
|
@@ -2054,14 +2054,14 @@ const uo = (t) => {
|
|
|
2054
2054
|
style: { objectFit: "cover" }
|
|
2055
2055
|
}, {
|
|
2056
2056
|
previewMask: C(() => [
|
|
2057
|
-
|
|
2057
|
+
S(y(On))
|
|
2058
2058
|
]),
|
|
2059
2059
|
_: 2
|
|
2060
|
-
}, 1032, ["width", "height", "src"])) :
|
|
2060
|
+
}, 1032, ["width", "height", "src"])) : N("", !0)
|
|
2061
2061
|
]),
|
|
2062
2062
|
_: 1
|
|
2063
|
-
}, 8, ["list", "max-count", "record", "type", "cell-width", "display-type"])),
|
|
2064
|
-
], 2)) :
|
|
2063
|
+
}, 8, ["list", "max-count", "record", "type", "cell-width", "display-type"])), x, 0)
|
|
2064
|
+
], 2)) : N("", !0);
|
|
2065
2065
|
};
|
|
2066
2066
|
}
|
|
2067
2067
|
}), Oo = "_tableCellContent_1chn7_1", Ao = "_antTypographyEllipsis_1chn7_1", Po = "_draggableIcon_1chn7_4", To = "_textListItem_1chn7_8", Lo = {
|
|
@@ -2097,17 +2097,17 @@ const uo = (t) => {
|
|
|
2097
2097
|
},
|
|
2098
2098
|
emits: ["change"],
|
|
2099
2099
|
setup(t, { emit: e }) {
|
|
2100
|
-
const o = oe(!1), n = t, r = e, s = oe([]), l = oe([]), c = oe([]), p = oe([]), f = oe(""), v = oe(""),
|
|
2100
|
+
const o = oe(!1), n = t, r = e, s = oe([]), l = oe([]), c = oe([]), p = oe([]), f = oe(""), v = oe(""), b = () => {
|
|
2101
2101
|
l.value = s.value.filter((_) => _.fixed === "left"), c.value = s.value.filter((_) => !_.fixed), p.value = s.value.filter((_) => _.fixed === "right");
|
|
2102
2102
|
};
|
|
2103
2103
|
_t(() => {
|
|
2104
|
-
s.value = n.columns,
|
|
2104
|
+
s.value = n.columns, b();
|
|
2105
2105
|
});
|
|
2106
2106
|
const d = ({ title: _ }) => {
|
|
2107
|
-
var
|
|
2108
|
-
const T = (
|
|
2107
|
+
var J;
|
|
2108
|
+
const T = (J = v.value) == null ? void 0 : J.trim();
|
|
2109
2109
|
return T ? _.toLocaleLowerCase().includes(T.toLocaleLowerCase()) : !0;
|
|
2110
|
-
}, m = F(() => s.value.every((_) => !d(_))),
|
|
2110
|
+
}, m = F(() => s.value.every((_) => !d(_))), x = ht((_) => {
|
|
2111
2111
|
v.value = _.target.value;
|
|
2112
2112
|
}, 300), P = () => {
|
|
2113
2113
|
s.value = [
|
|
@@ -2115,10 +2115,10 @@ const uo = (t) => {
|
|
|
2115
2115
|
...c.value,
|
|
2116
2116
|
...p.value
|
|
2117
2117
|
];
|
|
2118
|
-
},
|
|
2118
|
+
}, w = () => {
|
|
2119
2119
|
P(), r(
|
|
2120
2120
|
"change",
|
|
2121
|
-
s.value.map((_) => ke(_,
|
|
2121
|
+
s.value.map((_) => ke(_, mt))
|
|
2122
2122
|
);
|
|
2123
2123
|
}, M = F({
|
|
2124
2124
|
get() {
|
|
@@ -2127,27 +2127,27 @@ const uo = (t) => {
|
|
|
2127
2127
|
set(_) {
|
|
2128
2128
|
s.value.forEach((T) => {
|
|
2129
2129
|
T.visible = _;
|
|
2130
|
-
}),
|
|
2130
|
+
}), w();
|
|
2131
2131
|
}
|
|
2132
2132
|
}), V = F(() => {
|
|
2133
2133
|
const _ = s.value.filter((T) => T.visible).length;
|
|
2134
2134
|
return _ > 0 && _ < s.value.length;
|
|
2135
|
-
}),
|
|
2135
|
+
}), q = () => {
|
|
2136
2136
|
r("change", []);
|
|
2137
2137
|
}, $ = (_, T) => {
|
|
2138
|
-
_.fixed = T,
|
|
2138
|
+
_.fixed = T, b(), P(), w();
|
|
2139
2139
|
};
|
|
2140
2140
|
return _t(() => {
|
|
2141
2141
|
o.value || (f.value = "", v.value = "");
|
|
2142
2142
|
}), (_, T) => {
|
|
2143
|
-
const
|
|
2144
|
-
return k(),
|
|
2143
|
+
const J = L("a-button"), ie = L("a-checkbox"), Pe = L("a-input"), Se = L("a-typography-text"), he = L("a-tooltip"), Fe = L("a-popover"), Te = L("a-config-provider");
|
|
2144
|
+
return k(), j(Te, { theme: {
|
|
2145
2145
|
token: {
|
|
2146
2146
|
borderRadius: 2
|
|
2147
2147
|
}
|
|
2148
2148
|
} }, {
|
|
2149
2149
|
default: C(() => [
|
|
2150
|
-
|
|
2150
|
+
S(Fe, {
|
|
2151
2151
|
open: o.value,
|
|
2152
2152
|
"onUpdate:open": T[2] || (T[2] = (D) => o.value = D),
|
|
2153
2153
|
placement: "bottomRight",
|
|
@@ -2157,92 +2157,92 @@ const uo = (t) => {
|
|
|
2157
2157
|
}, {
|
|
2158
2158
|
content: C(() => [
|
|
2159
2159
|
z("div", {
|
|
2160
|
-
class:
|
|
2160
|
+
class: g(_.$style.tableConfig)
|
|
2161
2161
|
}, [
|
|
2162
2162
|
z("div", {
|
|
2163
|
-
class:
|
|
2163
|
+
class: g(_.$style.tableConfigActions)
|
|
2164
2164
|
}, [
|
|
2165
|
-
|
|
2165
|
+
S(ie, {
|
|
2166
2166
|
checked: M.value,
|
|
2167
2167
|
"onUpdate:checked": T[0] || (T[0] = (D) => M.value = D),
|
|
2168
2168
|
indeterminate: V.value
|
|
2169
2169
|
}, {
|
|
2170
2170
|
default: C(() => T[3] || (T[3] = [
|
|
2171
|
-
|
|
2171
|
+
ee(" 全选 ")
|
|
2172
2172
|
])),
|
|
2173
2173
|
_: 1
|
|
2174
2174
|
}, 8, ["checked", "indeterminate"]),
|
|
2175
|
-
|
|
2175
|
+
S(J, {
|
|
2176
2176
|
type: "link",
|
|
2177
2177
|
size: "small",
|
|
2178
|
-
onClick:
|
|
2178
|
+
onClick: q
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: C(() => T[4] || (T[4] = [
|
|
2181
|
-
|
|
2181
|
+
ee(" 重置 ")
|
|
2182
2182
|
])),
|
|
2183
2183
|
_: 1
|
|
2184
2184
|
})
|
|
2185
2185
|
], 2),
|
|
2186
2186
|
z("div", {
|
|
2187
|
-
class:
|
|
2187
|
+
class: g(_.$style.tableConfigHead)
|
|
2188
2188
|
}, [
|
|
2189
|
-
|
|
2189
|
+
S(Pe, {
|
|
2190
2190
|
value: f.value,
|
|
2191
2191
|
"onUpdate:value": T[1] || (T[1] = (D) => f.value = D),
|
|
2192
2192
|
placeholder: "搜索标题",
|
|
2193
|
-
onChange: y(
|
|
2193
|
+
onChange: y(x)
|
|
2194
2194
|
}, null, 8, ["value", "onChange"])
|
|
2195
2195
|
], 2),
|
|
2196
2196
|
z("div", {
|
|
2197
|
-
class:
|
|
2197
|
+
class: g(_.$style.tableConfigContent)
|
|
2198
2198
|
}, [
|
|
2199
|
-
l.value.some((D) => d(D)) ? (k(),
|
|
2199
|
+
l.value.some((D) => d(D)) ? (k(), H("div", {
|
|
2200
2200
|
key: 0,
|
|
2201
|
-
class:
|
|
2201
|
+
class: g(_.$style.columnGroup)
|
|
2202
2202
|
}, [
|
|
2203
2203
|
z("div", {
|
|
2204
|
-
class:
|
|
2204
|
+
class: g(_.$style.groupTitle)
|
|
2205
2205
|
}, "固定在左侧", 2),
|
|
2206
|
-
|
|
2206
|
+
S(y(Ne), {
|
|
2207
2207
|
list: l.value,
|
|
2208
2208
|
"item-key": "key",
|
|
2209
|
-
class:
|
|
2209
|
+
class: g(_.$style.columnList),
|
|
2210
2210
|
handle: ".table-column-draggable-handle",
|
|
2211
2211
|
disabled: l.value.length <= 1,
|
|
2212
|
-
onEnd:
|
|
2212
|
+
onEnd: w
|
|
2213
2213
|
}, {
|
|
2214
2214
|
item: C(({ element: D }) => [
|
|
2215
|
-
d(D) ? (k(),
|
|
2215
|
+
d(D) ? (k(), H("div", {
|
|
2216
2216
|
key: 0,
|
|
2217
|
-
class:
|
|
2217
|
+
class: g(_.$style.columnItem),
|
|
2218
2218
|
style: ne({ background: y(re).colorBgContainer })
|
|
2219
2219
|
}, [
|
|
2220
|
-
|
|
2220
|
+
S(J, {
|
|
2221
2221
|
type: "text",
|
|
2222
2222
|
size: "small",
|
|
2223
2223
|
icon: W(y(Ae)),
|
|
2224
2224
|
style: ne({ color: y(re).colorTextQuaternary }),
|
|
2225
|
-
class:
|
|
2225
|
+
class: g(["table-column-draggable-handle", _.$style.dragIcon])
|
|
2226
2226
|
}, null, 8, ["icon", "style", "class"]),
|
|
2227
|
-
|
|
2227
|
+
S(ie, {
|
|
2228
2228
|
checked: D.visible,
|
|
2229
2229
|
"onUpdate:checked": (ae) => D.visible = ae,
|
|
2230
|
-
onChange:
|
|
2230
|
+
onChange: w
|
|
2231
2231
|
}, null, 8, ["checked", "onUpdate:checked"]),
|
|
2232
|
-
|
|
2232
|
+
S(Se, {
|
|
2233
2233
|
ellipsis: { tooltip: D.title },
|
|
2234
2234
|
content: D.title,
|
|
2235
|
-
class:
|
|
2235
|
+
class: g([_.$style.columnItemContent, _.$style.dragHandle, "table-column-draggable-handle"]),
|
|
2236
2236
|
onClick: () => {
|
|
2237
|
-
D.visible = !D.visible,
|
|
2237
|
+
D.visible = !D.visible, w();
|
|
2238
2238
|
}
|
|
2239
2239
|
}, null, 8, ["ellipsis", "content", "class", "onClick"]),
|
|
2240
2240
|
z("div", {
|
|
2241
|
-
class:
|
|
2241
|
+
class: g(_.$style.fixedActions)
|
|
2242
2242
|
}, [
|
|
2243
|
-
|
|
2243
|
+
S(he, { title: "固定在右侧" }, {
|
|
2244
2244
|
default: C(() => [
|
|
2245
|
-
|
|
2245
|
+
S(J, {
|
|
2246
2246
|
type: "text",
|
|
2247
2247
|
size: "small",
|
|
2248
2248
|
icon: W(y(Et)),
|
|
@@ -2252,9 +2252,9 @@ const uo = (t) => {
|
|
|
2252
2252
|
]),
|
|
2253
2253
|
_: 2
|
|
2254
2254
|
}, 1024),
|
|
2255
|
-
|
|
2255
|
+
S(he, { title: "取消固定" }, {
|
|
2256
2256
|
default: C(() => [
|
|
2257
|
-
|
|
2257
|
+
S(J, {
|
|
2258
2258
|
type: "text",
|
|
2259
2259
|
size: "small",
|
|
2260
2260
|
icon: W(y(St)),
|
|
@@ -2265,70 +2265,70 @@ const uo = (t) => {
|
|
|
2265
2265
|
_: 2
|
|
2266
2266
|
}, 1024)
|
|
2267
2267
|
], 2)
|
|
2268
|
-
], 6)) :
|
|
2268
|
+
], 6)) : N("", !0)
|
|
2269
2269
|
]),
|
|
2270
2270
|
_: 1
|
|
2271
2271
|
}, 8, ["list", "class", "disabled"])
|
|
2272
|
-
], 2)) :
|
|
2273
|
-
c.value.some((D) => d(D)) ? (k(),
|
|
2272
|
+
], 2)) : N("", !0),
|
|
2273
|
+
c.value.some((D) => d(D)) ? (k(), H("div", {
|
|
2274
2274
|
key: 1,
|
|
2275
|
-
class:
|
|
2275
|
+
class: g(_.$style.columnGroup)
|
|
2276
2276
|
}, [
|
|
2277
2277
|
z("div", {
|
|
2278
|
-
class:
|
|
2278
|
+
class: g(_.$style.groupTitle)
|
|
2279
2279
|
}, "不固定", 2),
|
|
2280
|
-
|
|
2280
|
+
S(y(Ne), {
|
|
2281
2281
|
list: c.value,
|
|
2282
2282
|
"item-key": "key",
|
|
2283
|
-
class:
|
|
2283
|
+
class: g(_.$style.columnList),
|
|
2284
2284
|
handle: ".table-column-draggable-handle",
|
|
2285
2285
|
disabled: c.value.length <= 1,
|
|
2286
|
-
onEnd:
|
|
2286
|
+
onEnd: w
|
|
2287
2287
|
}, {
|
|
2288
2288
|
item: C(({ element: D }) => [
|
|
2289
|
-
d(D) ? (k(),
|
|
2289
|
+
d(D) ? (k(), H("div", {
|
|
2290
2290
|
key: 0,
|
|
2291
|
-
class:
|
|
2291
|
+
class: g(_.$style.columnItem),
|
|
2292
2292
|
style: ne({ background: y(re).colorBgContainer })
|
|
2293
2293
|
}, [
|
|
2294
|
-
|
|
2294
|
+
S(J, {
|
|
2295
2295
|
type: "text",
|
|
2296
2296
|
size: "small",
|
|
2297
2297
|
icon: W(y(Ae)),
|
|
2298
2298
|
style: ne({ color: y(re).colorTextQuaternary }),
|
|
2299
|
-
class:
|
|
2299
|
+
class: g(["table-column-draggable-handle", _.$style.dragIcon])
|
|
2300
2300
|
}, null, 8, ["icon", "style", "class"]),
|
|
2301
|
-
|
|
2301
|
+
S(ie, {
|
|
2302
2302
|
checked: D.visible,
|
|
2303
2303
|
"onUpdate:checked": (ae) => D.visible = ae,
|
|
2304
|
-
onChange:
|
|
2304
|
+
onChange: w
|
|
2305
2305
|
}, null, 8, ["checked", "onUpdate:checked"]),
|
|
2306
|
-
|
|
2306
|
+
S(Se, {
|
|
2307
2307
|
ellipsis: { tooltip: D.title },
|
|
2308
2308
|
content: D.title,
|
|
2309
|
-
class:
|
|
2309
|
+
class: g([_.$style.columnItemContent, _.$style.dragHandle, "table-column-draggable-handle"]),
|
|
2310
2310
|
onClick: () => {
|
|
2311
|
-
D.visible = !D.visible,
|
|
2311
|
+
D.visible = !D.visible, w();
|
|
2312
2312
|
}
|
|
2313
2313
|
}, null, 8, ["ellipsis", "content", "class", "onClick"]),
|
|
2314
2314
|
z("div", {
|
|
2315
|
-
class:
|
|
2315
|
+
class: g(_.$style.fixedActions)
|
|
2316
2316
|
}, [
|
|
2317
|
-
|
|
2317
|
+
S(he, { title: "固定在左侧" }, {
|
|
2318
2318
|
default: C(() => [
|
|
2319
|
-
|
|
2319
|
+
S(J, {
|
|
2320
2320
|
type: "text",
|
|
2321
2321
|
size: "small",
|
|
2322
|
-
icon: W(y(
|
|
2322
|
+
icon: W(y(wt)),
|
|
2323
2323
|
style: ne({ color: y(re).colorTextQuaternary }),
|
|
2324
2324
|
onClick: (ae) => $(D, "left")
|
|
2325
2325
|
}, null, 8, ["icon", "style", "onClick"])
|
|
2326
2326
|
]),
|
|
2327
2327
|
_: 2
|
|
2328
2328
|
}, 1024),
|
|
2329
|
-
|
|
2329
|
+
S(he, { title: "固定在右侧" }, {
|
|
2330
2330
|
default: C(() => [
|
|
2331
|
-
|
|
2331
|
+
S(J, {
|
|
2332
2332
|
type: "text",
|
|
2333
2333
|
size: "small",
|
|
2334
2334
|
icon: W(y(Et)),
|
|
@@ -2339,70 +2339,70 @@ const uo = (t) => {
|
|
|
2339
2339
|
_: 2
|
|
2340
2340
|
}, 1024)
|
|
2341
2341
|
], 2)
|
|
2342
|
-
], 6)) :
|
|
2342
|
+
], 6)) : N("", !0)
|
|
2343
2343
|
]),
|
|
2344
2344
|
_: 1
|
|
2345
2345
|
}, 8, ["list", "class", "disabled"])
|
|
2346
|
-
], 2)) :
|
|
2347
|
-
p.value.some((D) => d(D)) ? (k(),
|
|
2346
|
+
], 2)) : N("", !0),
|
|
2347
|
+
p.value.some((D) => d(D)) ? (k(), H("div", {
|
|
2348
2348
|
key: 2,
|
|
2349
|
-
class:
|
|
2349
|
+
class: g(_.$style.columnGroup)
|
|
2350
2350
|
}, [
|
|
2351
2351
|
z("div", {
|
|
2352
|
-
class:
|
|
2352
|
+
class: g(_.$style.groupTitle)
|
|
2353
2353
|
}, "固定在右侧", 2),
|
|
2354
|
-
|
|
2354
|
+
S(y(Ne), {
|
|
2355
2355
|
list: p.value,
|
|
2356
2356
|
"item-key": "key",
|
|
2357
|
-
class:
|
|
2357
|
+
class: g(_.$style.columnList),
|
|
2358
2358
|
handle: ".table-column-draggable-handle",
|
|
2359
2359
|
disabled: p.value.length <= 1,
|
|
2360
|
-
onEnd:
|
|
2360
|
+
onEnd: w
|
|
2361
2361
|
}, {
|
|
2362
2362
|
item: C(({ element: D }) => [
|
|
2363
|
-
d(D) ? (k(),
|
|
2363
|
+
d(D) ? (k(), H("div", {
|
|
2364
2364
|
key: 0,
|
|
2365
|
-
class:
|
|
2365
|
+
class: g(_.$style.columnItem),
|
|
2366
2366
|
style: ne({ background: y(re).colorBgContainer })
|
|
2367
2367
|
}, [
|
|
2368
|
-
|
|
2368
|
+
S(J, {
|
|
2369
2369
|
type: "text",
|
|
2370
2370
|
size: "small",
|
|
2371
2371
|
icon: W(y(Ae)),
|
|
2372
2372
|
style: ne({ color: y(re).colorTextQuaternary }),
|
|
2373
|
-
class:
|
|
2373
|
+
class: g(["table-column-draggable-handle", _.$style.dragIcon])
|
|
2374
2374
|
}, null, 8, ["icon", "style", "class"]),
|
|
2375
|
-
|
|
2375
|
+
S(ie, {
|
|
2376
2376
|
checked: D.visible,
|
|
2377
2377
|
"onUpdate:checked": (ae) => D.visible = ae,
|
|
2378
|
-
onChange:
|
|
2378
|
+
onChange: w
|
|
2379
2379
|
}, null, 8, ["checked", "onUpdate:checked"]),
|
|
2380
|
-
|
|
2380
|
+
S(Se, {
|
|
2381
2381
|
ellipsis: { tooltip: D.title },
|
|
2382
2382
|
content: D.title,
|
|
2383
|
-
class:
|
|
2383
|
+
class: g([_.$style.columnItemContent, _.$style.dragHandle, "table-column-draggable-handle"]),
|
|
2384
2384
|
onClick: () => {
|
|
2385
|
-
D.visible = !D.visible,
|
|
2385
|
+
D.visible = !D.visible, w();
|
|
2386
2386
|
}
|
|
2387
2387
|
}, null, 8, ["ellipsis", "content", "class", "onClick"]),
|
|
2388
2388
|
z("div", {
|
|
2389
|
-
class:
|
|
2389
|
+
class: g(_.$style.fixedActions)
|
|
2390
2390
|
}, [
|
|
2391
|
-
|
|
2391
|
+
S(he, { title: "固定在左侧" }, {
|
|
2392
2392
|
default: C(() => [
|
|
2393
|
-
|
|
2393
|
+
S(J, {
|
|
2394
2394
|
type: "text",
|
|
2395
2395
|
size: "small",
|
|
2396
|
-
icon: W(y(
|
|
2396
|
+
icon: W(y(wt)),
|
|
2397
2397
|
style: ne({ color: y(re).colorTextQuaternary }),
|
|
2398
2398
|
onClick: (ae) => $(D, "left")
|
|
2399
2399
|
}, null, 8, ["icon", "style", "onClick"])
|
|
2400
2400
|
]),
|
|
2401
2401
|
_: 2
|
|
2402
2402
|
}, 1024),
|
|
2403
|
-
|
|
2403
|
+
S(he, { title: "取消固定" }, {
|
|
2404
2404
|
default: C(() => [
|
|
2405
|
-
|
|
2405
|
+
S(J, {
|
|
2406
2406
|
type: "text",
|
|
2407
2407
|
size: "small",
|
|
2408
2408
|
icon: W(y(St)),
|
|
@@ -2413,24 +2413,24 @@ const uo = (t) => {
|
|
|
2413
2413
|
_: 2
|
|
2414
2414
|
}, 1024)
|
|
2415
2415
|
], 2)
|
|
2416
|
-
], 6)) :
|
|
2416
|
+
], 6)) : N("", !0)
|
|
2417
2417
|
]),
|
|
2418
2418
|
_: 1
|
|
2419
2419
|
}, 8, ["list", "class", "disabled"])
|
|
2420
|
-
], 2)) :
|
|
2421
|
-
m.value ? (k(),
|
|
2420
|
+
], 2)) : N("", !0),
|
|
2421
|
+
m.value ? (k(), H("div", {
|
|
2422
2422
|
key: 3,
|
|
2423
|
-
class:
|
|
2423
|
+
class: g(_.$style.emptyText),
|
|
2424
2424
|
style: ne({ color: y(re).colorTextSecondary })
|
|
2425
|
-
}, " 未找到相关查询项 ", 6)) :
|
|
2425
|
+
}, " 未找到相关查询项 ", 6)) : N("", !0)
|
|
2426
2426
|
], 2)
|
|
2427
2427
|
], 2)
|
|
2428
2428
|
]),
|
|
2429
2429
|
default: C(() => [
|
|
2430
|
-
|
|
2430
|
+
S(J, {
|
|
2431
2431
|
type: "text",
|
|
2432
2432
|
icon: W(y(An)),
|
|
2433
|
-
class:
|
|
2433
|
+
class: g(_.$style.configBtn)
|
|
2434
2434
|
}, null, 8, ["icon", "class"])
|
|
2435
2435
|
]),
|
|
2436
2436
|
_: 1
|
|
@@ -2440,10 +2440,10 @@ const uo = (t) => {
|
|
|
2440
2440
|
});
|
|
2441
2441
|
};
|
|
2442
2442
|
}
|
|
2443
|
-
}), Ro = "_configBtn_fstz6_1",
|
|
2443
|
+
}), Ro = "_configBtn_fstz6_1", No = "_tableConfig_fstz6_9", jo = "_tableConfigHead_fstz6_12", Uo = "_tableConfigActions_fstz6_15", zo = "_tableConfigContent_fstz6_22", Ho = "_columnGroup_fstz6_28", qo = "_groupTitle_fstz6_28", Yo = "_columnList_fstz6_35", Vo = "_columnItem_fstz6_39", Wo = "_columnItemContent_fstz6_47", Go = "_dragIcon_fstz6_51", Ko = "_dragHandle_fstz6_54", Qo = "_fixedActions_fstz6_57", Xo = "_emptyText_fstz6_65", Zo = {
|
|
2444
2444
|
configBtn: Ro,
|
|
2445
|
-
tableConfig:
|
|
2446
|
-
tableConfigHead:
|
|
2445
|
+
tableConfig: No,
|
|
2446
|
+
tableConfigHead: jo,
|
|
2447
2447
|
tableConfigActions: Uo,
|
|
2448
2448
|
tableConfigContent: zo,
|
|
2449
2449
|
columnGroup: Ho,
|
|
@@ -2515,7 +2515,7 @@ const uo = (t) => {
|
|
|
2515
2515
|
deleteButtonProps: {
|
|
2516
2516
|
type: [Object, Function],
|
|
2517
2517
|
default: () => ({
|
|
2518
|
-
icon: W(
|
|
2518
|
+
icon: W(xt)
|
|
2519
2519
|
})
|
|
2520
2520
|
},
|
|
2521
2521
|
/**
|
|
@@ -2571,16 +2571,16 @@ const uo = (t) => {
|
|
|
2571
2571
|
}, c = (f) => {
|
|
2572
2572
|
var v;
|
|
2573
2573
|
if (s.value.length < o.maxLength) {
|
|
2574
|
-
const
|
|
2574
|
+
const b = {
|
|
2575
2575
|
id: l(),
|
|
2576
2576
|
...((v = o.getNewItemData) == null ? void 0 : v.call(o)) ?? {}
|
|
2577
2577
|
};
|
|
2578
|
-
s.value.splice(f + 1, 0,
|
|
2578
|
+
s.value.splice(f + 1, 0, b), n("add", b, f + 1);
|
|
2579
2579
|
}
|
|
2580
2580
|
}, p = (f) => {
|
|
2581
2581
|
s.value.splice(f, 1), n("remove", f);
|
|
2582
2582
|
};
|
|
2583
|
-
return
|
|
2583
|
+
return xe(
|
|
2584
2584
|
() => s.value,
|
|
2585
2585
|
() => {
|
|
2586
2586
|
n("update:value", y(s.value)), n("change", y(s.value)), r.onFieldChange();
|
|
@@ -2589,7 +2589,7 @@ const uo = (t) => {
|
|
|
2589
2589
|
deep: !0,
|
|
2590
2590
|
immediate: !0
|
|
2591
2591
|
}
|
|
2592
|
-
),
|
|
2592
|
+
), xe(
|
|
2593
2593
|
() => o.value,
|
|
2594
2594
|
() => {
|
|
2595
2595
|
s.value = y(o.value);
|
|
@@ -2599,57 +2599,57 @@ const uo = (t) => {
|
|
|
2599
2599
|
immediate: !0
|
|
2600
2600
|
}
|
|
2601
2601
|
), (f, v) => {
|
|
2602
|
-
const
|
|
2603
|
-
return k(),
|
|
2604
|
-
|
|
2602
|
+
const b = L("a-button");
|
|
2603
|
+
return k(), H(Oe, null, [
|
|
2604
|
+
S(y(Ne), {
|
|
2605
2605
|
list: s.value,
|
|
2606
2606
|
"item-key": t.itemKey,
|
|
2607
2607
|
disabled: !t.sortable,
|
|
2608
2608
|
handle: ".draggable-icon",
|
|
2609
|
-
class:
|
|
2609
|
+
class: g([f.$style.dynamicList, t.className])
|
|
2610
2610
|
}, {
|
|
2611
2611
|
item: C(({ element: d, index: m }) => [
|
|
2612
2612
|
z("div", {
|
|
2613
|
-
class:
|
|
2613
|
+
class: g([f.$style.dynamicListItem, t.itemClassName])
|
|
2614
2614
|
}, [
|
|
2615
2615
|
z("div", {
|
|
2616
|
-
class:
|
|
2616
|
+
class: g(f.$style.dynamicListItemContent)
|
|
2617
2617
|
}, [
|
|
2618
|
-
|
|
2618
|
+
fe(f.$slots, "default", {
|
|
2619
2619
|
item: d,
|
|
2620
2620
|
index: m
|
|
2621
2621
|
})
|
|
2622
2622
|
], 2),
|
|
2623
2623
|
z("div", {
|
|
2624
|
-
class:
|
|
2624
|
+
class: g(f.$style.actionsIcons)
|
|
2625
2625
|
}, [
|
|
2626
|
-
|
|
2626
|
+
S(b, le({
|
|
2627
2627
|
type: "link",
|
|
2628
2628
|
danger: "",
|
|
2629
2629
|
size: "small",
|
|
2630
|
-
icon: W(y(
|
|
2630
|
+
icon: W(y(xt))
|
|
2631
2631
|
}, y($e)(t.deleteButtonProps) ? t.deleteButtonProps(d, m) : t.deleteButtonProps, {
|
|
2632
|
-
onClick: (
|
|
2632
|
+
onClick: (x) => p(m)
|
|
2633
2633
|
}), {
|
|
2634
2634
|
default: C(() => [
|
|
2635
|
-
|
|
2635
|
+
ee(be(t.deleteButtonText), 1)
|
|
2636
2636
|
]),
|
|
2637
2637
|
_: 2
|
|
2638
2638
|
}, 1040, ["icon", "onClick"]),
|
|
2639
|
-
t.sortable ? (k(),
|
|
2639
|
+
t.sortable ? (k(), j(b, le({
|
|
2640
2640
|
key: 0,
|
|
2641
2641
|
class: ["draggable-icon", f.$style.dragIcon],
|
|
2642
2642
|
size: "small",
|
|
2643
2643
|
type: "text",
|
|
2644
2644
|
icon: W(y(Ae))
|
|
2645
|
-
}, y($e)(t.sortButtonProps) ? t.sortButtonProps(d, m) : t.sortButtonProps), null, 16, ["class", "icon"])) :
|
|
2645
|
+
}, y($e)(t.sortButtonProps) ? t.sortButtonProps(d, m) : t.sortButtonProps), null, 16, ["class", "icon"])) : N("", !0)
|
|
2646
2646
|
], 2)
|
|
2647
2647
|
], 2)
|
|
2648
2648
|
]),
|
|
2649
2649
|
_: 3
|
|
2650
2650
|
}, 8, ["list", "item-key", "disabled", "class"]),
|
|
2651
2651
|
z("div", null, [
|
|
2652
|
-
s.value.length < t.maxLength ? (k(),
|
|
2652
|
+
s.value.length < t.maxLength ? (k(), j(b, le({
|
|
2653
2653
|
key: 0,
|
|
2654
2654
|
type: "link",
|
|
2655
2655
|
icon: W(y(Rt))
|
|
@@ -2657,10 +2657,10 @@ const uo = (t) => {
|
|
|
2657
2657
|
onClick: v[0] || (v[0] = (d) => c(s.value.length - 1))
|
|
2658
2658
|
}), {
|
|
2659
2659
|
default: C(() => [
|
|
2660
|
-
|
|
2660
|
+
ee(be(t.addButtonText), 1)
|
|
2661
2661
|
]),
|
|
2662
2662
|
_: 1
|
|
2663
|
-
}, 16, ["icon"])) :
|
|
2663
|
+
}, 16, ["icon"])) : N("", !0)
|
|
2664
2664
|
])
|
|
2665
2665
|
], 64);
|
|
2666
2666
|
};
|
|
@@ -2717,24 +2717,24 @@ const uo = (t) => {
|
|
|
2717
2717
|
});
|
|
2718
2718
|
return (l, c) => {
|
|
2719
2719
|
const p = L("a-select"), f = L("a-input"), v = L("a-input-group");
|
|
2720
|
-
return k(),
|
|
2720
|
+
return k(), j(v, {
|
|
2721
2721
|
compact: "",
|
|
2722
|
-
class:
|
|
2722
|
+
class: g(l.$style.inputGroup)
|
|
2723
2723
|
}, {
|
|
2724
2724
|
default: C(() => [
|
|
2725
|
-
|
|
2725
|
+
S(p, le({
|
|
2726
2726
|
value: r.value.select,
|
|
2727
|
-
"onUpdate:value": c[0] || (c[0] = (
|
|
2727
|
+
"onUpdate:value": c[0] || (c[0] = (b) => r.value.select = b),
|
|
2728
2728
|
style: {
|
|
2729
|
-
...y(
|
|
2729
|
+
...y(Xe)(t.formItem, "addonBeforeProps.style", {}),
|
|
2730
2730
|
width: s.value
|
|
2731
2731
|
}
|
|
2732
|
-
}, y(
|
|
2733
|
-
|
|
2732
|
+
}, y(Nt)(t.formItem.addonBeforeProps, ["style"])), null, 16, ["value", "style"]),
|
|
2733
|
+
S(f, le({
|
|
2734
2734
|
value: r.value.value,
|
|
2735
|
-
"onUpdate:value": c[1] || (c[1] = (
|
|
2735
|
+
"onUpdate:value": c[1] || (c[1] = (b) => r.value.value = b),
|
|
2736
2736
|
style: {
|
|
2737
|
-
...y(
|
|
2737
|
+
...y(Xe)(t.formItem, "props.style", {}),
|
|
2738
2738
|
width: `calc(100% - ${s.value})`
|
|
2739
2739
|
}
|
|
2740
2740
|
}, y(ke)(t.formItem, ["props"])), null, 16, ["value", "style"])
|
|
@@ -2747,7 +2747,7 @@ const uo = (t) => {
|
|
|
2747
2747
|
inputGroup: dr
|
|
2748
2748
|
}, mr = {
|
|
2749
2749
|
$style: pr
|
|
2750
|
-
}, fr = /* @__PURE__ */ Ce(ur, [["__cssModules", mr]]),
|
|
2750
|
+
}, fr = /* @__PURE__ */ Ce(ur, [["__cssModules", mr]]), Ve = null, hr = /* @__PURE__ */ pe({
|
|
2751
2751
|
__name: "InputNumberRange",
|
|
2752
2752
|
props: {
|
|
2753
2753
|
/**
|
|
@@ -2772,43 +2772,43 @@ const uo = (t) => {
|
|
|
2772
2772
|
const o = t, n = e, r = F({
|
|
2773
2773
|
get() {
|
|
2774
2774
|
var c;
|
|
2775
|
-
return ((c = o.value) == null ? void 0 : c[0]) ??
|
|
2775
|
+
return ((c = o.value) == null ? void 0 : c[0]) ?? Ve;
|
|
2776
2776
|
},
|
|
2777
2777
|
set(c) {
|
|
2778
2778
|
var p;
|
|
2779
|
-
n("update:value", [c, ((p = o.value) == null ? void 0 : p[1]) ??
|
|
2779
|
+
n("update:value", [c, ((p = o.value) == null ? void 0 : p[1]) ?? Ve]);
|
|
2780
2780
|
}
|
|
2781
2781
|
}), s = F({
|
|
2782
2782
|
get() {
|
|
2783
2783
|
var c;
|
|
2784
|
-
return ((c = o.value) == null ? void 0 : c[1]) ??
|
|
2784
|
+
return ((c = o.value) == null ? void 0 : c[1]) ?? Ve;
|
|
2785
2785
|
},
|
|
2786
2786
|
set(c) {
|
|
2787
2787
|
var p;
|
|
2788
|
-
n("update:value", [((p = o.value) == null ? void 0 : p[0]) ??
|
|
2788
|
+
n("update:value", [((p = o.value) == null ? void 0 : p[0]) ?? Ve, c]);
|
|
2789
2789
|
}
|
|
2790
|
-
}), l = F(() =>
|
|
2790
|
+
}), l = F(() => Nt(o.formItem.props, ["placeholder"]));
|
|
2791
2791
|
return (c, p) => {
|
|
2792
|
-
var v,
|
|
2792
|
+
var v, b, d, m;
|
|
2793
2793
|
const f = L("a-input-number");
|
|
2794
|
-
return k(),
|
|
2795
|
-
class:
|
|
2794
|
+
return k(), H("div", {
|
|
2795
|
+
class: g([c.$style.inputNumberGroup, "input-number-group"])
|
|
2796
2796
|
}, [
|
|
2797
2797
|
z("div", {
|
|
2798
|
-
class:
|
|
2798
|
+
class: g(c.$style.inputNumberGroupContent)
|
|
2799
2799
|
}, [
|
|
2800
|
-
|
|
2800
|
+
S(f, le(l.value, {
|
|
2801
2801
|
value: r.value,
|
|
2802
|
-
"onUpdate:value": p[0] || (p[0] = (
|
|
2802
|
+
"onUpdate:value": p[0] || (p[0] = (x) => r.value = x),
|
|
2803
2803
|
class: [c.$style.inputNumber, c.$style.startInputNumber],
|
|
2804
|
-
placeholder: ((
|
|
2804
|
+
placeholder: ((b = y(De)((v = o.formItem.props) == null ? void 0 : v.placeholder)) == null ? void 0 : b[0]) ?? "请输入"
|
|
2805
2805
|
}), null, 16, ["value", "class", "placeholder"]),
|
|
2806
2806
|
z("span", {
|
|
2807
|
-
class:
|
|
2807
|
+
class: g(c.$style.divider)
|
|
2808
2808
|
}, "~", 2),
|
|
2809
|
-
|
|
2809
|
+
S(f, le(l.value, {
|
|
2810
2810
|
value: s.value,
|
|
2811
|
-
"onUpdate:value": p[1] || (p[1] = (
|
|
2811
|
+
"onUpdate:value": p[1] || (p[1] = (x) => s.value = x),
|
|
2812
2812
|
class: [c.$style.inputNumber, c.$style.endInputNumber],
|
|
2813
2813
|
placeholder: ((m = y(De)((d = o.formItem.props) == null ? void 0 : d.placeholder)) == null ? void 0 : m[1]) ?? "请输入"
|
|
2814
2814
|
}), null, 16, ["value", "class", "placeholder"])
|
|
@@ -2825,7 +2825,7 @@ const uo = (t) => {
|
|
|
2825
2825
|
divider: _r
|
|
2826
2826
|
}, Sr = {
|
|
2827
2827
|
$style: Er
|
|
2828
|
-
},
|
|
2828
|
+
}, wr = /* @__PURE__ */ Ce(hr, [["__cssModules", Sr]]), xr = 8, $r = /* @__PURE__ */ pe({
|
|
2829
2829
|
__name: "FormFieldItem",
|
|
2830
2830
|
props: {
|
|
2831
2831
|
/**
|
|
@@ -2868,15 +2868,15 @@ const uo = (t) => {
|
|
|
2868
2868
|
emits: ["update:value", "change"],
|
|
2869
2869
|
setup(t, { emit: e }) {
|
|
2870
2870
|
const o = {
|
|
2871
|
-
[
|
|
2872
|
-
[
|
|
2873
|
-
[
|
|
2874
|
-
[
|
|
2875
|
-
[
|
|
2876
|
-
[
|
|
2877
|
-
[
|
|
2878
|
-
[
|
|
2879
|
-
[
|
|
2871
|
+
[Z.input]: $n,
|
|
2872
|
+
[Z.inputGroup]: fr,
|
|
2873
|
+
[Z.inputNumber]: xn,
|
|
2874
|
+
[Z.inputNumberRange]: wr,
|
|
2875
|
+
[Z.select]: wn,
|
|
2876
|
+
[Z.cascader]: Sn,
|
|
2877
|
+
[Z.treeSelect]: En,
|
|
2878
|
+
[Z.datePicker]: _n,
|
|
2879
|
+
[Z.rangePicker]: Cn
|
|
2880
2880
|
}, n = t, r = e, s = ln(), l = F({
|
|
2881
2881
|
get() {
|
|
2882
2882
|
return n.value;
|
|
@@ -2886,29 +2886,29 @@ const uo = (t) => {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
}), c = F(() => !n.inModal && n.formItem.showLabel !== !1), p = F(() => {
|
|
2888
2888
|
const d = mo(n.formItem.label);
|
|
2889
|
-
return Math.max(d, 20) +
|
|
2889
|
+
return Math.max(d, 20) + xr * 2 + 2;
|
|
2890
2890
|
}), f = F(() => {
|
|
2891
2891
|
const { type: d, component: m } = n.formItem;
|
|
2892
2892
|
return d === "component" ? m : o[d];
|
|
2893
2893
|
}), v = F(() => {
|
|
2894
2894
|
var P;
|
|
2895
2895
|
const d = n.formItem, m = {
|
|
2896
|
-
[
|
|
2896
|
+
[Z.input]: {
|
|
2897
2897
|
placeholder: "请输入",
|
|
2898
2898
|
clearable: !0
|
|
2899
2899
|
},
|
|
2900
|
-
[
|
|
2900
|
+
[Z.inputGroup]: {
|
|
2901
2901
|
placeholder: "请输入",
|
|
2902
2902
|
clearable: !0,
|
|
2903
2903
|
formItem: d
|
|
2904
2904
|
},
|
|
2905
|
-
[
|
|
2905
|
+
[Z.inputNumber]: {
|
|
2906
2906
|
placeholder: "请输入"
|
|
2907
2907
|
},
|
|
2908
|
-
[
|
|
2908
|
+
[Z.inputNumberRange]: {
|
|
2909
2909
|
formItem: d
|
|
2910
2910
|
},
|
|
2911
|
-
[
|
|
2911
|
+
[Z.select]: {
|
|
2912
2912
|
placeholder: "请选择",
|
|
2913
2913
|
optionFilterProp: "label",
|
|
2914
2914
|
destroyedOnClose: !0,
|
|
@@ -2917,30 +2917,30 @@ const uo = (t) => {
|
|
|
2917
2917
|
maxTagTextLength: 40,
|
|
2918
2918
|
maxTagCount: "responsive"
|
|
2919
2919
|
}
|
|
2920
|
-
},
|
|
2920
|
+
}, x = {
|
|
2921
2921
|
...s,
|
|
2922
2922
|
...m[d.type] ?? {},
|
|
2923
2923
|
...d.props ?? {},
|
|
2924
2924
|
style: {
|
|
2925
2925
|
...((P = d.props) == null ? void 0 : P.style) ?? {},
|
|
2926
|
-
width: d.type !==
|
|
2926
|
+
width: d.type !== Z.component ? "100%" : void 0
|
|
2927
2927
|
},
|
|
2928
2928
|
inModal: n.inModal
|
|
2929
2929
|
};
|
|
2930
|
-
return n.inModal || (c.value &&
|
|
2931
|
-
}),
|
|
2930
|
+
return n.inModal || (c.value && je(x, "style.width", `calc(100% - ${p.value}px)`), d.type === Z.select && je(x, "maxTagCount", "responsive")), x;
|
|
2931
|
+
}), b = F(() => n.formItem.modelPropName ?? "value");
|
|
2932
2932
|
return (d, m) => {
|
|
2933
|
-
const
|
|
2934
|
-
return k(),
|
|
2935
|
-
class:
|
|
2933
|
+
const x = L("a-input"), P = L("a-input-group");
|
|
2934
|
+
return k(), H("div", {
|
|
2935
|
+
class: g(d.$style.formFieldItem)
|
|
2936
2936
|
}, [
|
|
2937
|
-
c.value ? (k(),
|
|
2937
|
+
c.value ? (k(), j(P, {
|
|
2938
2938
|
key: 0,
|
|
2939
2939
|
compact: "",
|
|
2940
|
-
class:
|
|
2940
|
+
class: g([d.$style.inputGroup, "super-table-input-group"])
|
|
2941
2941
|
}, {
|
|
2942
2942
|
default: C(() => [
|
|
2943
|
-
t.inModal ?
|
|
2943
|
+
t.inModal ? N("", !0) : (k(), j(x, {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
value: t.formItem.label,
|
|
2946
2946
|
disabled: "",
|
|
@@ -2948,23 +2948,23 @@ const uo = (t) => {
|
|
|
2948
2948
|
color: y(re).colorText,
|
|
2949
2949
|
width: `${p.value}px`
|
|
2950
2950
|
}),
|
|
2951
|
-
class:
|
|
2951
|
+
class: g([d.$style.formFieldItemLabel, "super-table-filter-form-item-label"])
|
|
2952
2952
|
}, null, 8, ["value", "style", "class"])),
|
|
2953
|
-
f.value ? (k(),
|
|
2953
|
+
f.value ? (k(), j(Ke(f.value), le({
|
|
2954
2954
|
key: 1,
|
|
2955
|
-
[
|
|
2956
|
-
["onUpdate:" +
|
|
2957
|
-
}, v.value), null, 16)) :
|
|
2955
|
+
[b.value]: l.value,
|
|
2956
|
+
["onUpdate:" + b.value]: m[0] || (m[0] = (w) => l.value = w)
|
|
2957
|
+
}, v.value), null, 16)) : N("", !0)
|
|
2958
2958
|
]),
|
|
2959
2959
|
_: 1
|
|
2960
|
-
}, 8, ["class"])) : (k(),
|
|
2961
|
-
t.formItem.type === y(
|
|
2960
|
+
}, 8, ["class"])) : (k(), H(Oe, { key: 1 }, [
|
|
2961
|
+
t.formItem.type === y(Z).component && t.formItem.showLabel ? (k(), H("span", {
|
|
2962
2962
|
key: 0,
|
|
2963
|
-
class:
|
|
2964
|
-
}, be(t.formItem.label), 3)) :
|
|
2965
|
-
(k(),
|
|
2966
|
-
[
|
|
2967
|
-
["onUpdate:" +
|
|
2963
|
+
class: g(d.$style.customItemLabel)
|
|
2964
|
+
}, be(t.formItem.label), 3)) : N("", !0),
|
|
2965
|
+
(k(), j(Ke(f.value), le({
|
|
2966
|
+
[b.value]: l.value,
|
|
2967
|
+
["onUpdate:" + b.value]: m[1] || (m[1] = (w) => l.value = w)
|
|
2968
2968
|
}, v.value), null, 16))
|
|
2969
2969
|
], 64))
|
|
2970
2970
|
], 2);
|
|
@@ -3020,12 +3020,12 @@ const uo = (t) => {
|
|
|
3020
3020
|
emits: ["cancel", "search", "form-item-change", "update-form-config"],
|
|
3021
3021
|
setup(t, { expose: e, emit: o }) {
|
|
3022
3022
|
var ze, He;
|
|
3023
|
-
const n = t, r = o, s = oe(
|
|
3023
|
+
const n = t, r = o, s = oe(it(n.formConfigMap)), l = F(() => dt(
|
|
3024
3024
|
Object.values(s.value).filter(({ visible: O }) => O !== !1),
|
|
3025
3025
|
ve.order
|
|
3026
|
-
)), c = ["name", "value", "type"], p = l.value.filter((O) => O._selected).map((O) => ke(O, c)), f = oe(!0), v = oe(!1),
|
|
3026
|
+
)), c = ["name", "value", "type"], p = l.value.filter((O) => O._selected).map((O) => ke(O, c)), f = oe(!0), v = oe(!1), b = oe(), d = Qe({
|
|
3027
3027
|
name: ((ze = n.currentScene) == null ? void 0 : ze.name) ?? "",
|
|
3028
|
-
items: n.actionType === de.search ? p :
|
|
3028
|
+
items: n.actionType === de.search ? p : it(((He = n.currentScene) == null ? void 0 : He.items) ?? [])
|
|
3029
3029
|
}), m = F({
|
|
3030
3030
|
get() {
|
|
3031
3031
|
const O = l.value.filter((I) => !I.fixed);
|
|
@@ -3040,9 +3040,9 @@ const uo = (t) => {
|
|
|
3040
3040
|
d.items = d.items.filter((B) => I.includes(B.name));
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
|
-
}),
|
|
3043
|
+
}), x = F(() => l.value.filter(
|
|
3044
3044
|
(O) => d.items.some((I) => I.name === O.name)
|
|
3045
|
-
).length), P = F(() =>
|
|
3045
|
+
).length), P = F(() => x.value > 0 && x.value < l.value.length), w = Qe({
|
|
3046
3046
|
name: [
|
|
3047
3047
|
{
|
|
3048
3048
|
required: !0,
|
|
@@ -3063,8 +3063,8 @@ const uo = (t) => {
|
|
|
3063
3063
|
]
|
|
3064
3064
|
}), M = F(() => d.items.map(({ name: O }) => O)), V = () => {
|
|
3065
3065
|
const O = l.value.find((I) => !M.value.includes(I.name));
|
|
3066
|
-
return O ? ke(
|
|
3067
|
-
},
|
|
3066
|
+
return O ? ke(it(O), c) : {};
|
|
3067
|
+
}, q = F(() => ({
|
|
3068
3068
|
[de.create]: "新建场景",
|
|
3069
3069
|
[de.update]: "更新场景",
|
|
3070
3070
|
[de.search]: "高级筛选"
|
|
@@ -3072,28 +3072,28 @@ const uo = (t) => {
|
|
|
3072
3072
|
const B = n.formConfigMap[I.name];
|
|
3073
3073
|
B && (I.type = B.type, I.value = B.value, I.label = B.label, T(I.name, I.value));
|
|
3074
3074
|
}, _ = (O) => {
|
|
3075
|
-
const I = n.formConfigMap[O], B = d.items.map((se) => se.name),
|
|
3076
|
-
return [I, ...
|
|
3075
|
+
const I = n.formConfigMap[O], B = d.items.map((se) => se.name), te = l.value.filter((se) => !B.includes(se.name));
|
|
3076
|
+
return [I, ...te];
|
|
3077
3077
|
}, T = (O, I) => {
|
|
3078
3078
|
const B = d.items.reduce(
|
|
3079
|
-
(
|
|
3079
|
+
(te, se) => (te[se.name] = se.value, te),
|
|
3080
3080
|
{}
|
|
3081
3081
|
);
|
|
3082
3082
|
r("form-item-change", O, I, B);
|
|
3083
|
-
},
|
|
3083
|
+
}, J = ({ name: O, value: I }) => {
|
|
3084
3084
|
T(O, I);
|
|
3085
3085
|
}, ie = async () => {
|
|
3086
3086
|
var B;
|
|
3087
|
-
const O = d.items.map((
|
|
3088
|
-
const
|
|
3089
|
-
return
|
|
3087
|
+
const O = d.items.map((te, se) => {
|
|
3088
|
+
const ye = s.value[te.name];
|
|
3089
|
+
return ye && (ye.value = te.value, ye[ve.orderInScene] = se, ye[ve.selected] = !0), ye;
|
|
3090
3090
|
}).filter(Boolean);
|
|
3091
3091
|
if (n.actionType === de.search && !v.value) {
|
|
3092
3092
|
r("update-form-config", O), r("search", d.items, O), r("cancel");
|
|
3093
3093
|
return;
|
|
3094
3094
|
}
|
|
3095
|
-
await ((B =
|
|
3096
|
-
const I =
|
|
3095
|
+
await ((B = b.value) == null ? void 0 : B.validateFields());
|
|
3096
|
+
const I = ge(d);
|
|
3097
3097
|
n.currentScene ? await n.onUpdate({
|
|
3098
3098
|
...n.currentScene,
|
|
3099
3099
|
...I
|
|
@@ -3102,11 +3102,11 @@ const uo = (t) => {
|
|
|
3102
3102
|
(() => {
|
|
3103
3103
|
if (d.items.length) return;
|
|
3104
3104
|
const O = kt(
|
|
3105
|
-
l.value.filter(({ fixed: B, selected:
|
|
3105
|
+
l.value.filter(({ fixed: B, selected: te }) => B || te),
|
|
3106
3106
|
"name"
|
|
3107
3107
|
);
|
|
3108
3108
|
if (O.length) {
|
|
3109
|
-
d.items =
|
|
3109
|
+
d.items = dt(O, "_order").map((B) => ke(B, c));
|
|
3110
3110
|
return;
|
|
3111
3111
|
}
|
|
3112
3112
|
const I = V();
|
|
@@ -3117,65 +3117,65 @@ const uo = (t) => {
|
|
|
3117
3117
|
return {
|
|
3118
3118
|
disabled: (I = s.value[O.name]) == null ? void 0 : I.fixed
|
|
3119
3119
|
};
|
|
3120
|
-
},
|
|
3120
|
+
}, he = (O) => s.value[O], Fe = (O, I, B) => {
|
|
3121
3121
|
if (Ht.includes(I))
|
|
3122
3122
|
return Ie("setFormItem error,", `form item with prop "${O}" is readonly`);
|
|
3123
|
-
if (!
|
|
3123
|
+
if (!he(O))
|
|
3124
3124
|
return Ie("setFormItem error,", `Cannot find form item with name "${O}"`);
|
|
3125
3125
|
if (I === "visible" && s.value[O].fixed)
|
|
3126
3126
|
return Ie("setFormItem error,", "Cannot change the visible of a fixed form item");
|
|
3127
|
-
|
|
3127
|
+
je(s.value, `${O}.${I}`, B), s.value[O].visible || (d.items = d.items.filter((te) => te.name !== O));
|
|
3128
3128
|
}, Te = (O) => {
|
|
3129
3129
|
var I;
|
|
3130
3130
|
return (I = d.items.find((B) => B.name === O)) == null ? void 0 : I.value;
|
|
3131
3131
|
}, D = (O, I) => {
|
|
3132
|
-
const B = d.items.find((
|
|
3132
|
+
const B = d.items.find((te) => te.name === O);
|
|
3133
3133
|
B && (B.value = I);
|
|
3134
3134
|
}, ae = (O) => {
|
|
3135
3135
|
Object.entries(O).forEach(([I, B]) => {
|
|
3136
3136
|
D(I, B);
|
|
3137
3137
|
});
|
|
3138
3138
|
};
|
|
3139
|
-
function
|
|
3139
|
+
function Q(O) {
|
|
3140
3140
|
return (O ? De(O) : d.items.map((B) => B.name)).reduce(
|
|
3141
|
-
(B,
|
|
3142
|
-
const se = d.items.find((
|
|
3143
|
-
return se && (B[
|
|
3141
|
+
(B, te) => {
|
|
3142
|
+
const se = d.items.find((ye) => ye.name === te);
|
|
3143
|
+
return se && (B[te] = se.value), B;
|
|
3144
3144
|
},
|
|
3145
3145
|
{}
|
|
3146
3146
|
);
|
|
3147
3147
|
}
|
|
3148
3148
|
return e({
|
|
3149
|
-
getFormItem:
|
|
3149
|
+
getFormItem: he,
|
|
3150
3150
|
setFormItem: Fe,
|
|
3151
|
-
getFormValues:
|
|
3151
|
+
getFormValues: Q,
|
|
3152
3152
|
setFormValues: ae,
|
|
3153
3153
|
getFormValue: Te,
|
|
3154
3154
|
setFormValue: D
|
|
3155
3155
|
}), (O, I) => {
|
|
3156
|
-
const B = L("a-input"),
|
|
3157
|
-
return k(),
|
|
3156
|
+
const B = L("a-input"), te = L("a-form-item"), se = L("a-checkbox"), ye = L("a-space"), Je = L("a-select"), et = L("a-form"), tt = L("a-modal");
|
|
3157
|
+
return k(), j(tt, {
|
|
3158
3158
|
open: f.value,
|
|
3159
|
-
"onUpdate:open": I[4] || (I[4] = (
|
|
3160
|
-
title:
|
|
3159
|
+
"onUpdate:open": I[4] || (I[4] = (X) => f.value = X),
|
|
3160
|
+
title: q.value,
|
|
3161
3161
|
width: 720,
|
|
3162
3162
|
"body-style": {
|
|
3163
3163
|
maxHeight: "70vh",
|
|
3164
3164
|
overflow: "auto"
|
|
3165
3165
|
},
|
|
3166
3166
|
onOk: ie,
|
|
3167
|
-
onCancel: I[5] || (I[5] = (
|
|
3167
|
+
onCancel: I[5] || (I[5] = (X) => r("cancel"))
|
|
3168
3168
|
}, {
|
|
3169
3169
|
default: C(() => [
|
|
3170
|
-
|
|
3170
|
+
S(et, {
|
|
3171
3171
|
ref_key: "formRef",
|
|
3172
|
-
ref:
|
|
3172
|
+
ref: b,
|
|
3173
3173
|
model: d,
|
|
3174
|
-
rules:
|
|
3175
|
-
class:
|
|
3174
|
+
rules: w,
|
|
3175
|
+
class: g(O.$style.sceneForm)
|
|
3176
3176
|
}, {
|
|
3177
3177
|
default: C(() => [
|
|
3178
|
-
t.actionType !== y(de).search || v.value ? (k(),
|
|
3178
|
+
t.actionType !== y(de).search || v.value ? (k(), j(te, {
|
|
3179
3179
|
key: 0,
|
|
3180
3180
|
label: "场景名称",
|
|
3181
3181
|
name: "name",
|
|
@@ -3183,30 +3183,30 @@ const uo = (t) => {
|
|
|
3183
3183
|
"wrapper-col": { span: 12 }
|
|
3184
3184
|
}, {
|
|
3185
3185
|
default: C(() => [
|
|
3186
|
-
|
|
3186
|
+
S(B, {
|
|
3187
3187
|
value: d.name,
|
|
3188
|
-
"onUpdate:value": I[0] || (I[0] = (
|
|
3188
|
+
"onUpdate:value": I[0] || (I[0] = (X) => d.name = X),
|
|
3189
3189
|
placeholder: "请输入"
|
|
3190
3190
|
}, null, 8, ["value"])
|
|
3191
3191
|
]),
|
|
3192
3192
|
_: 1
|
|
3193
|
-
})) :
|
|
3194
|
-
|
|
3193
|
+
})) : N("", !0),
|
|
3194
|
+
S(te, {
|
|
3195
3195
|
name: "items",
|
|
3196
3196
|
"label-col": { span: 24 },
|
|
3197
3197
|
"wrapper-col": { span: 24 }
|
|
3198
3198
|
}, {
|
|
3199
3199
|
label: C(() => [
|
|
3200
|
-
|
|
3200
|
+
S(ye, null, {
|
|
3201
3201
|
default: C(() => [
|
|
3202
3202
|
I[6] || (I[6] = z("span", null, "筛选条件", -1)),
|
|
3203
|
-
|
|
3203
|
+
S(se, {
|
|
3204
3204
|
checked: m.value,
|
|
3205
|
-
"onUpdate:checked": I[1] || (I[1] = (
|
|
3205
|
+
"onUpdate:checked": I[1] || (I[1] = (X) => m.value = X),
|
|
3206
3206
|
indeterminate: P.value
|
|
3207
3207
|
}, {
|
|
3208
3208
|
default: C(() => [
|
|
3209
|
-
|
|
3209
|
+
ee(" 全选 (" + be(x.value) + "/" + be(l.value.length) + ") ", 1)
|
|
3210
3210
|
]),
|
|
3211
3211
|
_: 1
|
|
3212
3212
|
}, 8, ["checked", "indeterminate"])
|
|
@@ -3215,45 +3215,45 @@ const uo = (t) => {
|
|
|
3215
3215
|
})
|
|
3216
3216
|
]),
|
|
3217
3217
|
default: C(() => [
|
|
3218
|
-
|
|
3218
|
+
S(cr, {
|
|
3219
3219
|
value: d.items,
|
|
3220
|
-
"onUpdate:value": I[2] || (I[2] = (
|
|
3220
|
+
"onUpdate:value": I[2] || (I[2] = (X) => d.items = X),
|
|
3221
3221
|
"add-button-text": "添加筛选条件",
|
|
3222
3222
|
"get-new-item-data": V,
|
|
3223
3223
|
"max-length": l.value.length,
|
|
3224
3224
|
"delete-button-props": Se,
|
|
3225
3225
|
sortButtonProps: Se,
|
|
3226
|
-
onAdd:
|
|
3226
|
+
onAdd: J
|
|
3227
3227
|
}, {
|
|
3228
|
-
default: C(({ item:
|
|
3228
|
+
default: C(({ item: X }) => {
|
|
3229
3229
|
var Me;
|
|
3230
3230
|
return [
|
|
3231
3231
|
z("div", {
|
|
3232
|
-
class:
|
|
3232
|
+
class: g(O.$style.queryFieldItem)
|
|
3233
3233
|
}, [
|
|
3234
|
-
|
|
3235
|
-
value:
|
|
3236
|
-
"onUpdate:value": (me) =>
|
|
3234
|
+
S(Je, {
|
|
3235
|
+
value: X.name,
|
|
3236
|
+
"onUpdate:value": (me) => X.name = me,
|
|
3237
3237
|
"show-search": "",
|
|
3238
|
-
options: _(
|
|
3238
|
+
options: _(X.name),
|
|
3239
3239
|
"field-names": { value: "name" },
|
|
3240
3240
|
"option-filter-prop": "label",
|
|
3241
3241
|
placeholder: "请选择要筛选的字段名",
|
|
3242
|
-
disabled: (Me = s.value[
|
|
3243
|
-
class:
|
|
3244
|
-
onChange: (me) => $(me,
|
|
3242
|
+
disabled: (Me = s.value[X.name]) == null ? void 0 : Me.fixed,
|
|
3243
|
+
class: g(O.$style.fieldSelect),
|
|
3244
|
+
onChange: (me) => $(me, X)
|
|
3245
3245
|
}, null, 8, ["value", "onUpdate:value", "options", "disabled", "class", "onChange"]),
|
|
3246
3246
|
z("div", {
|
|
3247
|
-
class:
|
|
3247
|
+
class: g(O.$style.fieldComponent)
|
|
3248
3248
|
}, [
|
|
3249
|
-
|
|
3249
|
+
X.name ? (k(), j(Yt, {
|
|
3250
3250
|
key: 0,
|
|
3251
|
-
value:
|
|
3252
|
-
"onUpdate:value": (me) =>
|
|
3251
|
+
value: X.value,
|
|
3252
|
+
"onUpdate:value": (me) => X.value = me,
|
|
3253
3253
|
"in-modal": "",
|
|
3254
|
-
"form-item": s.value[
|
|
3255
|
-
onChange: (me) => T(
|
|
3256
|
-
}, null, 8, ["value", "onUpdate:value", "form-item", "onChange"])) :
|
|
3254
|
+
"form-item": s.value[X.name],
|
|
3255
|
+
onChange: (me) => T(X.name, me)
|
|
3256
|
+
}, null, 8, ["value", "onUpdate:value", "form-item", "onChange"])) : N("", !0)
|
|
3257
3257
|
], 2)
|
|
3258
3258
|
], 2)
|
|
3259
3259
|
];
|
|
@@ -3266,16 +3266,16 @@ const uo = (t) => {
|
|
|
3266
3266
|
]),
|
|
3267
3267
|
_: 1
|
|
3268
3268
|
}, 8, ["model", "rules", "class"]),
|
|
3269
|
-
t.actionType === y(de).search && t.allowCreateScene ? (k(),
|
|
3269
|
+
t.actionType === y(de).search && t.allowCreateScene ? (k(), j(se, {
|
|
3270
3270
|
key: 0,
|
|
3271
3271
|
checked: v.value,
|
|
3272
|
-
"onUpdate:checked": I[3] || (I[3] = (
|
|
3272
|
+
"onUpdate:checked": I[3] || (I[3] = (X) => v.value = X)
|
|
3273
3273
|
}, {
|
|
3274
3274
|
default: C(() => I[7] || (I[7] = [
|
|
3275
|
-
|
|
3275
|
+
ee(" 保存为场景 ")
|
|
3276
3276
|
])),
|
|
3277
3277
|
_: 1
|
|
3278
|
-
}, 8, ["checked"])) :
|
|
3278
|
+
}, 8, ["checked"])) : N("", !0)
|
|
3279
3279
|
]),
|
|
3280
3280
|
_: 1
|
|
3281
3281
|
}, 8, ["open", "title"]);
|
|
@@ -3286,9 +3286,9 @@ const uo = (t) => {
|
|
|
3286
3286
|
queryFieldItem: Fr,
|
|
3287
3287
|
fieldSelect: Mr,
|
|
3288
3288
|
fieldComponent: Br
|
|
3289
|
-
},
|
|
3289
|
+
}, Nr = {
|
|
3290
3290
|
$style: Rr
|
|
3291
|
-
},
|
|
3291
|
+
}, jr = /* @__PURE__ */ Ce(Lr, [["__cssModules", Nr]]), Ur = /* @__PURE__ */ pe({
|
|
3292
3292
|
__name: "SceneListModal",
|
|
3293
3293
|
props: {
|
|
3294
3294
|
/**
|
|
@@ -3329,21 +3329,21 @@ const uo = (t) => {
|
|
|
3329
3329
|
},
|
|
3330
3330
|
emits: ["cancel", "create", "update", "delete", "sort"],
|
|
3331
3331
|
setup(t, { emit: e }) {
|
|
3332
|
-
const o = t, n = e, r = oe(o.list), s = oe(!0), l = () => n("cancel"), c = async (
|
|
3333
|
-
await o.onDelete(
|
|
3332
|
+
const o = t, n = e, r = oe(o.list), s = oe(!0), l = () => n("cancel"), c = async (b) => {
|
|
3333
|
+
await o.onDelete(b), r.value = r.value.filter((d) => d.code !== b);
|
|
3334
3334
|
}, p = () => {
|
|
3335
3335
|
l(), n("create");
|
|
3336
|
-
}, f = (
|
|
3337
|
-
l(), n("update",
|
|
3336
|
+
}, f = (b) => {
|
|
3337
|
+
l(), n("update", b);
|
|
3338
3338
|
}, v = () => {
|
|
3339
3339
|
n(
|
|
3340
3340
|
"sort",
|
|
3341
|
-
r.value.map(({ code:
|
|
3341
|
+
r.value.map(({ code: b }) => b)
|
|
3342
3342
|
);
|
|
3343
3343
|
};
|
|
3344
|
-
return (
|
|
3345
|
-
const m = L("a-col"),
|
|
3346
|
-
return k(),
|
|
3344
|
+
return (b, d) => {
|
|
3345
|
+
const m = L("a-col"), x = L("a-row"), P = L("a-typography-text"), w = L("a-button"), M = L("a-popconfirm"), V = L("a-empty"), q = L("a-modal");
|
|
3346
|
+
return k(), j(q, {
|
|
3347
3347
|
open: s.value,
|
|
3348
3348
|
"onUpdate:open": d[0] || (d[0] = ($) => s.value = $),
|
|
3349
3349
|
title: "场景管理",
|
|
@@ -3353,34 +3353,34 @@ const uo = (t) => {
|
|
|
3353
3353
|
}, {
|
|
3354
3354
|
default: C(() => [
|
|
3355
3355
|
z("div", {
|
|
3356
|
-
class: b
|
|
3356
|
+
class: g(b.$style.sceneList)
|
|
3357
3357
|
}, [
|
|
3358
|
-
|
|
3359
|
-
class: b
|
|
3358
|
+
S(x, {
|
|
3359
|
+
class: g(b.$style.sceneListHead)
|
|
3360
3360
|
}, {
|
|
3361
3361
|
default: C(() => [
|
|
3362
|
-
|
|
3362
|
+
S(m, {
|
|
3363
3363
|
span: 16,
|
|
3364
|
-
class: b
|
|
3364
|
+
class: g(b.$style.col)
|
|
3365
3365
|
}, {
|
|
3366
3366
|
default: C(() => d[1] || (d[1] = [
|
|
3367
|
-
|
|
3367
|
+
ee(" 场景名称 ")
|
|
3368
3368
|
])),
|
|
3369
3369
|
_: 1
|
|
3370
3370
|
}, 8, ["class"]),
|
|
3371
|
-
|
|
3371
|
+
S(m, {
|
|
3372
3372
|
span: 8,
|
|
3373
|
-
class: b
|
|
3373
|
+
class: g(b.$style.col)
|
|
3374
3374
|
}, {
|
|
3375
3375
|
default: C(() => d[2] || (d[2] = [
|
|
3376
|
-
|
|
3376
|
+
ee(" 操作 ")
|
|
3377
3377
|
])),
|
|
3378
3378
|
_: 1
|
|
3379
3379
|
}, 8, ["class"])
|
|
3380
3380
|
]),
|
|
3381
3381
|
_: 1
|
|
3382
3382
|
}, 8, ["class"]),
|
|
3383
|
-
r.value.length ? (k(),
|
|
3383
|
+
r.value.length ? (k(), j(y(Ne), {
|
|
3384
3384
|
key: 0,
|
|
3385
3385
|
list: r.value,
|
|
3386
3386
|
"item-key": "id",
|
|
@@ -3388,60 +3388,60 @@ const uo = (t) => {
|
|
|
3388
3388
|
onChange: v
|
|
3389
3389
|
}, {
|
|
3390
3390
|
item: C(({ element: $ }) => [
|
|
3391
|
-
|
|
3392
|
-
class: b
|
|
3391
|
+
S(x, {
|
|
3392
|
+
class: g(b.$style.sceneListItem)
|
|
3393
3393
|
}, {
|
|
3394
3394
|
default: C(() => [
|
|
3395
|
-
|
|
3395
|
+
S(m, {
|
|
3396
3396
|
span: 16,
|
|
3397
|
-
class: b
|
|
3397
|
+
class: g(b.$style.col)
|
|
3398
3398
|
}, {
|
|
3399
3399
|
default: C(() => [
|
|
3400
|
-
|
|
3400
|
+
S(P, {
|
|
3401
3401
|
ellipsis: { tooltip: $.name },
|
|
3402
3402
|
content: $.name
|
|
3403
3403
|
}, null, 8, ["ellipsis", "content"])
|
|
3404
3404
|
]),
|
|
3405
3405
|
_: 2
|
|
3406
3406
|
}, 1032, ["class"]),
|
|
3407
|
-
|
|
3407
|
+
S(m, {
|
|
3408
3408
|
span: 8,
|
|
3409
|
-
class: b
|
|
3409
|
+
class: g(b.$style.col)
|
|
3410
3410
|
}, {
|
|
3411
3411
|
default: C(() => [
|
|
3412
|
-
|
|
3412
|
+
S(w, {
|
|
3413
3413
|
type: "link",
|
|
3414
3414
|
size: "small",
|
|
3415
3415
|
onClick: (_) => f($)
|
|
3416
3416
|
}, {
|
|
3417
3417
|
default: C(() => d[3] || (d[3] = [
|
|
3418
|
-
|
|
3418
|
+
ee(" 编辑 ")
|
|
3419
3419
|
])),
|
|
3420
3420
|
_: 2
|
|
3421
3421
|
}, 1032, ["onClick"]),
|
|
3422
|
-
|
|
3422
|
+
S(M, {
|
|
3423
3423
|
title: "确定删除?",
|
|
3424
3424
|
onConfirm: (_) => c($.code)
|
|
3425
3425
|
}, {
|
|
3426
3426
|
default: C(() => [
|
|
3427
|
-
|
|
3427
|
+
S(w, {
|
|
3428
3428
|
type: "link",
|
|
3429
3429
|
size: "small",
|
|
3430
3430
|
danger: ""
|
|
3431
3431
|
}, {
|
|
3432
3432
|
default: C(() => d[4] || (d[4] = [
|
|
3433
|
-
|
|
3433
|
+
ee(" 删除 ")
|
|
3434
3434
|
])),
|
|
3435
3435
|
_: 1
|
|
3436
3436
|
})
|
|
3437
3437
|
]),
|
|
3438
3438
|
_: 2
|
|
3439
3439
|
}, 1032, ["onConfirm"]),
|
|
3440
|
-
|
|
3440
|
+
S(w, {
|
|
3441
3441
|
type: "text",
|
|
3442
3442
|
size: "small",
|
|
3443
3443
|
icon: W(y(Ae)),
|
|
3444
|
-
class:
|
|
3444
|
+
class: g(["table-column-draggable-icon", b.$style.dragIcon])
|
|
3445
3445
|
}, null, 8, ["icon", "class"])
|
|
3446
3446
|
]),
|
|
3447
3447
|
_: 2
|
|
@@ -3451,22 +3451,22 @@ const uo = (t) => {
|
|
|
3451
3451
|
}, 1032, ["class"])
|
|
3452
3452
|
]),
|
|
3453
3453
|
_: 1
|
|
3454
|
-
}, 8, ["list"])) : (k(),
|
|
3454
|
+
}, 8, ["list"])) : (k(), j(V, {
|
|
3455
3455
|
key: 1,
|
|
3456
3456
|
image: y(kn).PRESENTED_IMAGE_SIMPLE
|
|
3457
3457
|
}, null, 8, ["image"]))
|
|
3458
3458
|
], 2),
|
|
3459
|
-
t.allowCreateScene ? (k(),
|
|
3459
|
+
t.allowCreateScene ? (k(), j(w, {
|
|
3460
3460
|
key: 0,
|
|
3461
3461
|
type: "link",
|
|
3462
3462
|
icon: W(y(Rt)),
|
|
3463
3463
|
onClick: p
|
|
3464
3464
|
}, {
|
|
3465
3465
|
default: C(() => d[5] || (d[5] = [
|
|
3466
|
-
|
|
3466
|
+
ee(" 新建场景 ")
|
|
3467
3467
|
])),
|
|
3468
3468
|
_: 1
|
|
3469
|
-
}, 8, ["icon"])) :
|
|
3469
|
+
}, 8, ["icon"])) : N("", !0)
|
|
3470
3470
|
]),
|
|
3471
3471
|
_: 1
|
|
3472
3472
|
}, 8, ["open"]);
|
|
@@ -3526,64 +3526,64 @@ const uo = (t) => {
|
|
|
3526
3526
|
},
|
|
3527
3527
|
emits: ["form-item-change", "search", "reset"],
|
|
3528
3528
|
setup(t, { emit: e }) {
|
|
3529
|
-
const o = t, n = e, r =
|
|
3529
|
+
const o = t, n = e, r = Nn(
|
|
3530
3530
|
`superTable_formSearch_expanded_${o.superTableID}`,
|
|
3531
3531
|
!0
|
|
3532
|
-
), s = F(() =>
|
|
3533
|
-
Object.values(o.formConfigMap).filter((
|
|
3532
|
+
), s = F(() => dt(
|
|
3533
|
+
Object.values(o.formConfigMap).filter((w) => w[ve.selected]),
|
|
3534
3534
|
ve.orderInScene
|
|
3535
3535
|
)), l = F(() => {
|
|
3536
|
-
const
|
|
3536
|
+
const w = [];
|
|
3537
3537
|
let M = 0;
|
|
3538
3538
|
for (const V of s.value) {
|
|
3539
|
-
const
|
|
3540
|
-
if (M +
|
|
3539
|
+
const q = (o.formConfigMap[V.name].span ?? 1) * o.formItemColSpan;
|
|
3540
|
+
if (M + q > 24)
|
|
3541
3541
|
break;
|
|
3542
|
-
|
|
3542
|
+
w.push(V), M += q;
|
|
3543
3543
|
}
|
|
3544
|
-
return
|
|
3544
|
+
return w;
|
|
3545
3545
|
}), c = F(() => r.value ? s.value : l.value), p = F(() => o.showExpandButton && s.value.length > l.value.length), f = F(() => {
|
|
3546
3546
|
if (!(!o.enableScene || o.showResetButton || p.value)) return 0;
|
|
3547
|
-
const V = 24 - c.value.reduce(($, _) => $ + (o.formConfigMap[_.name].span ?? 1) * o.formItemColSpan, 0) % 24,
|
|
3548
|
-
return V >=
|
|
3549
|
-
}), v = (
|
|
3550
|
-
n("form-item-change",
|
|
3551
|
-
},
|
|
3547
|
+
const V = 24 - c.value.reduce(($, _) => $ + (o.formConfigMap[_.name].span ?? 1) * o.formItemColSpan, 0) % 24, q = o.formItemColSpan;
|
|
3548
|
+
return V >= q ? V : 24;
|
|
3549
|
+
}), v = (w, M) => {
|
|
3550
|
+
n("form-item-change", w, M);
|
|
3551
|
+
}, b = ht(v, 500), d = (w, M) => {
|
|
3552
3552
|
[
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
].includes(o.formConfigMap[
|
|
3553
|
+
Z.input,
|
|
3554
|
+
Z.inputNumber,
|
|
3555
|
+
Z.inputGroup,
|
|
3556
|
+
Z.inputNumberRange
|
|
3557
|
+
].includes(o.formConfigMap[w].type) ? b(w, M) : v(w, M);
|
|
3558
3558
|
}, m = () => {
|
|
3559
3559
|
n("search");
|
|
3560
|
-
},
|
|
3560
|
+
}, x = () => {
|
|
3561
3561
|
n("reset");
|
|
3562
3562
|
}, P = () => {
|
|
3563
3563
|
r.value = !r.value;
|
|
3564
3564
|
};
|
|
3565
|
-
return (
|
|
3566
|
-
const V = L("a-col"),
|
|
3567
|
-
return c.value.length ? (k(),
|
|
3565
|
+
return (w, M) => {
|
|
3566
|
+
const V = L("a-col"), q = L("a-button"), $ = L("a-row");
|
|
3567
|
+
return c.value.length ? (k(), H("div", {
|
|
3568
3568
|
key: 0,
|
|
3569
|
-
class:
|
|
3570
|
-
|
|
3569
|
+
class: g([
|
|
3570
|
+
w.$style.searchParamsWrapper,
|
|
3571
3571
|
{
|
|
3572
|
-
[
|
|
3572
|
+
[w.$style.hasActions]: !t.enableScene || t.showResetButton || p.value
|
|
3573
3573
|
}
|
|
3574
3574
|
])
|
|
3575
3575
|
}, [
|
|
3576
|
-
|
|
3576
|
+
S($, {
|
|
3577
3577
|
gutter: [8, 8],
|
|
3578
|
-
class:
|
|
3578
|
+
class: g(w.$style.searchParams)
|
|
3579
3579
|
}, {
|
|
3580
3580
|
default: C(() => [
|
|
3581
|
-
(k(!0),
|
|
3581
|
+
(k(!0), H(Oe, null, ut(c.value, (_) => (k(), j(V, {
|
|
3582
3582
|
key: _.name,
|
|
3583
3583
|
span: (t.formConfigMap[_.name].span ?? 1) * t.formItemColSpan
|
|
3584
3584
|
}, {
|
|
3585
3585
|
default: C(() => [
|
|
3586
|
-
|
|
3586
|
+
S(Yt, {
|
|
3587
3587
|
value: t.formConfigMap[_.name].value,
|
|
3588
3588
|
"form-item": t.formConfigMap[_.name],
|
|
3589
3589
|
onChange: (T) => d(_.name, T)
|
|
@@ -3591,54 +3591,54 @@ const uo = (t) => {
|
|
|
3591
3591
|
]),
|
|
3592
3592
|
_: 2
|
|
3593
3593
|
}, 1032, ["span"]))), 128)),
|
|
3594
|
-
!t.enableScene || t.showResetButton || p.value ? (k(),
|
|
3594
|
+
!t.enableScene || t.showResetButton || p.value ? (k(), j(V, {
|
|
3595
3595
|
key: 0,
|
|
3596
3596
|
span: f.value,
|
|
3597
|
-
class:
|
|
3597
|
+
class: g(w.$style.searchActions)
|
|
3598
3598
|
}, {
|
|
3599
3599
|
default: C(() => [
|
|
3600
3600
|
z("div", {
|
|
3601
|
-
class:
|
|
3601
|
+
class: g(w.$style.searchActionsWrapper)
|
|
3602
3602
|
}, [
|
|
3603
|
-
!t.enableScene && t.showResetButton ? (k(),
|
|
3603
|
+
!t.enableScene && t.showResetButton ? (k(), j(q, {
|
|
3604
3604
|
key: 0,
|
|
3605
|
-
onClick:
|
|
3605
|
+
onClick: x
|
|
3606
3606
|
}, {
|
|
3607
3607
|
default: C(() => M[0] || (M[0] = [
|
|
3608
|
-
|
|
3608
|
+
ee(" 重置 ")
|
|
3609
3609
|
])),
|
|
3610
3610
|
_: 1
|
|
3611
|
-
})) :
|
|
3612
|
-
t.enableScene ?
|
|
3611
|
+
})) : N("", !0),
|
|
3612
|
+
t.enableScene ? N("", !0) : (k(), j(q, {
|
|
3613
3613
|
key: 1,
|
|
3614
3614
|
type: "primary",
|
|
3615
3615
|
loading: t.loading,
|
|
3616
3616
|
onClick: m
|
|
3617
3617
|
}, {
|
|
3618
3618
|
default: C(() => M[1] || (M[1] = [
|
|
3619
|
-
|
|
3619
|
+
ee(" 查询 ")
|
|
3620
3620
|
])),
|
|
3621
3621
|
_: 1
|
|
3622
3622
|
}, 8, ["loading"])),
|
|
3623
|
-
p.value ? (k(),
|
|
3623
|
+
p.value ? (k(), j(q, {
|
|
3624
3624
|
key: 2,
|
|
3625
3625
|
type: "link",
|
|
3626
3626
|
icon: y(r) ? W(y(Pn)) : W(y(Bt)),
|
|
3627
3627
|
onClick: P
|
|
3628
3628
|
}, {
|
|
3629
3629
|
default: C(() => [
|
|
3630
|
-
|
|
3630
|
+
ee(be(y(r) ? "收起" : "展开"), 1)
|
|
3631
3631
|
]),
|
|
3632
3632
|
_: 1
|
|
3633
|
-
}, 8, ["icon"])) :
|
|
3633
|
+
}, 8, ["icon"])) : N("", !0)
|
|
3634
3634
|
], 2)
|
|
3635
3635
|
]),
|
|
3636
3636
|
_: 1
|
|
3637
|
-
}, 8, ["span", "class"])) :
|
|
3637
|
+
}, 8, ["span", "class"])) : N("", !0)
|
|
3638
3638
|
]),
|
|
3639
3639
|
_: 1
|
|
3640
3640
|
}, 8, ["class"])
|
|
3641
|
-
], 2)) :
|
|
3641
|
+
], 2)) : N("", !0);
|
|
3642
3642
|
};
|
|
3643
3643
|
}
|
|
3644
3644
|
}), Xr = "_searchParamsWrapper_mo3ie_1", Zr = "_hasActions_mo3ie_6", Jr = "_searchParams_mo3ie_1", ea = "_searchActionsWrapper_mo3ie_14", ta = {
|
|
@@ -3702,8 +3702,8 @@ class ra {
|
|
|
3702
3702
|
...n,
|
|
3703
3703
|
open: this.open,
|
|
3704
3704
|
onCancel: () => {
|
|
3705
|
-
var
|
|
3706
|
-
this.open = !1, (
|
|
3705
|
+
var b;
|
|
3706
|
+
this.open = !1, (b = n == null ? void 0 : n.onCancel) == null || b.call(n);
|
|
3707
3707
|
}
|
|
3708
3708
|
})
|
|
3709
3709
|
]
|
|
@@ -3712,8 +3712,8 @@ class ra {
|
|
|
3712
3712
|
}).use(gn);
|
|
3713
3713
|
r == null || r(f);
|
|
3714
3714
|
const v = f.mount(`#${p}`);
|
|
3715
|
-
return s == null || s(v), v.$watch("open", (
|
|
3716
|
-
|
|
3715
|
+
return s == null || s(v), v.$watch("open", (b) => {
|
|
3716
|
+
b || this.destroy();
|
|
3717
3717
|
}), this.currents.push(f), f;
|
|
3718
3718
|
}
|
|
3719
3719
|
// 关闭dialog
|
|
@@ -3753,13 +3753,13 @@ function Lt(t, e) {
|
|
|
3753
3753
|
openByConfig: s
|
|
3754
3754
|
};
|
|
3755
3755
|
}
|
|
3756
|
-
const
|
|
3756
|
+
const We = 2e3, aa = (t) => {
|
|
3757
3757
|
const { getScenes: e, setScenes: o } = t;
|
|
3758
3758
|
return {
|
|
3759
3759
|
querySceneList: async (n) => {
|
|
3760
3760
|
const r = e(), s = n.type ? r.filter((l) => l.type === n.type) : r;
|
|
3761
3761
|
return {
|
|
3762
|
-
code:
|
|
3762
|
+
code: We,
|
|
3763
3763
|
data: s,
|
|
3764
3764
|
msg: "success"
|
|
3765
3765
|
};
|
|
@@ -3767,7 +3767,7 @@ const Ve = 2e3, aa = (t) => {
|
|
|
3767
3767
|
createScene: async (n) => {
|
|
3768
3768
|
const r = e(), s = qt(Math.random().toString());
|
|
3769
3769
|
return r.push({ ...n, code: s }), o(r), {
|
|
3770
|
-
code:
|
|
3770
|
+
code: We,
|
|
3771
3771
|
data: s,
|
|
3772
3772
|
msg: "success"
|
|
3773
3773
|
};
|
|
@@ -3779,7 +3779,7 @@ const Ve = 2e3, aa = (t) => {
|
|
|
3779
3779
|
data: null,
|
|
3780
3780
|
msg: "Scene not found"
|
|
3781
3781
|
} : (r[s] = { ...r[s], ...n }, o(r), {
|
|
3782
|
-
code:
|
|
3782
|
+
code: We,
|
|
3783
3783
|
data: r[s],
|
|
3784
3784
|
msg: "success"
|
|
3785
3785
|
});
|
|
@@ -3787,7 +3787,7 @@ const Ve = 2e3, aa = (t) => {
|
|
|
3787
3787
|
deleteScene: async (n) => {
|
|
3788
3788
|
const s = e().filter((l) => !n.includes(l.code));
|
|
3789
3789
|
return o(s), {
|
|
3790
|
-
code:
|
|
3790
|
+
code: We,
|
|
3791
3791
|
data: null,
|
|
3792
3792
|
msg: "success"
|
|
3793
3793
|
};
|
|
@@ -3937,16 +3937,16 @@ const Ve = 2e3, aa = (t) => {
|
|
|
3937
3937
|
},
|
|
3938
3938
|
emits: ["sort-change", "row-sort-end", "form-item-change", "scene-change", "change", "expand", "expandedRowsChange", "resize-column"],
|
|
3939
3939
|
setup(t, { expose: e, emit: o }) {
|
|
3940
|
-
var
|
|
3940
|
+
var vt, Ct;
|
|
3941
3941
|
Ue.locale("zh-cn");
|
|
3942
3942
|
const n = t, r = o, s = oe(!1), l = F(() => {
|
|
3943
|
-
var i, h,
|
|
3943
|
+
var i, h, E;
|
|
3944
3944
|
const a = (i = dn()) == null ? void 0 : i.appContext.app;
|
|
3945
|
-
return !!((
|
|
3946
|
-
}), c = oe(), { openByConfig: p } = Lt(
|
|
3947
|
-
(a, i) => (a[i.key] = ke(i,
|
|
3945
|
+
return !!((E = (h = a == null ? void 0 : a.config) == null ? void 0 : h.globalProperties) != null && E.$router);
|
|
3946
|
+
}), c = oe(), { openByConfig: p } = Lt(jr), { openByConfig: f } = Lt(Kr), v = Pt(n.columns).reduce(
|
|
3947
|
+
(a, i) => (a[i.key] = ke(i, mt), a),
|
|
3948
3948
|
{}
|
|
3949
|
-
),
|
|
3949
|
+
), b = qt([location.hostname, location.pathname, n.sceneType].join("")), d = jn(`superTable_${b}`, {
|
|
3950
3950
|
pathname: location.pathname,
|
|
3951
3951
|
sceneCode: null,
|
|
3952
3952
|
sceneSort: [],
|
|
@@ -3957,43 +3957,43 @@ const Ve = 2e3, aa = (t) => {
|
|
|
3957
3957
|
setScenes: (a) => {
|
|
3958
3958
|
d.value.sceneList = a;
|
|
3959
3959
|
}
|
|
3960
|
-
}) : Dt()),
|
|
3960
|
+
}) : Dt()), x = oe(!1), P = F(() => Object.keys(n.customQueryParams).length > 0), w = oe(!1), M = F(() => {
|
|
3961
3961
|
var a;
|
|
3962
3962
|
return ((a = n.tableProps) == null ? void 0 : a.pagination) === !1;
|
|
3963
|
-
}), V =
|
|
3963
|
+
}), V = ht(async () => {
|
|
3964
3964
|
try {
|
|
3965
|
-
|
|
3965
|
+
Q.loading = !0;
|
|
3966
3966
|
const { total: a, data: i } = await n.request({
|
|
3967
|
-
params:
|
|
3967
|
+
params: bt(),
|
|
3968
3968
|
...M.value ? {} : {
|
|
3969
|
-
pageSize:
|
|
3970
|
-
pageNum:
|
|
3969
|
+
pageSize: Q.pagination.pageSize,
|
|
3970
|
+
pageNum: Q.pagination.current
|
|
3971
3971
|
}
|
|
3972
3972
|
});
|
|
3973
|
-
|
|
3973
|
+
Q.dataSource = i, M.value || (Q.pagination.total = a);
|
|
3974
3974
|
} catch (a) {
|
|
3975
|
-
|
|
3975
|
+
Q.dataSource = [], console.error(a);
|
|
3976
3976
|
} finally {
|
|
3977
|
-
|
|
3977
|
+
Q.loading = !1;
|
|
3978
3978
|
}
|
|
3979
|
-
}, n.debounceWait),
|
|
3980
|
-
n.enableScene && !T.loaded || (M.value || (
|
|
3979
|
+
}, n.debounceWait), q = () => {
|
|
3980
|
+
n.enableScene && !T.loaded || (M.value || (Q.pagination.current = 1), V());
|
|
3981
3981
|
}, $ = oe({}), _ = (a = []) => {
|
|
3982
3982
|
for (const i in $.value) {
|
|
3983
|
-
const h = $.value[i],
|
|
3984
|
-
h.value =
|
|
3983
|
+
const h = $.value[i], E = a.find((A) => A.name === i);
|
|
3984
|
+
h.value = E ? E.value : h._defaultValue, h[ve.selected] = !!E, h[ve.orderInScene] = E ? a.findIndex((A) => A.name === (E == null ? void 0 : E.name)) : void 0;
|
|
3985
3985
|
}
|
|
3986
|
-
|
|
3987
|
-
}, T =
|
|
3986
|
+
q();
|
|
3987
|
+
}, T = Qe({
|
|
3988
3988
|
list: [],
|
|
3989
3989
|
loading: !1,
|
|
3990
3990
|
submiting: !1,
|
|
3991
3991
|
loaded: !1
|
|
3992
|
-
}),
|
|
3992
|
+
}), J = F(() => De(ge(n.defaultScene)).filter(Boolean).map(({ name: i = "默认场景", code: h = "default_scene", items: E }) => ({
|
|
3993
3993
|
name: i,
|
|
3994
3994
|
code: h,
|
|
3995
3995
|
isCustom: !0,
|
|
3996
|
-
items:
|
|
3996
|
+
items: E.filter((A) => !!$.value[A.name]).map((A) => {
|
|
3997
3997
|
var R;
|
|
3998
3998
|
return {
|
|
3999
3999
|
name: A.name,
|
|
@@ -4002,17 +4002,17 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4002
4002
|
};
|
|
4003
4003
|
})
|
|
4004
4004
|
})));
|
|
4005
|
-
|
|
4005
|
+
xe(
|
|
4006
4006
|
() => n.formItems,
|
|
4007
4007
|
() => {
|
|
4008
|
-
const a = At(
|
|
4008
|
+
const a = At(ge(n.formItems)), i = new Set(a.map((h) => h.name));
|
|
4009
4009
|
Object.keys($.value).forEach((h) => {
|
|
4010
4010
|
i.has(h) || ($.value[h][ve.selected] = !1);
|
|
4011
4011
|
}), a.forEach((h) => {
|
|
4012
|
-
const
|
|
4013
|
-
|
|
4014
|
-
...
|
|
4015
|
-
[ve.selected]: !n.enableScene &&
|
|
4012
|
+
const E = { ...h };
|
|
4013
|
+
E.component && (E.component = pn(E.component)), $.value[h.name] ? $.value[h.name] = Rn(ge($.value[h.name]), E) : $.value[h.name] = {
|
|
4014
|
+
...E,
|
|
4015
|
+
[ve.selected]: !n.enableScene && E.visible !== !1
|
|
4016
4016
|
};
|
|
4017
4017
|
});
|
|
4018
4018
|
},
|
|
@@ -4024,38 +4024,38 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4024
4024
|
const ie = async () => {
|
|
4025
4025
|
try {
|
|
4026
4026
|
T.loading = !0;
|
|
4027
|
-
const { code: a, data: i = [], msg: h } = await m.value.querySceneList({ type:
|
|
4027
|
+
const { code: a, data: i = [], msg: h } = await m.value.querySceneList({ type: b });
|
|
4028
4028
|
if (a === 2e3) {
|
|
4029
|
-
const
|
|
4030
|
-
if (T.list = co(i, $.value, d.value.sceneSort), !T.loaded && !d.value.sceneCode &&
|
|
4031
|
-
const R =
|
|
4029
|
+
const E = T.list.find((R) => R.code === d.value.sceneCode);
|
|
4030
|
+
if (T.list = co(i, $.value, d.value.sceneSort), !T.loaded && !d.value.sceneCode && J.value.length > 0) {
|
|
4031
|
+
const R = J.value[0];
|
|
4032
4032
|
d.value.sceneCode = R.code, _(R.items), T.loaded = !0, V();
|
|
4033
4033
|
return;
|
|
4034
4034
|
}
|
|
4035
4035
|
const A = T.list.find((R) => R.code === d.value.sceneCode);
|
|
4036
4036
|
if (!T.loaded && P.value) {
|
|
4037
4037
|
d.value.sceneCode = null, T.loaded = !0;
|
|
4038
|
-
const R = Object.entries(n.customQueryParams).map(([ce,
|
|
4038
|
+
const R = Object.entries(n.customQueryParams).map(([ce, rt]) => {
|
|
4039
4039
|
var qe;
|
|
4040
4040
|
return {
|
|
4041
4041
|
name: ce,
|
|
4042
|
-
value:
|
|
4042
|
+
value: rt,
|
|
4043
4043
|
type: (qe = $.value[ce]) == null ? void 0 : qe.type
|
|
4044
4044
|
};
|
|
4045
4045
|
});
|
|
4046
4046
|
_(R);
|
|
4047
4047
|
return;
|
|
4048
4048
|
}
|
|
4049
|
-
(!T.loaded ||
|
|
4049
|
+
(!T.loaded || E && E.value !== (A == null ? void 0 : A.value)) && _(A == null ? void 0 : A.items), T.loaded = !0;
|
|
4050
4050
|
} else
|
|
4051
|
-
|
|
4051
|
+
lt.error(h);
|
|
4052
4052
|
} finally {
|
|
4053
4053
|
T.loading = !1;
|
|
4054
4054
|
}
|
|
4055
|
-
}, Pe = ({ code: a, msg: i }) => a === 2e3 ? (
|
|
4055
|
+
}, Pe = ({ code: a, msg: i }) => a === 2e3 ? (lt.success("操作成功"), ie(), Promise.resolve(i)) : (lt.error(i), Promise.reject(i)), Se = async ({ name: a, items: i }) => {
|
|
4056
4056
|
try {
|
|
4057
4057
|
const h = await m.value.createScene({
|
|
4058
|
-
type:
|
|
4058
|
+
type: b,
|
|
4059
4059
|
name: a,
|
|
4060
4060
|
value: JSON.stringify(i),
|
|
4061
4061
|
asPrivate: !0
|
|
@@ -4064,7 +4064,7 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4064
4064
|
} catch (h) {
|
|
4065
4065
|
return Promise.reject(h);
|
|
4066
4066
|
}
|
|
4067
|
-
},
|
|
4067
|
+
}, he = async (a) => {
|
|
4068
4068
|
try {
|
|
4069
4069
|
const i = await m.value.updateScene({
|
|
4070
4070
|
code: a.code,
|
|
@@ -4083,40 +4083,40 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4083
4083
|
return Promise.reject(i);
|
|
4084
4084
|
}
|
|
4085
4085
|
}, Te = F(() => T.list.length < n.maxSceneCount);
|
|
4086
|
-
|
|
4086
|
+
xe(
|
|
4087
4087
|
() => [d.value.sceneCode, T.list],
|
|
4088
4088
|
() => {
|
|
4089
|
-
if (P.value && !
|
|
4090
|
-
|
|
4089
|
+
if (P.value && !w.value) {
|
|
4090
|
+
w.value = !0;
|
|
4091
4091
|
return;
|
|
4092
4092
|
}
|
|
4093
|
-
const a = [...
|
|
4093
|
+
const a = [...J.value, ...T.list].find(
|
|
4094
4094
|
(i) => i.code === d.value.sceneCode
|
|
4095
4095
|
);
|
|
4096
4096
|
_((a == null ? void 0 : a.items) ?? []);
|
|
4097
4097
|
}
|
|
4098
4098
|
);
|
|
4099
|
-
const D = F(() => `super_table_row_${
|
|
4099
|
+
const D = F(() => `super_table_row_${b}`), ae = mn(), Q = Qe({
|
|
4100
4100
|
...n.tableProps,
|
|
4101
4101
|
dataSource: [],
|
|
4102
4102
|
columns: [],
|
|
4103
4103
|
loading: !1,
|
|
4104
4104
|
rowKey: "id",
|
|
4105
|
-
pagination: typeof ((
|
|
4105
|
+
pagination: typeof ((vt = n.tableProps) == null ? void 0 : vt.pagination) == "boolean" ? n.tableProps.pagination : {
|
|
4106
4106
|
total: 0,
|
|
4107
4107
|
pageSize: 20,
|
|
4108
4108
|
current: 1,
|
|
4109
4109
|
showQuickJumper: !0,
|
|
4110
4110
|
showSizeChanger: !0,
|
|
4111
4111
|
showTotal: (a) => `共${a}条数据`,
|
|
4112
|
-
...
|
|
4112
|
+
...Xe(n.tableProps, "pagination", {}),
|
|
4113
4113
|
onShowSizeChange: (a, i) => {
|
|
4114
|
-
var h,
|
|
4115
|
-
((h = n.tableProps) == null ? void 0 : h.pagination) !== !1 && ((R = (A = (
|
|
4114
|
+
var h, E, A, R;
|
|
4115
|
+
((h = n.tableProps) == null ? void 0 : h.pagination) !== !1 && ((R = (A = (E = n.tableProps) == null ? void 0 : E.pagination) == null ? void 0 : A.onShowSizeChange) == null || R.call(A, 1, i));
|
|
4116
4116
|
},
|
|
4117
4117
|
onChange: (a, i) => {
|
|
4118
|
-
var h,
|
|
4119
|
-
|
|
4118
|
+
var h, E, A, R;
|
|
4119
|
+
Q.pagination.current = i !== Q.pagination.pageSize ? 1 : a, Q.pagination.pageSize = i, ((h = n.tableProps) == null ? void 0 : h.pagination) !== !1 && ((R = (A = (E = n.tableProps) == null ? void 0 : E.pagination) == null ? void 0 : A.onChange) == null || R.call(A, a, i)), V();
|
|
4120
4120
|
}
|
|
4121
4121
|
},
|
|
4122
4122
|
tableLayout: "fixed",
|
|
@@ -4124,59 +4124,59 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4124
4124
|
x: "100%",
|
|
4125
4125
|
y: Math.max(500, window.innerWidth * 0.8),
|
|
4126
4126
|
scrollToFirstRowOnChange: !0,
|
|
4127
|
-
...((
|
|
4127
|
+
...((Ct = n.tableProps) == null ? void 0 : Ct.scroll) ?? {}
|
|
4128
4128
|
},
|
|
4129
4129
|
rowClassName: (a, i, h) => {
|
|
4130
4130
|
var R;
|
|
4131
|
-
let
|
|
4131
|
+
let E = "";
|
|
4132
4132
|
const A = (R = n.tableProps) == null ? void 0 : R.rowClassName;
|
|
4133
|
-
return $e(A) ?
|
|
4133
|
+
return $e(A) ? E = A(a, i, h) : typeof A == "string" && (E = A), [E, D.value].join(" ");
|
|
4134
4134
|
}
|
|
4135
4135
|
}), ze = F(() => {
|
|
4136
4136
|
try {
|
|
4137
|
-
return n.formatDataSource(
|
|
4137
|
+
return n.formatDataSource(ge(Q.dataSource));
|
|
4138
4138
|
} catch {
|
|
4139
|
-
return
|
|
4139
|
+
return ge(Q.dataSource);
|
|
4140
4140
|
}
|
|
4141
4141
|
}), He = (a) => {
|
|
4142
|
-
const i =
|
|
4142
|
+
const i = Q.rowKey;
|
|
4143
4143
|
if (typeof i == "string")
|
|
4144
4144
|
return a == null ? void 0 : a[i];
|
|
4145
4145
|
if (typeof i == "function")
|
|
4146
4146
|
return i(a);
|
|
4147
4147
|
}, O = F(() => Pt(n.columns).map((a) => {
|
|
4148
4148
|
const i = d.value.columnConfig[a.key], h = { ...a };
|
|
4149
|
-
return
|
|
4150
|
-
|
|
4149
|
+
return mt.forEach((E) => {
|
|
4150
|
+
E !== "key" && (i == null ? void 0 : i[E]) !== void 0 && (h[E] = i[E]);
|
|
4151
4151
|
}), h;
|
|
4152
4152
|
})), I = (a, i) => {
|
|
4153
|
-
var
|
|
4153
|
+
var E;
|
|
4154
4154
|
d.value.columnConfig[i.key] = {
|
|
4155
4155
|
...d.value.columnConfig[i.key] ?? {},
|
|
4156
4156
|
width: a
|
|
4157
4157
|
}, r("resize-column", a, i);
|
|
4158
4158
|
const h = n.tableProps;
|
|
4159
|
-
(
|
|
4160
|
-
}, B = (a) => Array.isArray(a) ? a.map((i) => (i == null ? void 0 : i.field) == null && (i == null ? void 0 : i.columnKey) != null ? { ...i, field: i.columnKey } : i) : (a == null ? void 0 : a.field) == null && (a == null ? void 0 : a.columnKey) != null ? { ...a, field: a.columnKey } : a,
|
|
4159
|
+
(E = h == null ? void 0 : h.onResizeColumn) == null || E.call(h, a, i);
|
|
4160
|
+
}, B = (a) => Array.isArray(a) ? a.map((i) => (i == null ? void 0 : i.field) == null && (i == null ? void 0 : i.columnKey) != null ? { ...i, field: i.columnKey } : i) : (a == null ? void 0 : a.field) == null && (a == null ? void 0 : a.columnKey) != null ? { ...a, field: a.columnKey } : a, te = (a, i, h, E) => {
|
|
4161
4161
|
var R, ce;
|
|
4162
4162
|
const A = B(h);
|
|
4163
|
-
r("change", a, i, A,
|
|
4163
|
+
r("change", a, i, A, E), (ce = (R = n.tableProps) == null ? void 0 : R.onChange) == null || ce.call(R, a, i, A, E);
|
|
4164
4164
|
}, se = (a, i) => {
|
|
4165
|
-
var h,
|
|
4166
|
-
r("expand", a, i), (
|
|
4167
|
-
},
|
|
4165
|
+
var h, E;
|
|
4166
|
+
r("expand", a, i), (E = (h = n.tableProps) == null ? void 0 : h.onExpand) == null || E.call(h, a, i);
|
|
4167
|
+
}, ye = (a) => {
|
|
4168
4168
|
var i, h;
|
|
4169
4169
|
r("expandedRowsChange", a), (h = (i = n.tableProps) == null ? void 0 : i.onExpandedRowsChange) == null || h.call(i, a);
|
|
4170
|
-
},
|
|
4170
|
+
}, Je = (a) => {
|
|
4171
4171
|
a.length === 0 ? d.value.columnConfig = {} : d.value.columnConfig = a.reduce(
|
|
4172
|
-
(i, h,
|
|
4172
|
+
(i, h, E) => (i[h.key] = {
|
|
4173
4173
|
...h,
|
|
4174
|
-
index:
|
|
4174
|
+
index: E
|
|
4175
4175
|
}, i),
|
|
4176
4176
|
{}
|
|
4177
4177
|
);
|
|
4178
4178
|
};
|
|
4179
|
-
|
|
4179
|
+
xe(
|
|
4180
4180
|
() => [O.value, n.sortable],
|
|
4181
4181
|
() => {
|
|
4182
4182
|
const a = {
|
|
@@ -4185,11 +4185,11 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4185
4185
|
title: "",
|
|
4186
4186
|
fixed: "left",
|
|
4187
4187
|
width: 60
|
|
4188
|
-
}, i = O.value.filter(({ visible: R }) => R), h = i.filter((R) => R.fixed === "left").sort((R, ce) => R.index - ce.index),
|
|
4189
|
-
|
|
4188
|
+
}, i = O.value.filter(({ visible: R }) => R), h = i.filter((R) => R.fixed === "left").sort((R, ce) => R.index - ce.index), E = i.filter((R) => !R.fixed).sort((R, ce) => R.index - ce.index), A = i.filter((R) => R.fixed === "right").sort((R, ce) => R.index - ce.index);
|
|
4189
|
+
Q.columns = [
|
|
4190
4190
|
...n.sortable ? [a] : [],
|
|
4191
4191
|
...h,
|
|
4192
|
-
...
|
|
4192
|
+
...E,
|
|
4193
4193
|
...A
|
|
4194
4194
|
];
|
|
4195
4195
|
},
|
|
@@ -4198,10 +4198,10 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4198
4198
|
immediate: !0
|
|
4199
4199
|
}
|
|
4200
4200
|
);
|
|
4201
|
-
const
|
|
4201
|
+
const et = () => new Promise((a) => {
|
|
4202
4202
|
const i = () => {
|
|
4203
|
-
var
|
|
4204
|
-
const h = (A = (
|
|
4203
|
+
var E, A;
|
|
4204
|
+
const h = (A = (E = ae.value) == null ? void 0 : E.$el) == null ? void 0 : A.querySelector(".ant-table-tbody");
|
|
4205
4205
|
if (h) {
|
|
4206
4206
|
a(h);
|
|
4207
4207
|
return;
|
|
@@ -4209,8 +4209,8 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4209
4209
|
requestAnimationFrame(i);
|
|
4210
4210
|
};
|
|
4211
4211
|
i();
|
|
4212
|
-
}),
|
|
4213
|
-
const a = await
|
|
4212
|
+
}), tt = async () => {
|
|
4213
|
+
const a = await et();
|
|
4214
4214
|
a && new Un(a, {
|
|
4215
4215
|
animation: 150,
|
|
4216
4216
|
handle: ".super-table-column-draggable-handle",
|
|
@@ -4219,39 +4219,39 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4219
4219
|
h.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", i.setDragImage(h, 0, 0);
|
|
4220
4220
|
},
|
|
4221
4221
|
onEnd: (i) => {
|
|
4222
|
-
const { oldIndex: h, newIndex:
|
|
4223
|
-
if (h === void 0 ||
|
|
4224
|
-
const A =
|
|
4225
|
-
A.splice(
|
|
4222
|
+
const { oldIndex: h, newIndex: E } = i;
|
|
4223
|
+
if (h === void 0 || E === void 0) return;
|
|
4224
|
+
const A = ge(Q.dataSource), [R] = A.splice(h, 1);
|
|
4225
|
+
A.splice(E, 0, R), r("row-sort-end", A);
|
|
4226
4226
|
}
|
|
4227
4227
|
});
|
|
4228
|
-
},
|
|
4229
|
-
$.value[a].value = i, r("form-item-change", a, i,
|
|
4228
|
+
}, X = (a, i) => {
|
|
4229
|
+
$.value[a].value = i, r("form-item-change", a, i, ge($.value[a]), nt, ot), $.value[a].quiet !== !0 && n.enableScene && q();
|
|
4230
4230
|
}, Me = () => {
|
|
4231
4231
|
for (const a in $.value)
|
|
4232
4232
|
$.value[a].value = $.value[a]._defaultValue;
|
|
4233
|
-
|
|
4233
|
+
q();
|
|
4234
4234
|
}, me = (a, i) => {
|
|
4235
|
-
|
|
4236
|
-
let h =
|
|
4237
|
-
a === de.create && (h = At(n.formItems).reduce((
|
|
4235
|
+
x.value = !1;
|
|
4236
|
+
let h = ge($.value);
|
|
4237
|
+
a === de.create && (h = At(n.formItems).reduce((E, A) => (E[A.name] = A, E), {})), p({
|
|
4238
4238
|
props: {
|
|
4239
4239
|
ref: c,
|
|
4240
4240
|
currentScene: i,
|
|
4241
4241
|
actionType: a,
|
|
4242
4242
|
formConfigMap: h,
|
|
4243
4243
|
onCreate: Se,
|
|
4244
|
-
onUpdate:
|
|
4245
|
-
onUpdateFormConfig: (
|
|
4246
|
-
|
|
4247
|
-
|
|
4244
|
+
onUpdate: he,
|
|
4245
|
+
onUpdateFormConfig: (E) => {
|
|
4246
|
+
E.forEach((A) => {
|
|
4247
|
+
je($.value, A.name, A);
|
|
4248
4248
|
});
|
|
4249
4249
|
},
|
|
4250
|
-
onSearch: (
|
|
4251
|
-
_(
|
|
4250
|
+
onSearch: (E) => {
|
|
4251
|
+
_(E);
|
|
4252
4252
|
},
|
|
4253
|
-
onFormItemChange(
|
|
4254
|
-
r("form-item-change",
|
|
4253
|
+
onFormItemChange(E, A) {
|
|
4254
|
+
r("form-item-change", E, A, ge($.value[E]), nt, ot);
|
|
4255
4255
|
},
|
|
4256
4256
|
onCancel() {
|
|
4257
4257
|
c.value = void 0;
|
|
@@ -4259,7 +4259,7 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
});
|
|
4261
4261
|
}, Vt = () => {
|
|
4262
|
-
|
|
4262
|
+
x.value = !1, f({
|
|
4263
4263
|
props: {
|
|
4264
4264
|
list: T.list,
|
|
4265
4265
|
allowCreateScene: y(Te),
|
|
@@ -4275,45 +4275,45 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4275
4275
|
await yn();
|
|
4276
4276
|
const i = T.list.find((h) => h.code === a);
|
|
4277
4277
|
r("scene-change", i);
|
|
4278
|
-
},
|
|
4278
|
+
}, yt = (a) => $.value[a], Gt = (a, i, h) => {
|
|
4279
4279
|
if (Ht.includes(i))
|
|
4280
4280
|
return Ie("setFormItem error,", `form item with prop "${a}" is readonly`);
|
|
4281
|
-
if (!
|
|
4281
|
+
if (!yt(a))
|
|
4282
4282
|
return Ie("setFormItem error,", `Cannot find form item with name "${a}"`);
|
|
4283
4283
|
if (i === "visible" && $.value[a].fixed)
|
|
4284
4284
|
return Ie("setFormItem error,", "Cannot change the visible of a fixed form item");
|
|
4285
|
-
|
|
4286
|
-
},
|
|
4285
|
+
je($.value, `${a}.${i}`, h);
|
|
4286
|
+
}, gt = (a, i) => {
|
|
4287
4287
|
if (!$.value[a])
|
|
4288
4288
|
return Ie("setFormValue error,", `Cannot find form item with name "${a}"`);
|
|
4289
4289
|
$.value[a].value = i;
|
|
4290
4290
|
}, Kt = (a) => {
|
|
4291
4291
|
Object.entries(a).forEach(([i, h]) => {
|
|
4292
|
-
|
|
4292
|
+
gt(i, h);
|
|
4293
4293
|
});
|
|
4294
4294
|
}, Qt = (a) => {
|
|
4295
4295
|
var i;
|
|
4296
4296
|
return (i = $.value[a]) == null ? void 0 : i.value;
|
|
4297
|
-
},
|
|
4297
|
+
}, bt = (a) => {
|
|
4298
4298
|
const i = {}, h = a ? ke($.value, De(a)) : $.value;
|
|
4299
|
-
for (const
|
|
4300
|
-
const A = h[
|
|
4301
|
-
A._selected && (i[
|
|
4299
|
+
for (const E in h) {
|
|
4300
|
+
const A = h[E];
|
|
4301
|
+
A._selected && (i[E] = ge(A.value));
|
|
4302
4302
|
}
|
|
4303
4303
|
return i;
|
|
4304
|
-
}, Xt = () =>
|
|
4305
|
-
|
|
4304
|
+
}, Xt = () => Q.dataSource, Zt = (a) => {
|
|
4305
|
+
Q.dataSource = a;
|
|
4306
4306
|
}, Jt = (a, i) => {
|
|
4307
|
-
|
|
4308
|
-
},
|
|
4307
|
+
Q.dataSource[a] = i;
|
|
4308
|
+
}, nt = {
|
|
4309
4309
|
getFormItem(a) {
|
|
4310
|
-
return c.value ? c.value.getFormItem(a) :
|
|
4310
|
+
return c.value ? c.value.getFormItem(a) : yt(a);
|
|
4311
4311
|
},
|
|
4312
4312
|
setFormItem(a, i, h) {
|
|
4313
4313
|
c.value ? c.value.setFormItem(a, i, h) : Gt(a, i, h);
|
|
4314
4314
|
},
|
|
4315
4315
|
getFormValues(a) {
|
|
4316
|
-
return c.value ? c.value.getFormValues(a) :
|
|
4316
|
+
return c.value ? c.value.getFormValues(a) : bt(a);
|
|
4317
4317
|
},
|
|
4318
4318
|
setFormValues(a) {
|
|
4319
4319
|
c.value ? c.value.setFormValues(a) : Kt(a);
|
|
@@ -4322,24 +4322,24 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4322
4322
|
return c.value ? c.value.getFormValue(a) : Qt(a);
|
|
4323
4323
|
},
|
|
4324
4324
|
setFormValue(a, i) {
|
|
4325
|
-
c.value ? c.value.setFormValue(a, i) :
|
|
4325
|
+
c.value ? c.value.setFormValue(a, i) : gt(a, i);
|
|
4326
4326
|
}
|
|
4327
|
-
},
|
|
4327
|
+
}, ot = {
|
|
4328
4328
|
getTableData: Xt,
|
|
4329
4329
|
setTableData: Zt,
|
|
4330
4330
|
setTableDataItem: Jt,
|
|
4331
|
-
onRefresh:
|
|
4331
|
+
onRefresh: q
|
|
4332
4332
|
}, en = {
|
|
4333
|
-
...tt,
|
|
4334
4333
|
...nt,
|
|
4335
|
-
|
|
4334
|
+
...ot,
|
|
4335
|
+
onRefresh: q,
|
|
4336
4336
|
onResetForm: Me,
|
|
4337
4337
|
isInitialized: s
|
|
4338
4338
|
};
|
|
4339
|
-
e(en),
|
|
4339
|
+
e(en), xe(() => [...n.refreshDeps], q, {
|
|
4340
4340
|
deep: !0,
|
|
4341
4341
|
immediate: !0
|
|
4342
|
-
}),
|
|
4342
|
+
}), xe(
|
|
4343
4343
|
() => n.enableScene,
|
|
4344
4344
|
(a) => {
|
|
4345
4345
|
if (a)
|
|
@@ -4356,10 +4356,10 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4356
4356
|
{
|
|
4357
4357
|
immediate: !0
|
|
4358
4358
|
}
|
|
4359
|
-
),
|
|
4359
|
+
), xe(
|
|
4360
4360
|
() => n.sortable,
|
|
4361
4361
|
(a) => {
|
|
4362
|
-
a &&
|
|
4362
|
+
a && tt();
|
|
4363
4363
|
},
|
|
4364
4364
|
{
|
|
4365
4365
|
immediate: !0
|
|
@@ -4373,81 +4373,81 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4373
4373
|
}
|
|
4374
4374
|
};
|
|
4375
4375
|
return (a, i) => {
|
|
4376
|
-
const h = L("a-form-item"),
|
|
4377
|
-
return k(),
|
|
4376
|
+
const h = L("a-form-item"), E = L("a-button"), A = L("a-select"), R = L("a-divider"), ce = L("a-space"), rt = L("a-form"), qe = L("a-typography-text"), nn = L("a-tooltip"), on = L("a-table"), rn = L("a-config-provider");
|
|
4377
|
+
return k(), j(rn, {
|
|
4378
4378
|
locale: y(zt),
|
|
4379
4379
|
theme: tn
|
|
4380
4380
|
}, {
|
|
4381
4381
|
default: C(() => [
|
|
4382
4382
|
z("div", {
|
|
4383
|
-
class:
|
|
4383
|
+
class: g([a.$style.superTable, "antd-super-table"]),
|
|
4384
4384
|
style: ne(t.wrapperStyle)
|
|
4385
4385
|
}, [
|
|
4386
4386
|
z("div", {
|
|
4387
|
-
class:
|
|
4387
|
+
class: g(a.$style.querySection)
|
|
4388
4388
|
}, [
|
|
4389
|
-
t.enableScene ? (k(),
|
|
4389
|
+
t.enableScene ? (k(), H("div", {
|
|
4390
4390
|
key: 0,
|
|
4391
|
-
class:
|
|
4391
|
+
class: g(a.$style.sceneHeader)
|
|
4392
4392
|
}, [
|
|
4393
4393
|
z("div", {
|
|
4394
|
-
class:
|
|
4394
|
+
class: g(a.$style.sceneFormWrapper)
|
|
4395
4395
|
}, [
|
|
4396
|
-
|
|
4396
|
+
S(rt, {
|
|
4397
4397
|
layout: "inline",
|
|
4398
|
-
class:
|
|
4398
|
+
class: g(a.$style.sceneForm)
|
|
4399
4399
|
}, {
|
|
4400
4400
|
default: C(() => [
|
|
4401
|
-
a.$slots.sceneAddonBefore ? (k(),
|
|
4401
|
+
a.$slots.sceneAddonBefore ? (k(), j(h, { key: 0 }, {
|
|
4402
4402
|
default: C(() => [
|
|
4403
|
-
|
|
4403
|
+
fe(a.$slots, "sceneAddonBefore")
|
|
4404
4404
|
]),
|
|
4405
4405
|
_: 3
|
|
4406
|
-
})) :
|
|
4407
|
-
|
|
4406
|
+
})) : N("", !0),
|
|
4407
|
+
S(h, { label: "场景选择" }, {
|
|
4408
4408
|
default: C(() => [
|
|
4409
|
-
|
|
4409
|
+
S(A, {
|
|
4410
4410
|
value: y(d).sceneCode,
|
|
4411
|
-
"onUpdate:value": i[1] || (i[1] = (
|
|
4412
|
-
class:
|
|
4411
|
+
"onUpdate:value": i[1] || (i[1] = (K) => y(d).sceneCode = K),
|
|
4412
|
+
class: g(a.$style.sceneSelect),
|
|
4413
4413
|
placeholder: "请选择",
|
|
4414
4414
|
"allow-clear": "",
|
|
4415
4415
|
"show-search": "",
|
|
4416
4416
|
"option-filter-prop": "name",
|
|
4417
|
-
options: [...
|
|
4417
|
+
options: [...J.value, ...T.list],
|
|
4418
4418
|
"field-names": { value: "code", label: "name" },
|
|
4419
|
-
open:
|
|
4419
|
+
open: x.value,
|
|
4420
4420
|
loading: T.loading,
|
|
4421
4421
|
onChange: Wt,
|
|
4422
|
-
onDropdownVisibleChange: i[2] || (i[2] = (
|
|
4422
|
+
onDropdownVisibleChange: i[2] || (i[2] = (K) => x.value = K)
|
|
4423
4423
|
}, {
|
|
4424
|
-
dropdownRender: C(({ menuNode:
|
|
4425
|
-
|
|
4424
|
+
dropdownRender: C(({ menuNode: K }) => [
|
|
4425
|
+
S(y(Mo), { vnodes: K }, null, 8, ["vnodes"]),
|
|
4426
4426
|
z("div", {
|
|
4427
|
-
class:
|
|
4427
|
+
class: g(a.$style.sceneOpBtnWrapper)
|
|
4428
4428
|
}, [
|
|
4429
|
-
E
|
|
4429
|
+
S(E, {
|
|
4430
4430
|
type: "link",
|
|
4431
4431
|
block: "",
|
|
4432
4432
|
icon: W(y(Tn)),
|
|
4433
|
-
class:
|
|
4433
|
+
class: g(a.$style.sceneOpBtn),
|
|
4434
4434
|
disabled: !Te.value,
|
|
4435
|
-
onClick: i[0] || (i[0] = (
|
|
4435
|
+
onClick: i[0] || (i[0] = (Ye) => me(y(de).create))
|
|
4436
4436
|
}, {
|
|
4437
4437
|
default: C(() => i[5] || (i[5] = [
|
|
4438
|
-
|
|
4438
|
+
ee(" 新建场景 ")
|
|
4439
4439
|
])),
|
|
4440
4440
|
_: 1
|
|
4441
4441
|
}, 8, ["icon", "class", "disabled"]),
|
|
4442
|
-
E
|
|
4442
|
+
S(E, {
|
|
4443
4443
|
type: "link",
|
|
4444
4444
|
block: "",
|
|
4445
4445
|
icon: W(y(Ln)),
|
|
4446
|
-
class:
|
|
4446
|
+
class: g(a.$style.sceneOpBtn),
|
|
4447
4447
|
onClick: Vt
|
|
4448
4448
|
}, {
|
|
4449
4449
|
default: C(() => i[6] || (i[6] = [
|
|
4450
|
-
|
|
4450
|
+
ee(" 场景管理 ")
|
|
4451
4451
|
])),
|
|
4452
4452
|
_: 1
|
|
4453
4453
|
}, 8, ["icon", "class"])
|
|
@@ -4458,164 +4458,174 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4458
4458
|
]),
|
|
4459
4459
|
_: 1
|
|
4460
4460
|
}),
|
|
4461
|
-
|
|
4461
|
+
S(h, null, {
|
|
4462
4462
|
default: C(() => [
|
|
4463
|
-
|
|
4463
|
+
S(ce, null, {
|
|
4464
4464
|
split: C(() => [
|
|
4465
|
-
|
|
4465
|
+
S(R, { type: "vertical" })
|
|
4466
4466
|
]),
|
|
4467
4467
|
default: C(() => [
|
|
4468
|
-
E
|
|
4468
|
+
S(E, {
|
|
4469
4469
|
type: "primary",
|
|
4470
4470
|
icon: W(y(Dn)),
|
|
4471
|
-
onClick: i[3] || (i[3] = (
|
|
4471
|
+
onClick: i[3] || (i[3] = (K) => me(y(de).search))
|
|
4472
4472
|
}, {
|
|
4473
4473
|
default: C(() => i[7] || (i[7] = [
|
|
4474
|
-
|
|
4474
|
+
ee(" 高级筛选 ")
|
|
4475
4475
|
])),
|
|
4476
4476
|
_: 1
|
|
4477
4477
|
}, 8, ["icon"]),
|
|
4478
|
-
t.showRefreshButton ? (k(),
|
|
4478
|
+
t.showRefreshButton ? (k(), j(E, {
|
|
4479
4479
|
key: 0,
|
|
4480
4480
|
type: "primary",
|
|
4481
4481
|
ghost: "",
|
|
4482
4482
|
icon: W(y(Fn)),
|
|
4483
|
-
loading:
|
|
4484
|
-
onClick:
|
|
4483
|
+
loading: Q.loading,
|
|
4484
|
+
onClick: q
|
|
4485
4485
|
}, {
|
|
4486
4486
|
default: C(() => i[8] || (i[8] = [
|
|
4487
|
-
|
|
4487
|
+
ee(" 刷新 ")
|
|
4488
4488
|
])),
|
|
4489
4489
|
_: 1
|
|
4490
|
-
}, 8, ["icon", "loading"])) :
|
|
4490
|
+
}, 8, ["icon", "loading"])) : N("", !0)
|
|
4491
4491
|
]),
|
|
4492
4492
|
_: 1
|
|
4493
4493
|
})
|
|
4494
4494
|
]),
|
|
4495
4495
|
_: 1
|
|
4496
4496
|
}),
|
|
4497
|
-
a.$slots.sceneAddonAfter ? (k(),
|
|
4497
|
+
a.$slots.sceneAddonAfter ? (k(), j(h, { key: 1 }, {
|
|
4498
4498
|
default: C(() => [
|
|
4499
|
-
|
|
4499
|
+
fe(a.$slots, "sceneAddonAfter")
|
|
4500
4500
|
]),
|
|
4501
4501
|
_: 3
|
|
4502
|
-
})) :
|
|
4502
|
+
})) : N("", !0)
|
|
4503
4503
|
]),
|
|
4504
4504
|
_: 3
|
|
4505
4505
|
}, 8, ["class"])
|
|
4506
4506
|
], 2),
|
|
4507
|
-
a.$slots.extra ? (k(),
|
|
4507
|
+
a.$slots.extra ? (k(), H("div", {
|
|
4508
4508
|
key: 0,
|
|
4509
|
-
class:
|
|
4509
|
+
class: g(a.$style.sceneExtra)
|
|
4510
4510
|
}, [
|
|
4511
|
-
|
|
4512
|
-
], 2)) :
|
|
4513
|
-
], 2)) :
|
|
4514
|
-
|
|
4511
|
+
fe(a.$slots, "extra")
|
|
4512
|
+
], 2)) : N("", !0)
|
|
4513
|
+
], 2)) : N("", !0),
|
|
4514
|
+
S(oa, {
|
|
4515
4515
|
"form-config-map": $.value,
|
|
4516
4516
|
"form-item-col-span": t.formItemColSpan,
|
|
4517
4517
|
"enable-scene": t.enableScene,
|
|
4518
4518
|
"show-reset-button": t.showResetButton && !t.enableScene,
|
|
4519
4519
|
"show-expand-button": t.showExpandButton,
|
|
4520
|
-
loading: !!
|
|
4521
|
-
"super-table-i-d": y(
|
|
4522
|
-
onFormItemChange:
|
|
4523
|
-
onSearch:
|
|
4520
|
+
loading: !!Q.loading,
|
|
4521
|
+
"super-table-i-d": y(b),
|
|
4522
|
+
onFormItemChange: X,
|
|
4523
|
+
onSearch: q,
|
|
4524
4524
|
onReset: Me
|
|
4525
4525
|
}, null, 8, ["form-config-map", "form-item-col-span", "enable-scene", "show-reset-button", "show-expand-button", "loading", "super-table-i-d"])
|
|
4526
4526
|
], 2),
|
|
4527
4527
|
z("div", {
|
|
4528
|
-
class:
|
|
4528
|
+
class: g(a.$style.tableWrapper),
|
|
4529
4529
|
style: ne(t.tableWrapperStyle)
|
|
4530
4530
|
}, [
|
|
4531
|
-
a.$slots.tableHead || a.$slots.toolBarExtra ? (k(),
|
|
4531
|
+
a.$slots.tableHead || a.$slots.toolBarExtra ? (k(), H("div", {
|
|
4532
4532
|
key: 0,
|
|
4533
|
-
class:
|
|
4533
|
+
class: g(a.$style.toolbar)
|
|
4534
4534
|
}, [
|
|
4535
4535
|
z("div", {
|
|
4536
|
-
class:
|
|
4536
|
+
class: g(a.$style.tableHeadWrapper)
|
|
4537
4537
|
}, [
|
|
4538
|
-
|
|
4538
|
+
fe(a.$slots, "tableHead")
|
|
4539
4539
|
], 2),
|
|
4540
|
-
a.$slots.toolBarExtra ? (k(),
|
|
4540
|
+
a.$slots.toolBarExtra ? (k(), H("div", {
|
|
4541
4541
|
key: 0,
|
|
4542
|
-
class:
|
|
4542
|
+
class: g(a.$style.actionBtns)
|
|
4543
4543
|
}, [
|
|
4544
|
-
|
|
4545
|
-
], 2)) :
|
|
4546
|
-
], 2)) :
|
|
4544
|
+
fe(a.$slots, "toolBarExtra")
|
|
4545
|
+
], 2)) : N("", !0)
|
|
4546
|
+
], 2)) : N("", !0),
|
|
4547
4547
|
z("div", {
|
|
4548
|
-
class:
|
|
4548
|
+
class: g(a.$style.tableContent)
|
|
4549
4549
|
}, [
|
|
4550
|
-
t.enableTableConfig ? (k(),
|
|
4550
|
+
t.enableTableConfig ? (k(), j(er, {
|
|
4551
4551
|
key: 0,
|
|
4552
4552
|
columns: O.value,
|
|
4553
|
-
onChange:
|
|
4554
|
-
}, null, 8, ["columns"])) :
|
|
4555
|
-
|
|
4553
|
+
onChange: Je
|
|
4554
|
+
}, null, 8, ["columns"])) : N("", !0),
|
|
4555
|
+
S(on, le({
|
|
4556
4556
|
ref_key: "tableRef",
|
|
4557
4557
|
ref: ae
|
|
4558
4558
|
}, {
|
|
4559
|
-
...
|
|
4559
|
+
...Q,
|
|
4560
4560
|
dataSource: ze.value,
|
|
4561
|
-
onChange:
|
|
4561
|
+
onChange: te,
|
|
4562
4562
|
onExpand: se,
|
|
4563
|
-
onExpandedRowsChange:
|
|
4563
|
+
onExpandedRowsChange: ye
|
|
4564
4564
|
}, { onResizeColumn: I }), hn({
|
|
4565
|
-
headerCell: C(({ column:
|
|
4566
|
-
|
|
4565
|
+
headerCell: C(({ column: K }) => [
|
|
4566
|
+
K.class !== "ant-table-row-expand-icon-cell" ? (k(), H("div", {
|
|
4567
4567
|
key: 0,
|
|
4568
|
-
class:
|
|
4568
|
+
class: g(a.$style.headerCell)
|
|
4569
4569
|
}, [
|
|
4570
|
-
|
|
4571
|
-
ellipsis: { tooltip:
|
|
4572
|
-
content:
|
|
4573
|
-
class:
|
|
4570
|
+
S(qe, {
|
|
4571
|
+
ellipsis: { tooltip: K.title },
|
|
4572
|
+
content: K.title,
|
|
4573
|
+
class: g(a.$style.headerCellText)
|
|
4574
4574
|
}, null, 8, ["ellipsis", "content", "class"]),
|
|
4575
|
-
|
|
4575
|
+
K.titleTooltip ? (k(), j(nn, { key: 0 }, {
|
|
4576
4576
|
title: C(() => [
|
|
4577
4577
|
z("span", {
|
|
4578
|
-
innerHTML:
|
|
4578
|
+
innerHTML: K.titleTooltip
|
|
4579
4579
|
}, null, 8, sa)
|
|
4580
4580
|
]),
|
|
4581
4581
|
default: C(() => [
|
|
4582
|
-
|
|
4582
|
+
S(y(Mn), {
|
|
4583
4583
|
style: ne({ color: y(re).colorTextQuaternary }),
|
|
4584
|
-
class:
|
|
4584
|
+
class: g(a.$style.headerCellTooltipIcon)
|
|
4585
4585
|
}, null, 8, ["style", "class"])
|
|
4586
4586
|
]),
|
|
4587
4587
|
_: 2
|
|
4588
|
-
}, 1024)) :
|
|
4589
|
-
], 2)) :
|
|
4588
|
+
}, 1024)) : N("", !0)
|
|
4589
|
+
], 2)) : N("", !0)
|
|
4590
4590
|
]),
|
|
4591
|
-
bodyCell: C(({ column:
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4591
|
+
bodyCell: C(({ column: K, record: Ye, index: at }) => [
|
|
4592
|
+
K != null && K.slotName && a.$slots[K.slotName] ? (k(), H("div", {
|
|
4593
|
+
key: 0,
|
|
4594
|
+
class: g(a.$style.customSlotCell)
|
|
4595
|
+
}, [
|
|
4596
|
+
fe(a.$slots, K.slotName, {
|
|
4597
|
+
column: K,
|
|
4598
|
+
record: Ye,
|
|
4599
|
+
index: at
|
|
4600
|
+
})
|
|
4601
|
+
], 2)) : Mt([He(Ye), K == null ? void 0 : K.key, at], () => (k(), j(Fo, {
|
|
4602
|
+
key: 1,
|
|
4603
|
+
column: K,
|
|
4604
|
+
record: Ye,
|
|
4605
|
+
index: at,
|
|
4596
4606
|
hasRouter: l.value
|
|
4597
|
-
}, null, 8, ["column", "record", "index", "hasRouter"]), i, 4)
|
|
4607
|
+
}, null, 8, ["column", "record", "index", "hasRouter"])), i, 4)
|
|
4598
4608
|
]),
|
|
4599
4609
|
default: C(() => [
|
|
4600
|
-
a.$slots.expandColumnTitle ?
|
|
4610
|
+
a.$slots.expandColumnTitle ? fe(a.$slots, "expandColumnTitle", { key: 0 }) : N("", !0)
|
|
4601
4611
|
]),
|
|
4602
4612
|
_: 2
|
|
4603
4613
|
}, [
|
|
4604
4614
|
a.$slots.expandedRowRender ? {
|
|
4605
4615
|
name: "expandedRowRender",
|
|
4606
|
-
fn: C(({ record:
|
|
4607
|
-
|
|
4616
|
+
fn: C(({ record: K }) => [
|
|
4617
|
+
fe(a.$slots, "expandedRowRender", { record: K })
|
|
4608
4618
|
]),
|
|
4609
4619
|
key: "0"
|
|
4610
4620
|
} : void 0
|
|
4611
4621
|
]), 1040)
|
|
4612
4622
|
], 2),
|
|
4613
|
-
a.$slots.tableFoot ? (k(),
|
|
4623
|
+
a.$slots.tableFoot ? (k(), H("div", {
|
|
4614
4624
|
key: 1,
|
|
4615
|
-
class:
|
|
4625
|
+
class: g(a.$style.tableFootWrapper)
|
|
4616
4626
|
}, [
|
|
4617
|
-
|
|
4618
|
-
], 2)) :
|
|
4627
|
+
fe(a.$slots, "tableFoot")
|
|
4628
|
+
], 2)) : N("", !0)
|
|
4619
4629
|
], 6)
|
|
4620
4630
|
], 6)
|
|
4621
4631
|
]),
|
|
@@ -4623,7 +4633,7 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4623
4633
|
}, 8, ["locale"]);
|
|
4624
4634
|
};
|
|
4625
4635
|
}
|
|
4626
|
-
}), ia = "
|
|
4636
|
+
}), ia = "_superTable_1wr7z_1", ca = "_querySection_1wr7z_1", ua = "_sceneHeader_1wr7z_1", da = "_sceneFormWrapper_1wr7z_7", pa = "_sceneForm_1wr7z_7", ma = "_sceneSelect_1wr7z_13", fa = "_sceneExtra_1wr7z_16", ha = "_tableWrapper_1wr7z_19", ya = "_toolbar_1wr7z_23", ga = "_actionBtns_1wr7z_30", ba = "_tableHeadWrapper_1wr7z_35", va = "_tableContent_1wr7z_38", Ca = "_headerCell_1wr7z_41", _a = "_headerCellText_1wr7z_46", Ea = "_headerCellTooltipIcon_1wr7z_49", Sa = "_sceneOpBtnWrapper_1wr7z_53", wa = "_sceneOpBtn_1wr7z_53", xa = "_customSlotCell_1wr7z_61", $a = {
|
|
4627
4637
|
superTable: ia,
|
|
4628
4638
|
querySection: ca,
|
|
4629
4639
|
sceneHeader: ua,
|
|
@@ -4640,16 +4650,17 @@ const Ve = 2e3, aa = (t) => {
|
|
|
4640
4650
|
headerCellText: _a,
|
|
4641
4651
|
headerCellTooltipIcon: Ea,
|
|
4642
4652
|
sceneOpBtnWrapper: Sa,
|
|
4643
|
-
sceneOpBtn:
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4653
|
+
sceneOpBtn: wa,
|
|
4654
|
+
customSlotCell: xa
|
|
4655
|
+
}, ka = {
|
|
4656
|
+
$style: $a
|
|
4657
|
+
}, Ft = /* @__PURE__ */ Ce(la, [["__cssModules", ka]]);
|
|
4647
4658
|
Ft.install = (t) => {
|
|
4648
4659
|
t.component("SuperTable", Ft);
|
|
4649
4660
|
};
|
|
4650
4661
|
export {
|
|
4651
4662
|
cr as DynamicList,
|
|
4652
4663
|
G as SuperTableColumnTypeEnum,
|
|
4653
|
-
|
|
4664
|
+
Z as SuperTableFormItemTypeEnum,
|
|
4654
4665
|
Ft as default
|
|
4655
4666
|
};
|