hy-dispatch-ui-v3 0.1.0 → 0.1.2

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 (256) hide show
  1. package/dist/tailwind.css +186 -45
  2. package/es/bussiness/index.mjs +0 -1
  3. package/es/components/appButton/appButton.vue.mjs +133 -0
  4. package/es/components/appButton/index.mjs +6 -0
  5. package/es/components/appButton/style/appButton.scss +289 -0
  6. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +91 -0
  7. package/es/components/appConfigProvider/index.mjs +6 -0
  8. package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +105 -60
  9. package/es/components/appConfirmDialog/appConfirmMethod.mjs +49 -27
  10. package/es/components/appConfirmDialog/index.mjs +0 -1
  11. package/es/components/appDatePicker/appDatePicker.vue.mjs +0 -1
  12. package/es/components/appDatePicker/index.mjs +0 -1
  13. package/es/components/appForm/appForm.vue.mjs +64 -67
  14. package/es/components/appForm/index.mjs +0 -1
  15. package/es/components/appForm/js/index.mjs +0 -1
  16. package/es/components/appForm/js/useAppForm.mjs +0 -1
  17. package/es/components/appForm/style/appForm.scss +1 -1
  18. package/es/components/{svgIcon/svgIcon.vue.mjs → appIcon/appIcon.vue.mjs} +4 -5
  19. package/es/components/appIcon/index.mjs +6 -0
  20. package/es/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
  21. package/es/components/{svgIcon/iconBox.vue.mjs → appIconBox/appIconBox.vue.mjs} +6 -7
  22. package/es/components/appIconBox/index.mjs +6 -0
  23. package/es/components/appIconBox/style/appIconBox.scss +27 -0
  24. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +18 -11
  25. package/es/components/appOrgCascader/index.mjs +0 -1
  26. package/es/components/appSearch/appSearch.vue.mjs +2 -6
  27. package/es/components/appSearch/index.mjs +0 -1
  28. package/es/components/appSearch/js/index.mjs +5 -6
  29. package/es/components/appSearch/js/useAppSearch.mjs +0 -1
  30. package/es/components/appSearch/style/appSearch.scss +17 -11
  31. package/es/components/appTable/appTable.vue.mjs +57 -32
  32. package/es/components/appTable/cpns/columnSelect.vue.mjs +87 -123
  33. package/es/components/appTable/cpns/columnSelectItem.vue.mjs +5 -0
  34. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +167 -0
  35. package/es/components/appTable/index.mjs +0 -1
  36. package/es/components/appTable/js/index.mjs +9 -8
  37. package/es/components/appTable/js/search.mjs +6 -6
  38. package/es/components/appTable/js/useAppTable.mjs +6 -3
  39. package/es/components/appTable/style/appTable.scss +20 -11
  40. package/es/components/appTooltip/appTooltip.vue.mjs +0 -1
  41. package/es/components/appTooltip/index.mjs +0 -1
  42. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +136 -0
  43. package/es/components/appUserAvatar/index.mjs +6 -0
  44. package/es/components/appUserAvatar/style/appUserAvatar.scss +33 -0
  45. package/es/components/index.mjs +5 -2
  46. package/es/config/index.mjs +0 -1
  47. package/es/constants/index.mjs +0 -1
  48. package/es/constants/keys.mjs +0 -1
  49. package/es/hooks/index.mjs +4 -3
  50. package/es/hooks/useApi.mjs +20 -5
  51. package/es/hooks/useGlobalConfig.mjs +19 -10
  52. package/es/hooks/useLocale.mjs +1 -2
  53. package/es/hooks/useMixins.mjs +0 -1
  54. package/es/{store/maintain.mjs → hooks/useResizeHandler.mjs} +29 -44
  55. package/es/hooks/useUserAvatarMap.mjs +9 -0
  56. package/es/index.mjs +9 -6
  57. package/es/locale/{en_US.mjs → en.mjs} +8 -5
  58. package/es/locale/index.mjs +2 -3
  59. package/es/locale/zh_CN.mjs +6 -3
  60. package/es/make-installer.mjs +2 -8
  61. package/es/static/hy-svg-icons.mjs +11 -0
  62. package/es/style/element/element.scss +16313 -0
  63. package/es/style/element/index.scss +932 -0
  64. package/es/style/index.scss +37 -0
  65. package/es/style/theme.scss +18 -120
  66. package/es/utils/adaptive.mjs +0 -1
  67. package/es/utils/bus.mjs +0 -1
  68. package/es/utils/crypto.mjs +0 -1
  69. package/es/utils/date.mjs +0 -1
  70. package/es/utils/handler.mjs +0 -1
  71. package/es/utils/index.mjs +0 -1
  72. package/es/utils/is.mjs +0 -1
  73. package/es/version.mjs +1 -2
  74. package/lib/bussiness/index.js +0 -1
  75. package/lib/components/appButton/appButton.vue.js +137 -0
  76. package/lib/components/appButton/index.js +11 -0
  77. package/lib/components/appButton/style/appButton.scss +289 -0
  78. package/lib/components/appConfigProvider/appConfigProvider.vue.js +114 -0
  79. package/lib/components/appConfigProvider/index.js +11 -0
  80. package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +103 -58
  81. package/lib/components/appConfirmDialog/appConfirmMethod.js +48 -26
  82. package/lib/components/appConfirmDialog/index.js +0 -1
  83. package/lib/components/appDatePicker/appDatePicker.vue.js +0 -1
  84. package/lib/components/appDatePicker/index.js +0 -1
  85. package/lib/components/appForm/appForm.vue.js +61 -64
  86. package/lib/components/appForm/index.js +0 -1
  87. package/lib/components/appForm/js/index.js +0 -1
  88. package/lib/components/appForm/js/useAppForm.js +0 -1
  89. package/lib/components/appForm/style/appForm.scss +1 -1
  90. package/lib/components/{svgIcon/svgIcon.vue.js → appIcon/appIcon.vue.js} +4 -5
  91. package/lib/components/appIcon/index.js +11 -0
  92. package/lib/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
  93. package/lib/components/{svgIcon/iconBox.vue.js → appIconBox/appIconBox.vue.js} +6 -7
  94. package/lib/components/appIconBox/index.js +11 -0
  95. package/lib/components/appIconBox/style/appIconBox.scss +27 -0
  96. package/lib/components/appOrgCascader/appOrgCascader.vue.js +18 -11
  97. package/lib/components/appOrgCascader/index.js +0 -1
  98. package/lib/components/appSearch/appSearch.vue.js +2 -6
  99. package/lib/components/appSearch/index.js +0 -1
  100. package/lib/components/appSearch/js/index.js +5 -6
  101. package/lib/components/appSearch/js/useAppSearch.js +0 -1
  102. package/lib/components/appSearch/style/appSearch.scss +17 -11
  103. package/lib/components/appTable/appTable.vue.js +56 -31
  104. package/lib/components/appTable/cpns/columnSelect.vue.js +86 -122
  105. package/lib/components/appTable/cpns/columnSelectItem.vue.js +9 -0
  106. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +171 -0
  107. package/lib/components/appTable/index.js +0 -1
  108. package/lib/components/appTable/js/index.js +9 -7
  109. package/lib/components/appTable/js/search.js +6 -6
  110. package/lib/components/appTable/js/useAppTable.js +6 -3
  111. package/lib/components/appTable/style/appTable.scss +20 -11
  112. package/lib/components/appTooltip/appTooltip.vue.js +0 -1
  113. package/lib/components/appTooltip/index.js +0 -1
  114. package/lib/components/appUserAvatar/appUserAvatar.vue.js +140 -0
  115. package/lib/components/appUserAvatar/index.js +11 -0
  116. package/lib/components/appUserAvatar/style/appUserAvatar.scss +33 -0
  117. package/lib/components/index.js +24 -18
  118. package/lib/config/index.js +0 -1
  119. package/lib/constants/index.js +0 -1
  120. package/lib/constants/keys.js +0 -1
  121. package/lib/hooks/index.js +8 -2
  122. package/lib/hooks/useApi.js +19 -3
  123. package/lib/hooks/useGlobalConfig.js +21 -11
  124. package/lib/hooks/useLocale.js +1 -2
  125. package/lib/hooks/useMixins.js +0 -1
  126. package/lib/{store/maintain.js → hooks/useResizeHandler.js} +29 -44
  127. package/lib/hooks/useUserAvatarMap.js +12 -0
  128. package/lib/index.js +37 -28
  129. package/lib/locale/{en_US.js → en.js} +8 -5
  130. package/lib/locale/index.js +3 -4
  131. package/lib/locale/zh_CN.js +6 -3
  132. package/lib/make-installer.js +1 -7
  133. package/lib/static/hy-svg-icons.js +13 -0
  134. package/lib/style/element/element.scss +16313 -0
  135. package/lib/style/element/index.scss +932 -0
  136. package/lib/style/index.scss +37 -0
  137. package/lib/style/theme.scss +18 -120
  138. package/lib/utils/adaptive.js +0 -1
  139. package/lib/utils/bus.js +0 -1
  140. package/lib/utils/crypto.js +0 -1
  141. package/lib/utils/date.js +0 -1
  142. package/lib/utils/handler.js +0 -1
  143. package/lib/utils/index.js +0 -1
  144. package/lib/utils/is.js +0 -1
  145. package/lib/version.js +1 -2
  146. package/package.json +17 -7
  147. package/es/bussiness/index.mjs.map +0 -1
  148. package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs.map +0 -1
  149. package/es/components/appConfirmDialog/appConfirmMethod.mjs.map +0 -1
  150. package/es/components/appConfirmDialog/index.mjs.map +0 -1
  151. package/es/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
  152. package/es/components/appDatePicker/appDatePicker.vue.mjs.map +0 -1
  153. package/es/components/appDatePicker/index.mjs.map +0 -1
  154. package/es/components/appForm/appForm.vue.mjs.map +0 -1
  155. package/es/components/appForm/index.mjs.map +0 -1
  156. package/es/components/appForm/js/index.mjs.map +0 -1
  157. package/es/components/appForm/js/useAppForm.mjs.map +0 -1
  158. package/es/components/appOrgCascader/appOrgCascader.vue.mjs.map +0 -1
  159. package/es/components/appOrgCascader/index.mjs.map +0 -1
  160. package/es/components/appSearch/appSearch.vue.mjs.map +0 -1
  161. package/es/components/appSearch/index.mjs.map +0 -1
  162. package/es/components/appSearch/js/index.mjs.map +0 -1
  163. package/es/components/appSearch/js/useAppSearch.mjs.map +0 -1
  164. package/es/components/appTable/appTable.vue.mjs.map +0 -1
  165. package/es/components/appTable/cpns/columnSelect.vue.mjs.map +0 -1
  166. package/es/components/appTable/index.mjs.map +0 -1
  167. package/es/components/appTable/js/index.mjs.map +0 -1
  168. package/es/components/appTable/js/search.mjs.map +0 -1
  169. package/es/components/appTable/js/useAppTable.mjs.map +0 -1
  170. package/es/components/appTooltip/appTooltip.vue.mjs.map +0 -1
  171. package/es/components/appTooltip/index.mjs.map +0 -1
  172. package/es/components/index.mjs.map +0 -1
  173. package/es/components/svgIcon/iconBox.vue.mjs.map +0 -1
  174. package/es/components/svgIcon/index.mjs +0 -9
  175. package/es/components/svgIcon/index.mjs.map +0 -1
  176. package/es/components/svgIcon/style/iconBox.scss +0 -13
  177. package/es/components/svgIcon/svgIcon.vue.mjs.map +0 -1
  178. package/es/config/index.mjs.map +0 -1
  179. package/es/constants/index.mjs.map +0 -1
  180. package/es/constants/keys.mjs.map +0 -1
  181. package/es/hooks/index.mjs.map +0 -1
  182. package/es/hooks/useApi.mjs.map +0 -1
  183. package/es/hooks/useGlobalConfig.mjs.map +0 -1
  184. package/es/hooks/useLocale.mjs.map +0 -1
  185. package/es/hooks/useMixins.mjs.map +0 -1
  186. package/es/index.mjs.map +0 -1
  187. package/es/locale/en_US.mjs.map +0 -1
  188. package/es/locale/index.mjs.map +0 -1
  189. package/es/locale/zh_CN.mjs.map +0 -1
  190. package/es/make-installer.mjs.map +0 -1
  191. package/es/store/index.mjs +0 -7
  192. package/es/store/index.mjs.map +0 -1
  193. package/es/store/maintain.mjs.map +0 -1
  194. package/es/utils/adaptive.mjs.map +0 -1
  195. package/es/utils/bus.mjs.map +0 -1
  196. package/es/utils/crypto.mjs.map +0 -1
  197. package/es/utils/date.mjs.map +0 -1
  198. package/es/utils/handler.mjs.map +0 -1
  199. package/es/utils/index.mjs.map +0 -1
  200. package/es/utils/is.mjs.map +0 -1
  201. package/es/version.mjs.map +0 -1
  202. package/lib/bussiness/index.js.map +0 -1
  203. package/lib/components/appConfirmDialog/appConfirmDialog.vue.js.map +0 -1
  204. package/lib/components/appConfirmDialog/appConfirmMethod.js.map +0 -1
  205. package/lib/components/appConfirmDialog/index.js.map +0 -1
  206. package/lib/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
  207. package/lib/components/appDatePicker/appDatePicker.vue.js.map +0 -1
  208. package/lib/components/appDatePicker/index.js.map +0 -1
  209. package/lib/components/appForm/appForm.vue.js.map +0 -1
  210. package/lib/components/appForm/index.js.map +0 -1
  211. package/lib/components/appForm/js/index.js.map +0 -1
  212. package/lib/components/appForm/js/useAppForm.js.map +0 -1
  213. package/lib/components/appOrgCascader/appOrgCascader.vue.js.map +0 -1
  214. package/lib/components/appOrgCascader/index.js.map +0 -1
  215. package/lib/components/appSearch/appSearch.vue.js.map +0 -1
  216. package/lib/components/appSearch/index.js.map +0 -1
  217. package/lib/components/appSearch/js/index.js.map +0 -1
  218. package/lib/components/appSearch/js/useAppSearch.js.map +0 -1
  219. package/lib/components/appTable/appTable.vue.js.map +0 -1
  220. package/lib/components/appTable/cpns/columnSelect.vue.js.map +0 -1
  221. package/lib/components/appTable/index.js.map +0 -1
  222. package/lib/components/appTable/js/index.js.map +0 -1
  223. package/lib/components/appTable/js/search.js.map +0 -1
  224. package/lib/components/appTable/js/useAppTable.js.map +0 -1
  225. package/lib/components/appTooltip/appTooltip.vue.js.map +0 -1
  226. package/lib/components/appTooltip/index.js.map +0 -1
  227. package/lib/components/index.js.map +0 -1
  228. package/lib/components/svgIcon/iconBox.vue.js.map +0 -1
  229. package/lib/components/svgIcon/index.js +0 -15
  230. package/lib/components/svgIcon/index.js.map +0 -1
  231. package/lib/components/svgIcon/style/iconBox.scss +0 -13
  232. package/lib/components/svgIcon/svgIcon.vue.js.map +0 -1
  233. package/lib/config/index.js.map +0 -1
  234. package/lib/constants/index.js.map +0 -1
  235. package/lib/constants/keys.js.map +0 -1
  236. package/lib/hooks/index.js.map +0 -1
  237. package/lib/hooks/useApi.js.map +0 -1
  238. package/lib/hooks/useGlobalConfig.js.map +0 -1
  239. package/lib/hooks/useLocale.js.map +0 -1
  240. package/lib/hooks/useMixins.js.map +0 -1
  241. package/lib/index.js.map +0 -1
  242. package/lib/locale/en_US.js.map +0 -1
  243. package/lib/locale/index.js.map +0 -1
  244. package/lib/locale/zh_CN.js.map +0 -1
  245. package/lib/make-installer.js.map +0 -1
  246. package/lib/store/index.js +0 -10
  247. package/lib/store/index.js.map +0 -1
  248. package/lib/store/maintain.js.map +0 -1
  249. package/lib/utils/adaptive.js.map +0 -1
  250. package/lib/utils/bus.js.map +0 -1
  251. package/lib/utils/crypto.js.map +0 -1
  252. package/lib/utils/date.js.map +0 -1
  253. package/lib/utils/handler.js.map +0 -1
  254. package/lib/utils/index.js.map +0 -1
  255. package/lib/utils/is.js.map +0 -1
  256. package/lib/version.js.map +0 -1
@@ -1,42 +1,66 @@
1
1
  import { unref, createVNode, render } from 'vue';
2
+ import { defaultAxios } from '../../hooks/useApi.mjs';
3
+ import { AppConfigProvider } from '../appConfigProvider/index.mjs';
2
4
  import _sfc_main from './appConfirmDialog.vue.mjs';
3
- import { getGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
5
+ import { useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
4
6
  import { useLocale } from '../../hooks/useLocale.mjs';
5
7
 
6
8
  function appConfirmMethod(config) {
7
- const container = document.createDocumentFragment();
8
- const currentConfig = { ...config };
9
+ let container = document.createDocumentFragment();
10
+ const currentConfig = {
11
+ ...config,
12
+ onHide: () => {
13
+ destroy();
14
+ }
15
+ };
9
16
  let confirmDialogInstance = null;
10
17
  function render$1(props) {
18
+ const globalConfig = useGlobalConfig();
19
+ const {
20
+ locale = "zhCn",
21
+ api = defaultAxios,
22
+ ...args
23
+ } = unref(globalConfig) || {};
11
24
  const vm = createVNode(_sfc_main, props);
12
- render(vm, container);
25
+ const configProvider = createVNode(
26
+ AppConfigProvider,
27
+ {
28
+ locale,
29
+ api,
30
+ ...args
31
+ },
32
+ () => [vm]
33
+ );
34
+ render(configProvider, container);
13
35
  return vm;
14
36
  }
15
- function destroy() {
16
- confirmDialogInstance.component.exposed.close();
17
- confirmDialogInstance.unmout();
37
+ async function destroy() {
38
+ if (confirmDialogInstance) {
39
+ confirmDialogInstance.component.exposed.close();
40
+ }
41
+ if (container) {
42
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
43
+ render(null, container);
44
+ }
45
+ container = null;
46
+ confirmDialogInstance = null;
18
47
  }
19
48
  confirmDialogInstance = render$1(currentConfig);
20
49
  confirmDialogInstance.component.exposed.show();
21
50
  return destroy;
22
51
  }
23
- _sfc_main.tip = function(props) {
24
- var _a;
25
- const globalConfig = getGlobalConfig();
26
- const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
52
+ _sfc_main.tip = (props) => {
53
+ const { t } = useLocale();
27
54
  return appConfirmMethod({
28
- showCancel: false,
29
- submitText: t("confirmDialog.haveKnown"),
30
55
  dialogTitle: t("confirmDialog.prompt"),
31
56
  title: t("confirmDialog.prompt"),
32
57
  content: t("confirmDialog.content"),
58
+ showCancel: false,
33
59
  ...props
34
60
  });
35
61
  };
36
- _sfc_main.confirm = function(props) {
37
- var _a;
38
- const globalConfig = getGlobalConfig();
39
- const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
62
+ _sfc_main.confirm = (props) => {
63
+ const { t } = useLocale();
40
64
  return appConfirmMethod({
41
65
  dialogTitle: t("confirmDialog.prompt"),
42
66
  title: t("confirmDialog.prompt"),
@@ -44,30 +68,28 @@ _sfc_main.confirm = function(props) {
44
68
  ...props
45
69
  });
46
70
  };
47
- _sfc_main.warning = function(props) {
48
- var _a;
49
- const globalConfig = getGlobalConfig();
50
- const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
71
+ _sfc_main.warning = (props) => {
72
+ const { t } = useLocale();
51
73
  return appConfirmMethod({
52
74
  dialogTitle: t("confirmDialog.riskWarning"),
53
75
  title: t("confirmDialog.prompt"),
54
76
  titleClass: "text-warning",
55
77
  content: t("confirmDialog.content"),
78
+ iconColor: "rgb(var(--hy-warning))",
56
79
  ...props
57
80
  });
58
81
  };
59
- _sfc_main.danger = function(props) {
60
- var _a;
61
- const globalConfig = getGlobalConfig();
62
- const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
82
+ _sfc_main.danger = (props) => {
83
+ const { t } = useLocale();
63
84
  return appConfirmMethod({
64
85
  dialogTitle: t("confirmDialog.dangerousOperation"),
65
- titleClass: "text-dangerv2",
86
+ titleClass: "text-danger",
66
87
  title: t("confirmDialog.prompt"),
67
88
  content: t("confirmDialog.content"),
89
+ submitType: "danger",
90
+ iconColor: "rgb(var(--hy-danger))",
68
91
  ...props
69
92
  });
70
93
  };
71
94
 
72
95
  export { _sfc_main as default };
73
- //# sourceMappingURL=appConfirmMethod.mjs.map
@@ -5,4 +5,3 @@ import { withInstall } from '../../utils/handler.mjs';
5
5
  const AppConfirmDialog = withInstall(_sfc_main);
6
6
 
7
7
  export { AppConfirmDialog, AppConfirmDialog as default };
8
- //# sourceMappingURL=index.mjs.map
@@ -96,4 +96,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
96
96
  });
97
97
 
98
98
  export { _sfc_main as default };
99
- //# sourceMappingURL=appDatePicker.vue.mjs.map
@@ -4,4 +4,3 @@ import { withInstall } from '../../utils/handler.mjs';
4
4
  const AppDatePicker = withInstall(_sfc_main);
5
5
 
6
6
  export { AppDatePicker, AppDatePicker as default };
7
- //# sourceMappingURL=index.mjs.map
@@ -1,8 +1,8 @@
1
- import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, toDisplayString, renderSlot, createVNode, createTextVNode } from 'vue';
2
- import { ElForm, ElFormItem, ElInput, ElSelect, ElRadioGroup, ElCheckboxGroup, ElPopover } from 'element-plus';
3
- import { SvgIcon } from '../svgIcon/index.mjs';
1
+ import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, renderSlot, toDisplayString, createVNode, createTextVNode } from 'vue';
2
+ import { ElForm, ElFormItem, ElPopover, ElInput, ElSelect, ElRadioGroup, ElCheckboxGroup } from 'element-plus';
3
+ import { AppIcon } from '../appIcon/index.mjs';
4
4
  import _sfc_main$1 from '../appDatePicker/appDatePicker.vue.mjs';
5
- import { columnShowHandler, columnItemStyle, renderText, isDisabled, isRequired } from './js/index.mjs';
5
+ import { columnShowHandler, columnItemStyle, isRequired, renderText, isDisabled } from './js/index.mjs';
6
6
  import { resetAppFormValue } from './js/useAppForm.mjs';
7
7
  import { useLocale } from '../../hooks/useLocale.mjs';
8
8
  import { isArray, isNumber } from '../../utils/is.mjs';
@@ -130,73 +130,71 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
130
130
  prop: unref(isArray)(column.field) ? column.field[0] : column.field,
131
131
  style: normalizeStyle(unref(columnItemStyle)(props, column))
132
132
  }, {
133
- label: withCtx(() => [
134
- createElementVNode("div", { class: "flex" }, [
135
- column.labelSlot && _ctx.$slots[column.labelSlot] ? renderSlot(_ctx.$slots, column.labelSlot, {
136
- key: 0,
137
- column
138
- }) : (openBlock(), createElementBlock(
139
- "span",
140
- {
141
- key: 1,
142
- class: "text-main"
143
- },
144
- toDisplayString(column.label),
145
- 1
146
- /* TEXT */
147
- )),
148
- unref(isRequired)(props, column) ? (openBlock(), createElementBlock("span", {
149
- key: 2,
150
- class: "label-required"
151
- })) : createCommentVNode("v-if", true),
152
- column.help ? (openBlock(), createBlock(
153
- unref(ElPopover),
154
- {
155
- key: 3,
156
- placement: "bottom-start",
157
- "popper-class": "popover_echarts w-[200px]",
158
- trigger: "hover"
159
- },
160
- {
161
- reference: withCtx(() => [
162
- createElementVNode("div", { class: "flex items-center" }, [
163
- createVNode(unref(SvgIcon), {
164
- "svg-name": "help",
165
- "class-name": "!w-3 !h-3 ml-1 svgBox"
166
- }),
167
- createTextVNode(
168
- " " + toDisplayString(unref(t)("hy.help")),
169
- 1
170
- /* TEXT */
171
- )
172
- ])
173
- ]),
174
- default: withCtx(() => [
133
+ default: withCtx(() => {
134
+ var _a;
135
+ return [
136
+ createCommentVNode(" \u8868\u5355\u9879label "),
137
+ createElementVNode("div", { class: "w-full flex justify-between text-main" }, [
138
+ createElementVNode("div", { class: "flex items-center" }, [
139
+ renderSlot(_ctx.$slots, column.labelSlot, { column }, () => [
175
140
  createElementVNode(
176
- "div",
177
- null,
178
- toDisplayString(unref(funRunHandler)(column.help)),
141
+ "span",
142
+ { class: "text-main" },
143
+ toDisplayString(column.label),
179
144
  1
180
145
  /* TEXT */
181
146
  )
182
147
  ]),
183
- _: 2
184
- /* DYNAMIC */
185
- },
186
- 1024
187
- /* DYNAMIC_SLOTS */
188
- )) : createCommentVNode("v-if", true),
189
- column.rightSlot && _ctx.$slots[column.rightSlot] ? (openBlock(), createElementBlock("div", {
190
- key: 4,
191
- class: "ml-auto"
192
- }, [
193
- renderSlot(_ctx.$slots, column.rightSlot)
194
- ])) : createCommentVNode("v-if", true)
195
- ])
196
- ]),
197
- default: withCtx(() => {
198
- var _a;
199
- return [
148
+ unref(isRequired)(props, column) ? (openBlock(), createElementBlock("span", {
149
+ key: 0,
150
+ class: "label-required"
151
+ })) : createCommentVNode("v-if", true),
152
+ column.help ? (openBlock(), createBlock(
153
+ unref(ElPopover),
154
+ {
155
+ key: 1,
156
+ placement: "bottom-start",
157
+ "popper-class": "popover_echarts w-[200px]",
158
+ trigger: "hover"
159
+ },
160
+ {
161
+ reference: withCtx(() => [
162
+ createElementVNode("div", { class: "flex items-center" }, [
163
+ createVNode(unref(AppIcon), {
164
+ "svg-name": "help",
165
+ "class-name": "!w-3 !h-3 ml-1 svgBox"
166
+ }),
167
+ createTextVNode(
168
+ " " + toDisplayString(unref(t)("hy.help")),
169
+ 1
170
+ /* TEXT */
171
+ )
172
+ ])
173
+ ]),
174
+ default: withCtx(() => [
175
+ createElementVNode(
176
+ "div",
177
+ null,
178
+ toDisplayString(unref(funRunHandler)(column.help)),
179
+ 1
180
+ /* TEXT */
181
+ )
182
+ ]),
183
+ _: 2
184
+ /* DYNAMIC */
185
+ },
186
+ 1024
187
+ /* DYNAMIC_SLOTS */
188
+ )) : createCommentVNode("v-if", true)
189
+ ]),
190
+ column.rightSlot && _ctx.$slots[column.rightSlot] ? (openBlock(), createElementBlock("div", {
191
+ key: 0,
192
+ class: "ml-2"
193
+ }, [
194
+ renderSlot(_ctx.$slots, column.rightSlot)
195
+ ])) : createCommentVNode("v-if", true)
196
+ ]),
197
+ createCommentVNode(" \u8868\u5355\u7EC4\u4EF6 "),
200
198
  column.readonly || __props.readonly || !column.type && !column.slot ? (openBlock(), createElementBlock(
201
199
  "span",
202
200
  { key: 0 },
@@ -328,4 +326,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
328
326
  });
329
327
 
330
328
  export { _sfc_main as default };
331
- //# sourceMappingURL=appForm.vue.mjs.map
@@ -5,4 +5,3 @@ import { withInstall } from '../../utils/handler.mjs';
5
5
  const AppForm = withInstall(_sfc_main);
6
6
 
7
7
  export { AppForm, AppForm as default };
8
- //# sourceMappingURL=index.mjs.map
@@ -84,4 +84,3 @@ function renderText(props, column = {}, index) {
84
84
  }
85
85
 
86
86
  export { columnItemStyle, columnShowHandler, isDisabled, isRequired, renderText };
87
- //# sourceMappingURL=index.mjs.map
@@ -146,4 +146,3 @@ const useAppForm = (config = [], model) => {
146
146
  };
147
147
 
148
148
  export { resetAppFormValue, useAppForm };
149
- //# sourceMappingURL=useAppForm.mjs.map
@@ -11,6 +11,6 @@
11
11
  &::after {
12
12
  content: '*';
13
13
  display: inline-block;
14
- color: var(--dangerv2);
14
+ color: rgba(var(--hy-danger-2));
15
15
  }
16
16
  }
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode } from 'vue';
2
2
 
3
- import "./style/svgIcon.scss";
3
+ import "./style/appIcon.scss";
4
4
 
5
5
  const __default__ = defineComponent({
6
- name: "SvgIcon"
6
+ name: "AppIcon"
7
7
  });
8
8
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
9
9
  props: {
@@ -26,9 +26,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
26
26
  const iconName = computed(() => `#${props.prefix}${props.svgName}`);
27
27
  const svgClass = computed(() => {
28
28
  if (props.className) {
29
- return "svg-icon " + props.className || "";
29
+ return "app-icon " + props.className || "";
30
30
  } else {
31
- return "svg-icon";
31
+ return "app-icon";
32
32
  }
33
33
  });
34
34
  return (_ctx, _cache) => {
@@ -44,4 +44,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
44
44
  });
45
45
 
46
46
  export { _sfc_main as default };
47
- //# sourceMappingURL=svgIcon.vue.mjs.map
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './appIcon.vue.mjs';
2
+ import { withInstall } from '../../utils/handler.mjs';
3
+
4
+ const AppIcon = withInstall(_sfc_main);
5
+
6
+ export { AppIcon, AppIcon as default };
@@ -1,7 +1,4 @@
1
- svg + span {
2
- margin-left: 6px;
3
- }
4
- .svg-icon {
1
+ .app-icon {
5
2
  width: 16px;
6
3
  height: 16px;
7
4
  vertical-align: -0.15em;
@@ -1,11 +1,11 @@
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 _sfc_main$1 from './svgIcon.vue.mjs';
3
+ import { AppIcon } from '../appIcon/index.mjs';
4
4
 
5
- import "./style/iconBox.scss";
5
+ import "./style/appIconBox.scss";
6
6
 
7
7
  const __default__ = defineComponent({
8
- name: "IconBox"
8
+ name: "AppIconBox"
9
9
  });
10
10
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
11
  props: {
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
52
52
  };
53
53
  });
54
54
  return (_ctx, _cache) => {
55
- return openBlock(), createElementBlock("div", { class: "icon-box" }, [
55
+ return openBlock(), createElementBlock("div", { class: "app-icon-box" }, [
56
56
  createVNode(unref(ElTooltip), {
57
57
  "open-delay": 500,
58
58
  class: "item",
@@ -65,11 +65,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
65
65
  createElementVNode(
66
66
  "div",
67
67
  {
68
- class: normalizeClass(["icon-box-content clickBox", __props.className]),
68
+ class: normalizeClass(["app-icon-box-content clickBox", __props.className]),
69
69
  style: normalizeStyle(style.value)
70
70
  },
71
71
  [
72
- createVNode(_sfc_main$1, {
72
+ createVNode(unref(AppIcon), {
73
73
  prefix: __props.prefix,
74
74
  "svg-name": __props.svgName,
75
75
  style: { width: "100%", height: "100%" }
@@ -96,4 +96,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
96
96
  });
97
97
 
98
98
  export { _sfc_main as default };
99
- //# sourceMappingURL=iconBox.vue.mjs.map
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './appIconBox.vue.mjs';
2
+ import { withInstall } from '../../utils/handler.mjs';
3
+
4
+ const AppIconBox = withInstall(_sfc_main);
5
+
6
+ export { AppIconBox, AppIconBox as default };
@@ -0,0 +1,27 @@
1
+ .app-icon-box {
2
+ display: inline-block;
3
+ border-radius: 4px;
4
+ & + & {
5
+ margin-left: 12px;
6
+ }
7
+ }
8
+
9
+ .app-icon-box-content {
10
+ display: inline-flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ padding: 5px;
14
+ user-select: none;
15
+ color: rgb(var(--hy-main));
16
+ border-radius: 100%;
17
+ box-sizing: border-box;
18
+ background:
19
+ radial-gradient(
20
+ 142% 47% at 50% 119%,
21
+ rgb(var(--hy-theme), 0.5) 0%,
22
+ rgb(var(--hy-theme), 0) 100%
23
+ ),
24
+ rgb(var(--hy-background-3));
25
+ border: 1px solid rgb(var(--hy-auxiliary), 0.5);
26
+ box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
27
+ }
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
90
90
  return target == null ? void 0 : target.companyName;
91
91
  });
92
92
  function getCascaderData() {
93
- api.post("organization/orgTreeSimple").then((res) => {
93
+ unref(api).post("organization/orgTreeSimple").then((res) => {
94
94
  handlerData(res.data);
95
95
  });
96
96
  }
@@ -140,15 +140,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
140
140
  if (props.defaultGetData) {
141
141
  getCascaderData();
142
142
  }
143
- watch(() => props.options, () => {
144
- var _a;
145
- if ((_a = props.options) == null ? void 0 : _a.length) {
146
- handlerData(props.options);
147
- }
148
- }, { immediate: true, deep: true });
149
- watch(modelValue, () => {
150
- setDefaultValue(modelValue.value);
151
- }, { immediate: true, deep: true });
143
+ watch(
144
+ () => props.options,
145
+ () => {
146
+ var _a;
147
+ if ((_a = props.options) == null ? void 0 : _a.length) {
148
+ handlerData(props.options);
149
+ }
150
+ },
151
+ { immediate: true, deep: true }
152
+ );
153
+ watch(
154
+ modelValue,
155
+ () => {
156
+ setDefaultValue(modelValue.value);
157
+ },
158
+ { immediate: true, deep: true }
159
+ );
152
160
  return (_ctx, _cache) => {
153
161
  return openBlock(), createElementBlock("div", { class: "relative" }, [
154
162
  __props.contentType ? (openBlock(), createElementBlock("div", {
@@ -226,4 +234,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
226
234
  });
227
235
 
228
236
  export { _sfc_main as default };
229
- //# sourceMappingURL=appOrgCascader.vue.mjs.map
@@ -4,4 +4,3 @@ import { withInstall } from '../../utils/handler.mjs';
4
4
  const AppOrgCascader = withInstall(_sfc_main);
5
5
 
6
6
  export { AppOrgCascader, AppOrgCascader as default };
7
- //# sourceMappingURL=index.mjs.map
@@ -74,10 +74,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
74
74
  return keySet.size;
75
75
  });
76
76
  const appClass = computed(() => {
77
- return [
78
- props.class,
79
- { "app-search-hidden": props.hidden }
80
- ].filter(Boolean);
77
+ return [props.class, { "app-search-hidden": props.hidden }].filter(Boolean);
81
78
  });
82
79
  const containerStyle = computed(() => {
83
80
  const style = {};
@@ -240,7 +237,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
240
237
  default: withCtx(() => {
241
238
  var _a, _b, _c;
242
239
  return [
243
- createElementVNode("div", { class: "flex bg-backgroundv2 rounded" }, [
240
+ createElementVNode("div", { class: "flex bg-background-2 rounded" }, [
244
241
  createElementVNode(
245
242
  "div",
246
243
  {
@@ -405,4 +402,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
405
402
  });
406
403
 
407
404
  export { _sfc_main as default };
408
- //# sourceMappingURL=appSearch.vue.mjs.map
@@ -5,4 +5,3 @@ import { withInstall } from '../../utils/handler.mjs';
5
5
  const AppSearch = withInstall(_sfc_main);
6
6
 
7
7
  export { AppSearch, AppSearch as default };
8
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  import dayjs from 'dayjs';
2
2
  import { ref, watch, nextTick, unref } from 'vue';
3
- import { useMaintainStore } from '../../../store/maintain.mjs';
4
3
  import { isEmpty, isArray, isBoolean, isFunction, isNumber, isString } from '../../../utils/is.mjs';
4
+ import { useResizeHandler } from '../../../hooks/useResizeHandler.mjs';
5
5
 
6
6
  function columnItemStyle(props, column) {
7
7
  const { width } = column;
@@ -42,10 +42,10 @@ function isEmptyValue(e) {
42
42
  return isEmpty(e) || isArray(e) && !e.length;
43
43
  }
44
44
  function useShrink(props, templateRef) {
45
+ const { addResize, removeResize } = useResizeHandler();
46
+ const resizeExpandKey = /* @__PURE__ */ Symbol("appSearchExpand");
45
47
  const isExpand = ref(false);
46
48
  const containerHeight = ref(getContainerPickUpHeight());
47
- const maintainStore = useMaintainStore();
48
- const resizeExpandKey = /* @__PURE__ */ Symbol("appSearchExpand");
49
49
  function getContainerPickUpHeight() {
50
50
  switch (props.size) {
51
51
  case "large":
@@ -71,7 +71,7 @@ function useShrink(props, templateRef) {
71
71
  () => {
72
72
  nextTick(() => {
73
73
  shrinkResizeHandler();
74
- maintainStore.addResize(shrinkResizeHandler, resizeExpandKey);
74
+ addResize(resizeExpandKey, shrinkResizeHandler);
75
75
  });
76
76
  },
77
77
  { immediate: true, deep: true }
@@ -82,7 +82,7 @@ function useShrink(props, templateRef) {
82
82
  switchShrink,
83
83
  shrinkResizeHandler,
84
84
  shrinkDestroy() {
85
- maintainStore.removeResize(resizeExpandKey);
85
+ removeResize(resizeExpandKey);
86
86
  }
87
87
  };
88
88
  }
@@ -111,4 +111,3 @@ function timeRangeHandler(column, options) {
111
111
  }
112
112
 
113
113
  export { columnItemInputStyle, columnItemStyle, columnShowHandler, isDisabled, isEmptyValue, timeRangeHandler, useShrink };
114
- //# sourceMappingURL=index.mjs.map
@@ -175,4 +175,3 @@ const useAppSearch = (config = [], model) => {
175
175
  };
176
176
 
177
177
  export { resetAppSearchValue, useAppSearch };
178
- //# sourceMappingURL=useAppSearch.mjs.map
@@ -1,7 +1,7 @@
1
1
  .app-search {
2
2
  border-radius: 4px;
3
- border: 1px solid var(--border);
4
- background-color: var(--background);
3
+ border: 1px solid rgb(var(--hy-border));
4
+ background-color: rgb(var(--hy-background));
5
5
  padding: 12px 6px 16px 20px;
6
6
  opacity: 1;
7
7
  transition: all 0.3s linear;
@@ -13,10 +13,16 @@
13
13
  }
14
14
  }
15
15
  .app-search-header {
16
- @apply h-4 flex items-center text-xs text-main mb-4;
16
+ height: 16px;
17
+ display: flex;
18
+ align-items: center;
19
+ font-size: 12px;
20
+ color: rgb(var(--hy-main));
21
+ margin-bottom: 16px;
17
22
  transition: all 0.3s linear;
18
23
  &.app-search-header-hidden {
19
- @apply h-0 mb-0;
24
+ height: 0;
25
+ margin-bottom: 0px;
20
26
  }
21
27
  }
22
28
  .app-search-form {
@@ -28,26 +34,26 @@
28
34
  flex-wrap: wrap;
29
35
  gap: 16px;
30
36
  position: relative;
31
- .el-form-item {
37
+ .hy-el-form-item {
32
38
  margin-bottom: 0;
33
39
  &.hidden {
34
40
  display: none;
35
41
  }
36
42
  }
37
- .el-input,
38
- .el-date-editor {
43
+ .hy-el-input,
44
+ .hy-el-date-editor {
39
45
  --el-input-bg-color: transparent;
40
46
  --el-input-border: none;
41
47
  --el-border-color: transparent;
42
48
  --el-input-border-color: transparent;
43
- --el-input-text-color: var(--main);
49
+ --el-input-text-color: rgb(var(--hy-main));
44
50
  --el-input-border-radius: 0px 4px 4px 0px;
45
- --el-input-hover-border-color: var(--theme);
51
+ --el-input-hover-border-color: rgb(var(--hy-theme));
46
52
  }
47
- .el-select {
53
+ .hy-el-select {
48
54
  --el-border-color: transparent;
49
55
  --el-fill-color-blank: transparent;
50
56
  --el-border-radius-base: 0px 4px 4px 0px;
51
- --el-border-color-hover: var(--theme);
57
+ --el-border-color-hover: rgb(var(--hy-theme));
52
58
  }
53
59
  }