hy-dispatch-ui-v3 0.2.62 → 0.2.63
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 +1 -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 +92 -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 +3 -0
- package/es/components/hyForm/form.vue.mjs +3 -0
- 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 +7 -2
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +10 -10
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +5 -2
- package/es/components/hyTable/table.vue.mjs +3 -0
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
- 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 +15 -2
- package/es/components/hyTree/tree.vue.mjs +9 -4
- 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/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 +1 -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 +90 -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 +3 -0
- package/lib/components/hyForm/form.vue.js +3 -0
- 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 +6 -1
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +9 -9
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +4 -1
- package/lib/components/hyTable/table.vue.js +3 -0
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
- 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 +14 -1
- package/lib/components/hyTree/tree.vue.js +9 -4
- 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/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,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,10 +1,13 @@
|
|
|
1
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';
|
|
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
|
|
|
@@ -181,6 +184,7 @@ const _sfc_main = {
|
|
|
181
184
|
}
|
|
182
185
|
const checkedNodeMap = new Map(selectedMap.value);
|
|
183
186
|
const isChecked = isBoolean(selected) ? selected : !checkedNodeMap.has(key);
|
|
187
|
+
const checkStrictly = false;
|
|
184
188
|
const toggle = (node, checked) => {
|
|
185
189
|
const nodeKey = getRowKey(node);
|
|
186
190
|
if (isSelectable(node)) {
|
|
@@ -191,7 +195,7 @@ const _sfc_main = {
|
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
197
|
const children = node.children;
|
|
194
|
-
if (children) {
|
|
198
|
+
if (!checkStrictly && children) {
|
|
195
199
|
children.forEach((childNode) => {
|
|
196
200
|
toggle(childNode, checked);
|
|
197
201
|
});
|
|
@@ -387,6 +391,7 @@ const _sfc_main = {
|
|
|
387
391
|
onClick: withModifiers(($event) => onRowExpandSwitch({
|
|
388
392
|
rowData: _ctx.rowData,
|
|
389
393
|
row,
|
|
394
|
+
rowIndex: $index,
|
|
390
395
|
rowKey: getRowKey(row)
|
|
391
396
|
}), ["stop"])
|
|
392
397
|
}, [
|
|
@@ -1,8 +1,11 @@
|
|
|
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 { usePermissionMap } from '../../../hooks/usePermissionMap.mjs';
|
|
8
|
+
import { ElLoading as HyLoading } from '../../hyLoading/index.mjs';
|
|
6
9
|
|
|
7
10
|
function tableColumnShowHandler(column) {
|
|
8
11
|
if (column.permission && !isPermission(column.permission)) {
|
|
@@ -28,7 +31,7 @@ function tableColumnsEditableleHandler(columns, columnsEditablele) {
|
|
|
28
31
|
column
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
|
-
Array.from(sortSet.values()).reduce((a, b) => a - b);
|
|
34
|
+
const sortList = Array.from(sortSet.values()).reduce((a, b) => a - b);
|
|
32
35
|
const columnsList = Object.keys(columnsEditableleObj).reduce(
|
|
33
36
|
(columnsList2, key) => {
|
|
34
37
|
const list = columnsEditableleObj[key];
|
|
@@ -198,14 +201,11 @@ const useAppTableWrapper = (hy) => {
|
|
|
198
201
|
function showAppTableLoading() {
|
|
199
202
|
if (loadingInstance || !props.showLoading) return;
|
|
200
203
|
closeAppTableLoading();
|
|
201
|
-
loadingInstance =
|
|
204
|
+
loadingInstance = HyLoading.service({
|
|
202
205
|
target: containerRef.value,
|
|
203
206
|
body: false,
|
|
204
207
|
fullscreen: false,
|
|
205
|
-
|
|
206
|
-
lock: true,
|
|
207
|
-
// spinner: 'el-icon-loading',
|
|
208
|
-
background: "rgba(0, 0, 0, 0.8)"
|
|
208
|
+
lock: true
|
|
209
209
|
});
|
|
210
210
|
loadingTimer = setTimeout(() => {
|
|
211
211
|
closeAppTableLoading();
|
|
@@ -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();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
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';
|
|
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';
|
|
@@ -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 } 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
|
|
|
@@ -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
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import XLSX from 'xlsx';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import 'vue';
|
|
2
4
|
import AsyncValidator from 'async-validator';
|
|
5
|
+
import { ElMessage } from 'element-plus';
|
|
3
6
|
import { columnShowHandler } from '../../hyForm/js/index.mjs';
|
|
7
|
+
import '../../../utils/index.mjs';
|
|
8
|
+
import '../../../hooks/index.mjs';
|
|
4
9
|
import { columnRuleHandler, setValueByProp, getValueByProp } from '../../../utils/form.mjs';
|
|
5
10
|
import { isArray } from '../../../utils/is.mjs';
|
|
6
11
|
|
|
@@ -69,5 +74,36 @@ const doReadExcel = (files, props) => {
|
|
|
69
74
|
fileReader.readAsBinaryString(files[0]);
|
|
70
75
|
});
|
|
71
76
|
};
|
|
77
|
+
function blobDownloadFn(blob, name) {
|
|
78
|
+
return new Promise((resolve, reject) => {
|
|
79
|
+
ElMessage.warning("\u5F00\u59CB\u4E0B\u8F7D");
|
|
80
|
+
const today = dayjs().format("YYYY-MM-DD HH:mm:ss");
|
|
81
|
+
const reader = new FileReader();
|
|
82
|
+
reader.readAsDataURL(blob);
|
|
83
|
+
reader.onload = function(ev) {
|
|
84
|
+
let url = null;
|
|
85
|
+
try {
|
|
86
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
87
|
+
const blobObject = new Blob([blob]);
|
|
88
|
+
window.navigator.msSaveOrOpenBlob(blobObject, `${name}_${today}.xls`);
|
|
89
|
+
} else {
|
|
90
|
+
url = URL.createObjectURL(new Blob([blob]));
|
|
91
|
+
const a = document.createElement("a");
|
|
92
|
+
document.body.appendChild(a);
|
|
93
|
+
a.href = url;
|
|
94
|
+
a.download = `${name}_${today}.xls`;
|
|
95
|
+
a.target = "_blank";
|
|
96
|
+
a.click();
|
|
97
|
+
a.remove();
|
|
98
|
+
}
|
|
99
|
+
resolve();
|
|
100
|
+
} catch (error) {
|
|
101
|
+
reject(error);
|
|
102
|
+
} finally {
|
|
103
|
+
if (url) URL.revokeObjectURL(url);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
}
|
|
72
108
|
|
|
73
109
|
export { doReadExcel, doValidate };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createBlock, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps
|
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, nextTick, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createBlock, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Warning } from '@element-plus/icons-vue';
|
|
4
|
+
import '../index.mjs';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
4
6
|
import { doValidate } from './js/index.mjs';
|
|
5
7
|
import { useAppTable } from '../hyTable/js/useAppTable.mjs';
|
|
8
|
+
import { resetAppFormValue } from '../hyForm/js/useAppForm.mjs';
|
|
6
9
|
import { isArray, isObject } from '../../utils/is.mjs';
|
|
7
10
|
import { cloneDeep } from '../../utils/handler.mjs';
|
|
8
11
|
import { HyButton } from '../hyButton/index.mjs';
|
|
9
12
|
import { HyTable } from '../hyTable/index.mjs';
|
|
10
13
|
import { HyForm } from '../hyForm/index.mjs';
|
|
11
|
-
import { resetAppFormValue } from '../hyForm/js/useAppForm.mjs';
|
|
12
14
|
|
|
13
15
|
import "./style/tableForm.scss";
|
|
14
16
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { useTemplateRef, useModel, computed, watch, unref, openBlock, createBlock, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels
|
|
1
|
+
import { defineComponent, useTemplateRef, useModel, computed, watch, unref, openBlock, createBlock, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import { ElTimePicker } from 'element-plus';
|
|
4
|
+
import '../../utils/index.mjs';
|
|
5
|
+
import '../../hooks/index.mjs';
|
|
4
6
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
7
|
import { isArray } from '../../utils/is.mjs';
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ref, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeClass
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeClass } from 'vue';
|
|
2
2
|
import { ElTooltip } from 'element-plus';
|
|
3
|
-
import
|
|
3
|
+
import '../../utils/index.mjs';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
5
|
+
import { isNumber, isOverflowing, isBoolean } from '../../utils/is.mjs';
|
|
4
6
|
import { useTooltipConfig } from '../../hooks/useTooltipConfig.mjs';
|
|
5
7
|
|
|
6
8
|
import "./style/tooltip.scss";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElMessage } from 'element-plus';
|
|
2
|
-
import { getCurrentInstance, ref, watch,
|
|
2
|
+
import { getCurrentInstance, ref, watch, h, render, computed } from 'vue';
|
|
3
3
|
import { treeTypeConfig } from '../config/tree-config.mjs';
|
|
4
4
|
|
|
5
5
|
const deviceStatus = {
|
|
@@ -61,7 +61,7 @@ const useAppTreeWrapper = (hy) => {
|
|
|
61
61
|
emptyText: "\u6682\u65E0\u6570\u636E",
|
|
62
62
|
business: props2.treeType,
|
|
63
63
|
// 自定义整体的插槽
|
|
64
|
-
renderItem: props2.treeType === treeTypeConfig.user ? (data, node) => setUserSlot(data) : setSlot("treeParentSlot"),
|
|
64
|
+
renderItem: props2.treeType === treeTypeConfig.user ? (data, node) => setUserSlot(data, node) : setSlot("treeParentSlot"),
|
|
65
65
|
// // 自定义状态右侧插槽
|
|
66
66
|
renderRight: (data) => {
|
|
67
67
|
let renderRight = setSlot("renderRight");
|
|
@@ -152,6 +152,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
152
152
|
// 筛选方法
|
|
153
153
|
filterMethod: ({ filterValue: filterValue2 }, data) => {
|
|
154
154
|
let isFilter = true;
|
|
155
|
+
if (props2.filterMethod) {
|
|
156
|
+
isFilter = props2.filterMethod(data, { filterValue: filterValue2 });
|
|
157
|
+
}
|
|
155
158
|
if (filterValue2) {
|
|
156
159
|
isFilter = isFilter && !!filterNodeMethod(data, filterValue2, {
|
|
157
160
|
treeFilterParam: props2.treeFilterParam
|
|
@@ -356,6 +359,13 @@ const useAppTreeWrapper = (hy) => {
|
|
|
356
359
|
}
|
|
357
360
|
return true;
|
|
358
361
|
}
|
|
362
|
+
function setGroupRenderItem(data, node) {
|
|
363
|
+
const slot = setSlot("treeParentSlot");
|
|
364
|
+
if (slot) {
|
|
365
|
+
return slot(data, node);
|
|
366
|
+
}
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
359
369
|
function setSlot(slotName) {
|
|
360
370
|
if (!slotName || !slots[slotName]) return null;
|
|
361
371
|
return (data, node) => {
|
|
@@ -396,6 +406,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
396
406
|
function addDevice() {
|
|
397
407
|
emits("on-addDevice");
|
|
398
408
|
}
|
|
409
|
+
function setDeviceStatus(payload) {
|
|
410
|
+
virtualTree?.updateData([payload]);
|
|
411
|
+
}
|
|
399
412
|
function singleRemovalFn(row) {
|
|
400
413
|
if (props2.treeType === "device") {
|
|
401
414
|
virtualTree.setChecked(row.channelId || row.deviceId, false, true);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useSlots, ref, onMounted, resolveDirective, openBlock, createElementBlock, normalizeStyle, unref, createVNode, withCtx, createElementVNode, isRef, withKeys, Fragment, renderList, createBlock, createCommentVNode, renderSlot, withDirectives } from 'vue';
|
|
2
2
|
import { ElTooltip, ElInput, ElSelect, ElOption } from 'element-plus';
|
|
3
|
+
import '../index.mjs';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
3
5
|
import { VirtualTree } from 'hy-virtual-tree';
|
|
4
6
|
import { useAppTreeWrapper } from './js/index.mjs';
|
|
5
7
|
import { searchTypeConfig, treeTypeConfig } from './config/tree-config.mjs';
|
|
@@ -177,6 +179,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
177
179
|
filterConfig: {
|
|
178
180
|
type: Array,
|
|
179
181
|
default: () => []
|
|
182
|
+
},
|
|
183
|
+
// 外部自定义过滤函数
|
|
184
|
+
filterMethod: {
|
|
185
|
+
type: Function,
|
|
186
|
+
default: () => null
|
|
180
187
|
}
|
|
181
188
|
},
|
|
182
189
|
emits: [
|
|
@@ -223,7 +230,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
223
230
|
[useAppTreeWrapper]
|
|
224
231
|
);
|
|
225
232
|
onMounted(() => {
|
|
226
|
-
if (props.searchType === 2)
|
|
233
|
+
if (props.searchType === 2) {
|
|
234
|
+
}
|
|
227
235
|
setFilterListType();
|
|
228
236
|
});
|
|
229
237
|
__expose({
|
|
@@ -345,9 +353,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
345
353
|
withDirectives(createElementVNode(
|
|
346
354
|
"div",
|
|
347
355
|
{
|
|
348
|
-
"element-loading-text": "\u52A0\u8F7D\u4E2D...",
|
|
349
|
-
"element-loading-spinner": "el-icon-loading",
|
|
350
|
-
"element-loading-background": "rgba(0, 0, 0, 0.8)",
|
|
351
356
|
ref_key: "treeRef",
|
|
352
357
|
ref: treeRef,
|
|
353
358
|
style: { "width": "100%" },
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, unref, openBlock, createElementBlock, normalizeStyle, createBlock, normalizeClass, createCommentVNode } from 'vue';
|
|
2
|
+
import '../../utils/index.mjs';
|
|
3
|
+
import '../../hooks/index.mjs';
|
|
4
|
+
import '../index.mjs';
|
|
2
5
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
3
6
|
import { useUserAvatarMap } from '../../hooks/useUserAvatarMap.mjs';
|
|
4
|
-
import { HyIcon } from '../hyIcon/index.mjs';
|
|
5
7
|
import { pxTorem } from '../../utils/adaptive.mjs';
|
|
8
|
+
import { HyIcon } from '../hyIcon/index.mjs';
|
|
6
9
|
|
|
7
10
|
import "./style/userAvatar.scss";
|
|
8
11
|
|
|
@@ -53,6 +56,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
53
56
|
emits: [],
|
|
54
57
|
setup(__props, { emit: __emit }) {
|
|
55
58
|
const props = __props;
|
|
59
|
+
const emits = __emit;
|
|
56
60
|
const { t } = useLocale();
|
|
57
61
|
const { userAvatarMap } = useUserAvatarMap();
|
|
58
62
|
const isGbDevice = computed(
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { ref, computed, nextTick } from 'vue';
|
|
2
2
|
import { ElMessage } from 'element-plus';
|
|
3
|
+
import 'dayjs';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import '../../../utils/index.mjs';
|
|
6
|
+
import '../../index.mjs';
|
|
3
7
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
4
8
|
import { useVideoPlayerConfig } from '../../../hooks/useVideoPlayerConfig.mjs';
|
|
5
9
|
import { formatDuration } from '../../../utils/date.mjs';
|
|
10
|
+
import { isSupportH265 } from '../../../utils/is.mjs';
|
|
6
11
|
import { HyConfirmDialog } from '../../hyConfirmDialog/index.mjs';
|
|
7
12
|
import { copyText } from '../../../utils/handler.mjs';
|
|
8
|
-
import { isSupportH265 } from '../../../utils/is.mjs';
|
|
9
13
|
|
|
10
14
|
const useVideoPlayer = (hy) => {
|
|
11
15
|
const { props, emits, videoRef, videoWrapperRef } = hy;
|
|
@@ -277,7 +281,8 @@ const useVideoPlayer = (hy) => {
|
|
|
277
281
|
}
|
|
278
282
|
function fullscreenchangeHandler(e) {
|
|
279
283
|
videoWrapperRef.value.style.setProperty("transition", "none");
|
|
280
|
-
if (document.fullscreenElement)
|
|
284
|
+
if (document.fullscreenElement) {
|
|
285
|
+
} else {
|
|
281
286
|
isFullScreen.value = false;
|
|
282
287
|
}
|
|
283
288
|
setTimeout(() => {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createVNode, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createTextVNode, normalizeStyle, withDirectives, isRef, vModelText, renderList, renderSlot } from 'vue';
|
|
2
2
|
import { ElPopover, ElSlider } from 'element-plus';
|
|
3
|
+
import '../../hooks/index.mjs';
|
|
4
|
+
import '../../utils/index.mjs';
|
|
5
|
+
import '../index.mjs';
|
|
3
6
|
import _sfc_main$1 from './cpns/mediaLoading.vue.mjs';
|
|
4
7
|
import { useVideoPlayer, useVideoResize } from './js/index.mjs';
|
|
5
8
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
package/es/components/index.mjs
CHANGED
|
@@ -25,6 +25,7 @@ export { HyTableActionButton } from './hyTableActionButton/index.mjs';
|
|
|
25
25
|
export { HyBatchUploadDialog } from './hyBatchUploadDialog/index.mjs';
|
|
26
26
|
export { HyMap } from './hyMap/index.mjs';
|
|
27
27
|
export { HyRadioGroup } from './hyRadioGroup/index.mjs';
|
|
28
|
+
export { ElLoading, ElLoading as HyLoading } from './hyLoading/index.mjs';
|
|
28
29
|
export { resetAppFormValue, useAppForm } from './hyForm/js/useAppForm.mjs';
|
|
29
30
|
export { resetAppSearchValue, useAppSearch } from './hySearch/js/useAppSearch.mjs';
|
|
30
31
|
export { useAppTable } from './hyTable/js/useAppTable.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance, inject,
|
|
1
|
+
import { ref, getCurrentInstance, inject, computed, provide, unref } from 'vue';
|
|
2
2
|
import * as index from '../locale/index.mjs';
|
|
3
3
|
import { localeContextKey } from './useLocale.mjs';
|
|
4
4
|
import { localApiKey } from './useApi.mjs';
|
package/es/hooks/useLocale.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unref, computed, isRef, ref, getCurrentInstance, inject } from 'vue';
|
|
2
2
|
import { get } from 'lodash-unified';
|
|
3
|
+
import './index.mjs';
|
|
4
|
+
import '../utils/index.mjs';
|
|
3
5
|
import * as index from '../locale/index.mjs';
|
|
4
|
-
import { useGlobalConfig } from './useGlobalConfig.mjs';
|
|
5
6
|
import { isEmpty } from '../utils/is.mjs';
|
|
6
7
|
import zh_CN from '../locale/zh_CN.mjs';
|
|
8
|
+
import { useGlobalConfig } from './useGlobalConfig.mjs';
|
|
7
9
|
|
|
8
10
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
9
11
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|