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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, useModel, useTemplateRef, ref, computed, watch, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, unref, renderSlot, toDisplayString, createCommentVNode, createBlock, normalizeClass, mergeModels } from 'vue';
|
|
2
2
|
import { ElCascader } from 'element-plus';
|
|
3
|
+
import '../../hooks/index.mjs';
|
|
3
4
|
import { getOrgTreeSimple, orgTreeDatahandler } from './js/index.mjs';
|
|
4
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
5
|
import { useSubscribe } from '../../hooks/useSubscribe.mjs';
|
|
6
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
6
7
|
|
|
7
8
|
import "./style/orgCascader.scss";
|
|
8
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel, useTemplateRef, ref, computed, watch, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode, mergeModels
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, ref, computed, nextTick, watch, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode, mergeModels } from 'vue';
|
|
2
2
|
|
|
3
3
|
import "./style/radioGroup.scss";
|
|
4
4
|
|
|
@@ -82,7 +82,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
82
82
|
return openBlock(), createElementBlock("li", {
|
|
83
83
|
key: index,
|
|
84
84
|
class: "w-0 flex-1 flex items-center justify-center text-main clickBox",
|
|
85
|
-
onClick: ($event) => switchSelect(item)
|
|
85
|
+
onClick: ($event) => switchSelect(item, index, $event)
|
|
86
86
|
}, [
|
|
87
87
|
renderSlot(_ctx.$slots, "default", {
|
|
88
88
|
item,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { computed, unref, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createCommentVNode, normalizeClass, renderSlot, createElementBlock, toDisplayString, Fragment, createVNode, mergeProps, withKeys, renderList } from 'vue';
|
|
2
2
|
import { ElFormItem, ElSelect, ElCascader } from 'element-plus';
|
|
3
|
-
import
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import '../../index.mjs';
|
|
5
|
+
import { timeRangeHandler, columnShowHandler, columnItemStyle, columnItemInputStyle, isDisabled, optionsHandler, isSelectedTimeRange } from '../js/index.mjs';
|
|
4
6
|
import { isArray } from '../../../utils/is.mjs';
|
|
5
7
|
import { setValueByProp, getValueByProp, columnPlaceholderHandler, columnLabelHandler } from '../../../utils/form.mjs';
|
|
6
8
|
import { HyInput } from '../../hyInput/index.mjs';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import {
|
|
2
|
+
import { unref, ref } from 'vue';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import { isNumber, isString, isBoolean, isFunction, isEmpty, isArray } from '../../../utils/is.mjs';
|
|
3
6
|
import { useResizeObserver } from '../../../hooks/useResizeObserver.mjs';
|
|
4
|
-
import { isEmpty, isArray, isBoolean, isFunction, isNumber, isString } from '../../../utils/is.mjs';
|
|
5
7
|
|
|
6
8
|
function columnItemStyle(props, column) {
|
|
7
9
|
const { width } = column;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { unref, toRef } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
4
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
5
5
|
import { isNumber } from '../../../utils/is.mjs';
|
|
6
|
+
import { genColumnDefaultLabel, genValueByProp } from '../../../utils/form.mjs';
|
|
7
|
+
import { mergeDeep, funRunHandler } from '../../../utils/handler.mjs';
|
|
6
8
|
|
|
7
9
|
const genColumnWidth = (config) => {
|
|
8
10
|
let { width, inputWidth, type, attrs } = config || {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, computed, unref, onUnmounted, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, toDisplayString, Fragment, createCommentVNode, withDirectives, normalizeStyle, withCtx, vShow, mergeProps, renderList, createBlock, createSlots, renderSlot } from 'vue';
|
|
2
2
|
import { ElIcon, ElForm } from 'element-plus';
|
|
3
3
|
import { ArrowDown } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
6
|
+
import '../index.mjs';
|
|
4
7
|
import _sfc_main$1 from './cpns/searchItem.vue.mjs';
|
|
5
8
|
import { useShrink, isEmptyValue } from './js/index.mjs';
|
|
6
9
|
import { resetAppSearchValue } from './js/useAppSearch.mjs';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { useTemplateRef, ref, computed, unref, watch, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, normalizeClass, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode
|
|
1
|
+
import { useTemplateRef, ref, computed, unref, nextTick, watch, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, normalizeClass, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode } from 'vue';
|
|
2
2
|
import Sortable from 'sortablejs';
|
|
3
|
-
import { ElPopover, ElCheckboxGroup, ElIcon
|
|
3
|
+
import { ElMessage, ElPopover, ElCheckboxGroup, ElIcon } from 'element-plus';
|
|
4
4
|
import { Warning } from '@element-plus/icons-vue';
|
|
5
|
+
import '../../../hooks/index.mjs';
|
|
6
|
+
import '../../../utils/index.mjs';
|
|
7
|
+
import '../../index.mjs';
|
|
5
8
|
import { tableColumnShowHandler, tableColumnHandler } from '../js/index.mjs';
|
|
6
9
|
import _sfc_main$1 from './columnSelectItem.vue.mjs';
|
|
7
10
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
11
|
+
import { isEmpty } from '../../../utils/is.mjs';
|
|
8
12
|
import { HyIcon } from '../../hyIcon/index.mjs';
|
|
9
13
|
import { HyTooltip } from '../../hyTooltip/index.mjs';
|
|
10
14
|
import { HyButton } from '../../hyButton/index.mjs';
|
|
11
|
-
import { isEmpty } from '../../../utils/is.mjs';
|
|
12
15
|
|
|
13
16
|
const _sfc_main = {
|
|
14
17
|
__name: "columnSelect",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { openBlock, createBlock, unref, withCtx, createElementVNode, toDisplayString, createElementBlock, createCommentVNode, Fragment, renderList, normalizeClass, createVNode, withModifiers } from 'vue';
|
|
2
2
|
import { ElPopover, ElIcon, ElCheckbox } from 'element-plus';
|
|
3
3
|
import { Lock } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
4
5
|
import { renderHeaderHandler } from '../js/index.mjs';
|
|
6
|
+
import '../../index.mjs';
|
|
5
7
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
8
|
import { HyTooltip } from '../../hyTooltip/index.mjs';
|
|
7
9
|
|
|
@@ -23,6 +25,7 @@ const _sfc_main = {
|
|
|
23
25
|
},
|
|
24
26
|
emits: ["checked"],
|
|
25
27
|
setup(__props, { emit: __emit }) {
|
|
28
|
+
const props = __props;
|
|
26
29
|
const emits = __emit;
|
|
27
30
|
const { t } = useLocale();
|
|
28
31
|
function onClickHandler(column) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, createElementVNode, createVNode, unref, withModifiers, withCtx, renderSlot } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { ArrowUpBold, ArrowDownBold } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../index.mjs';
|
|
5
|
+
import '../../../utils/index.mjs';
|
|
6
|
+
import '../js/index.mjs';
|
|
4
7
|
|
|
5
8
|
const _sfc_main = {
|
|
6
9
|
__name: "headerItem",
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { computed, ref, openBlock, createBlock, unref, withCtx, renderSlot, createCommentVNode, createElementBlock, Fragment, renderList, normalizeStyle, withModifiers, normalizeClass, createVNode, mergeProps, createTextVNode, toDisplayString, createElementVNode, normalizeProps, guardReactiveProps } from 'vue';
|
|
1
|
+
import { useModel, computed, ref, openBlock, createBlock, unref, withCtx, renderSlot, createCommentVNode, createElementBlock, Fragment, renderList, normalizeStyle, withModifiers, normalizeClass, createVNode, mergeProps, createTextVNode, toDisplayString, createElementVNode, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
|
|
2
2
|
import { ElTableV2, ElIcon, ElCheckbox, ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus';
|
|
3
3
|
import { ArrowRight, MoreFilled } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../index.mjs';
|
|
5
|
+
import '../../../hooks/index.mjs';
|
|
6
|
+
import '../../../utils/index.mjs';
|
|
4
7
|
import { operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from '../js/index.mjs';
|
|
5
8
|
import _sfc_main$1 from './headerItem.vue.mjs';
|
|
6
9
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
7
|
-
import { isNumber,
|
|
10
|
+
import { isNumber, isString, isFunction, isArray, isBoolean, isEmpty } from '../../../utils/is.mjs';
|
|
8
11
|
import { HyTooltip } from '../../hyTooltip/index.mjs';
|
|
9
12
|
import { HyIcon } from '../../hyIcon/index.mjs';
|
|
10
13
|
|
|
11
14
|
const _sfc_main = {
|
|
12
15
|
__name: "virtualTable",
|
|
13
|
-
props: {
|
|
16
|
+
props: /* @__PURE__ */ mergeModels({
|
|
14
17
|
rowKey: {
|
|
15
18
|
type: [String, Number],
|
|
16
19
|
default: "id"
|
|
@@ -59,12 +62,23 @@ const _sfc_main = {
|
|
|
59
62
|
type: String,
|
|
60
63
|
default: "default"
|
|
61
64
|
// deafult-默认 accordion-手风琴
|
|
65
|
+
},
|
|
66
|
+
expandRowKeyMap: {
|
|
67
|
+
type: Map,
|
|
68
|
+
default: () => /* @__PURE__ */ new Map()
|
|
62
69
|
}
|
|
63
|
-
},
|
|
64
|
-
|
|
70
|
+
}, {
|
|
71
|
+
"expandedRowKeys": {
|
|
72
|
+
type: Array,
|
|
73
|
+
default: () => []
|
|
74
|
+
},
|
|
75
|
+
"expandedRowKeysModifiers": {}
|
|
76
|
+
}),
|
|
77
|
+
emits: /* @__PURE__ */ mergeModels(["search", "select", "select-all", "expand-click"], ["update:expandedRowKeys"]),
|
|
65
78
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
66
79
|
const props = __props;
|
|
67
80
|
const emits = __emit;
|
|
81
|
+
const expandedRowKeys = useModel(__props, "expandedRowKeys");
|
|
68
82
|
const { t } = useLocale();
|
|
69
83
|
const avgWidth = computed(() => {
|
|
70
84
|
const { total, totalWidth } = props.columns.reduce(
|
|
@@ -181,6 +195,7 @@ const _sfc_main = {
|
|
|
181
195
|
}
|
|
182
196
|
const checkedNodeMap = new Map(selectedMap.value);
|
|
183
197
|
const isChecked = isBoolean(selected) ? selected : !checkedNodeMap.has(key);
|
|
198
|
+
const checkStrictly = false;
|
|
184
199
|
const toggle = (node, checked) => {
|
|
185
200
|
const nodeKey = getRowKey(node);
|
|
186
201
|
if (isSelectable(node)) {
|
|
@@ -191,7 +206,7 @@ const _sfc_main = {
|
|
|
191
206
|
}
|
|
192
207
|
}
|
|
193
208
|
const children = node.children;
|
|
194
|
-
if (children) {
|
|
209
|
+
if (!checkStrictly && children) {
|
|
195
210
|
children.forEach((childNode) => {
|
|
196
211
|
toggle(childNode, checked);
|
|
197
212
|
});
|
|
@@ -252,46 +267,12 @@ const _sfc_main = {
|
|
|
252
267
|
const { allChecked } = handler(list, checkedNodeMap, indeterminateKeys2);
|
|
253
268
|
return { checkedNodeMap, indeterminateKeys: indeterminateKeys2, allChecked };
|
|
254
269
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return expandedKeys.value.reduce((keyMap, key, index) => {
|
|
258
|
-
keyMap.set(key, index);
|
|
259
|
-
return keyMap;
|
|
260
|
-
}, /* @__PURE__ */ new Map());
|
|
261
|
-
});
|
|
262
|
-
function toggleRowExpansion(row, expanded) {
|
|
263
|
-
const index = expandedMap.value.get(getRowKey(row));
|
|
264
|
-
const isExpanded = isBoolean(expanded) ? expanded : !isNumber(index);
|
|
265
|
-
if (isExpanded) {
|
|
266
|
-
if (!isNumber(index)) {
|
|
267
|
-
if (props.expandMode === "accordion" && isExpandTable.value) {
|
|
268
|
-
expandedKeys.value = [getRowKey(row)];
|
|
269
|
-
} else {
|
|
270
|
-
expandedKeys.value.push(getRowKey(row));
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
} else {
|
|
274
|
-
if (isNumber(index)) {
|
|
275
|
-
expandedKeys.value.splice(index, 1);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (isExpandTable.value) {
|
|
279
|
-
const expandedList = expandedKeys.value.reduce((list, key) => {
|
|
280
|
-
list.push(dataSourceMap.value.get(key));
|
|
281
|
-
return list;
|
|
282
|
-
}, []);
|
|
283
|
-
emits("expand-change", row, expandedList);
|
|
284
|
-
} else {
|
|
285
|
-
emits("expand-change", row, isExpanded);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
function onRowExpandSwitch({ row, rowKey }) {
|
|
289
|
-
toggleRowExpansion(row, !expandedMap.value.has(rowKey));
|
|
270
|
+
function onRowExpandSwitch({ row, rowKey, ...args }) {
|
|
271
|
+
emits("expand-click", row, !props.expandRowKeyMap.has(rowKey));
|
|
290
272
|
}
|
|
291
273
|
__expose({
|
|
292
274
|
toggleRowSelection,
|
|
293
275
|
toggleAllSelection,
|
|
294
|
-
toggleRowExpansion,
|
|
295
276
|
clearSelection: () => {
|
|
296
277
|
isAllChecked.value = false;
|
|
297
278
|
selectedMap.value.clear();
|
|
@@ -300,8 +281,8 @@ const _sfc_main = {
|
|
|
300
281
|
});
|
|
301
282
|
return (_ctx, _cache) => {
|
|
302
283
|
return openBlock(), createBlock(unref(ElTableV2), {
|
|
303
|
-
"expanded-row-keys":
|
|
304
|
-
"onUpdate:expandedRowKeys": ($event) =>
|
|
284
|
+
"expanded-row-keys": expandedRowKeys.value,
|
|
285
|
+
"onUpdate:expandedRowKeys": ($event) => expandedRowKeys.value = $event,
|
|
305
286
|
"row-key": __props.rowKey,
|
|
306
287
|
data: dataSource.value,
|
|
307
288
|
columns: tableColumns.value,
|
|
@@ -383,10 +364,11 @@ const _sfc_main = {
|
|
|
383
364
|
type: "button",
|
|
384
365
|
"aria-label": "\u5C55\u5F00\u5F53\u524D\u884C",
|
|
385
366
|
"aria-expanded": "false",
|
|
386
|
-
class: normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded":
|
|
367
|
+
class: normalizeClass(["hy-el-table-v2__expand-icon", { "is-expanded": __props.expandRowKeyMap.has(getRowKey(row)) }]),
|
|
387
368
|
onClick: withModifiers(($event) => onRowExpandSwitch({
|
|
388
369
|
rowData: _ctx.rowData,
|
|
389
370
|
row,
|
|
371
|
+
rowIndex: $index,
|
|
390
372
|
rowKey: getRowKey(row)
|
|
391
373
|
}), ["stop"])
|
|
392
374
|
}, [
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { ref, computed, watch,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { unref, ref, computed, watch, nextTick, watchEffect } from 'vue';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import '../../index.mjs';
|
|
5
|
+
import { isPermission, isBoolean, isFunction, isNumber, isString, isArray } from '../../../utils/is.mjs';
|
|
4
6
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
5
|
-
import {
|
|
7
|
+
import { ElLoading as HyLoading } from '../../hyLoading/index.mjs';
|
|
6
8
|
|
|
7
9
|
function tableColumnShowHandler(column) {
|
|
8
10
|
if (column.permission && !isPermission(column.permission)) {
|
|
@@ -28,7 +30,7 @@ function tableColumnsEditableleHandler(columns, columnsEditablele) {
|
|
|
28
30
|
column
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
Array.from(sortSet.values()).reduce((a, b) => a - b);
|
|
33
|
+
const sortList = Array.from(sortSet.values()).reduce((a, b) => a - b);
|
|
32
34
|
const columnsList = Object.keys(columnsEditableleObj).reduce(
|
|
33
35
|
(columnsList2, key) => {
|
|
34
36
|
const list = columnsEditableleObj[key];
|
|
@@ -150,7 +152,6 @@ const useAppTableWrapper = (hy) => {
|
|
|
150
152
|
tableDropdownRef,
|
|
151
153
|
operatorDropdownRef
|
|
152
154
|
} = hy;
|
|
153
|
-
const { permissionMap } = usePermissionMap();
|
|
154
155
|
const { t } = useLocale();
|
|
155
156
|
const CACHE_COLUMNS_KEY = props.controller || props.url || "CACHE_COLUMNS_KEY";
|
|
156
157
|
const tableDataSource = ref([]);
|
|
@@ -198,14 +199,11 @@ const useAppTableWrapper = (hy) => {
|
|
|
198
199
|
function showAppTableLoading() {
|
|
199
200
|
if (loadingInstance || !props.showLoading) return;
|
|
200
201
|
closeAppTableLoading();
|
|
201
|
-
loadingInstance =
|
|
202
|
+
loadingInstance = HyLoading.service({
|
|
202
203
|
target: containerRef.value,
|
|
203
204
|
body: false,
|
|
204
205
|
fullscreen: false,
|
|
205
|
-
|
|
206
|
-
lock: true,
|
|
207
|
-
// spinner: 'el-icon-loading',
|
|
208
|
-
background: "rgba(0, 0, 0, 0.8)"
|
|
206
|
+
lock: true
|
|
209
207
|
});
|
|
210
208
|
loadingTimer = setTimeout(() => {
|
|
211
209
|
closeAppTableLoading();
|
|
@@ -263,6 +261,73 @@ const useAppTableWrapper = (hy) => {
|
|
|
263
261
|
operatorDropdownRef.value?.handleClose();
|
|
264
262
|
}
|
|
265
263
|
}
|
|
264
|
+
const expandRowKeys = ref([]);
|
|
265
|
+
const expandRowKeyMap = computed(() => {
|
|
266
|
+
return expandRowKeys.value.reduce((keyMap, key, index) => {
|
|
267
|
+
keyMap.set(key, index);
|
|
268
|
+
return keyMap;
|
|
269
|
+
}, /* @__PURE__ */ new Map());
|
|
270
|
+
});
|
|
271
|
+
const isExpandTable = computed(() => {
|
|
272
|
+
if (props.type === "default") {
|
|
273
|
+
return tableColumnsList.value.some((column) => column.type === "expand");
|
|
274
|
+
} else if (props.type === "virtual") {
|
|
275
|
+
return tableColumnsList.value.some(
|
|
276
|
+
(column) => column.type === "expand" && column.expandType === "expand"
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
return false;
|
|
280
|
+
});
|
|
281
|
+
const isAccordionMode = computed(() => {
|
|
282
|
+
return isExpandTable.value && props.expandMode === "accordion";
|
|
283
|
+
});
|
|
284
|
+
function setRowExpansion(list = []) {
|
|
285
|
+
const keys = (list || []).map((item) => {
|
|
286
|
+
return isString(item) || isNumber(item) ? item : getRowKey(item);
|
|
287
|
+
}).filter(Boolean);
|
|
288
|
+
expandRowKeys.value = isAccordionMode.value ? [keys[0]] : keys;
|
|
289
|
+
}
|
|
290
|
+
function toggleRowExpansion(row, expanded) {
|
|
291
|
+
const key = isString(row) || isNumber(row) ? row : getRowKey(row);
|
|
292
|
+
const index = expandRowKeyMap.value.get(key);
|
|
293
|
+
const isExpanded = isBoolean(expanded) ? expanded : !isNumber(index);
|
|
294
|
+
if (isAccordionMode.value) {
|
|
295
|
+
if (isExpanded) {
|
|
296
|
+
expandRowKeys.value = [key];
|
|
297
|
+
} else if (index >= 0) {
|
|
298
|
+
expandRowKeys.value = [];
|
|
299
|
+
}
|
|
300
|
+
} else {
|
|
301
|
+
if (isExpanded && !isNumber(index)) {
|
|
302
|
+
expandRowKeys.value.push(key);
|
|
303
|
+
} else if (!isExpanded && isNumber(index)) {
|
|
304
|
+
expandRowKeys.value.splice(index, 1);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
emits("expand-change", row, isExpanded);
|
|
308
|
+
}
|
|
309
|
+
function onTableRowExpandChangeHandler(row, expandedRows) {
|
|
310
|
+
if (props.type === "virtual") {
|
|
311
|
+
toggleRowExpansion(row, expandedRows);
|
|
312
|
+
} else {
|
|
313
|
+
let isExpanded = false;
|
|
314
|
+
if (!isExpandTable.value) {
|
|
315
|
+
const key = getRowKey(row);
|
|
316
|
+
const index = expandRowKeyMap.value.get(key);
|
|
317
|
+
if (expandedRows && !isNumber(index)) {
|
|
318
|
+
expandRowKeys.value.push(key);
|
|
319
|
+
isExpanded = true;
|
|
320
|
+
} else if (!expandedRows && isNumber(index)) {
|
|
321
|
+
expandRowKeys.value.splice(index, 1);
|
|
322
|
+
isExpanded = false;
|
|
323
|
+
}
|
|
324
|
+
} else {
|
|
325
|
+
isExpanded = isAccordionMode.value && expandedRows.length > 1 || expandRowKeys.value.length > expandedRows.length;
|
|
326
|
+
expandRowKeys.value = isAccordionMode.value && expandedRows.length > 1 ? [getRowKey(row)] : expandedRows.map((item) => getRowKey(item));
|
|
327
|
+
}
|
|
328
|
+
emits("expand-change", row, isExpanded);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
266
331
|
const selectedList = ref([]);
|
|
267
332
|
const selectedMap = computed(() => {
|
|
268
333
|
return (selectedList.value || []).reduce((map, row, index) => {
|
|
@@ -339,22 +404,6 @@ const useAppTableWrapper = (hy) => {
|
|
|
339
404
|
}
|
|
340
405
|
return className.filter(Boolean).join(" ");
|
|
341
406
|
}
|
|
342
|
-
function toggleRowExpansion(row) {
|
|
343
|
-
if (tableRef.value && tableColumns.value.some((column) => column.type === "expand")) {
|
|
344
|
-
tableRef.value.toggleRowExpansion(row);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
function onTableRowExpandChangeHandler(row, expandedRows) {
|
|
348
|
-
if (isBoolean(expandedRows) || props.expandMode !== "accordion" || expandedRows.length <= 1) {
|
|
349
|
-
props.onExpandChange && props.onExpandChange(row, expandedRows);
|
|
350
|
-
return;
|
|
351
|
-
} else {
|
|
352
|
-
expandedRows.forEach((item) => {
|
|
353
|
-
if (getRowKey(row) === getRowKey(item)) return;
|
|
354
|
-
toggleRowExpansion(item);
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
407
|
const isSearchFocus = ref(false);
|
|
359
408
|
function onSearchInputHandler() {
|
|
360
409
|
isSearchFocus.value = true;
|
|
@@ -386,10 +435,13 @@ const useAppTableWrapper = (hy) => {
|
|
|
386
435
|
getSelectedList,
|
|
387
436
|
clearSelection,
|
|
388
437
|
clearSelectedList,
|
|
438
|
+
expandRowKeys,
|
|
439
|
+
expandRowKeyMap,
|
|
440
|
+
setRowExpansion,
|
|
389
441
|
toggleRowExpansion,
|
|
442
|
+
onTableRowExpandChangeHandler,
|
|
390
443
|
onTableSelectHandler,
|
|
391
444
|
onTableRowContextmenuHandler,
|
|
392
|
-
onTableRowExpandChangeHandler,
|
|
393
445
|
onTableRowClickHandler,
|
|
394
446
|
onTableColumnsSelectHandler,
|
|
395
447
|
// 搜索选中
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { toRef } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import '../../index.mjs';
|
|
4
5
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
|
+
import { isPermission, isBoolean, isString, isObject, isEmpty } from '../../../utils/is.mjs';
|
|
7
|
+
import { useAppSearch } from '../../hySearch/js/useAppSearch.mjs';
|
|
5
8
|
|
|
6
9
|
function getColumnDefaultConfig(column) {
|
|
7
10
|
const { t } = useLocale();
|
|
@@ -23,7 +26,8 @@ function getColumnDefaultConfig(column) {
|
|
|
23
26
|
case "operator":
|
|
24
27
|
return {
|
|
25
28
|
label: t("table.operator"),
|
|
26
|
-
prop: `operator_prop
|
|
29
|
+
prop: `operator_prop`,
|
|
30
|
+
fixed: "right"
|
|
27
31
|
};
|
|
28
32
|
default:
|
|
29
33
|
return {};
|
|
@@ -108,8 +112,8 @@ const useAppTable = (config = {}) => {
|
|
|
108
112
|
try {
|
|
109
113
|
for (let i = 0; i < columns?.length; i++) {
|
|
110
114
|
const column = columns[i];
|
|
111
|
-
if (isEmpty(column.prop) && column.type
|
|
112
|
-
|
|
115
|
+
if (isEmpty(column.prop) && !/^(selection|index|expand|operator)$/.test(column.type)) {
|
|
116
|
+
console.error("\u3010column.prop\u3011\u4E0D\u80FD\u4E3A\u7A7A");
|
|
113
117
|
}
|
|
114
118
|
const sort = getColumnSort(column);
|
|
115
119
|
if (!defaultSortInfo && sort.default) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent, useModel, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, toDisplayString, withCtx, renderSlot, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers, mergeModels } from 'vue';
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, toDisplayString, withCtx, renderSlot, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers, isRef, mergeModels } from 'vue';
|
|
2
2
|
import { ElTable, ElTableColumn, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElAutoResizer, ElPagination } from 'element-plus';
|
|
3
3
|
import { MoreFilled } from '@element-plus/icons-vue';
|
|
4
|
+
import '../index.mjs';
|
|
5
|
+
import '../../hooks/index.mjs';
|
|
6
|
+
import '../../utils/index.mjs';
|
|
4
7
|
import { useAppTableWrapper, operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
|
|
5
8
|
import { useAppTableSearch } from './js/search.mjs';
|
|
6
9
|
import _sfc_main$2 from './cpns/headerItem.vue.mjs';
|
|
@@ -185,10 +188,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
185
188
|
type: String,
|
|
186
189
|
default: "default"
|
|
187
190
|
// deafult-默认 accordion-手风琴
|
|
188
|
-
},
|
|
189
|
-
onExpandChange: {
|
|
190
|
-
// 展开回调
|
|
191
|
-
type: Function
|
|
192
191
|
}
|
|
193
192
|
}, {
|
|
194
193
|
"loading": { type: Boolean, default: false },
|
|
@@ -197,6 +196,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
197
196
|
emits: /* @__PURE__ */ mergeModels([
|
|
198
197
|
"row-click",
|
|
199
198
|
"select-all",
|
|
199
|
+
"expand-change",
|
|
200
200
|
"on-select-checkbox",
|
|
201
201
|
"reqSuccess",
|
|
202
202
|
"search-data"
|
|
@@ -227,6 +227,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
227
227
|
setTableRowClassName,
|
|
228
228
|
clearSelection,
|
|
229
229
|
clearSelectedList,
|
|
230
|
+
expandRowKeys,
|
|
231
|
+
expandRowKeyMap,
|
|
232
|
+
setRowExpansion,
|
|
230
233
|
toggleRowExpansion,
|
|
231
234
|
onTableRowClickHandler,
|
|
232
235
|
onTableRowContextmenuHandler,
|
|
@@ -278,6 +281,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
278
281
|
getTableDataSource,
|
|
279
282
|
clearSelection,
|
|
280
283
|
clearSelectedList,
|
|
284
|
+
setRowExpansion,
|
|
281
285
|
toggleRowExpansion,
|
|
282
286
|
showAppTableLoading,
|
|
283
287
|
closeAppTableLoading
|
|
@@ -406,6 +410,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
406
410
|
style: {
|
|
407
411
|
"font-size": `${unref(parseRem)(__props.fontSize)}rem`
|
|
408
412
|
},
|
|
413
|
+
"expand-row-keys": unref(expandRowKeys),
|
|
409
414
|
onSelect: unref(onTableSelectHandler),
|
|
410
415
|
onSelectAll: unref(onTableSelectHandler),
|
|
411
416
|
onRowClick: unref(onTableRowClickHandler),
|
|
@@ -658,13 +663,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
658
663
|
]),
|
|
659
664
|
_: 3
|
|
660
665
|
/* FORWARDED */
|
|
661
|
-
}, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])) : createCommentVNode("v-if", true),
|
|
666
|
+
}, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "expand-row-keys", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])) : createCommentVNode("v-if", true),
|
|
662
667
|
__props.type === "virtual" ? (openBlock(), createBlock(unref(ElAutoResizer), { key: 1 }, {
|
|
663
668
|
default: withCtx(({ height, width }) => [
|
|
664
669
|
createVNode(_sfc_main$3, mergeProps({
|
|
665
670
|
ref_key: "tableRef",
|
|
666
671
|
ref: tableRef
|
|
667
672
|
}, _ctx.$attrs, {
|
|
673
|
+
expandedRowKeys: unref(expandRowKeys),
|
|
674
|
+
"onUpdate:expandedRowKeys": ($event) => isRef(expandRowKeys) ? expandRowKeys.value = $event : null,
|
|
675
|
+
expandRowKeyMap: unref(expandRowKeyMap),
|
|
668
676
|
width,
|
|
669
677
|
height,
|
|
670
678
|
data: unref(tableDataSource),
|
|
@@ -684,7 +692,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
684
692
|
onSelectAll: unref(onTableSelectHandler),
|
|
685
693
|
onRowClick: unref(onTableRowClickHandler),
|
|
686
694
|
onRowContextmenu: unref(onTableRowContextmenuHandler),
|
|
687
|
-
|
|
695
|
+
onExpandClick: unref(onTableRowExpandChangeHandler)
|
|
688
696
|
}), createSlots({
|
|
689
697
|
empty: withCtx(() => [
|
|
690
698
|
createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
|
|
@@ -710,7 +718,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
710
718
|
])
|
|
711
719
|
};
|
|
712
720
|
})
|
|
713
|
-
]), 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", "
|
|
721
|
+
]), 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"])
|
|
714
722
|
]),
|
|
715
723
|
_: 3
|
|
716
724
|
/* FORWARDED */
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, computed, unref, watch, openBlock, createElementBlock, createBlock, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createCommentVNode, normalizeStyle } from 'vue';
|
|
2
2
|
import { ElPopover, ElIcon } from 'element-plus';
|
|
3
3
|
import { Warning, ArrowDown } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
6
|
+
import '../index.mjs';
|
|
4
7
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
8
|
+
import { isPermission, isBoolean, isFunction } from '../../utils/is.mjs';
|
|
5
9
|
import { HyTooltip } from '../hyTooltip/index.mjs';
|
|
6
10
|
import { HyButton } from '../hyButton/index.mjs';
|
|
7
11
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
8
|
-
import { isPermission } from '../../utils/is.mjs';
|
|
9
12
|
|
|
10
13
|
import "./style/tableActionButton.scss";
|
|
11
14
|
|
|
@@ -115,11 +118,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
115
118
|
return false;
|
|
116
119
|
}
|
|
117
120
|
const show = unref(operate.show);
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return !!show;
|
|
122
|
-
}
|
|
121
|
+
if (isBoolean(show)) return show;
|
|
122
|
+
if (isFunction(show)) return show();
|
|
123
|
+
return true;
|
|
123
124
|
}
|
|
124
125
|
watch(() => props.operateList, setSelectedData, { deep: true, immediate: true });
|
|
125
126
|
__expose({});
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, useModel, ref, nextTick, openBlock, createElementBlock, withDirectives, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, createCommentVNode, toDisplayString, renderSlot, vShow, createTextVNode, mergeProps, createSlots, normalizeProps, guardReactiveProps, normalizeStyle, mergeModels } from 'vue';
|
|
2
|
-
import { ElUpload, ElIcon
|
|
2
|
+
import { ElMessage, ElUpload, ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
6
|
+
import '../index.mjs';
|
|
4
7
|
import _sfc_main$1 from './tableForm.vue.mjs';
|
|
5
8
|
import { doReadExcel } from './js/index.mjs';
|
|
6
9
|
import { useApi } from '../../hooks/useApi.mjs';
|
|
7
10
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
11
|
+
import { HyConfirmDialog } from '../hyConfirmDialog/index.mjs';
|
|
8
12
|
import { isArray } from '../../utils/is.mjs';
|
|
9
13
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
10
14
|
import { HyButton } from '../hyButton/index.mjs';
|
|
11
|
-
import { HyConfirmDialog } from '../hyConfirmDialog/index.mjs';
|
|
12
15
|
|
|
13
16
|
import "./style/batchTableForm.scss";
|
|
14
17
|
|