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
@@ -0,0 +1,289 @@
1
+ .hy-button {
2
+ height: 32px;
3
+ border: 0;
4
+ outline: none;
5
+ appearance: none;
6
+ -webkit-appearance: none;
7
+ margin: 0;
8
+ font: inherit;
9
+ color: inherit;
10
+ box-sizing: border-box;
11
+ white-space: nowrap;
12
+ font-size: 14px;
13
+
14
+ &:disabled,
15
+ &.is-disabled {
16
+ cursor: not-allowed;
17
+ opacity: 0.55;
18
+ }
19
+ &.is-loading {
20
+ cursor: default;
21
+ }
22
+ &.hy-button--large {
23
+ height: 40px;
24
+ }
25
+ &.hy-button--small {
26
+ height: 24px;
27
+ font-size: 12px;
28
+ }
29
+
30
+ & + & {
31
+ margin-left: 16px;
32
+ }
33
+ }
34
+
35
+ .button_default {
36
+ background: rgba(94, 157, 180, 0.32);
37
+
38
+ .hy-button__border {
39
+ background: linear-gradient(
40
+ 90deg,
41
+ rgba(94, 157, 180, 0.4) 0%,
42
+ rgba(94, 157, 180, 1) 50%,
43
+ rgba(94, 157, 180, 0.4) 100%
44
+ );
45
+ }
46
+
47
+ .hy-button__inner {
48
+ background: #003a48;
49
+ box-shadow:
50
+ inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
51
+ inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
52
+ }
53
+
54
+ .hy-button__text {
55
+ color: #fff;
56
+ }
57
+
58
+ .hy-button__mask {
59
+ background: radial-gradient(
60
+ ellipse at center bottom,
61
+ #7ebbd2 0%,
62
+ rgb(17, 108, 114) 30%,
63
+ transparent 60%
64
+ );
65
+ }
66
+
67
+ &:hover .hy-button__inner {
68
+ box-shadow:
69
+ inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
70
+ inset 0 0 2px 0 rgba(0, 147, 157, 0.5),
71
+ inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
72
+ inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
73
+ }
74
+
75
+ &:disabled .hy-button__border,
76
+ &.is-disabled .hy-button__border {
77
+ background: linear-gradient(
78
+ 90deg,
79
+ rgba(94, 157, 180, 0.18) 0%,
80
+ rgba(94, 157, 180, 0.42) 50%,
81
+ rgba(94, 157, 180, 0.18) 100%
82
+ );
83
+ }
84
+
85
+ &:disabled .hy-button__inner,
86
+ &.is-disabled .hy-button__inner {
87
+ background: #3e5a64;
88
+ box-shadow:
89
+ inset 0 0 4px 1px rgba(0, 138, 157, 0.2),
90
+ inset 0 0 2px 0 rgba(0, 147, 157, 0.16);
91
+ }
92
+
93
+ &:disabled .hy-button__text,
94
+ &.is-disabled .hy-button__text {
95
+ color: rgba(255, 255, 255, 0.68);
96
+ }
97
+ }
98
+
99
+ .button_function {
100
+ background: rgba(45, 242, 255, 0.32);
101
+
102
+ .hy-button__border {
103
+ background: linear-gradient(
104
+ 90deg,
105
+ rgba(45, 242, 255, 0.4) 0%,
106
+ rgba(45, 242, 255, 1) 50%,
107
+ rgba(45, 242, 255, 0.4) 100%
108
+ );
109
+ }
110
+
111
+ .hy-button__inner {
112
+ background: #003a48;
113
+ box-shadow:
114
+ inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
115
+ inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
116
+ }
117
+
118
+ .hy-button__text {
119
+ color: #fff;
120
+ }
121
+
122
+ .hy-button__mask {
123
+ background: radial-gradient(
124
+ ellipse at center bottom,
125
+ #2df2ff 0%,
126
+ #1798a1 30%,
127
+ transparent 60%
128
+ );
129
+ }
130
+
131
+ &:hover .hy-button__inner {
132
+ box-shadow:
133
+ inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
134
+ inset 0 0 2px 0 rgba(159, 248, 255, 0.5),
135
+ inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
136
+ inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
137
+ }
138
+
139
+ &:disabled .hy-button__border,
140
+ &.is-disabled .hy-button__border {
141
+ background: linear-gradient(
142
+ 90deg,
143
+ rgba(45, 242, 255, 0.18) 0%,
144
+ rgba(45, 242, 255, 0.42) 50%,
145
+ rgba(45, 242, 255, 0.18) 100%
146
+ );
147
+ }
148
+
149
+ &:disabled .hy-button__inner,
150
+ &.is-disabled .hy-button__inner {
151
+ background: #10575c;
152
+ box-shadow:
153
+ inset 0 0 4px 1px rgba(97, 248, 255, 0.2),
154
+ inset 0 0 2px 0 rgba(159, 248, 255, 0.16);
155
+ }
156
+
157
+ &:disabled .hy-button__text,
158
+ &.is-disabled .hy-button__text {
159
+ color: rgba(255, 255, 255, 0.68);
160
+ }
161
+ }
162
+
163
+ .button_addTo {
164
+ background: rgba(44, 232, 152, 0.32);
165
+
166
+ .hy-button__border {
167
+ background: linear-gradient(
168
+ 90deg,
169
+ rgba(171, 255, 185, 0.4) 0%,
170
+ rgba(171, 255, 185, 1) 50%,
171
+ rgba(171, 255, 185, 0.4) 100%
172
+ );
173
+ }
174
+
175
+ .hy-button__inner {
176
+ background: #004823;
177
+ box-shadow:
178
+ inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
179
+ inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
180
+ }
181
+
182
+ .hy-button__text {
183
+ color: #fff;
184
+ }
185
+
186
+ .hy-button__mask {
187
+ background: radial-gradient(
188
+ ellipse at center bottom,
189
+ #20e080 0%,
190
+ #109060 30%,
191
+ transparent 60%
192
+ );
193
+ }
194
+
195
+ &:hover .hy-button__inner {
196
+ box-shadow:
197
+ inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
198
+ inset 0 0 2px 0 rgba(159, 255, 209, 0.5),
199
+ inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
200
+ inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
201
+ }
202
+
203
+ &:disabled .hy-button__border,
204
+ &.is-disabled .hy-button__border {
205
+ background: linear-gradient(
206
+ 90deg,
207
+ rgba(171, 255, 185, 0.18) 0%,
208
+ rgba(171, 255, 185, 0.42) 50%,
209
+ rgba(171, 255, 185, 0.18) 100%
210
+ );
211
+ }
212
+
213
+ &:disabled .hy-button__inner,
214
+ &.is-disabled .hy-button__inner {
215
+ background: #1d3d2d;
216
+ box-shadow:
217
+ inset 0 0 4px 1px rgba(97, 255, 179, 0.2),
218
+ inset 0 0 2px 0 rgba(159, 255, 209, 0.16);
219
+ }
220
+
221
+ &:disabled .hy-button__text,
222
+ &.is-disabled .hy-button__text {
223
+ color: rgba(255, 255, 255, 0.68);
224
+ }
225
+ }
226
+
227
+ .button_delete {
228
+ background: rgba(255, 77, 77, 0.32);
229
+
230
+ .hy-button__border {
231
+ background: linear-gradient(
232
+ 90deg,
233
+ rgba(255, 77, 77, 0.4) 0%,
234
+ rgba(255, 77, 77, 1) 50%,
235
+ rgba(255, 77, 77, 0.4) 100%
236
+ );
237
+ }
238
+
239
+ .hy-button__inner {
240
+ background: #4f0000;
241
+ box-shadow:
242
+ inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
243
+ inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
244
+ }
245
+
246
+ .hy-button__text {
247
+ color: #fff;
248
+ }
249
+
250
+ .hy-button__mask {
251
+ background: radial-gradient(
252
+ ellipse at center bottom,
253
+ #ff0000 0%,
254
+ #b41414 30%,
255
+ transparent 60%
256
+ );
257
+ }
258
+
259
+ &:hover .hy-button__inner {
260
+ box-shadow:
261
+ inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
262
+ inset 0 0 2px 0 rgba(255, 159, 159, 0.5),
263
+ inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
264
+ inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
265
+ }
266
+
267
+ &:disabled .hy-button__border,
268
+ &.is-disabled .hy-button__border {
269
+ background: linear-gradient(
270
+ 90deg,
271
+ rgba(255, 77, 77, 0.18) 0%,
272
+ rgba(255, 77, 77, 0.42) 50%,
273
+ rgba(255, 77, 77, 0.18) 100%
274
+ );
275
+ }
276
+
277
+ &:disabled .hy-button__inner,
278
+ &.is-disabled .hy-button__inner {
279
+ background: #4b0c0c;
280
+ box-shadow:
281
+ inset 0 0 4px 1px rgba(255, 97, 97, 0.2),
282
+ inset 0 0 2px 0 rgba(255, 159, 159, 0.16);
283
+ }
284
+
285
+ &:disabled .hy-button__text,
286
+ &.is-disabled .hy-button__text {
287
+ color: rgba(255, 255, 255, 0.68);
288
+ }
289
+ }
@@ -0,0 +1,91 @@
1
+ import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { ElConfigProvider } from 'element-plus';
3
+ import * as ElementLocale from 'element-plus/es/locales.mjs';
4
+ import { provideGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
5
+
6
+ const __default__ = defineComponent({
7
+ name: "AppConfigProvider"
8
+ });
9
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
10
+ props: {
11
+ locale: {
12
+ type: String,
13
+ required: false,
14
+ default: "zhCn"
15
+ },
16
+ api: {
17
+ type: [Object, Function],
18
+ required: false
19
+ },
20
+ userAvatarMap: {
21
+ type: Map,
22
+ required: false,
23
+ default: () => /* @__PURE__ */ new Map()
24
+ },
25
+ size: {
26
+ type: String,
27
+ required: false,
28
+ default: "default"
29
+ },
30
+ zIndex: {
31
+ type: Number,
32
+ required: false
33
+ },
34
+ button: {
35
+ type: Object,
36
+ required: false
37
+ },
38
+ link: {
39
+ type: Object,
40
+ required: false
41
+ },
42
+ dialog: {
43
+ type: Object,
44
+ required: false
45
+ },
46
+ message: {
47
+ type: Object,
48
+ required: false
49
+ },
50
+ emptyValues: {
51
+ type: String,
52
+ required: false
53
+ },
54
+ valueOnClear: {
55
+ type: [String, Number, null],
56
+ required: false
57
+ },
58
+ table: {
59
+ type: Object,
60
+ required: false
61
+ }
62
+ },
63
+ setup(__props) {
64
+ const props = __props;
65
+ const globalConfig = provideGlobalConfig(props);
66
+ const config = computed(() => {
67
+ const { locale, api, userAvatarMap, ...config2 } = globalConfig.value;
68
+ return {
69
+ locale: ElementLocale[locale] || ElementLocale["zhCn"],
70
+ ...config2
71
+ };
72
+ });
73
+ return (_ctx, _cache) => {
74
+ return openBlock(), createBlock(
75
+ unref(ElConfigProvider),
76
+ mergeProps(config.value, { namespace: "hy-el" }),
77
+ {
78
+ default: withCtx(({ config: config2 }) => [
79
+ renderSlot(_ctx.$slots, "default", { config: config2 })
80
+ ]),
81
+ _: 3
82
+ /* FORWARDED */
83
+ },
84
+ 16
85
+ /* FULL_PROPS */
86
+ );
87
+ };
88
+ }
89
+ });
90
+
91
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './appConfigProvider.vue.mjs';
2
+ import { withInstall } from '../../utils/handler.mjs';
3
+
4
+ const AppConfigProvider = withInstall(_sfc_main);
5
+
6
+ export { AppConfigProvider, AppConfigProvider as default };
@@ -1,15 +1,14 @@
1
- import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
2
- import { ElDialog, ElIcon, ElButton } from 'element-plus';
1
+ import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode, withModifiers, mergeModels } from 'vue';
2
+ import { ElDialog, ElIcon } from 'element-plus';
3
3
  import { Warning, CircleClose } from '@element-plus/icons-vue';
4
+ import { AppButton } from '../appButton/index.mjs';
4
5
  import { useLocale } from '../../hooks/useLocale.mjs';
5
6
 
6
- import "./style/appConfirmDialog.scss";
7
-
8
7
  const __default__ = defineComponent({
9
8
  name: "AppConfirmDialog"
10
9
  });
11
10
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
12
- props: {
11
+ props: /* @__PURE__ */ mergeModels({
13
12
  width: {
14
13
  type: [String, Number],
15
14
  default: 500
@@ -28,15 +27,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
28
27
  },
29
28
  showClose: {
30
29
  type: Boolean,
31
- default: true
30
+ default: false
32
31
  },
33
32
  showCancel: {
34
33
  type: Boolean,
35
34
  default: true
36
35
  },
37
- cancelClass: {
36
+ cancelType: {
38
37
  type: String,
39
- default: "button_default"
38
+ default: "default"
40
39
  },
41
40
  cancelText: {
42
41
  type: String
@@ -45,40 +44,78 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
45
44
  type: Boolean,
46
45
  default: true
47
46
  },
48
- submitClass: {
47
+ submitType: {
49
48
  type: String,
50
- default: "button_delete"
49
+ default: "primary"
51
50
  },
52
51
  submitText: {
53
52
  type: String
54
53
  },
55
- textAlign: {
54
+ iconColor: {
56
55
  type: String,
57
- default: "center"
58
- },
59
- onCancel: {
60
- type: Function
56
+ default: "rgb(var(--hy-main))"
61
57
  },
62
- onSubmit: {
63
- type: Function
64
- }
65
- },
66
- emits: ["on-submit", "on-close"],
58
+ onClose: Function,
59
+ onCancel: Function,
60
+ onSubmit: Function
61
+ }, {
62
+ "modelValue": { type: Boolean, default: false },
63
+ "modelModifiers": {}
64
+ }),
65
+ emits: /* @__PURE__ */ mergeModels(["hide"], ["update:modelValue"]),
67
66
  setup(__props, { expose: __expose, emit: __emit }) {
68
67
  const props = __props;
68
+ const emits = __emit;
69
69
  const { t } = useLocale();
70
- const visible = ref(false);
70
+ const visible = useModel(__props, "modelValue");
71
+ const loading = ref(false);
71
72
  async function onSubmitHandler() {
73
+ if (loading.value) return;
74
+ loading.value = true;
72
75
  if (props.onSubmit) {
73
- await props.onSubmit();
76
+ try {
77
+ await props.onSubmit();
78
+ } catch (err) {
79
+ console.error(err);
80
+ loading.value = false;
81
+ return;
82
+ }
74
83
  }
75
84
  visible.value = false;
85
+ loading.value = false;
86
+ emits("hide");
76
87
  }
77
- async function onCloseHandler() {
88
+ async function onCancelHandler() {
89
+ if (loading.value) return;
90
+ loading.value = true;
78
91
  if (props.onCancel) {
79
- await props.onCancel();
92
+ try {
93
+ await props.onCancel();
94
+ } catch (err) {
95
+ console.error(err);
96
+ loading.value = false;
97
+ return;
98
+ }
80
99
  }
81
100
  visible.value = false;
101
+ loading.value = false;
102
+ emits("hide");
103
+ }
104
+ async function onCloseHandler() {
105
+ if (loading.value) return;
106
+ loading.value = true;
107
+ if (props.onClose) {
108
+ try {
109
+ await props.onClose();
110
+ } catch (err) {
111
+ console.error(err);
112
+ loading.value = false;
113
+ return;
114
+ }
115
+ }
116
+ visible.value = false;
117
+ loading.value = false;
118
+ emits("hide");
82
119
  }
83
120
  __expose({
84
121
  show: () => {
@@ -97,11 +134,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
97
134
  "close-on-click-modal": false,
98
135
  "close-on-press-escape": false,
99
136
  "show-close": false,
100
- top: "15%",
101
- class: "app-confirm-dialog"
137
+ top: "15%"
102
138
  }, _ctx.$attrs), {
103
139
  header: withCtx(() => [
104
- createElementVNode("div", { class: "h-[38px] flex items-center justify-between border-b border-border pl-4 pr-[10px]" }, [
140
+ createElementVNode("div", {
141
+ class: "h-[38px] flex items-center justify-between border-b border-border pl-4 pr-[10px]",
142
+ onClick: withModifiers(() => {
143
+ }, ["stop"])
144
+ }, [
105
145
  createElementVNode(
106
146
  "span",
107
147
  { class: "text-sm text-main font-bold" },
@@ -109,60 +149,66 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
109
149
  1
110
150
  /* TEXT */
111
151
  ),
112
- __props.showClose ? (openBlock(), createElementBlock("div", {
113
- key: 0,
114
- class: "flex items-center clickBox",
115
- onClick: onCloseHandler
116
- }, [
117
- createVNode(unref(ElIcon), {
118
- size: "18",
119
- color: "var(--danger)"
120
- }, {
121
- default: withCtx(() => [
122
- createVNode(unref(CircleClose))
123
- ]),
124
- _: 1
125
- /* STABLE */
126
- })
127
- ])) : createCommentVNode("v-if", true)
128
- ])
152
+ __props.showClose ? (openBlock(), createElementBlock(
153
+ "div",
154
+ {
155
+ key: 0,
156
+ class: normalizeClass(["flex items-center clickBox", { "cursor-not-allowed": loading.value }]),
157
+ onClick: onCloseHandler
158
+ },
159
+ [
160
+ createVNode(unref(ElIcon), {
161
+ size: "18",
162
+ color: "rgb(var(--hy-danger-2))"
163
+ }, {
164
+ default: withCtx(() => [
165
+ createVNode(unref(CircleClose))
166
+ ]),
167
+ _: 1
168
+ /* STABLE */
169
+ })
170
+ ],
171
+ 2
172
+ /* CLASS */
173
+ )) : createCommentVNode("v-if", true)
174
+ ], 8, ["onClick"])
129
175
  ]),
130
176
  default: withCtx(() => [
131
- createElementVNode("div", { class: "h-[253px] flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
177
+ createElementVNode("div", { class: "flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
132
178
  createElementVNode("div", { class: "flex flex-col items-center text-main" }, [
133
179
  createVNode(unref(ElIcon), {
134
180
  size: "40",
135
- color: "var(--main)"
181
+ color: __props.iconColor
136
182
  }, {
137
183
  default: withCtx(() => [
138
184
  createVNode(unref(Warning))
139
185
  ]),
140
186
  _: 1
141
187
  /* STABLE */
142
- }),
188
+ }, 8, ["color"]),
143
189
  createElementVNode(
144
190
  "div",
145
191
  {
146
- class: normalizeClass(["text-base font-bold mt-[10px] mb-[26px]", __props.titleClass])
192
+ class: normalizeClass(["text-base text-center font-bold mt-[10px] mb-[26px]", __props.titleClass])
147
193
  },
148
194
  toDisplayString(__props.title),
149
195
  3
150
196
  /* TEXT, CLASS */
151
197
  ),
152
198
  createElementVNode("div", {
153
- class: "max-w-[240px] text-smword-break",
199
+ class: "max-w-[300px] text-smword-break text-center break-all",
154
200
  innerHTML: __props.content
155
201
  }, null, 8, ["innerHTML"])
156
202
  ]),
157
203
  __props.showSubmit || __props.showCancel ? (openBlock(), createElementBlock("div", {
158
204
  key: 0,
159
- class: "flex gap-4 mt-3"
205
+ class: "pt-[32px]"
160
206
  }, [
161
- __props.showCancel ? (openBlock(), createBlock(unref(ElButton), {
207
+ __props.showCancel ? (openBlock(), createBlock(unref(AppButton), {
162
208
  key: 0,
163
- class: normalizeClass([__props.cancelClass, "buttonBox"]),
164
- type: "primary",
165
- onClick: onCloseHandler
209
+ type: __props.cancelType,
210
+ disabled: loading.value,
211
+ onClick: onCancelHandler
166
212
  }, {
167
213
  default: withCtx(() => [
168
214
  createTextVNode(
@@ -173,11 +219,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
173
219
  ]),
174
220
  _: 1
175
221
  /* STABLE */
176
- }, 8, ["class"])) : createCommentVNode("v-if", true),
177
- __props.showSubmit ? (openBlock(), createBlock(unref(ElButton), {
222
+ }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true),
223
+ __props.showSubmit ? (openBlock(), createBlock(unref(AppButton), {
178
224
  key: 1,
179
- class: normalizeClass([__props.submitClass, "buttonBox mx-2"]),
180
- type: "primary",
225
+ type: __props.submitType,
226
+ disabled: loading.value,
181
227
  onClick: onSubmitHandler
182
228
  }, {
183
229
  default: withCtx(() => [
@@ -189,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
189
235
  ]),
190
236
  _: 1
191
237
  /* STABLE */
192
- }, 8, ["class"])) : createCommentVNode("v-if", true)
238
+ }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
193
239
  ])) : createCommentVNode("v-if", true)
194
240
  ])
195
241
  ]),
@@ -201,4 +247,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
201
247
  });
202
248
 
203
249
  export { _sfc_main as default };
204
- //# sourceMappingURL=appConfirmDialog.vue.mjs.map