hy-dispatch-ui-v3 0.2.62 → 0.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tailwind.css +4 -5
- package/es/api/device.mjs +1 -0
- package/es/api/index.mjs +1 -0
- package/es/api/sypct.mjs +1 -0
- package/es/api/task.mjs +1 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
- package/es/components/hyAudioPlayer/index.mjs +1 -0
- package/es/components/hyAudioPlayer/js/index.mjs +5 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +4 -0
- package/es/components/hyBatchUploadDialog/index.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +3 -2
- package/es/components/hyButton/index.mjs +1 -0
- package/es/components/hyButton/style/button.scss +9 -2
- package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
- package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
- package/es/components/hyConfirmDialog/index.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +5 -2
- package/es/components/hyCutter/index.mjs +1 -0
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyDatePicker/index.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +99 -28
- package/es/components/hyDialog/index.mjs +1 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +5 -1
- package/es/components/hyForm/form.vue.mjs +9 -3
- package/es/components/hyForm/index.mjs +1 -0
- package/es/components/hyForm/js/index.mjs +3 -1
- package/es/components/hyForm/js/useAppForm.mjs +4 -2
- package/es/components/hyIcon/icon.vue.mjs +2 -1
- package/es/components/hyIcon/index.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyIconBox/index.mjs +1 -0
- package/es/components/hyInput/index.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +3 -1
- package/es/components/hyInput/inputSearch.vue.mjs +2 -1
- package/es/components/hyLoading/index.mjs +41 -0
- package/es/components/hyMap/index.mjs +1 -0
- package/es/components/hyMap/js/index.mjs +82 -0
- package/es/components/hyMap/map.vue.mjs +1 -0
- package/es/components/hyMenu/index.mjs +1 -0
- package/es/components/hyMenu/menu.vue.mjs +4 -0
- package/es/components/hyNoPermissions/index.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
- package/es/components/hyNoPermissionsMap/index.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
- package/es/components/hyOrgCascader/index.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +2 -0
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
- package/es/components/hyRadioGroup/index.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
- package/es/components/hySearch/index.mjs +1 -0
- package/es/components/hySearch/js/index.mjs +4 -2
- package/es/components/hySearch/js/useAppSearch.mjs +4 -2
- package/es/components/hySearch/search.vue.mjs +3 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +27 -45
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +80 -28
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +9 -5
- package/es/components/hyTable/table.vue.mjs +16 -8
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +8 -7
- package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +36 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
- package/es/components/hyTimePicker/index.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
- package/es/components/hyTooltip/index.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
- package/es/components/hyTree/index.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +49 -14
- package/es/components/hyTree/tree.vue.mjs +13 -6
- package/es/components/hyUserAvatar/index.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
- package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/index.mjs +1 -0
- package/es/components/hyVideoPlayer/js/index.mjs +7 -2
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
- package/es/components/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +1 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +6 -0
- package/es/locale/en.mjs +1 -2
- package/es/locale/zh_CN.mjs +1 -2
- package/es/make-installer.mjs +1 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +2 -1
- package/es/utils/handler.mjs +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/input.mjs +1 -0
- package/es/utils/is.mjs +1 -0
- package/es/utils/map/hook/bigMap.mjs +3 -2
- package/es/utils/map/hook/gaode.mjs +2 -2
- package/es/utils/map/hook/leafletjs.mjs +7 -1
- package/es/utils/map/index.mjs +12 -0
- package/es/utils/map/js/webgis.mjs +4 -1
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/sypct.js +1 -0
- package/lib/api/task.js +1 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +2 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
- package/lib/components/hyAudioPlayer/index.js +1 -0
- package/lib/components/hyAudioPlayer/js/index.js +5 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +4 -0
- package/lib/components/hyBatchUploadDialog/index.js +1 -0
- package/lib/components/hyButton/button.vue.js +2 -1
- package/lib/components/hyButton/index.js +1 -0
- package/lib/components/hyButton/style/button.scss +9 -2
- package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
- package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
- package/lib/components/hyConfirmDialog/index.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +3 -0
- package/lib/components/hyCutter/index.js +1 -0
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyDatePicker/index.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +97 -26
- package/lib/components/hyDialog/index.js +1 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
- package/lib/components/hyForm/cpns/locationSelect.vue.js +5 -1
- package/lib/components/hyForm/form.vue.js +9 -3
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/index.js +3 -1
- package/lib/components/hyForm/js/useAppForm.js +3 -1
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIcon/index.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyIconBox/index.js +1 -0
- package/lib/components/hyInput/index.js +1 -0
- package/lib/components/hyInput/input.vue.js +2 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyLoading/index.js +47 -0
- package/lib/components/hyMap/index.js +1 -0
- package/lib/components/hyMap/js/index.js +82 -0
- package/lib/components/hyMap/map.vue.js +1 -0
- package/lib/components/hyMenu/index.js +1 -0
- package/lib/components/hyMenu/menu.vue.js +4 -0
- package/lib/components/hyNoPermissions/index.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
- package/lib/components/hyNoPermissionsMap/index.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
- package/lib/components/hyOrgCascader/index.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +2 -0
- package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
- package/lib/components/hyRadioGroup/index.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +2 -0
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hySearch/js/index.js +3 -1
- package/lib/components/hySearch/js/useAppSearch.js +4 -2
- package/lib/components/hySearch/search.vue.js +3 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +25 -43
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +79 -27
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +8 -4
- package/lib/components/hyTable/table.vue.js +15 -7
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +7 -6
- package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +36 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +12 -10
- package/lib/components/hyTimePicker/index.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
- package/lib/components/hyTooltip/index.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +2 -0
- package/lib/components/hyTree/index.js +1 -0
- package/lib/components/hyTree/js/index.js +48 -13
- package/lib/components/hyTree/tree.vue.js +13 -6
- package/lib/components/hyUserAvatar/index.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
- package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
- package/lib/components/hyVideoPlayer/index.js +1 -0
- package/lib/components/hyVideoPlayer/js/index.js +7 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
- package/lib/components/index.js +56 -53
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +70 -61
- package/lib/locale/en.js +1 -2
- package/lib/locale/zh_CN.js +1 -2
- package/lib/make-installer.js +1 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +1 -0
- package/lib/utils/handler.js +2 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/input.js +1 -0
- package/lib/utils/is.js +1 -0
- package/lib/utils/map/hook/bigMap.js +3 -2
- package/lib/utils/map/hook/gaode.js +1 -1
- package/lib/utils/map/hook/leafletjs.js +7 -1
- package/lib/utils/map/index.js +12 -0
- package/lib/utils/map/js/webgis.js +4 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../hooks/index.js');
|
|
7
|
+
require('../index.js');
|
|
6
8
|
var useLocale = require('../../hooks/useLocale.js');
|
|
7
9
|
var index = require('../hyIcon/index.js');
|
|
8
10
|
|
|
@@ -20,6 +22,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
20
22
|
},
|
|
21
23
|
emits: [],
|
|
22
24
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emits = __emit;
|
|
23
27
|
const { t } = useLocale.useLocale();
|
|
24
28
|
__expose({});
|
|
25
29
|
return (_ctx, _cache) => {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var orgCascader = require('./orgCascader.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyOrgCascader = handler.withInstall(orgCascader.default);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var Axios = require('axios');
|
|
4
4
|
var vue = require('vue');
|
|
5
|
+
require('../../../hooks/index.js');
|
|
5
6
|
var useApi = require('../../../hooks/useApi.js');
|
|
6
7
|
|
|
7
8
|
let throttleFn = null;
|
|
@@ -33,6 +34,7 @@ function getOrgTreeSimple() {
|
|
|
33
34
|
function orgTreeDatahandler(data) {
|
|
34
35
|
const cascaderMap = /* @__PURE__ */ new Map();
|
|
35
36
|
const handler = (list = [], parentIdsList = []) => {
|
|
37
|
+
;
|
|
36
38
|
(list || []).forEach((item) => {
|
|
37
39
|
item.label = item.companyName;
|
|
38
40
|
item.value = item.id;
|
|
@@ -4,9 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../hooks/index.js');
|
|
7
8
|
var index = require('./js/index.js');
|
|
8
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
9
9
|
var useSubscribe = require('../../hooks/useSubscribe.js');
|
|
10
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
10
11
|
|
|
11
12
|
import "./style/orgCascader.scss";
|
|
12
13
|
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
86
86
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
87
87
|
key: index,
|
|
88
88
|
class: "w-0 flex-1 flex items-center justify-center text-main clickBox",
|
|
89
|
-
onClick: ($event) => switchSelect(item)
|
|
89
|
+
onClick: ($event) => switchSelect(item, index, $event)
|
|
90
90
|
}, [
|
|
91
91
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
92
92
|
item,
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../../utils/index.js');
|
|
8
|
+
require('../../index.js');
|
|
7
9
|
var index = require('../js/index.js');
|
|
8
10
|
var is = require('../../../utils/is.js');
|
|
9
11
|
var form = require('../../../utils/form.js');
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var dayjs = require('dayjs');
|
|
4
4
|
var vue = require('vue');
|
|
5
|
-
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
6
7
|
var is = require('../../../utils/is.js');
|
|
8
|
+
var useResizeObserver = require('../../../hooks/useResizeObserver.js');
|
|
7
9
|
|
|
8
10
|
function columnItemStyle(props, column) {
|
|
9
11
|
const { width } = column;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
require('../../../hooks/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
6
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
7
7
|
var is = require('../../../utils/is.js');
|
|
8
|
+
var form = require('../../../utils/form.js');
|
|
9
|
+
var handler = require('../../../utils/handler.js');
|
|
8
10
|
|
|
9
11
|
const genColumnWidth = (config) => {
|
|
10
12
|
let { width, inputWidth, type, attrs } = config || {};
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../../hooks/index.js');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
require('../index.js');
|
|
8
11
|
var searchItem = require('./cpns/searchItem.vue.js');
|
|
9
12
|
var index = require('./js/index.js');
|
|
10
13
|
var useAppSearch = require('./js/useAppSearch.js');
|
|
@@ -6,13 +6,16 @@ var vue = require('vue');
|
|
|
6
6
|
var Sortable = require('sortablejs');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
8
|
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
+
require('../../../hooks/index.js');
|
|
10
|
+
require('../../../utils/index.js');
|
|
11
|
+
require('../../index.js');
|
|
9
12
|
var index = require('../js/index.js');
|
|
10
13
|
var columnSelectItem = require('./columnSelectItem.vue.js');
|
|
11
14
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
15
|
+
var is = require('../../../utils/is.js');
|
|
12
16
|
var index$1 = require('../../hyIcon/index.js');
|
|
13
17
|
var index$2 = require('../../hyTooltip/index.js');
|
|
14
18
|
var index$3 = require('../../hyButton/index.js');
|
|
15
|
-
var is = require('../../../utils/is.js');
|
|
16
19
|
|
|
17
20
|
const _sfc_main = {
|
|
18
21
|
__name: "columnSelect",
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../../../hooks/index.js');
|
|
8
9
|
var index = require('../js/index.js');
|
|
10
|
+
require('../../index.js');
|
|
9
11
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
10
12
|
var index$1 = require('../../hyTooltip/index.js');
|
|
11
13
|
|
|
@@ -27,6 +29,7 @@ const _sfc_main = {
|
|
|
27
29
|
},
|
|
28
30
|
emits: ["checked"],
|
|
29
31
|
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
30
33
|
const emits = __emit;
|
|
31
34
|
const { t } = useLocale.useLocale();
|
|
32
35
|
function onClickHandler(column) {
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../../index.js');
|
|
9
|
+
require('../../../utils/index.js');
|
|
10
|
+
require('../js/index.js');
|
|
8
11
|
|
|
9
12
|
const _sfc_main = {
|
|
10
13
|
__name: "headerItem",
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../../index.js');
|
|
9
|
+
require('../../../hooks/index.js');
|
|
10
|
+
require('../../../utils/index.js');
|
|
8
11
|
var index = require('../js/index.js');
|
|
9
12
|
var headerItem = require('./headerItem.vue.js');
|
|
10
13
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
@@ -14,7 +17,7 @@ var index$2 = require('../../hyIcon/index.js');
|
|
|
14
17
|
|
|
15
18
|
const _sfc_main = {
|
|
16
19
|
__name: "virtualTable",
|
|
17
|
-
props: {
|
|
20
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
18
21
|
rowKey: {
|
|
19
22
|
type: [String, Number],
|
|
20
23
|
default: "id"
|
|
@@ -63,12 +66,23 @@ const _sfc_main = {
|
|
|
63
66
|
type: String,
|
|
64
67
|
default: "default"
|
|
65
68
|
// deafult-默认 accordion-手风琴
|
|
69
|
+
},
|
|
70
|
+
expandRowKeyMap: {
|
|
71
|
+
type: Map,
|
|
72
|
+
default: () => /* @__PURE__ */ new Map()
|
|
66
73
|
}
|
|
67
|
-
},
|
|
68
|
-
|
|
74
|
+
}, {
|
|
75
|
+
"expandedRowKeys": {
|
|
76
|
+
type: Array,
|
|
77
|
+
default: () => []
|
|
78
|
+
},
|
|
79
|
+
"expandedRowKeysModifiers": {}
|
|
80
|
+
}),
|
|
81
|
+
emits: /* @__PURE__ */ vue.mergeModels(["search", "select", "select-all", "expand-click"], ["update:expandedRowKeys"]),
|
|
69
82
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
70
83
|
const props = __props;
|
|
71
84
|
const emits = __emit;
|
|
85
|
+
const expandedRowKeys = vue.useModel(__props, "expandedRowKeys");
|
|
72
86
|
const { t } = useLocale.useLocale();
|
|
73
87
|
const avgWidth = vue.computed(() => {
|
|
74
88
|
const { total, totalWidth } = props.columns.reduce(
|
|
@@ -185,6 +199,7 @@ const _sfc_main = {
|
|
|
185
199
|
}
|
|
186
200
|
const checkedNodeMap = new Map(selectedMap.value);
|
|
187
201
|
const isChecked = is.isBoolean(selected) ? selected : !checkedNodeMap.has(key);
|
|
202
|
+
const checkStrictly = false;
|
|
188
203
|
const toggle = (node, checked) => {
|
|
189
204
|
const nodeKey = getRowKey(node);
|
|
190
205
|
if (isSelectable(node)) {
|
|
@@ -195,7 +210,7 @@ const _sfc_main = {
|
|
|
195
210
|
}
|
|
196
211
|
}
|
|
197
212
|
const children = node.children;
|
|
198
|
-
if (children) {
|
|
213
|
+
if (!checkStrictly && children) {
|
|
199
214
|
children.forEach((childNode) => {
|
|
200
215
|
toggle(childNode, checked);
|
|
201
216
|
});
|
|
@@ -256,46 +271,12 @@ const _sfc_main = {
|
|
|
256
271
|
const { allChecked } = handler(list, checkedNodeMap, indeterminateKeys2);
|
|
257
272
|
return { checkedNodeMap, indeterminateKeys: indeterminateKeys2, allChecked };
|
|
258
273
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return expandedKeys.value.reduce((keyMap, key, index) => {
|
|
262
|
-
keyMap.set(key, index);
|
|
263
|
-
return keyMap;
|
|
264
|
-
}, /* @__PURE__ */ new Map());
|
|
265
|
-
});
|
|
266
|
-
function toggleRowExpansion(row, expanded) {
|
|
267
|
-
const index = expandedMap.value.get(getRowKey(row));
|
|
268
|
-
const isExpanded = is.isBoolean(expanded) ? expanded : !is.isNumber(index);
|
|
269
|
-
if (isExpanded) {
|
|
270
|
-
if (!is.isNumber(index)) {
|
|
271
|
-
if (props.expandMode === "accordion" && isExpandTable.value) {
|
|
272
|
-
expandedKeys.value = [getRowKey(row)];
|
|
273
|
-
} else {
|
|
274
|
-
expandedKeys.value.push(getRowKey(row));
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
} else {
|
|
278
|
-
if (is.isNumber(index)) {
|
|
279
|
-
expandedKeys.value.splice(index, 1);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
if (isExpandTable.value) {
|
|
283
|
-
const expandedList = expandedKeys.value.reduce((list, key) => {
|
|
284
|
-
list.push(dataSourceMap.value.get(key));
|
|
285
|
-
return list;
|
|
286
|
-
}, []);
|
|
287
|
-
emits("expand-change", row, expandedList);
|
|
288
|
-
} else {
|
|
289
|
-
emits("expand-change", row, isExpanded);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
function onRowExpandSwitch({ row, rowKey }) {
|
|
293
|
-
toggleRowExpansion(row, !expandedMap.value.has(rowKey));
|
|
274
|
+
function onRowExpandSwitch({ row, rowKey, ...args }) {
|
|
275
|
+
emits("expand-click", row, !props.expandRowKeyMap.has(rowKey));
|
|
294
276
|
}
|
|
295
277
|
__expose({
|
|
296
278
|
toggleRowSelection,
|
|
297
279
|
toggleAllSelection,
|
|
298
|
-
toggleRowExpansion,
|
|
299
280
|
clearSelection: () => {
|
|
300
281
|
isAllChecked.value = false;
|
|
301
282
|
selectedMap.value.clear();
|
|
@@ -304,8 +285,8 @@ const _sfc_main = {
|
|
|
304
285
|
});
|
|
305
286
|
return (_ctx, _cache) => {
|
|
306
287
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableV2), {
|
|
307
|
-
"expanded-row-keys":
|
|
308
|
-
"onUpdate:expandedRowKeys": ($event) =>
|
|
288
|
+
"expanded-row-keys": expandedRowKeys.value,
|
|
289
|
+
"onUpdate:expandedRowKeys": ($event) => expandedRowKeys.value = $event,
|
|
309
290
|
"row-key": __props.rowKey,
|
|
310
291
|
data: dataSource.value,
|
|
311
292
|
columns: tableColumns.value,
|
|
@@ -387,10 +368,11 @@ const _sfc_main = {
|
|
|
387
368
|
type: "button",
|
|
388
369
|
"aria-label": "\u5C55\u5F00\u5F53\u524D\u884C",
|
|
389
370
|
"aria-expanded": "false",
|
|
390
|
-
class: vue.normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded":
|
|
371
|
+
class: vue.normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded": __props.expandRowKeyMap.has(getRowKey(row)) }]),
|
|
391
372
|
onClick: vue.withModifiers(($event) => onRowExpandSwitch({
|
|
392
373
|
rowData: _ctx.rowData,
|
|
393
374
|
row,
|
|
375
|
+
rowIndex: $index,
|
|
394
376
|
rowKey: getRowKey(row)
|
|
395
377
|
}), ["stop"])
|
|
396
378
|
}, [
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
require('../../../hooks/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
require('../../index.js');
|
|
7
7
|
var is = require('../../../utils/is.js');
|
|
8
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
9
|
+
var index = require('../../hyLoading/index.js');
|
|
8
10
|
|
|
9
11
|
function tableColumnShowHandler(column) {
|
|
10
12
|
if (column.permission && !is.isPermission(column.permission)) {
|
|
@@ -30,7 +32,7 @@ function tableColumnsEditableleHandler(columns, columnsEditablele) {
|
|
|
30
32
|
column
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
Array.from(sortSet.values()).reduce((a, b) => a - b);
|
|
35
|
+
const sortList = Array.from(sortSet.values()).reduce((a, b) => a - b);
|
|
34
36
|
const columnsList = Object.keys(columnsEditableleObj).reduce(
|
|
35
37
|
(columnsList2, key) => {
|
|
36
38
|
const list = columnsEditableleObj[key];
|
|
@@ -152,7 +154,6 @@ const useAppTableWrapper = (hy) => {
|
|
|
152
154
|
tableDropdownRef,
|
|
153
155
|
operatorDropdownRef
|
|
154
156
|
} = hy;
|
|
155
|
-
const { permissionMap } = usePermissionMap.usePermissionMap();
|
|
156
157
|
const { t } = useLocale.useLocale();
|
|
157
158
|
const CACHE_COLUMNS_KEY = props.controller || props.url || "CACHE_COLUMNS_KEY";
|
|
158
159
|
const tableDataSource = vue.ref([]);
|
|
@@ -200,14 +201,11 @@ const useAppTableWrapper = (hy) => {
|
|
|
200
201
|
function showAppTableLoading() {
|
|
201
202
|
if (loadingInstance || !props.showLoading) return;
|
|
202
203
|
closeAppTableLoading();
|
|
203
|
-
loadingInstance =
|
|
204
|
+
loadingInstance = index.ElLoading.service({
|
|
204
205
|
target: containerRef.value,
|
|
205
206
|
body: false,
|
|
206
207
|
fullscreen: false,
|
|
207
|
-
|
|
208
|
-
lock: true,
|
|
209
|
-
// spinner: 'el-icon-loading',
|
|
210
|
-
background: "rgba(0, 0, 0, 0.8)"
|
|
208
|
+
lock: true
|
|
211
209
|
});
|
|
212
210
|
loadingTimer = setTimeout(() => {
|
|
213
211
|
closeAppTableLoading();
|
|
@@ -265,6 +263,73 @@ const useAppTableWrapper = (hy) => {
|
|
|
265
263
|
operatorDropdownRef.value?.handleClose();
|
|
266
264
|
}
|
|
267
265
|
}
|
|
266
|
+
const expandRowKeys = vue.ref([]);
|
|
267
|
+
const expandRowKeyMap = vue.computed(() => {
|
|
268
|
+
return expandRowKeys.value.reduce((keyMap, key, index) => {
|
|
269
|
+
keyMap.set(key, index);
|
|
270
|
+
return keyMap;
|
|
271
|
+
}, /* @__PURE__ */ new Map());
|
|
272
|
+
});
|
|
273
|
+
const isExpandTable = vue.computed(() => {
|
|
274
|
+
if (props.type === "default") {
|
|
275
|
+
return tableColumnsList.value.some((column) => column.type === "expand");
|
|
276
|
+
} else if (props.type === "virtual") {
|
|
277
|
+
return tableColumnsList.value.some(
|
|
278
|
+
(column) => column.type === "expand" && column.expandType === "expand"
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
return false;
|
|
282
|
+
});
|
|
283
|
+
const isAccordionMode = vue.computed(() => {
|
|
284
|
+
return isExpandTable.value && props.expandMode === "accordion";
|
|
285
|
+
});
|
|
286
|
+
function setRowExpansion(list = []) {
|
|
287
|
+
const keys = (list || []).map((item) => {
|
|
288
|
+
return is.isString(item) || is.isNumber(item) ? item : getRowKey(item);
|
|
289
|
+
}).filter(Boolean);
|
|
290
|
+
expandRowKeys.value = isAccordionMode.value ? [keys[0]] : keys;
|
|
291
|
+
}
|
|
292
|
+
function toggleRowExpansion(row, expanded) {
|
|
293
|
+
const key = is.isString(row) || is.isNumber(row) ? row : getRowKey(row);
|
|
294
|
+
const index = expandRowKeyMap.value.get(key);
|
|
295
|
+
const isExpanded = is.isBoolean(expanded) ? expanded : !is.isNumber(index);
|
|
296
|
+
if (isAccordionMode.value) {
|
|
297
|
+
if (isExpanded) {
|
|
298
|
+
expandRowKeys.value = [key];
|
|
299
|
+
} else if (index >= 0) {
|
|
300
|
+
expandRowKeys.value = [];
|
|
301
|
+
}
|
|
302
|
+
} else {
|
|
303
|
+
if (isExpanded && !is.isNumber(index)) {
|
|
304
|
+
expandRowKeys.value.push(key);
|
|
305
|
+
} else if (!isExpanded && is.isNumber(index)) {
|
|
306
|
+
expandRowKeys.value.splice(index, 1);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
emits("expand-change", row, isExpanded);
|
|
310
|
+
}
|
|
311
|
+
function onTableRowExpandChangeHandler(row, expandedRows) {
|
|
312
|
+
if (props.type === "virtual") {
|
|
313
|
+
toggleRowExpansion(row, expandedRows);
|
|
314
|
+
} else {
|
|
315
|
+
let isExpanded = false;
|
|
316
|
+
if (!isExpandTable.value) {
|
|
317
|
+
const key = getRowKey(row);
|
|
318
|
+
const index = expandRowKeyMap.value.get(key);
|
|
319
|
+
if (expandedRows && !is.isNumber(index)) {
|
|
320
|
+
expandRowKeys.value.push(key);
|
|
321
|
+
isExpanded = true;
|
|
322
|
+
} else if (!expandedRows && is.isNumber(index)) {
|
|
323
|
+
expandRowKeys.value.splice(index, 1);
|
|
324
|
+
isExpanded = false;
|
|
325
|
+
}
|
|
326
|
+
} else {
|
|
327
|
+
isExpanded = isAccordionMode.value && expandedRows.length > 1 || expandRowKeys.value.length > expandedRows.length;
|
|
328
|
+
expandRowKeys.value = isAccordionMode.value && expandedRows.length > 1 ? [getRowKey(row)] : expandedRows.map((item) => getRowKey(item));
|
|
329
|
+
}
|
|
330
|
+
emits("expand-change", row, isExpanded);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
268
333
|
const selectedList = vue.ref([]);
|
|
269
334
|
const selectedMap = vue.computed(() => {
|
|
270
335
|
return (selectedList.value || []).reduce((map, row, index) => {
|
|
@@ -341,22 +406,6 @@ const useAppTableWrapper = (hy) => {
|
|
|
341
406
|
}
|
|
342
407
|
return className.filter(Boolean).join(" ");
|
|
343
408
|
}
|
|
344
|
-
function toggleRowExpansion(row) {
|
|
345
|
-
if (tableRef.value && tableColumns.value.some((column) => column.type === "expand")) {
|
|
346
|
-
tableRef.value.toggleRowExpansion(row);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
function onTableRowExpandChangeHandler(row, expandedRows) {
|
|
350
|
-
if (is.isBoolean(expandedRows) || props.expandMode !== "accordion" || expandedRows.length <= 1) {
|
|
351
|
-
props.onExpandChange && props.onExpandChange(row, expandedRows);
|
|
352
|
-
return;
|
|
353
|
-
} else {
|
|
354
|
-
expandedRows.forEach((item) => {
|
|
355
|
-
if (getRowKey(row) === getRowKey(item)) return;
|
|
356
|
-
toggleRowExpansion(item);
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
409
|
const isSearchFocus = vue.ref(false);
|
|
361
410
|
function onSearchInputHandler() {
|
|
362
411
|
isSearchFocus.value = true;
|
|
@@ -388,10 +437,13 @@ const useAppTableWrapper = (hy) => {
|
|
|
388
437
|
getSelectedList,
|
|
389
438
|
clearSelection,
|
|
390
439
|
clearSelectedList,
|
|
440
|
+
expandRowKeys,
|
|
441
|
+
expandRowKeyMap,
|
|
442
|
+
setRowExpansion,
|
|
391
443
|
toggleRowExpansion,
|
|
444
|
+
onTableRowExpandChangeHandler,
|
|
392
445
|
onTableSelectHandler,
|
|
393
446
|
onTableRowContextmenuHandler,
|
|
394
|
-
onTableRowExpandChangeHandler,
|
|
395
447
|
onTableRowClickHandler,
|
|
396
448
|
onTableColumnsSelectHandler,
|
|
397
449
|
// 搜索选中
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
+
require('../../../hooks/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
require('../../index.js');
|
|
7
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
4
8
|
var is = require('../../../utils/is.js');
|
|
5
9
|
var useAppSearch = require('../../hySearch/js/useAppSearch.js');
|
|
6
|
-
var useLocale = require('../../../hooks/useLocale.js');
|
|
7
10
|
|
|
8
11
|
function getColumnDefaultConfig(column) {
|
|
9
12
|
const { t } = useLocale.useLocale();
|
|
@@ -25,7 +28,8 @@ function getColumnDefaultConfig(column) {
|
|
|
25
28
|
case "operator":
|
|
26
29
|
return {
|
|
27
30
|
label: t("table.operator"),
|
|
28
|
-
prop: `operator_prop
|
|
31
|
+
prop: `operator_prop`,
|
|
32
|
+
fixed: "right"
|
|
29
33
|
};
|
|
30
34
|
default:
|
|
31
35
|
return {};
|
|
@@ -110,8 +114,8 @@ const useAppTable = (config = {}) => {
|
|
|
110
114
|
try {
|
|
111
115
|
for (let i = 0; i < columns?.length; i++) {
|
|
112
116
|
const column = columns[i];
|
|
113
|
-
if (is.isEmpty(column.prop) && column.type
|
|
114
|
-
|
|
117
|
+
if (is.isEmpty(column.prop) && !/^(selection|index|expand|operator)$/.test(column.type)) {
|
|
118
|
+
console.error("\u3010column.prop\u3011\u4E0D\u80FD\u4E3A\u7A7A");
|
|
115
119
|
}
|
|
116
120
|
const sort = getColumnSort(column);
|
|
117
121
|
if (!defaultSortInfo && sort.default) {
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../index.js');
|
|
9
|
+
require('../../hooks/index.js');
|
|
10
|
+
require('../../utils/index.js');
|
|
8
11
|
var index = require('./js/index.js');
|
|
9
12
|
var search = require('./js/search.js');
|
|
10
13
|
var headerItem = require('./cpns/headerItem.vue.js');
|
|
@@ -189,10 +192,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
189
192
|
type: String,
|
|
190
193
|
default: "default"
|
|
191
194
|
// deafult-默认 accordion-手风琴
|
|
192
|
-
},
|
|
193
|
-
onExpandChange: {
|
|
194
|
-
// 展开回调
|
|
195
|
-
type: Function
|
|
196
195
|
}
|
|
197
196
|
}, {
|
|
198
197
|
"loading": { type: Boolean, default: false },
|
|
@@ -201,6 +200,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
201
200
|
emits: /* @__PURE__ */ vue.mergeModels([
|
|
202
201
|
"row-click",
|
|
203
202
|
"select-all",
|
|
203
|
+
"expand-change",
|
|
204
204
|
"on-select-checkbox",
|
|
205
205
|
"reqSuccess",
|
|
206
206
|
"search-data"
|
|
@@ -231,6 +231,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
231
231
|
setTableRowClassName,
|
|
232
232
|
clearSelection,
|
|
233
233
|
clearSelectedList,
|
|
234
|
+
expandRowKeys,
|
|
235
|
+
expandRowKeyMap,
|
|
236
|
+
setRowExpansion,
|
|
234
237
|
toggleRowExpansion,
|
|
235
238
|
onTableRowClickHandler,
|
|
236
239
|
onTableRowContextmenuHandler,
|
|
@@ -282,6 +285,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
282
285
|
getTableDataSource,
|
|
283
286
|
clearSelection,
|
|
284
287
|
clearSelectedList,
|
|
288
|
+
setRowExpansion,
|
|
285
289
|
toggleRowExpansion,
|
|
286
290
|
showAppTableLoading,
|
|
287
291
|
closeAppTableLoading
|
|
@@ -410,6 +414,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
410
414
|
style: {
|
|
411
415
|
"font-size": `${vue.unref(adaptive.parseRem)(__props.fontSize)}rem`
|
|
412
416
|
},
|
|
417
|
+
"expand-row-keys": vue.unref(expandRowKeys),
|
|
413
418
|
onSelect: vue.unref(onTableSelectHandler),
|
|
414
419
|
onSelectAll: vue.unref(onTableSelectHandler),
|
|
415
420
|
onRowClick: vue.unref(onTableRowClickHandler),
|
|
@@ -662,13 +667,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
662
667
|
]),
|
|
663
668
|
_: 3
|
|
664
669
|
/* FORWARDED */
|
|
665
|
-
}, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])) : vue.createCommentVNode("v-if", true),
|
|
670
|
+
}, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "expand-row-keys", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])) : vue.createCommentVNode("v-if", true),
|
|
666
671
|
__props.type === "virtual" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAutoResizer), { key: 1 }, {
|
|
667
672
|
default: vue.withCtx(({ height, width }) => [
|
|
668
673
|
vue.createVNode(virtualTable.default, vue.mergeProps({
|
|
669
674
|
ref_key: "tableRef",
|
|
670
675
|
ref: tableRef
|
|
671
676
|
}, _ctx.$attrs, {
|
|
677
|
+
expandedRowKeys: vue.unref(expandRowKeys),
|
|
678
|
+
"onUpdate:expandedRowKeys": ($event) => vue.isRef(expandRowKeys) ? expandRowKeys.value = $event : null,
|
|
679
|
+
expandRowKeyMap: vue.unref(expandRowKeyMap),
|
|
672
680
|
width,
|
|
673
681
|
height,
|
|
674
682
|
data: vue.unref(tableDataSource),
|
|
@@ -688,7 +696,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
688
696
|
onSelectAll: vue.unref(onTableSelectHandler),
|
|
689
697
|
onRowClick: vue.unref(onTableRowClickHandler),
|
|
690
698
|
onRowContextmenu: vue.unref(onTableRowContextmenuHandler),
|
|
691
|
-
|
|
699
|
+
onExpandClick: vue.unref(onTableRowExpandChangeHandler)
|
|
692
700
|
}), vue.createSlots({
|
|
693
701
|
empty: vue.withCtx(() => [
|
|
694
702
|
vue.createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
|
|
@@ -714,7 +722,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
714
722
|
])
|
|
715
723
|
};
|
|
716
724
|
})
|
|
717
|
-
]), 1040, ["width", "height", "data", "columns", "columns-editable", "show-header", "row-class-name", "show-all-select", "style", "row-key", "filter-model", "expandMode", "onSearch", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "
|
|
725
|
+
]), 1040, ["expandedRowKeys", "onUpdate:expandedRowKeys", "expandRowKeyMap", "width", "height", "data", "columns", "columns-editable", "show-header", "row-class-name", "show-all-select", "style", "row-key", "filter-model", "expandMode", "onSearch", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandClick"])
|
|
718
726
|
]),
|
|
719
727
|
_: 3
|
|
720
728
|
/* FORWARDED */
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var tableActionButton = require('./tableActionButton.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyTableActionButton = handler.withInstall(tableActionButton.default);
|
|
@@ -5,11 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../../hooks/index.js');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
require('../index.js');
|
|
8
11
|
var useLocale = require('../../hooks/useLocale.js');
|
|
12
|
+
var is = require('../../utils/is.js');
|
|
9
13
|
var index = require('../hyTooltip/index.js');
|
|
10
14
|
var index$1 = require('../hyButton/index.js');
|
|
11
15
|
var index$2 = require('../hyIcon/index.js');
|
|
12
|
-
var is = require('../../utils/is.js');
|
|
13
16
|
|
|
14
17
|
import "./style/tableActionButton.scss";
|
|
15
18
|
|
|
@@ -119,11 +122,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
119
122
|
return false;
|
|
120
123
|
}
|
|
121
124
|
const show = vue.unref(operate.show);
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return !!show;
|
|
126
|
-
}
|
|
125
|
+
if (is.isBoolean(show)) return show;
|
|
126
|
+
if (is.isFunction(show)) return show();
|
|
127
|
+
return true;
|
|
127
128
|
}
|
|
128
129
|
vue.watch(() => props.operateList, setSelectedData, { deep: true, immediate: true });
|
|
129
130
|
__expose({});
|