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.
Files changed (245) hide show
  1. package/dist/tailwind.css +70 -5
  2. package/es/api/device.mjs +19 -0
  3. package/es/api/index.mjs +2 -1
  4. package/es/api/sypct.mjs +19 -0
  5. package/es/api/task.mjs +19 -0
  6. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
  7. package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
  8. package/es/bussiness/hyMapAearchPlace/index.mjs +7 -0
  9. package/es/bussiness/hyMapAearchPlace/js/index.mjs +650 -0
  10. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +366 -0
  11. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +101 -0
  12. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
  13. package/es/bussiness/index.mjs +1 -0
  14. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
  15. package/es/components/hyAudioPlayer/index.mjs +1 -0
  16. package/es/components/hyAudioPlayer/js/index.mjs +5 -1
  17. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +23 -3
  18. package/es/components/hyBatchUploadDialog/index.mjs +1 -0
  19. package/es/components/hyButton/button.vue.mjs +3 -2
  20. package/es/components/hyButton/index.mjs +1 -0
  21. package/es/components/hyButton/style/button.scss +10 -3
  22. package/es/components/hyConfigProvider/configProvider.vue.mjs +6 -1
  23. package/es/components/hyConfigProvider/index.mjs +1 -0
  24. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +6 -2
  25. package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
  26. package/es/components/hyConfirmDialog/index.mjs +1 -0
  27. package/es/components/hyCutter/cutter.vue.mjs +5 -2
  28. package/es/components/hyCutter/index.mjs +1 -0
  29. package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
  30. package/es/components/hyDatePicker/index.mjs +1 -0
  31. package/es/components/hyDialog/dialog.vue.mjs +98 -14
  32. package/es/components/hyDialog/index.mjs +1 -0
  33. package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
  34. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
  35. package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
  36. package/es/components/hyForm/cpns/locationSelect.vue.mjs +6 -1
  37. package/es/components/hyForm/form.vue.mjs +3 -0
  38. package/es/components/hyForm/index.mjs +1 -0
  39. package/es/components/hyForm/js/index.mjs +3 -1
  40. package/es/components/hyForm/js/useAppForm.mjs +4 -2
  41. package/es/components/hyIcon/icon.vue.mjs +2 -1
  42. package/es/components/hyIcon/index.mjs +1 -0
  43. package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
  44. package/es/components/hyIconBox/index.mjs +1 -0
  45. package/es/components/hyInput/index.mjs +1 -0
  46. package/es/components/hyInput/input.vue.mjs +3 -1
  47. package/es/components/hyInput/inputSearch.vue.mjs +2 -1
  48. package/es/components/hyLoading/index.mjs +41 -0
  49. package/es/components/hyMap/index.mjs +1 -0
  50. package/es/components/hyMap/js/index.mjs +82 -0
  51. package/es/components/hyMap/map.vue.mjs +11 -3
  52. package/es/components/hyMenu/index.mjs +1 -0
  53. package/es/components/hyMenu/menu.vue.mjs +4 -0
  54. package/es/components/hyNoPermissions/index.mjs +1 -0
  55. package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
  56. package/es/components/hyNoPermissionsMap/index.mjs +1 -0
  57. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
  58. package/es/components/hyOrgCascader/index.mjs +1 -0
  59. package/es/components/hyOrgCascader/js/index.mjs +2 -0
  60. package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
  61. package/es/components/hyRadioGroup/index.mjs +1 -0
  62. package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
  63. package/es/components/hySearch/cpns/searchItem.vue.mjs +20 -2
  64. package/es/components/hySearch/index.mjs +1 -0
  65. package/es/components/hySearch/js/index.mjs +4 -2
  66. package/es/components/hySearch/js/useAppSearch.mjs +4 -2
  67. package/es/components/hySearch/search.vue.mjs +3 -0
  68. package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
  69. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
  70. package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
  71. package/es/components/hyTable/cpns/virtualTable.vue.mjs +7 -2
  72. package/es/components/hyTable/index.mjs +1 -0
  73. package/es/components/hyTable/js/index.mjs +10 -10
  74. package/es/components/hyTable/js/search.mjs +2 -0
  75. package/es/components/hyTable/js/useAppTable.mjs +5 -2
  76. package/es/components/hyTable/table.vue.mjs +11 -1
  77. package/es/components/hyTableActionButton/index.mjs +1 -0
  78. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
  79. package/es/components/hyTableForm/batchTableForm.vue.mjs +41 -61
  80. package/es/components/hyTableForm/index.mjs +1 -0
  81. package/es/components/hyTableForm/js/index.mjs +13 -27
  82. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
  83. package/es/components/hyTableForm/tableForm.vue.mjs +12 -4
  84. package/es/components/hyTimePicker/index.mjs +1 -0
  85. package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
  86. package/es/components/hyTooltip/index.mjs +1 -0
  87. package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
  88. package/es/components/hyTree/index.mjs +1 -0
  89. package/es/components/hyTree/js/index.mjs +15 -2
  90. package/es/components/hyTree/tree.vue.mjs +9 -4
  91. package/es/components/hyUserAvatar/index.mjs +1 -0
  92. package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
  93. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
  94. package/es/components/hyVideoPlayer/index.mjs +1 -0
  95. package/es/components/hyVideoPlayer/js/index.mjs +7 -2
  96. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
  97. package/es/components/index.mjs +1 -0
  98. package/es/hooks/index.mjs +1 -0
  99. package/es/hooks/useGlobalConfig.mjs +6 -1
  100. package/es/hooks/useLocale.mjs +4 -2
  101. package/es/hooks/useMapConfig.mjs +18 -0
  102. package/es/hooks/useResizeHandler.mjs +1 -0
  103. package/es/hooks/useResizeObserver.mjs +1 -1
  104. package/es/index.mjs +8 -0
  105. package/es/locale/en.mjs +1 -2
  106. package/es/locale/zh_CN.mjs +1 -2
  107. package/es/make-installer.mjs +1 -0
  108. package/es/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
  109. package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
  110. package/es/style/element/hy-element.scss +10 -1
  111. package/es/utils/file.mjs +1 -0
  112. package/es/utils/form.mjs +6 -1
  113. package/es/utils/handler.mjs +2 -0
  114. package/es/utils/index.mjs +2 -0
  115. package/es/utils/input.mjs +1 -0
  116. package/es/utils/is.mjs +1 -0
  117. package/es/utils/map/hook/bigMap.mjs +3 -2
  118. package/es/utils/map/hook/gaode.mjs +2 -2
  119. package/es/utils/map/hook/leafletjs.mjs +7 -1
  120. package/es/utils/map/index.mjs +12 -0
  121. package/es/utils/map/js/webgis.mjs +5 -2
  122. package/es/utils/sharedContent.mjs +12 -0
  123. package/es/version.mjs +1 -1
  124. package/lib/api/device.js +21 -0
  125. package/lib/api/index.js +2 -1
  126. package/lib/api/sypct.js +21 -0
  127. package/lib/api/task.js +21 -0
  128. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
  129. package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
  130. package/lib/bussiness/hyMapAearchPlace/index.js +12 -0
  131. package/lib/bussiness/hyMapAearchPlace/js/index.js +652 -0
  132. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +370 -0
  133. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +105 -0
  134. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
  135. package/lib/bussiness/index.js +2 -0
  136. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
  137. package/lib/components/hyAudioPlayer/index.js +1 -0
  138. package/lib/components/hyAudioPlayer/js/index.js +5 -1
  139. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +23 -3
  140. package/lib/components/hyBatchUploadDialog/index.js +1 -0
  141. package/lib/components/hyButton/button.vue.js +2 -1
  142. package/lib/components/hyButton/index.js +1 -0
  143. package/lib/components/hyButton/style/button.scss +10 -3
  144. package/lib/components/hyConfigProvider/configProvider.vue.js +5 -0
  145. package/lib/components/hyConfigProvider/index.js +1 -0
  146. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +6 -2
  147. package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
  148. package/lib/components/hyConfirmDialog/index.js +1 -0
  149. package/lib/components/hyCutter/cutter.vue.js +3 -0
  150. package/lib/components/hyCutter/index.js +1 -0
  151. package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
  152. package/lib/components/hyDatePicker/index.js +1 -0
  153. package/lib/components/hyDialog/dialog.vue.js +96 -12
  154. package/lib/components/hyDialog/index.js +1 -0
  155. package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
  156. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
  157. package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
  158. package/lib/components/hyForm/cpns/locationSelect.vue.js +6 -1
  159. package/lib/components/hyForm/form.vue.js +3 -0
  160. package/lib/components/hyForm/index.js +1 -0
  161. package/lib/components/hyForm/js/index.js +3 -1
  162. package/lib/components/hyForm/js/useAppForm.js +3 -1
  163. package/lib/components/hyIcon/icon.vue.js +1 -0
  164. package/lib/components/hyIcon/index.js +1 -0
  165. package/lib/components/hyIconBox/iconBox.vue.js +1 -0
  166. package/lib/components/hyIconBox/index.js +1 -0
  167. package/lib/components/hyInput/index.js +1 -0
  168. package/lib/components/hyInput/input.vue.js +2 -0
  169. package/lib/components/hyInput/inputSearch.vue.js +1 -0
  170. package/lib/components/hyLoading/index.js +47 -0
  171. package/lib/components/hyMap/index.js +1 -0
  172. package/lib/components/hyMap/js/index.js +82 -0
  173. package/lib/components/hyMap/map.vue.js +11 -3
  174. package/lib/components/hyMenu/index.js +1 -0
  175. package/lib/components/hyMenu/menu.vue.js +4 -0
  176. package/lib/components/hyNoPermissions/index.js +1 -0
  177. package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
  178. package/lib/components/hyNoPermissionsMap/index.js +1 -0
  179. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
  180. package/lib/components/hyOrgCascader/index.js +1 -0
  181. package/lib/components/hyOrgCascader/js/index.js +2 -0
  182. package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
  183. package/lib/components/hyRadioGroup/index.js +1 -0
  184. package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
  185. package/lib/components/hySearch/cpns/searchItem.vue.js +18 -0
  186. package/lib/components/hySearch/index.js +1 -0
  187. package/lib/components/hySearch/js/index.js +3 -1
  188. package/lib/components/hySearch/js/useAppSearch.js +4 -2
  189. package/lib/components/hySearch/search.vue.js +3 -0
  190. package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
  191. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
  192. package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
  193. package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -1
  194. package/lib/components/hyTable/index.js +1 -0
  195. package/lib/components/hyTable/js/index.js +9 -9
  196. package/lib/components/hyTable/js/search.js +2 -0
  197. package/lib/components/hyTable/js/useAppTable.js +4 -1
  198. package/lib/components/hyTable/table.vue.js +11 -1
  199. package/lib/components/hyTableActionButton/index.js +1 -0
  200. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
  201. package/lib/components/hyTableForm/batchTableForm.vue.js +42 -62
  202. package/lib/components/hyTableForm/index.js +1 -0
  203. package/lib/components/hyTableForm/js/index.js +12 -27
  204. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
  205. package/lib/components/hyTableForm/tableForm.vue.js +19 -11
  206. package/lib/components/hyTimePicker/index.js +1 -0
  207. package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
  208. package/lib/components/hyTooltip/index.js +1 -0
  209. package/lib/components/hyTooltip/tooltip.vue.js +2 -0
  210. package/lib/components/hyTree/index.js +1 -0
  211. package/lib/components/hyTree/js/index.js +14 -1
  212. package/lib/components/hyTree/tree.vue.js +9 -4
  213. package/lib/components/hyUserAvatar/index.js +1 -0
  214. package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
  215. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
  216. package/lib/components/hyVideoPlayer/index.js +1 -0
  217. package/lib/components/hyVideoPlayer/js/index.js +7 -2
  218. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
  219. package/lib/components/index.js +56 -53
  220. package/lib/hooks/index.js +3 -0
  221. package/lib/hooks/useGlobalConfig.js +5 -0
  222. package/lib/hooks/useLocale.js +3 -1
  223. package/lib/hooks/useMapConfig.js +21 -0
  224. package/lib/hooks/useResizeHandler.js +1 -0
  225. package/lib/index.js +73 -59
  226. package/lib/locale/en.js +1 -2
  227. package/lib/locale/zh_CN.js +1 -2
  228. package/lib/make-installer.js +1 -0
  229. package/lib/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
  230. package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
  231. package/lib/style/element/hy-element.scss +10 -1
  232. package/lib/utils/file.js +1 -0
  233. package/lib/utils/form.js +5 -0
  234. package/lib/utils/handler.js +2 -0
  235. package/lib/utils/index.js +3 -0
  236. package/lib/utils/input.js +1 -0
  237. package/lib/utils/is.js +1 -0
  238. package/lib/utils/map/hook/bigMap.js +3 -2
  239. package/lib/utils/map/hook/gaode.js +1 -1
  240. package/lib/utils/map/hook/leafletjs.js +7 -1
  241. package/lib/utils/map/index.js +12 -0
  242. package/lib/utils/map/js/webgis.js +5 -1
  243. package/lib/utils/sharedContent.js +14 -0
  244. package/lib/version.js +1 -1
  245. package/package.json +2 -1
@@ -1,6 +1,7 @@
1
- import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock, defineComponent } from 'vue';
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,
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './button.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyButton = withInstall(_sfc_main);
@@ -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: default;
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, defineComponent } from 'vue';
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,4 +1,5 @@
1
1
  import _sfc_main from './configProvider.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyConfigProvider = withInstall(_sfc_main);
@@ -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
- disabled: loading.value,
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", "disabled"])) : createCommentVNode("v-if", true)
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,4 +1,5 @@
1
1
  import './confirmMethod.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
  import _sfc_main from './confirmDialog.vue.mjs';
4
5
 
@@ -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, ElMessage } from 'element-plus';
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 { blobToDataURL, sizeToTextHandler, fileUpload } from '../../utils/file.mjs';
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,4 +1,5 @@
1
1
  import _sfc_main from './cutter.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyCutter = withInstall(_sfc_main);
@@ -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,4 +1,5 @@
1
1
  import _sfc_main from './datePicker.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyDatePicker = withInstall(_sfc_main);
@@ -1,5 +1,7 @@
1
- import { useModel, computed, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, createElementVNode, renderSlot, normalizeClass, createBlock, withModifiers, createTextVNode, toDisplayString, mergeModels, defineComponent } from 'vue';
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 = false;
161
- emits("onMinimized", minimized.value);
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", minimized.value);
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 over_one_line" }, [
247
+ createElementVNode("div", { class: "flex-grow w-0 mr-2" }, [
225
248
  renderSlot(_ctx.$slots, "title", {}, () => [
226
- createTextVNode(
227
- toDisplayString(__props.title),
228
- 1
229
- /* TEXT */
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
- createElementVNode("div", { class: "h-full flex flex-col text-main" }, [
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
- disabled: loading.value,
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", "disabled"])) : createCommentVNode("v-if", true)
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,4 +1,5 @@
1
1
  import _sfc_main from './dialog.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyDialog = withInstall(_sfc_main);
@@ -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 { columnVisibleHandler, columnItemStyle, columnShowHandler, isRequired, columnHelpHandler, isReadonly, renderText, isDisabled, optionsHandler } from '../js/index.mjs';
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.removeMap();
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,4 +1,5 @@
1
1
  import _sfc_main from './form.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  export { resetAppFormValue, useAppForm } from './js/useAppForm.mjs';
3
4
  import { withInstall } from '../../utils/handler.mjs';
4
5
 
@@ -1,6 +1,8 @@
1
1
  import { unref } from 'vue';
2
- import { isBoolean, isFunction, isNumber, isArray, isObject, isString } from '../../../utils/is.mjs';
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 { funRunHandler, mergeDeep } from '../../../utils/handler.mjs';
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, defineComponent } from 'vue';
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,4 +1,5 @@
1
1
  import _sfc_main from './icon.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyIcon = withInstall(_sfc_main);
@@ -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,4 +1,5 @@
1
1
  import _sfc_main from './iconBox.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyIconBox = withInstall(_sfc_main);
@@ -1,5 +1,6 @@
1
1
  import _sfc_main from './input.vue.mjs';
2
2
  import _sfc_main$1 from './inputSearch.vue.mjs';
3
+ import '../../utils/index.mjs';
3
4
  import { withInstall } from '../../utils/handler.mjs';
4
5
 
5
6
  const HyInput = withInstall(_sfc_main);
@@ -1,5 +1,6 @@
1
- import { useModel, useTemplateRef, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels, defineComponent } from 'vue';
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, defineComponent } from 'vue';
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 };