@das-fed/ui 6.4.0-dev.55.2 → 6.4.0-dev.55.21

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 (263) hide show
  1. package/esm-map.json +6 -1
  2. package/package.json +5 -5
  3. package/packages/business-components/app-container/style.css +1 -1
  4. package/packages/business-components/app-container/style.css.gz +0 -0
  5. package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
  6. package/packages/business-components/change-enterprises/index.js +45 -45
  7. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  8. package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
  9. package/packages/business-components/change-pwd/index.js +123 -118
  10. package/packages/business-components/change-pwd/index.js.gz +0 -0
  11. package/packages/business-components/currency-page/i18n/index.d.ts +8 -4
  12. package/packages/business-components/currency-page/index.js +24 -16
  13. package/packages/business-components/currency-page/index.js.gz +0 -0
  14. package/packages/business-components/device-panel/i18n/index.d.ts +239 -0
  15. package/packages/business-components/device-panel/index.js +37871 -37617
  16. package/packages/business-components/device-panel/index.js.gz +0 -0
  17. package/packages/business-components/device-panel/src/apis.d.ts +0 -2
  18. package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
  19. package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
  20. package/packages/business-components/device-panel/style.css +1 -1
  21. package/packages/business-components/device-panel/style.css.gz +0 -0
  22. package/packages/business-components/export-button/i18n/index.d.ts +11 -0
  23. package/packages/business-components/export-button/index.js +83 -78
  24. package/packages/business-components/export-button/index.js.gz +0 -0
  25. package/packages/business-components/import-button/i18n/index.d.ts +27 -6
  26. package/packages/business-components/import-button/index.js +288 -280
  27. package/packages/business-components/import-button/index.js.gz +0 -0
  28. package/packages/business-components/import-button/style.css +1 -1
  29. package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
  30. package/packages/business-components/model-table-dialog/index.js +481 -481
  31. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  32. package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
  33. package/packages/business-components/process-configuration/index.js +195 -192
  34. package/packages/business-components/process-configuration/index.js.gz +0 -0
  35. package/packages/business-components/process-form/i18n/index.d.ts +90 -0
  36. package/packages/business-components/process-form/index.js +788 -757
  37. package/packages/business-components/process-form/index.js.gz +0 -0
  38. package/packages/business-components/process-form/style.css +1 -1
  39. package/packages/business-components/process-log/i18n/index.d.ts +10 -0
  40. package/packages/business-components/process-log/index.js +268 -259
  41. package/packages/business-components/process-log/index.js.gz +0 -0
  42. package/packages/business-components/process-log/style.css +1 -1
  43. package/packages/business-components/process-log/style.css.gz +0 -0
  44. package/packages/business-components/process-search-form/i18n/index.d.ts +10 -1
  45. package/packages/business-components/process-search-form/index.js +476 -476
  46. package/packages/business-components/process-search-form/index.js.gz +0 -0
  47. package/packages/business-components/process-table/i18n/index.d.ts +8 -0
  48. package/packages/business-components/process-table/index.js +112 -112
  49. package/packages/business-components/process-table/index.js.gz +0 -0
  50. package/packages/business-components/process-table/src/App.vue.d.ts +30 -3
  51. package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
  52. package/packages/business-components/upload-file/index.js +28 -27
  53. package/packages/business-components/upload-file/index.js.gz +0 -0
  54. package/packages/business-components/urgent-panel/i18n/index.d.ts +160 -0
  55. package/packages/business-components/urgent-panel/index.js +1417 -1387
  56. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  57. package/packages/business-components/urgent-panel/style.css +1 -1
  58. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  59. package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
  60. package/packages/business-components/user-org-dialog/index.js +200 -196
  61. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  62. package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
  63. package/packages/business-components/video-dialog/index.js +233 -233
  64. package/packages/business-components/video-dialog/index.js.gz +0 -0
  65. package/packages/components/breadcrumb/index.d.ts +9 -3
  66. package/packages/components/breadcrumb/index.js +48 -45
  67. package/packages/components/breadcrumb/index.js.gz +0 -0
  68. package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
  69. package/packages/components/breadcrumb/src/type.d.ts +1 -0
  70. package/packages/components/breadcrumb/style.css +1 -1
  71. package/packages/components/breadcrumb/style.css.gz +0 -0
  72. package/packages/components/calendar/i18n/index.d.ts +118 -72
  73. package/packages/components/calendar/index.js +262 -262
  74. package/packages/components/calendar/index.js.gz +0 -0
  75. package/packages/components/cascader/i18n/index.d.ts +2 -1
  76. package/packages/components/cascader/index.d.ts +225 -7
  77. package/packages/components/cascader/index.js +56 -57
  78. package/packages/components/cascader/index.js.gz +0 -0
  79. package/packages/components/cascader/src/Index.vue.d.ts +2 -2
  80. package/packages/components/cascader/style.css +1 -1
  81. package/packages/components/cascader/style.css.gz +0 -0
  82. package/packages/components/color-picker/i18n/index.d.ts +2 -1
  83. package/packages/components/color-picker/index.js +86 -85
  84. package/packages/components/color-picker/index.js.gz +0 -0
  85. package/packages/components/color-picker/style.css +1 -1
  86. package/packages/components/color-picker/style.css.gz +0 -0
  87. package/packages/components/custom-search-item/i18n/index.d.ts +2 -1
  88. package/packages/components/custom-search-item/index.js +17 -19
  89. package/packages/components/custom-search-item/index.js.gz +0 -0
  90. package/packages/components/date-picker/i18n/index.d.ts +21 -3
  91. package/packages/components/date-picker/index.d.ts +3 -3
  92. package/packages/components/date-picker/index.js +536 -526
  93. package/packages/components/date-picker/index.js.gz +0 -0
  94. package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -1
  95. package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +1 -1
  96. package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
  97. package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
  98. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
  99. package/packages/components/date-picker/style.css +1 -1
  100. package/packages/components/date-picker/style.css.gz +0 -0
  101. package/packages/components/dialog/i18n/index.d.ts +12 -6
  102. package/packages/components/dialog/index.js +58 -58
  103. package/packages/components/dialog/index.js.gz +0 -0
  104. package/packages/components/dimple-layout/i18n/index.d.ts +20 -10
  105. package/packages/components/dimple-layout/index.js +287 -283
  106. package/packages/components/dimple-layout/index.js.gz +0 -0
  107. package/packages/components/dropdown/i18n/index.d.ts +2 -1
  108. package/packages/components/dropdown/index.js +14 -16
  109. package/packages/components/dropdown/index.js.gz +0 -0
  110. package/packages/components/edit-table/index.js +14 -14
  111. package/packages/components/edit-table/index.js.gz +0 -0
  112. package/packages/components/edit-table/src/index.vue.d.ts +30 -3
  113. package/packages/components/empty/i18n/index.d.ts +1 -0
  114. package/packages/components/empty/index.js +11 -11
  115. package/packages/components/empty/index.js.gz +0 -0
  116. package/packages/components/form-item/index.js +829 -826
  117. package/packages/components/form-item/index.js.gz +0 -0
  118. package/packages/components/form-item/src/type.d.ts +2 -0
  119. package/packages/components/form-item/style.css +1 -1
  120. package/packages/components/form-item/style.css.gz +0 -0
  121. package/packages/components/form-item/theme/index.d.ts +3 -0
  122. package/packages/components/image-upload/i18n/index.d.ts +6 -0
  123. package/packages/components/image-upload/index.js +60 -51
  124. package/packages/components/image-upload/index.js.gz +0 -0
  125. package/packages/components/input/i18n/index.d.ts +3 -0
  126. package/packages/components/input/index.js +28 -28
  127. package/packages/components/input/index.js.gz +0 -0
  128. package/packages/components/input-dialog-select/i18n/index.d.ts +12 -1
  129. package/packages/components/input-dialog-select/index.d.ts +1 -0
  130. package/packages/components/input-dialog-select/index.js +108 -101
  131. package/packages/components/input-dialog-select/index.js.gz +0 -0
  132. package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -0
  133. package/packages/components/input-dialog-select/style.css +1 -1
  134. package/packages/components/input-dialog-select/style.css.gz +0 -0
  135. package/packages/components/live-player/i18n/index.d.ts +2 -0
  136. package/packages/components/live-player/index.js +3 -2
  137. package/packages/components/live-player/index.js.gz +0 -0
  138. package/packages/components/loading/i18n/index.d.ts +1 -0
  139. package/packages/components/loading/index.js +53 -53
  140. package/packages/components/loading/index.js.gz +0 -0
  141. package/packages/components/map/i18n/index.d.ts +14 -0
  142. package/packages/components/map/index.js +1109 -841
  143. package/packages/components/map/index.js.gz +0 -0
  144. package/packages/components/map/src/get-sdk-config.d.ts +1 -1
  145. package/packages/components/map/src/hooks/use-baidu.d.ts +1 -11
  146. package/packages/components/map/src/hooks/use-gaode.d.ts +1 -11
  147. package/packages/components/map/src/hooks/use-google.d.ts +16 -0
  148. package/packages/components/map/src/hooks/use-map.d.ts +2 -0
  149. package/packages/components/map/src/type.d.ts +1 -1
  150. package/packages/components/map/style.css +1 -1
  151. package/packages/components/menu-aside/i18n/index.d.ts +1 -0
  152. package/packages/components/menu-aside/index.js +1 -1
  153. package/packages/components/menu-aside/index.js.gz +0 -0
  154. package/packages/components/message/i18n/index.d.ts +1 -0
  155. package/packages/components/message/index.js +1 -1
  156. package/packages/components/message/index.js.gz +0 -0
  157. package/packages/components/notification/i18n/index.d.ts +1 -0
  158. package/packages/components/notification/index.js +1 -1
  159. package/packages/components/notification/index.js.gz +0 -0
  160. package/packages/components/pagination/i18n/index.d.ts +4 -0
  161. package/packages/components/pagination/index.js +140 -139
  162. package/packages/components/pagination/index.js.gz +0 -0
  163. package/packages/components/pagination/style.css +1 -1
  164. package/packages/components/pagination/style.css.gz +0 -0
  165. package/packages/components/popover/i18n/index.d.ts +2 -0
  166. package/packages/components/popover/index.d.ts +3 -0
  167. package/packages/components/popover/index.js +28 -27
  168. package/packages/components/popover/index.js.gz +0 -0
  169. package/packages/components/preview/i18n/index.d.ts +1 -0
  170. package/packages/components/preview/index.js +6 -6
  171. package/packages/components/preview/index.js.gz +0 -0
  172. package/packages/components/rich-editor/i18n/index.d.ts +8 -4
  173. package/packages/components/rich-editor/index.js +3640 -3622
  174. package/packages/components/rich-editor/index.js.gz +0 -0
  175. package/packages/components/rich-editor/src/type.d.ts +3 -0
  176. package/packages/components/search/index.d.ts +9 -0
  177. package/packages/components/search/index.js +58 -42
  178. package/packages/components/search/index.js.gz +0 -0
  179. package/packages/components/search/src/Index.vue.d.ts +15 -0
  180. package/packages/components/search/src/type.d.ts +2 -0
  181. package/packages/components/search/style.css +1 -1
  182. package/packages/components/search/style.css.gz +0 -0
  183. package/packages/components/search-form/i18n/index.d.ts +6 -0
  184. package/packages/components/search-form/index.js +650 -604
  185. package/packages/components/search-form/index.js.gz +0 -0
  186. package/packages/components/search-form/src/Index.vue.d.ts +2 -0
  187. package/packages/components/search-form/src/type.d.ts +3 -0
  188. package/packages/components/search-form/style.css +1 -1
  189. package/packages/components/search-form/style.css.gz +0 -0
  190. package/packages/components/select/i18n/index.d.ts +9 -9
  191. package/packages/components/select/index.js +318 -336
  192. package/packages/components/select/index.js.gz +0 -0
  193. package/packages/components/select/src/Select.vue.d.ts +1 -0
  194. package/packages/components/select/style.css +1 -1
  195. package/packages/components/select/style.css.gz +0 -0
  196. package/packages/components/select-input/index.d.ts +1 -0
  197. package/packages/components/select-input/index.js +68 -61
  198. package/packages/components/select-input/index.js.gz +0 -0
  199. package/packages/components/select-input/src/Index.vue.d.ts +1 -0
  200. package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
  201. package/packages/components/select-input/src/type.d.ts +3 -0
  202. package/packages/components/select-input/style.css +1 -1
  203. package/packages/components/select-input/style.css.gz +0 -0
  204. package/packages/components/select-list/i18n/index.d.ts +8 -4
  205. package/packages/components/select-list/index.js +73 -73
  206. package/packages/components/select-list/index.js.gz +0 -0
  207. package/packages/components/special-range-picker-month/i18n/index.d.ts +8 -4
  208. package/packages/components/special-range-picker-month/index.js +72 -72
  209. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  210. package/packages/components/special-range-picker-year/i18n/index.d.ts +6 -3
  211. package/packages/components/special-range-picker-year/index.js +99 -99
  212. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  213. package/packages/components/spin/i18n/index.d.ts +1 -0
  214. package/packages/components/spin/index.js +27 -27
  215. package/packages/components/spin/index.js.gz +0 -0
  216. package/packages/components/table/i18n/index.d.ts +49 -5
  217. package/packages/components/table/index.d.ts +90 -9
  218. package/packages/components/table/index.js +4124 -3995
  219. package/packages/components/table/index.js.gz +0 -0
  220. package/packages/components/table/src/Table.vue.d.ts +10 -1
  221. package/packages/components/table/src/hooks/use-operation.d.ts +55 -5
  222. package/packages/components/table/src/type.d.ts +16 -3
  223. package/packages/components/table/style.css +1 -1
  224. package/packages/components/table/style.css.gz +0 -0
  225. package/packages/components/tabs/i18n/index.d.ts +3 -0
  226. package/packages/components/tabs/index.js +63 -63
  227. package/packages/components/tabs/index.js.gz +0 -0
  228. package/packages/components/text-tooltip/index.js +1 -1
  229. package/packages/components/text-tooltip/index.js.gz +0 -0
  230. package/packages/components/tooltip/i18n/index.d.ts +1 -0
  231. package/packages/components/tooltip/index.js +18 -18
  232. package/packages/components/tooltip/index.js.gz +0 -0
  233. package/packages/components/tooltip/style.css +1 -1
  234. package/packages/components/tooltip/style.css.gz +0 -0
  235. package/packages/components/tree/i18n/index.d.ts +12 -0
  236. package/packages/components/tree/index.js +173 -171
  237. package/packages/components/tree/index.js.gz +0 -0
  238. package/packages/components/tree/src/App.vue.d.ts +13 -19
  239. package/packages/components/tree/src/type.d.ts +1 -0
  240. package/packages/components/upload/i18n/index.d.ts +5 -0
  241. package/packages/components/upload/index.js +65 -65
  242. package/packages/components/upload/index.js.gz +0 -0
  243. package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
  244. package/packages/components/virtual-tree/index.js +15 -15
  245. package/packages/components/virtual-tree/index.js.gz +0 -0
  246. package/packages/icons/exit/index.d.ts +1 -0
  247. package/packages/icons/exit/index.js +17 -0
  248. package/packages/icons/exit/index.js.gz +0 -0
  249. package/packages/icons/exit/index.vue.d.ts +16 -0
  250. package/packages/icons/global/index.d.ts +1 -0
  251. package/packages/icons/global/index.js +17 -0
  252. package/packages/icons/global/index.js.gz +0 -0
  253. package/packages/icons/global/index.vue.d.ts +16 -0
  254. package/packages/icons/index.d.ts +4 -0
  255. package/packages/icons/index.js +4 -0
  256. package/packages/icons/password-lock2/index.d.ts +1 -0
  257. package/packages/icons/password-lock2/index.js +17 -0
  258. package/packages/icons/password-lock2/index.js.gz +0 -0
  259. package/packages/icons/password-lock2/index.vue.d.ts +16 -0
  260. package/packages/icons/system/index.d.ts +1 -0
  261. package/packages/icons/system/index.js +17 -0
  262. package/packages/icons/system/index.js.gz +0 -0
  263. package/packages/icons/system/index.vue.d.ts +16 -0
@@ -2,46 +2,57 @@ declare const _default: {
2
2
  导出表: {
3
3
  'zh-CN': string;
4
4
  en: string;
5
+ _appCode: string;
5
6
  };
6
7
  导出失败: {
7
8
  'zh-CN': string;
8
9
  en: string;
10
+ _appCode: string;
9
11
  };
10
12
  导出成功: {
11
13
  'zh-CN': string;
12
14
  en: string;
15
+ _appCode: string;
13
16
  };
14
17
  导出进度: {
15
18
  'zh-CN': string;
16
19
  en: string;
20
+ _appCode: string;
17
21
  };
18
22
  导出: {
19
23
  'zh-CN': string;
20
24
  en: string;
25
+ _appCode: string;
21
26
  };
22
27
  导入: {
23
28
  'zh-CN': string;
24
29
  en: string;
30
+ _appCode: string;
25
31
  };
26
32
  '\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
27
33
  'zh-CN': string;
28
34
  en: string;
35
+ _appCode: string;
29
36
  };
30
37
  '\u6B63\u5728\u5BFC\u51FA\u4E2D...': {
31
38
  'zh-CN': string;
32
39
  en: string;
40
+ _appCode: string;
33
41
  };
34
42
  'business-components_export-success-tip': {
35
43
  'zh-CN': string;
36
44
  en: string;
45
+ _appCode: string;
37
46
  };
38
47
  'business-components_export-failure-tip': {
39
48
  'zh-CN': string;
40
49
  en: string;
50
+ _appCode: string;
41
51
  };
42
52
  'business-components_export-partially-failure-tip': {
43
53
  'zh-CN': string;
44
54
  en: string;
55
+ _appCode: string;
45
56
  };
46
57
  };
47
58
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import '@das-fed/ui/packages/business-components/export-button/style.css';
2
2
  import { withInstall as X } from "@das-fed/utils/with-install/index";
3
- import { ref as p, defineComponent as G, computed as J, watch as _, openBlock as K, createElementBlock as Q, createVNode as z, unref as h, withCtx as B, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as L } from "vue";
4
- import { t as g, i18n as k, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
3
+ import { ref as p, defineComponent as G, computed as J, watch as I, openBlock as K, createElementBlock as Q, createVNode as T, unref as h, withCtx as B, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as S } from "vue";
4
+ import { t as g, i18n as $, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
5
5
  import { DasDialog as ae } from "@das-fed/ui/packages/components/dialog/index";
6
6
  import { DasProgress as oe } from "@das-fed/ui/packages/components/progress/index";
7
7
  import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
8
8
  import { iotProgress as le } from "@das-fed/utils/api-services/modules/iot";
9
- import D from "dayjs";
10
- import { DasMessage as T } from "@das-fed/ui/packages/components/message/index";
11
- import { getConfig as S } from "@das-fed/utils/config";
9
+ import z from "dayjs";
10
+ import { DasMessage as P } from "@das-fed/ui/packages/components/message/index";
11
+ import { getConfig as L } from "@das-fed/utils/config";
12
12
  let H = (a = 21) => {
13
13
  let l = "", e = crypto.getRandomValues(new Uint8Array(a));
14
14
  for (; a--; ) {
@@ -18,9 +18,9 @@ let H = (a = 21) => {
18
18
  return l;
19
19
  };
20
20
  const ne = le.get("progress"), ue = (a) => {
21
- let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), c = p(!1), m, x = p(""), n = p(""), d = p(""), f = p(""), v = p(!1), $ = p(""), P;
21
+ let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), c, x = p(""), n = p(""), d = p(""), f = p(""), v = p(!1), k = p(""), w;
22
22
  const Y = () => {
23
- n.value = "", d.value = "", f.value = "", v.value = !1, $.value = "";
23
+ n.value = "", d.value = "", f.value = "", v.value = !1, k.value = "";
24
24
  }, O = async (t, u = "", y = "") => {
25
25
  o.value = "normal", i.value = 0, s.value = y || g("导出进度"), e.value = !0;
26
26
  const b = await (t == null ? void 0 : t());
@@ -28,62 +28,62 @@ const ne = le.get("progress"), ue = (a) => {
28
28
  e.value = !1, o.value = "error";
29
29
  return;
30
30
  }
31
- C(b.taskId, "action", "");
32
- }, j = async (t, u = "", y = "") => {
31
+ _(b.taskId, "action", "");
32
+ }, F = async (t, u = "", y = "") => {
33
33
  o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
34
34
  const b = await (t == null ? void 0 : t());
35
35
  if (!b.status) {
36
36
  e.value = !1, o.value = "error";
37
37
  return;
38
38
  }
39
- D().format("YYYYMMDDHHmmss") + "", C(b.taskId, "export", u || "", y);
40
- }, C = async (t, u, y, b = "") => {
41
- c.value = !0, N(t, u, y, b), m = setTimeout(() => {
39
+ z().format("YYYYMMDDHHmmss") + "", _(b.taskId, "export", u || "", y);
40
+ }, _ = async (t, u, y, b = "") => {
41
+ m.value = !0, V(t, u, y, b), c = setTimeout(() => {
42
42
  }, 50);
43
- }, V = () => {
44
- clearTimeout(m), m = null, e.value = !1;
45
- }, N = async (t, u = "export", y, b = "") => {
46
- var U, E, I;
47
- const [q, r] = await ne("", {
43
+ }, D = () => {
44
+ clearTimeout(c), c = null, e.value = !1;
45
+ }, V = async (t, u = "export", y, b = "") => {
46
+ var R, U, E;
47
+ const [j, r] = await ne("", {
48
48
  url: `progress/${t}`
49
49
  }).run();
50
- if (q) {
51
- c.value = !1;
50
+ if (j) {
51
+ m.value = !1;
52
52
  return;
53
53
  }
54
54
  i.value = r.percentage;
55
- const w = u == "export" ? g("导出") : g("导入");
55
+ const C = u == "export" ? g("导出") : g("导入");
56
56
  if (i.value == 100)
57
- if (x.value = r, c.value = !1, V(), u == "export")
58
- r.status == 1 ? (o.value = "success", M(`${S().baseURL}/oss${r.filePath}`, y, b), c.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${w}${g("失败")}`, T.error({
59
- message: r.message || `${w}${g("失败")}`,
57
+ if (x.value = r, m.value = !1, D(), u == "export")
58
+ r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${g("失败")}`, P.error({
59
+ message: r.message || `${C}${g("失败")}`,
60
60
  grouping: !0,
61
61
  repeatNum: 1
62
62
  }));
63
63
  else if (u == "import") {
64
64
  if (r.filePath) {
65
65
  o.value = "error";
66
- const F = (U = P.name) == null ? void 0 : U.substr(P.name.indexOf("."));
67
- (E = P.name) == null || E.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
- const A = (I = r.filePath) == null ? void 0 : I.replace(/(.*\/)*([^.]+).*/gi, "$2");
69
- n.value = `${A}${F}`, d.value = P.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), $.value = `${S().baseURL}/oss${r.filePath}`;
66
+ const q = (R = w.name) == null ? void 0 : R.substr(w.name.indexOf("."));
67
+ (U = w.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
+ const A = (E = r.filePath) == null ? void 0 : E.replace(/(.*\/)*([^.]+).*/gi, "$2");
69
+ n.value = `${A}${q}`, d.value = w.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), k.value = `${L().baseURL}/oss${r.filePath}`;
70
70
  }
71
- R(r.status, w), r.status == 1 && (l.value = !1), a("success");
71
+ N(r.status, C), r.status == 1 && (l.value = !1), a("success");
72
72
  } else u == "action" && (o.value = "success");
73
73
  else
74
- m && r.status != 2 ? m = setTimeout(() => {
75
- N(t, u, y, b);
76
- }, 50) : (x.value = r, c.value = !1, R(r.status, w), V(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
- }, R = (t, u) => {
78
- t == 1 ? (o.value = "success", T.success({
74
+ c && r.status != 2 ? c = setTimeout(() => {
75
+ V(t, u, y, b);
76
+ }, 50) : (x.value = r, m.value = !1, N(r.status, C), D(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
+ }, N = (t, u) => {
78
+ t == 1 ? (o.value = "success", P.success({
79
79
  message: g("business-components_export-success-tip", u),
80
80
  grouping: !0,
81
81
  repeatNum: 1
82
- }), n.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error", T.error({
82
+ }), n.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error", P.error({
83
83
  message: g("business-components_export-failure-tip", u),
84
84
  grouping: !0,
85
85
  repeatNum: 1
86
- })) : t == 3 && (o.value = "error", T.error({
86
+ })) : t == 3 && (o.value = "error", P.error({
87
87
  message: g("business-components_export-partially-failure-tip", u),
88
88
  grouping: !0,
89
89
  repeatNum: 1
@@ -95,14 +95,14 @@ const ne = le.get("progress"), ue = (a) => {
95
95
  progressTitle: s,
96
96
  percent: i,
97
97
  progressStatus: o,
98
- progressLoading: c,
98
+ progressLoading: m,
99
99
  progressResult: x,
100
100
  errorFileName: n,
101
101
  errorFileSize: d,
102
102
  errorMessage: f,
103
103
  errorImport: v,
104
- errorFilePath: $,
105
- fileExport: j,
104
+ errorFilePath: k,
105
+ fileExport: F,
106
106
  fileAction: O,
107
107
  generateUniqueName: (t) => {
108
108
  const u = t == null ? void 0 : t.substr(t.indexOf("."));
@@ -110,45 +110,45 @@ const ne = le.get("progress"), ue = (a) => {
110
110
  },
111
111
  downloadFile: M,
112
112
  resetStataus: Y,
113
- checkProgress: C
113
+ checkProgress: _
114
114
  };
115
115
  }, M = (a, l, e = "xlsx") => {
116
116
  const s = new XMLHttpRequest();
117
117
  s.open("get", a), s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.responseType = "blob", s.onload = function(i) {
118
118
  const o = new Blob([this.response], {
119
119
  type: e === "zip" ? "application/zip" : e === "xlsx" ? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : "application/pdf"
120
- }), c = URL.createObjectURL(o);
120
+ }), m = URL.createObjectURL(o);
121
121
  if (window.navigator.msSaveOrOpenBlob)
122
122
  navigator.msSaveBlob(o, l);
123
123
  else {
124
- const m = document.createElement("a");
125
- m.href = c, m.download = l, m.click(), window.URL.revokeObjectURL(c);
124
+ const c = document.createElement("a");
125
+ c.href = m, c.download = l, c.click(), window.URL.revokeObjectURL(m);
126
126
  }
127
127
  }, s.send();
128
128
  }, ie = (a, l) => {
129
- const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: c, fileExport: m } = ue(l), x = p({}), n = p({}), d = (v, $) => {
129
+ const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: c } = ue(l), x = p({}), n = p({}), d = (v, k) => {
130
130
  x.value = {
131
131
  ...v
132
132
  }, n.value = {
133
- ...$
133
+ ...k
134
134
  };
135
- const P = `${a.exportFileName}${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
136
- m(f, P, a.fileType);
135
+ const w = `${a.exportFileName}${z().format("YYYYMMDD")}-${z().format("HHmmss")}.${a.fileType}`;
136
+ c(f, w, a.fileType);
137
137
  }, f = async () => {
138
138
  let v = H();
139
139
  a.taskIdPosition === "params" && (x.value.taskId = v), a.taskIdPosition === "body" && (n.value.taskId = v);
140
- const [$, P] = await a.exportFun(n.value, { params: x.value }).run();
141
- return $ ? { status: !1 } : { status: !0, taskId: v };
140
+ const [k, w] = await a.exportFun(n.value, { params: x.value }).run();
141
+ return k ? { status: !1 } : { status: !0, taskId: v };
142
142
  };
143
143
  return {
144
144
  showProgressDialog: e,
145
145
  progressTitle: s,
146
146
  percent: i,
147
147
  progressStatus: o,
148
- progressLoading: c,
148
+ progressLoading: m,
149
149
  exportList: d
150
150
  };
151
- }, pe = { class: "das-export-button" }, ce = /* @__PURE__ */ G({
151
+ }, pe = { class: "das-export-button" }, me = /* @__PURE__ */ G({
152
152
  __name: "App",
153
153
  props: {
154
154
  modelValue: {},
@@ -165,25 +165,25 @@ const ne = le.get("progress"), ue = (a) => {
165
165
  emits: ["update:modelValue", "update:bodyParams", "success"],
166
166
  setup(a, { emit: l }) {
167
167
  const e = a, s = l;
168
- J(() => e.exportFileName || g("导出表")), _(e.modelValue, (n) => {
168
+ J(() => e.exportFileName || g("导出表")), I(e.modelValue, (n) => {
169
169
  s("update:modelValue", n);
170
- }), _(e.bodyParams, (n) => {
170
+ }), I(e.bodyParams, (n) => {
171
171
  s("update:bodyParams", n);
172
172
  });
173
- const { showProgressDialog: i, percent: o, progressStatus: c, exportList: m } = ie(e, s), x = [k("正在导出中...").value, k("导出失败").value, k("导出成功").value];
173
+ const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ie(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
174
174
  return (n, d) => (K(), Q("div", pe, [
175
- z(h(re), {
175
+ T(h(re), {
176
176
  block: n.block,
177
177
  size: "middle",
178
178
  disabled: n.disabled,
179
179
  "btn-type": e.btnType,
180
180
  ghost: n.ghost,
181
- onClick: d[0] || (d[0] = (f) => h(m)(e.modelValue, e.bodyParams))
181
+ onClick: d[0] || (d[0] = (f) => h(c)(e.modelValue, e.bodyParams))
182
182
  }, {
183
183
  default: B(() => [
184
184
  W(n.$slots, "default", {}, () => [
185
185
  Z(
186
- ee(h(k)("导出").value),
186
+ ee(h($)("导出").value),
187
187
  1
188
188
  /* TEXT */
189
189
  )
@@ -193,22 +193,22 @@ const ne = le.get("progress"), ue = (a) => {
193
193
  /* FORWARDED */
194
194
  }, 8, ["block", "disabled", "btn-type", "ghost"]),
195
195
  te(" 进度弹窗 "),
196
- z(h(ae), {
196
+ T(h(ae), {
197
197
  size: "mini",
198
- title: h(k)("导出进度").value,
198
+ title: h($)("导出进度").value,
199
199
  "is-feedback-img": !1,
200
200
  modelValue: h(i),
201
- "onUpdate:modelValue": d[2] || (d[2] = (f) => L(i) ? i.value = f : null),
201
+ "onUpdate:modelValue": d[2] || (d[2] = (f) => S(i) ? i.value = f : null),
202
202
  "append-to-body": !0,
203
203
  type: "feedback"
204
204
  }, {
205
205
  default: B(() => [
206
- z(h(oe), {
206
+ T(h(oe), {
207
207
  modelValue: h(o),
208
- "onUpdate:modelValue": d[1] || (d[1] = (f) => L(o) ? o.value = f : null),
208
+ "onUpdate:modelValue": d[1] || (d[1] = (f) => S(o) ? o.value = f : null),
209
209
  style: { "margin-top": "35px" },
210
210
  type: "circle",
211
- status: h(c),
211
+ status: h(m),
212
212
  textMap: x
213
213
  }, null, 8, ["modelValue", "status"])
214
214
  ]),
@@ -217,30 +217,35 @@ const ne = le.get("progress"), ue = (a) => {
217
217
  }, 8, ["title", "modelValue"])
218
218
  ]));
219
219
  }
220
- }), me = (a, l) => {
220
+ }), ce = (a, l) => {
221
221
  const e = a.__vccOpts || a;
222
222
  for (const [s, i] of l)
223
223
  e[s] = i;
224
224
  return e;
225
- }, de = /* @__PURE__ */ me(ce, [["__scopeId", "data-v-49f0bb05"]]), fe = {
226
- 导出表: { "zh-CN": "导出表", en: "Export Table" },
227
- 导出失败: { "zh-CN": "导出失败", en: "Export Failed" },
228
- 导出成功: { "zh-CN": "导出成功", en: "Export Successful" },
229
- 导出进度: { "zh-CN": "导出进度", en: "Export Progress" },
230
- 导出: { "zh-CN": "导出", en: "Export" },
231
- 导入: { "zh-CN": "导入", en: "Import" },
225
+ }, de = /* @__PURE__ */ ce(me, [["__scopeId", "data-v-49f0bb05"]]), fe = {
226
+ 导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
227
+ 导出失败: { "zh-CN": "导出失败", en: "Export Failed", _appCode: "framework" },
228
+ 导出成功: { "zh-CN": "导出成功", en: "Export Successful", _appCode: "framework" },
229
+ 导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
230
+ 导出: { "zh-CN": "导出", en: "Export", _appCode: "framework" },
231
+ 导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
232
232
  "部分数据校验不通过,请下载附件并修改,重新导入!": {
233
233
  "zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
234
- en: "Some data failed validation, please download the attachment, make corrections, and re-import!"
234
+ en: "Some data failed validation, please download the attachment, make corrections, and re-import!",
235
+ _appCode: "framework"
235
236
  },
236
- "正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting..." },
237
- "business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 success" },
238
- "business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 failure" },
239
- "business-components_export-partially-failure-tip": { "zh-CN": "部分$0失败", en: "Partially $0 failure" }
237
+ "正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
238
+ "business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Success", _appCode: "framework" },
239
+ "business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failure", _appCode: "framework" },
240
+ "business-components_export-partially-failure-tip": {
241
+ "zh-CN": "部分$0失败",
242
+ en: "Partially $0 Failure",
243
+ _appCode: "framework"
244
+ }
240
245
  };
241
246
  se(fe);
242
- const Ce = X(de);
247
+ const _e = X(de);
243
248
  export {
244
- Ce as DasExportButton,
245
- Ce as default
249
+ _e as DasExportButton,
250
+ _e as default
246
251
  };
@@ -1,107 +1,128 @@
1
1
  declare const _default: {
2
- 点击下载: {
2
+ '1\u3001\u70B9\u51FB\u4E0B\u8F7D ': {
3
3
  'zh-CN': string;
4
4
  en: string;
5
+ _appCode: string;
5
6
  };
6
- 仅支持上传: {
7
+ '2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6': {
7
8
  'zh-CN': string;
8
9
  en: string;
10
+ _appCode: string;
9
11
  };
10
12
  文件: {
11
13
  'zh-CN': string;
12
14
  en: string;
13
- };
14
- 重复数据以最后一条为准: {
15
- 'zh-CN': string;
16
- en: string;
15
+ _appCode: string;
17
16
  };
18
17
  取消: {
19
18
  'zh-CN': string;
20
19
  en: string;
20
+ _appCode: string;
21
21
  };
22
22
  正在导入中: {
23
23
  'zh-CN': string;
24
24
  en: string;
25
+ _appCode: string;
25
26
  };
26
27
  导入失败: {
27
28
  'zh-CN': string;
28
29
  en: string;
30
+ _appCode: string;
29
31
  };
30
32
  正在导出中: {
31
33
  'zh-CN': string;
32
34
  en: string;
35
+ _appCode: string;
33
36
  };
34
37
  导出失败: {
35
38
  'zh-CN': string;
36
39
  en: string;
40
+ _appCode: string;
37
41
  };
38
42
  导出成功: {
39
43
  'zh-CN': string;
40
44
  en: string;
45
+ _appCode: string;
41
46
  };
42
47
  文件格式错误: {
43
48
  'zh-CN': string;
44
49
  en: string;
50
+ _appCode: string;
45
51
  };
46
52
  请重新上传: {
47
53
  'zh-CN': string;
48
54
  en: string;
55
+ _appCode: string;
49
56
  };
50
57
  文件大小不超过: {
51
58
  'zh-CN': string;
52
59
  en: string;
60
+ _appCode: string;
53
61
  };
54
62
  请上传文件: {
55
63
  'zh-CN': string;
56
64
  en: string;
65
+ _appCode: string;
57
66
  };
58
67
  导入进度: {
59
68
  'zh-CN': string;
60
69
  en: string;
70
+ _appCode: string;
61
71
  };
62
72
  导入成功: {
63
73
  'zh-CN': string;
64
74
  en: string;
75
+ _appCode: string;
65
76
  };
66
77
  导出进度: {
67
78
  'zh-CN': string;
68
79
  en: string;
80
+ _appCode: string;
69
81
  };
70
82
  导出: {
71
83
  'zh-CN': string;
72
84
  en: string;
85
+ _appCode: string;
73
86
  };
74
87
  导入: {
75
88
  'zh-CN': string;
76
89
  en: string;
90
+ _appCode: string;
77
91
  };
78
92
  失败: {
79
93
  'zh-CN': string;
80
94
  en: string;
95
+ _appCode: string;
81
96
  };
82
97
  成功: {
83
98
  'zh-CN': string;
84
99
  en: string;
100
+ _appCode: string;
85
101
  };
86
102
  部分: {
87
103
  'zh-CN': string;
88
104
  en: string;
105
+ _appCode: string;
89
106
  };
90
107
  '\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
91
108
  'zh-CN': string;
92
109
  en: string;
110
+ _appCode: string;
93
111
  };
94
112
  '\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\uFF01': {
95
113
  'zh-CN': string;
96
114
  en: string;
115
+ _appCode: string;
97
116
  };
98
117
  '\u6B63\u5728\u5BFC\u5165\u4E2D...': {
99
118
  'zh-CN': string;
100
119
  en: string;
120
+ _appCode: string;
101
121
  };
102
122
  '\u6B63\u5728\u5BFC\u51FA\u4E2D...': {
103
123
  'zh-CN': string;
104
124
  en: string;
125
+ _appCode: string;
105
126
  };
106
127
  };
107
128
  export default _default;