hy-dispatch-ui-v3 0.2.61 → 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 +70 -5
- package/es/api/device.mjs +19 -0
- package/es/api/index.mjs +2 -1
- package/es/api/sypct.mjs +19 -0
- package/es/api/task.mjs +19 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +7 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +650 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +366 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +101 -0
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/es/bussiness/index.mjs +1 -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 +23 -3
- 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 +10 -3
- package/es/components/hyConfigProvider/configProvider.vue.mjs +6 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +6 -2
- 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 +98 -14
- 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 +6 -1
- 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 +11 -3
- 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 +20 -2
- 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 +11 -1
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
- package/es/components/hyTableForm/batchTableForm.vue.mjs +41 -61
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +13 -27
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +12 -4
- 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/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +6 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useMapConfig.mjs +18 -0
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +8 -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-editorialdownsizing.js +14 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/es/style/element/hy-element.scss +10 -1
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +6 -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 +5 -2
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +21 -0
- package/lib/api/index.js +2 -1
- package/lib/api/sypct.js +21 -0
- package/lib/api/task.js +21 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +12 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +652 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +370 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +105 -0
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/lib/bussiness/index.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 +23 -3
- 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 +10 -3
- package/lib/components/hyConfigProvider/configProvider.vue.js +5 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +6 -2
- 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 +96 -12
- 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 +6 -1
- 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 +11 -3
- 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 +18 -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 +11 -1
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
- package/lib/components/hyTableForm/batchTableForm.vue.js +42 -62
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +12 -27
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +19 -11
- 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/index.js +3 -0
- package/lib/hooks/useGlobalConfig.js +5 -0
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useMapConfig.js +21 -0
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +73 -59
- 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-editorialdownsizing.js +14 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/lib/style/element/hy-element.scss +10 -1
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +5 -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 +5 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading } from '@element-plus/icons-vue';
|
|
4
|
+
import '../index.mjs';
|
|
4
5
|
import { HyTooltip } from '../hyTooltip/index.mjs';
|
|
5
6
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
6
7
|
|
|
@@ -119,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
119
120
|
}, {
|
|
120
121
|
default: withCtx(() => [
|
|
121
122
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
122
|
-
createElementVNode("div", { class: "flex items-center text-main px-3" }, [
|
|
123
|
+
createElementVNode("div", { class: "h-full flex items-center text-main px-3" }, [
|
|
123
124
|
!__props.loading ? renderSlot(_ctx.$slots, "svg", {}, () => [
|
|
124
125
|
__props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
|
|
125
126
|
key: 0,
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
color: inherit;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
font-size: 14px;
|
|
11
|
-
padding: 2px;
|
|
12
|
-
border: 1px solid transparent;
|
|
13
11
|
box-sizing: border-box;
|
|
12
|
+
border-radius: 4px;
|
|
14
13
|
|
|
15
14
|
&:disabled,
|
|
16
15
|
&.is-disabled {
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
opacity: 0.55;
|
|
19
18
|
}
|
|
20
19
|
&.is-loading {
|
|
21
|
-
cursor:
|
|
20
|
+
cursor: wait;
|
|
22
21
|
}
|
|
23
22
|
&.hy-button--large {
|
|
24
23
|
height: 40px;
|
|
@@ -35,6 +34,8 @@
|
|
|
35
34
|
|
|
36
35
|
&.hy-button_default {
|
|
37
36
|
background: rgba(94, 157, 180, 0.32);
|
|
37
|
+
border: 1px solid rgba(94, 157, 180, 1);
|
|
38
|
+
box-shadow: 0px 0px 0px 2px rgba(94, 157, 180, 0.5);
|
|
38
39
|
|
|
39
40
|
.hy-button__border {
|
|
40
41
|
background: linear-gradient(
|
|
@@ -99,6 +100,8 @@
|
|
|
99
100
|
|
|
100
101
|
&.hy-button_function {
|
|
101
102
|
background: rgba(45, 242, 255, 0.32);
|
|
103
|
+
border: 1px solid rgba(45, 242, 255, 1);
|
|
104
|
+
box-shadow: 0px 0px 0px 2px rgba(45, 242, 255, 0.5);
|
|
102
105
|
|
|
103
106
|
.hy-button__border {
|
|
104
107
|
background: linear-gradient(
|
|
@@ -163,6 +166,8 @@
|
|
|
163
166
|
|
|
164
167
|
&.hy-button_addTo {
|
|
165
168
|
background: rgba(44, 232, 152, 0.32);
|
|
169
|
+
border: 1px solid rgba(44, 232, 152, 1);
|
|
170
|
+
box-shadow: 0px 0px 0px 2px rgba(44, 232, 152, 0.5);
|
|
166
171
|
|
|
167
172
|
.hy-button__border {
|
|
168
173
|
background: linear-gradient(
|
|
@@ -227,6 +232,8 @@
|
|
|
227
232
|
|
|
228
233
|
&.hy-button_delete {
|
|
229
234
|
background: rgba(255, 77, 77, 0.32);
|
|
235
|
+
border: 1px solid rgba(255, 77, 77, 1);
|
|
236
|
+
box-shadow: 0px 0px 0px 2px rgba(255, 77, 77, 0.5);
|
|
230
237
|
|
|
231
238
|
.hy-button__border {
|
|
232
239
|
background: linear-gradient(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { unref, computed, openBlock, createBlock, mergeProps, withCtx, renderSlot
|
|
1
|
+
import { defineComponent, unref, computed, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
2
|
import { ElConfigProvider } from 'element-plus';
|
|
3
3
|
import * as ElementLocale from 'element-plus/es/locales.mjs';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
4
5
|
import { provideGlobalConfig, useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
|
|
5
6
|
|
|
6
7
|
const __default__ = defineComponent({
|
|
@@ -76,6 +77,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
76
77
|
tooltip: {
|
|
77
78
|
type: Object,
|
|
78
79
|
required: false
|
|
80
|
+
},
|
|
81
|
+
mapConfig: {
|
|
82
|
+
type: Object,
|
|
83
|
+
required: false
|
|
79
84
|
}
|
|
80
85
|
},
|
|
81
86
|
setup(__props) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, normalizeStyle, normalizeClass, toDisplayString, createElementBlock, createTextVNode, withModifiers, mergeModels } from 'vue';
|
|
2
2
|
import { ElDialog } from 'element-plus';
|
|
3
|
+
import '../../hooks/index.mjs';
|
|
4
|
+
import '../index.mjs';
|
|
3
5
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
6
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
5
7
|
import { HyButton } from '../hyButton/index.mjs';
|
|
@@ -198,6 +200,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
198
200
|
key: 0,
|
|
199
201
|
type: __props.cancelType,
|
|
200
202
|
disabled: loading.value,
|
|
203
|
+
class: "min-w-[120px]",
|
|
201
204
|
onClick: onCancelHandler
|
|
202
205
|
}, {
|
|
203
206
|
default: withCtx(() => [
|
|
@@ -213,7 +216,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
213
216
|
__props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
|
|
214
217
|
key: 1,
|
|
215
218
|
type: __props.submitType,
|
|
216
|
-
|
|
219
|
+
loading: loading.value,
|
|
220
|
+
class: "min-w-[120px]",
|
|
217
221
|
onClick: onSubmitHandler
|
|
218
222
|
}, {
|
|
219
223
|
default: withCtx(() => [
|
|
@@ -225,7 +229,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
225
229
|
]),
|
|
226
230
|
_: 1
|
|
227
231
|
/* STABLE */
|
|
228
|
-
}, 8, ["type", "
|
|
232
|
+
}, 8, ["type", "loading"])) : createCommentVNode("v-if", true)
|
|
229
233
|
])) : createCommentVNode("v-if", true)
|
|
230
234
|
])
|
|
231
235
|
]),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { unref, createVNode, render } from 'vue';
|
|
2
|
+
import '../../hooks/index.mjs';
|
|
2
3
|
import { defaultAxios } from '../../hooks/useApi.mjs';
|
|
4
|
+
import '../index.mjs';
|
|
3
5
|
import _sfc_main from './confirmDialog.vue.mjs';
|
|
4
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
6
|
import { useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
|
|
6
7
|
import { HyConfigProvider } from '../hyConfigProvider/index.mjs';
|
|
8
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
7
9
|
|
|
8
10
|
function appConfirmMethod(config) {
|
|
9
11
|
let container = document.createDocumentFragment();
|
|
@@ -83,11 +85,11 @@ _sfc_main.danger = (props) => {
|
|
|
83
85
|
const { t } = useLocale();
|
|
84
86
|
return appConfirmMethod({
|
|
85
87
|
dialogTitle: t("dialog.dangerousOperation"),
|
|
86
|
-
titleClass: "text-danger",
|
|
88
|
+
titleClass: "text-danger-2",
|
|
87
89
|
title: t("dialog.prompt"),
|
|
88
90
|
content: t("dialog.content"),
|
|
89
91
|
submitType: "danger",
|
|
90
|
-
iconColor: "rgb(var(--hy-danger))",
|
|
92
|
+
iconColor: "rgb(var(--hy-danger-2))",
|
|
91
93
|
...props
|
|
92
94
|
});
|
|
93
95
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, renderSlot, normalizeStyle, createBlock, Fragment, createCommentVNode, toDisplayString, withModifiers, vShow, mergeProps, mergeModels } from 'vue';
|
|
2
2
|
import { VueCropper } from 'vue-cropper';
|
|
3
|
-
import { ElUpload, ElImage, ElIcon
|
|
3
|
+
import { ElMessage, ElUpload, ElImage, ElIcon } from 'element-plus';
|
|
4
4
|
import { User, Delete } from '@element-plus/icons-vue';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
6
|
+
import '../index.mjs';
|
|
7
|
+
import '../../hooks/index.mjs';
|
|
5
8
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
6
|
-
import {
|
|
9
|
+
import { sizeToTextHandler, blobToDataURL, fileUpload } from '../../utils/file.mjs';
|
|
7
10
|
import { HyDialog } from '../hyDialog/index.mjs';
|
|
8
11
|
|
|
9
12
|
import "vue-cropper/dist/index.css";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, useModel, computed, watch, unref, openBlock, createBlock, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
|
|
2
2
|
import { ElDatePicker } from 'element-plus';
|
|
3
|
+
import '../../utils/index.mjs';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
3
5
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
6
|
import { getDefaultValueFormatByType } from '../../utils/date.mjs';
|
|
5
7
|
import { isArray } from '../../utils/is.mjs';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { useModel, computed, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx,
|
|
2
|
-
import { ElDialog } from 'element-plus';
|
|
1
|
+
import { defineComponent, useModel, computed, ref, resolveDirective, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, withDirectives, renderSlot, createElementVNode, normalizeClass, createBlock, withModifiers, createTextVNode, toDisplayString, renderList, mergeModels } from 'vue';
|
|
2
|
+
import { ElDialog, ElPopover } from 'element-plus';
|
|
3
|
+
import '../index.mjs';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
3
5
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
6
|
import { HyButton } from '../hyButton/index.mjs';
|
|
5
7
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
@@ -14,6 +16,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
14
16
|
title: { type: String, default: "\u6807\u9898" },
|
|
15
17
|
titleAlign: { type: String, default: "default" },
|
|
16
18
|
// default、center
|
|
19
|
+
titleBasicInfoList: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: () => {
|
|
22
|
+
return [
|
|
23
|
+
// {
|
|
24
|
+
// label: 'label',
|
|
25
|
+
// value: 'value',
|
|
26
|
+
// },
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
},
|
|
17
30
|
dialogType: {
|
|
18
31
|
type: String,
|
|
19
32
|
default: "default"
|
|
@@ -157,15 +170,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
157
170
|
function setDragLevelIndex(initDragLevelIndex) {
|
|
158
171
|
dragLevelIndex.value = initDragLevelIndex;
|
|
159
172
|
if (minimized.value) runAnim();
|
|
160
|
-
minimized.value
|
|
161
|
-
|
|
173
|
+
if (minimized.value !== false) {
|
|
174
|
+
minimized.value = false;
|
|
175
|
+
emits("onMinimized", {
|
|
176
|
+
title: props.title,
|
|
177
|
+
type: minimized.value
|
|
178
|
+
});
|
|
179
|
+
}
|
|
162
180
|
}
|
|
163
181
|
function hideToWorkspace() {
|
|
164
182
|
runAnim(() => {
|
|
165
183
|
dragLevelIndex.value = 1;
|
|
166
184
|
});
|
|
167
185
|
minimized.value = true;
|
|
168
|
-
emits("onMinimized",
|
|
186
|
+
emits("onMinimized", {
|
|
187
|
+
title: props.title,
|
|
188
|
+
type: minimized.value
|
|
189
|
+
});
|
|
169
190
|
}
|
|
170
191
|
const dialogTestRef = ref();
|
|
171
192
|
function dialogMousedown(e) {
|
|
@@ -186,6 +207,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
186
207
|
hideToWorkspace
|
|
187
208
|
});
|
|
188
209
|
return (_ctx, _cache) => {
|
|
210
|
+
const _directive_loading = resolveDirective("loading");
|
|
189
211
|
return openBlock(), createElementBlock(
|
|
190
212
|
Fragment,
|
|
191
213
|
null,
|
|
@@ -206,6 +228,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
206
228
|
"close-on-click-modal": false,
|
|
207
229
|
"close-on-press-escape": false,
|
|
208
230
|
"show-close": false,
|
|
231
|
+
"destroy-on-close": true,
|
|
209
232
|
"modal-class": modalClass.value,
|
|
210
233
|
modelValue: visible.value,
|
|
211
234
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
@@ -221,13 +244,72 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
221
244
|
class: normalizeClass(["box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative", { "!justify-center": __props.titleAlign === "center" }])
|
|
222
245
|
},
|
|
223
246
|
[
|
|
224
|
-
createElementVNode("div", { class: "flex-grow w-0 mr-2
|
|
247
|
+
createElementVNode("div", { class: "flex-grow w-0 mr-2" }, [
|
|
225
248
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
249
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
250
|
+
createElementVNode(
|
|
251
|
+
"div",
|
|
252
|
+
{ class: "over_one_line" },
|
|
253
|
+
toDisplayString(__props.title),
|
|
254
|
+
1
|
|
255
|
+
/* TEXT */
|
|
256
|
+
),
|
|
257
|
+
renderSlot(_ctx.$slots, "title-basic-info", {}, () => [
|
|
258
|
+
__props.titleBasicInfoList.length !== 0 ? (openBlock(), createBlock(unref(ElPopover), {
|
|
259
|
+
key: 0,
|
|
260
|
+
"show-after": 500,
|
|
261
|
+
placement: "bottom-start",
|
|
262
|
+
width: "200",
|
|
263
|
+
trigger: "hover"
|
|
264
|
+
}, {
|
|
265
|
+
reference: withCtx(() => [
|
|
266
|
+
createElementVNode("span", { class: "text-xs text-theme ml-2 flex items-center flex-shrink-0" }, [
|
|
267
|
+
createVNode(unref(HyIcon), {
|
|
268
|
+
"svg-name": "dispatch-linear-details",
|
|
269
|
+
class: "!w-3 !h-3 mr-1"
|
|
270
|
+
}),
|
|
271
|
+
createElementVNode("span", null, "\u57FA\u7840\u4FE1\u606F")
|
|
272
|
+
])
|
|
273
|
+
]),
|
|
274
|
+
default: withCtx(() => [
|
|
275
|
+
createElementVNode("div", { class: "text-sm text-main" }, [
|
|
276
|
+
createElementVNode("div", { class: "text-auxiliary h-[30px] flex items-center justify-center border-b border-border box-border text-xs" }, " \u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61 "),
|
|
277
|
+
createElementVNode("ul", { class: "py-2 max-h-[500px] overflow-auto" }, [
|
|
278
|
+
(openBlock(true), createElementBlock(
|
|
279
|
+
Fragment,
|
|
280
|
+
null,
|
|
281
|
+
renderList(__props.titleBasicInfoList, (basicInfoItem, index) => {
|
|
282
|
+
return openBlock(), createElementBlock("li", {
|
|
283
|
+
key: index,
|
|
284
|
+
class: "flex px-2 py-1 text-xs"
|
|
285
|
+
}, [
|
|
286
|
+
createElementVNode(
|
|
287
|
+
"div",
|
|
288
|
+
{ class: "flex-shrink-0 font-bold" },
|
|
289
|
+
toDisplayString(basicInfoItem.label) + "\uFF1A ",
|
|
290
|
+
1
|
|
291
|
+
/* TEXT */
|
|
292
|
+
),
|
|
293
|
+
createElementVNode(
|
|
294
|
+
"div",
|
|
295
|
+
{ class: "break-all" },
|
|
296
|
+
toDisplayString(basicInfoItem.value),
|
|
297
|
+
1
|
|
298
|
+
/* TEXT */
|
|
299
|
+
)
|
|
300
|
+
]);
|
|
301
|
+
}),
|
|
302
|
+
128
|
|
303
|
+
/* KEYED_FRAGMENT */
|
|
304
|
+
))
|
|
305
|
+
])
|
|
306
|
+
])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
/* STABLE */
|
|
310
|
+
})) : createCommentVNode("v-if", true)
|
|
311
|
+
])
|
|
312
|
+
])
|
|
231
313
|
])
|
|
232
314
|
]),
|
|
233
315
|
createElementVNode("div", { class: "text-lg cursor-pointer" }, [
|
|
@@ -251,7 +333,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
251
333
|
)
|
|
252
334
|
]),
|
|
253
335
|
default: withCtx(() => [
|
|
254
|
-
|
|
336
|
+
withDirectives((openBlock(), createElementBlock("div", { class: "h-full flex flex-col text-main" }, [
|
|
255
337
|
renderSlot(_ctx.$slots, "before-content"),
|
|
256
338
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
257
339
|
createElementVNode(
|
|
@@ -300,7 +382,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
300
382
|
__props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
|
|
301
383
|
key: 1,
|
|
302
384
|
type: __props.submitType,
|
|
303
|
-
|
|
385
|
+
loading: loading.value,
|
|
304
386
|
class: "!min-w-[120px]",
|
|
305
387
|
onClick: onSubmitHandler
|
|
306
388
|
}, {
|
|
@@ -313,7 +395,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
313
395
|
]),
|
|
314
396
|
_: 1
|
|
315
397
|
/* STABLE */
|
|
316
|
-
}, 8, ["type", "
|
|
398
|
+
}, 8, ["type", "loading"])) : createCommentVNode("v-if", true)
|
|
317
399
|
]),
|
|
318
400
|
renderSlot(_ctx.$slots, "operate-right-box")
|
|
319
401
|
],
|
|
@@ -322,6 +404,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
322
404
|
),
|
|
323
405
|
renderSlot(_ctx.$slots, "operate-left-box")
|
|
324
406
|
])) : createCommentVNode("v-if", true)
|
|
407
|
+
])), [
|
|
408
|
+
[_directive_loading, loading.value]
|
|
325
409
|
])
|
|
326
410
|
]),
|
|
327
411
|
_: 3
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { computed, useTemplateRef, ref, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, unref, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, normalizeStyle, Fragment, renderList, createSlots, mergeProps } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Delete, Top, Bottom, CirclePlus } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import '../../index.mjs';
|
|
6
|
+
import '../../../utils/index.mjs';
|
|
4
7
|
import { isRequired, columnHelpHandler, renderArrayItemLabel, renderAddLabel } from '../js/index.mjs';
|
|
5
8
|
import _sfc_main$1 from './formItem.vue.mjs';
|
|
6
9
|
import { resetAppFormValue } from '../js/useAppForm.mjs';
|
|
@@ -59,9 +62,19 @@ const _sfc_main = {
|
|
|
59
62
|
}
|
|
60
63
|
});
|
|
61
64
|
const containerRef = useTemplateRef("containerRef");
|
|
62
|
-
ref(0);
|
|
63
|
-
ref(false);
|
|
64
|
-
ref(null);
|
|
65
|
+
const containerHeight = ref(0);
|
|
66
|
+
const isExpand = ref(false);
|
|
67
|
+
const isExpandHover = ref(null);
|
|
68
|
+
function onExpandHandler(column) {
|
|
69
|
+
containerHeight.value = containerRef.value.clientHeight;
|
|
70
|
+
isExpand.value = !isExpand.value;
|
|
71
|
+
}
|
|
72
|
+
function onExpandMouseenter(column) {
|
|
73
|
+
isExpandHover.value = true;
|
|
74
|
+
}
|
|
75
|
+
function onExpandMouseleave(column) {
|
|
76
|
+
isExpandHover.value = false;
|
|
77
|
+
}
|
|
65
78
|
const containerStyle = computed(() => {
|
|
66
79
|
const columnNum = isNumber(props.column.columnNum) && props.column.columnNum > 0 ? props.column.columnNum : isNumber(props.columnNum) && props.columnNum > 0 ? props.columnNum || 1 : 1;
|
|
67
80
|
return {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useTemplateRef, ref, computed, openBlock, createElementBlock, createElementVNode, normalizeClass, createVNode, unref, withCtx, toDisplayString, normalizeStyle, Fragment, renderList, createBlock, createSlots, renderSlot, mergeProps } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { DArrowRight } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import '../../../utils/index.mjs';
|
|
4
6
|
import _sfc_main$1 from './formItem.vue.mjs';
|
|
5
7
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
8
|
import { isNumber } from '../../../utils/is.mjs';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useTemplateRef, computed, unref, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, withCtx, createCommentVNode, createElementVNode, renderSlot, toDisplayString, createVNode, Fragment, mergeProps } from 'vue';
|
|
2
2
|
import { ElFormItem, ElSelect, ElRadioGroup, ElCheckboxGroup, ElSwitch, ElInputNumber, ElCascader } from 'element-plus';
|
|
3
|
-
import
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import '../../index.mjs';
|
|
5
|
+
import { isRequired, columnVisibleHandler, columnItemStyle, columnShowHandler, columnHelpHandler, isReadonly, renderText, isDisabled, optionsHandler } from '../js/index.mjs';
|
|
6
|
+
import '../../../hooks/index.mjs';
|
|
4
7
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
5
8
|
import { isArray } from '../../../utils/is.mjs';
|
|
6
9
|
import { setValueByProp, getValueByProp, columnPlaceholderHandler, columnLabelHandler, columnRuleHandler } from '../../../utils/form.mjs';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { useTemplateRef, computed, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, createBlock, createSlots, withCtx, createVNode, unref, mergeProps, withKeys, renderSlot, normalizeClass, withModifiers, toDisplayString } from 'vue';
|
|
2
2
|
import { ElMessage } from 'element-plus';
|
|
3
|
+
import '../../../hooks/index.mjs';
|
|
4
|
+
import '../../../utils/index.mjs';
|
|
5
|
+
import '../../index.mjs';
|
|
3
6
|
import _sfc_main$1 from './formItem.vue.mjs';
|
|
4
7
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
5
8
|
import { isArray, isNumber } from '../../../utils/is.mjs';
|
|
@@ -238,7 +241,9 @@ const _sfc_main = {
|
|
|
238
241
|
if (marker) {
|
|
239
242
|
marker.remove();
|
|
240
243
|
}
|
|
241
|
-
map
|
|
244
|
+
if (map) {
|
|
245
|
+
map.removeMap();
|
|
246
|
+
}
|
|
242
247
|
map = null;
|
|
243
248
|
hyMap = null;
|
|
244
249
|
});
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, computed, ref, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createVNode, createSlots, renderSlot } from 'vue';
|
|
2
2
|
import { ElForm, ElDivider } from 'element-plus';
|
|
3
|
+
import '@element-plus/icons-vue';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
3
6
|
import _sfc_main$4 from './cpns/formItem.vue.mjs';
|
|
4
7
|
import _sfc_main$1 from './cpns/extraItem.vue.mjs';
|
|
5
8
|
import _sfc_main$2 from './cpns/arrayItem.vue.mjs';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { unref } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import '../../../utils/index.mjs';
|
|
3
|
+
import '../../../hooks/index.mjs';
|
|
3
4
|
import { funRunHandler } from '../../../utils/handler.mjs';
|
|
5
|
+
import { isNumber, isBoolean, isFunction, isString, isArray, isObject } from '../../../utils/is.mjs';
|
|
4
6
|
import { columnRuleHandler, getValueByProp } from '../../../utils/form.mjs';
|
|
5
7
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
8
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { unref, toRef } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import { genColumnDefaultLabel, genValueByProp } from '../../../utils/form.mjs';
|
|
5
|
+
import { mergeDeep, funRunHandler } from '../../../utils/handler.mjs';
|
|
3
6
|
import { isArray } from '../../../utils/is.mjs';
|
|
4
|
-
import { genValueByProp, genColumnDefaultLabel } from '../../../utils/form.mjs';
|
|
5
7
|
|
|
6
8
|
function appFormItemHandler(column = {}) {
|
|
7
9
|
const label = genColumnDefaultLabel(column);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { onMounted, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode
|
|
1
|
+
import { defineComponent, onMounted, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode } from 'vue';
|
|
2
|
+
import '../../hooks/index.mjs';
|
|
2
3
|
import { useEnsureHyIcon } from '../../hooks/useEnsureHyIcon.mjs';
|
|
3
4
|
|
|
4
5
|
import "./style/icon.scss";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, createSlots, withCtx, createElementVNode, normalizeStyle, normalizeClass, renderSlot } from 'vue';
|
|
2
2
|
import { ElTooltip } from 'element-plus';
|
|
3
|
+
import '../index.mjs';
|
|
3
4
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
4
5
|
|
|
5
6
|
import "./style/iconBox.scss";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { useModel, useTemplateRef, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
|
|
2
2
|
import { ElInput } from 'element-plus';
|
|
3
|
+
import '../../utils/index.mjs';
|
|
3
4
|
import { clearSpace } from '../../utils/form.mjs';
|
|
4
5
|
|
|
5
6
|
const __default__ = defineComponent({
|
|
@@ -25,6 +26,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
25
26
|
emits: /* @__PURE__ */ mergeModels([], ["update:modelValue"]),
|
|
26
27
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27
28
|
const props = __props;
|
|
29
|
+
const emits = __emit;
|
|
28
30
|
const modelValue = useModel(__props, "modelValue");
|
|
29
31
|
const inputRef = useTemplateRef("inputRef");
|
|
30
32
|
const clearSpaceType = computed(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel, useTemplateRef, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode, mergeProps, withKeys, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, createElementVNode, unref, mergeModels
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode, mergeProps, withKeys, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, createElementVNode, unref, mergeModels } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Search } from '@element-plus/icons-vue';
|
|
4
4
|
import _sfc_main$1 from './input.vue.mjs';
|
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ mergeModels(["search"], ["update:modelValue"]),
|
|
20
20
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
|
+
const props = __props;
|
|
21
22
|
const emits = __emit;
|
|
22
23
|
const modelValue = useModel(__props, "modelValue");
|
|
23
24
|
const inputRef = useTemplateRef("inputRef");
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ElLoading } from 'element-plus';
|
|
2
|
+
import '../../utils/index.mjs';
|
|
3
|
+
import '../../hooks/index.mjs';
|
|
4
|
+
import { loadingSvg } from '../../utils/sharedContent.mjs';
|
|
5
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
6
|
+
|
|
7
|
+
const loadingConfig = {
|
|
8
|
+
svg: loadingSvg,
|
|
9
|
+
svgViewBox: "-10, -10, 50, 50",
|
|
10
|
+
background: "rgba(0, 0, 0, 0.8)"
|
|
11
|
+
};
|
|
12
|
+
const HyLoading = {
|
|
13
|
+
name: "HyLoading",
|
|
14
|
+
install: (app) => {
|
|
15
|
+
HyLoading.service._context = app._context;
|
|
16
|
+
HyLoading.directive._context = app._context;
|
|
17
|
+
app.directive("loading", HyLoading.directive);
|
|
18
|
+
app.config.globalProperties.$loading = HyLoading;
|
|
19
|
+
},
|
|
20
|
+
directive: {
|
|
21
|
+
...ElLoading.directive,
|
|
22
|
+
mounted: function(el, binding, vnode, prevVnode) {
|
|
23
|
+
const { t } = useLocale();
|
|
24
|
+
el.setAttribute("element-loading-text", `${t("hy.loading")}...`);
|
|
25
|
+
el.setAttribute("element-loading-svg", loadingConfig.svg);
|
|
26
|
+
el.setAttribute("element-loading-svg-view-box", loadingConfig.svgViewBox);
|
|
27
|
+
el.setAttribute("element-loading-background", loadingConfig.background);
|
|
28
|
+
ElLoading.directive.mounted.call(this, el, binding, vnode, prevVnode);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
service: function(options = {}) {
|
|
32
|
+
const { t } = useLocale();
|
|
33
|
+
return ElLoading.service.call(this, {
|
|
34
|
+
text: `${t("hy.loading")}...`,
|
|
35
|
+
...loadingConfig,
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { HyLoading as ElLoading, HyLoading, HyLoading as default };
|