@das-fed/ui 1.1.4 → 6.3.0-beta.1

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 (152) hide show
  1. package/global/icons/index.local.js +1 -1
  2. package/global/style/index.css +1 -1
  3. package/global/style/scrollbar.css +22 -22
  4. package/global/theme/index.js +12 -12
  5. package/global/theme/module/color.js +31 -31
  6. package/global/theme/module/fontSize.js +5 -5
  7. package/global/theme/module/scrollbar.js +6 -6
  8. package/package.json +15 -9
  9. package/packages/business-components/app-container/index.js +154 -147
  10. package/packages/business-components/change-enterprises/index.css +1 -0
  11. package/packages/business-components/change-enterprises/index.js +241 -0
  12. package/packages/business-components/change-pwd/index.css +1 -0
  13. package/packages/business-components/change-pwd/index.js +330 -0
  14. package/packages/business-components/currency-page/index.css +1 -0
  15. package/packages/business-components/currency-page/index.js +99 -0
  16. package/packages/business-components/device-panel/index.css +1 -0
  17. package/packages/business-components/device-panel/index.js +115939 -0
  18. package/packages/business-components/echarts/index.js +93 -122
  19. package/packages/business-components/export-button/index.js +73 -66
  20. package/packages/business-components/import-button/index.js +213 -170
  21. package/packages/business-components/index.js +8 -1
  22. package/packages/business-components/layout-breadcrumb/index.js +82 -66
  23. package/packages/business-components/model-table-dialog/index.js +299 -289
  24. package/packages/business-components/process-configuration/index.css +1 -0
  25. package/packages/business-components/process-configuration/index.js +612 -0
  26. package/packages/business-components/process-form/index.css +1 -0
  27. package/packages/business-components/process-form/index.js +524 -0
  28. package/packages/business-components/process-search-form/index.js +73 -315
  29. package/packages/business-components/process-table/index.css +1 -1
  30. package/packages/business-components/process-table/index.js +186 -152
  31. package/packages/business-components/urgent-panel/index.css +1 -0
  32. package/packages/business-components/urgent-panel/index.js +3914 -0
  33. package/packages/business-components/user-org-dialog/index.js +466 -375
  34. package/packages/business-components/video-dialog/index.css +1 -0
  35. package/packages/business-components/video-dialog/index.js +1041 -0
  36. package/packages/business.js +1 -2
  37. package/packages/components/alert/index.js +449 -633
  38. package/packages/components/audio-video/index.css +1 -1
  39. package/packages/components/audio-video/index.js +312 -126
  40. package/packages/components/autocomplete/index.css +1 -1
  41. package/packages/components/autocomplete/index.js +312 -2923
  42. package/packages/components/breadcrumb/index.js +97 -82
  43. package/packages/components/button/index.css +1 -1
  44. package/packages/components/button/index.js +646 -787
  45. package/packages/components/calendar/index.css +1 -1
  46. package/packages/components/calendar/index.js +655 -3879
  47. package/packages/components/cascader/index.js +209 -203
  48. package/packages/components/checkbox/index.css +1 -1
  49. package/packages/components/checkbox/index.js +710 -872
  50. package/packages/components/collapse-panel/index.css +1 -1
  51. package/packages/components/collapse-panel/index.js +419 -601
  52. package/packages/components/collapse-transition/index.js +23 -21
  53. package/packages/components/collaspe/index.css +1 -1
  54. package/packages/components/collaspe/index.js +413 -595
  55. package/packages/components/color-picker/index.css +1 -1
  56. package/packages/components/color-picker/index.js +176 -133
  57. package/packages/components/custom-search-item/index.js +43 -37
  58. package/packages/components/date-picker/index.js +1338 -1459
  59. package/packages/components/dialog/index.js +429 -215
  60. package/packages/components/dimple-layout/index.css +1 -1
  61. package/packages/components/dimple-layout/index.js +1298 -1794
  62. package/packages/components/drawer/index.js +105 -77
  63. package/packages/components/dropdown/index.js +129 -109
  64. package/packages/components/edit-table/index.css +1 -1
  65. package/packages/components/edit-table/index.js +868 -752
  66. package/packages/components/empty/index.js +83 -78
  67. package/packages/components/form/index.js +22 -15
  68. package/packages/components/form-item/index.css +1 -1
  69. package/packages/components/form-item/index.js +601 -440
  70. package/packages/components/icon/index.css +1 -1
  71. package/packages/components/icon/index.js +38 -22
  72. package/packages/components/image-preview/index.css +1 -0
  73. package/packages/components/image-preview/index.js +2714 -0
  74. package/packages/components/image-upload/index.js +601 -765
  75. package/packages/components/image-viewer/index.css +1 -1
  76. package/packages/components/image-viewer/index.js +909 -990
  77. package/packages/components/index.js +2 -2
  78. package/packages/components/input/index.css +1 -1
  79. package/packages/components/input/index.js +284 -256
  80. package/packages/components/input-dialog-select/index.css +1 -1
  81. package/packages/components/input-dialog-select/index.js +179 -156
  82. package/packages/components/input-number/index.css +1 -1
  83. package/packages/components/input-number/index.js +157 -170
  84. package/packages/components/live-player/index.css +1 -0
  85. package/packages/components/live-player/index.js +170 -0
  86. package/packages/components/loading/index.js +17 -26
  87. package/packages/components/map/index.css +1 -1
  88. package/packages/components/map/index.js +18913 -461
  89. package/packages/components/menu-aside/index.css +1 -1
  90. package/packages/components/menu-aside/index.js +648 -713
  91. package/packages/components/menu-header/index.js +446 -629
  92. package/packages/components/message/index.js +25 -16
  93. package/packages/components/notification/index.js +386 -575
  94. package/packages/components/overlay/index.js +112 -103
  95. package/packages/components/pagination/index.js +260 -330
  96. package/packages/components/popover/index.js +104 -93
  97. package/packages/components/popup-mask/index.css +1 -1
  98. package/packages/components/popup-mask/index.js +77 -72
  99. package/packages/components/preview/index.js +33 -28
  100. package/packages/components/progress/index.js +214 -221
  101. package/packages/components/radio/index.css +1 -1
  102. package/packages/components/radio/index.js +699 -862
  103. package/packages/components/radio-tabs/index.js +144 -107
  104. package/packages/components/rich-editor/index.css +1 -1
  105. package/packages/components/rich-editor/index.js +105 -106
  106. package/packages/components/scrollbar/index.css +3 -2
  107. package/packages/components/scrollbar/index.js +2262 -1201
  108. package/packages/components/search/index.js +500 -664
  109. package/packages/components/search-form/index.css +1 -1
  110. package/packages/components/search-form/index.js +724 -626
  111. package/packages/components/select/index.css +1 -1
  112. package/packages/components/select/index.js +1052 -950
  113. package/packages/components/select-input/index.js +63 -53
  114. package/packages/components/select-list/index.css +1 -1
  115. package/packages/components/select-list/index.js +258 -235
  116. package/packages/components/special-range-picker-month/index.css +1 -1
  117. package/packages/components/special-range-picker-month/index.js +3068 -72555
  118. package/packages/components/special-range-picker-year/index.css +1 -1
  119. package/packages/components/special-range-picker-year/index.js +345 -339
  120. package/packages/components/spin/index.js +415 -594
  121. package/packages/components/split-panel/index.css +1 -1
  122. package/packages/components/split-panel/index.js +146 -127
  123. package/packages/components/step/index.js +414 -597
  124. package/packages/components/steps/index.js +407 -590
  125. package/packages/components/switch/index.js +23 -23
  126. package/packages/components/table/index.css +1 -1
  127. package/packages/components/table/index.js +80813 -27734
  128. package/packages/components/tabs/index.css +1 -1
  129. package/packages/components/tabs/index.js +620 -813
  130. package/packages/components/tag/index.js +63 -63
  131. package/packages/components/text-tooltip/index.css +9 -0
  132. package/packages/components/text-tooltip/index.js +2739 -33
  133. package/packages/components/time-line/index.js +464 -643
  134. package/packages/components/tooltip/index.css +1 -1
  135. package/packages/components/tooltip/index.js +108 -79
  136. package/packages/components/tree/index.css +1 -1
  137. package/packages/components/tree/index.js +840 -809
  138. package/packages/components/tree-select/index.js +271 -303
  139. package/packages/components/tree-table/index.js +461 -352
  140. package/packages/components/upload/index.js +682 -858
  141. package/packages/components/virtual-tree/index.css +1 -1
  142. package/packages/components/virtual-tree/index.js +144 -126
  143. package/packages/index.d.ts +1 -0
  144. package/packages/index.js +2 -2
  145. package/style/business.css +11 -4
  146. package/style/index.css +52 -42
  147. package/packages/business-components/low-code/index.css +0 -1
  148. package/packages/business-components/low-code/index.js +0 -60
  149. package/packages/components/audio-video-player/index.css +0 -1
  150. package/packages/components/audio-video-player/index.js +0 -83
  151. package/packages/components/table-column/index.css +0 -1
  152. package/packages/components/table-column/index.js +0 -82021
@@ -1,7 +1,7 @@
1
1
  import { withInstall } from '@das-fed/utils';
2
- import { ref, defineComponent, openBlock, createElementBlock, createElementVNode, unref, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, isRef } from 'vue';
2
+ import { ref, defineComponent, watch, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
3
  import { i18n } from '@das-fed/web';
4
- import { DasMessage, DasButton, DasDialog, DasUpload, DasProgress } from '@das-fed/ui';
4
+ import { DasMessage, DasDialog, DasUpload, DasProgress, DasButton } from '@das-fed/ui';
5
5
  import { iotMinio, iotProgress } from '@das-fed/utils/api-services/modules/iot';
6
6
  import crypto from 'crypto';
7
7
  import { getConfig } from '@das-fed/utils/config';
@@ -50,8 +50,7 @@ var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
50
50
 
51
51
  const getMinioToken = iotMinio.get(`token`);
52
52
  const importMinio = iotMinio.post(`putObject`, (config) => {
53
- if (!config.headers)
54
- config.headers = {};
53
+ if (!config.headers) config.headers = {};
55
54
  config.headers["Content-Type"] = "multipart/form-data";
56
55
  config.responseType = "blob";
57
56
  return config;
@@ -112,8 +111,7 @@ const useFile = (emits) => {
112
111
  }
113
112
  fileInfo = file;
114
113
  const tokenResult = await getMinioConfig();
115
- if (!tokenResult.status)
116
- return;
114
+ if (!tokenResult.status) return;
117
115
  let minioConfig = tokenResult.data;
118
116
  const blob = await readFileAndAddToMap(file);
119
117
  let { autoContentType, bucketName, importFileName } = options;
@@ -127,8 +125,7 @@ const useFile = (emits) => {
127
125
  autoContentType
128
126
  };
129
127
  const [error, data] = await importMinio(params).run();
130
- if (error)
131
- return;
128
+ if (error) return;
132
129
  const toStringData = await toStringObject(data.data);
133
130
  const importResult = await importFunc?.(toStringData);
134
131
  if (needProgress) {
@@ -141,8 +138,7 @@ const useFile = (emits) => {
141
138
  showProgressDialog.value = true;
142
139
  checkProgress(importResult.taskId, "import", "");
143
140
  } else {
144
- if (!importResult.status)
145
- return;
141
+ if (!importResult.status) return;
146
142
  progressStatus.value = "success";
147
143
  DasMessage.success({
148
144
  message: "\u5BFC\u5165\u6210\u529F",
@@ -164,7 +160,7 @@ const useFile = (emits) => {
164
160
  }
165
161
  checkProgress(importResult.taskId, "action", "");
166
162
  };
167
- const fileExport = async (exportFunc, fileName = "", fileSuffix = "") => {
163
+ const fileExport = async (exportFunc, fileName = "", fileSuffix = "xlsx") => {
168
164
  progressStatus.value = "normal";
169
165
  percent.value = 0;
170
166
  progressTitle.value = "\u5BFC\u51FA\u8FDB\u5EA6";
@@ -229,8 +225,7 @@ const useFile = (emits) => {
229
225
  errorFilePath.value = `${getConfig().baseURL}/oss${data.filePath}`;
230
226
  }
231
227
  tipHandle(data.status, tip, data.message);
232
- if (data.status == 1)
233
- importDialog.value = false;
228
+ if (data.status == 1) importDialog.value = false;
234
229
  emits("success");
235
230
  } else if (type == "action") {
236
231
  progressStatus.value = "success";
@@ -387,6 +382,7 @@ const useImport = (props, emits) => {
387
382
  errorImport,
388
383
  errorFilePath,
389
384
  fileImport,
385
+ fileExport,
390
386
  downloadFile
391
387
  } = useFile(emits);
392
388
  let fileList = ref([]);
@@ -399,6 +395,7 @@ const useImport = (props, emits) => {
399
395
  errorMessage.value = "";
400
396
  importDialog.value = true;
401
397
  errorFilePath.value = "";
398
+ emits("open");
402
399
  };
403
400
  let importFileName;
404
401
  const fileUpload = (file) => {
@@ -443,7 +440,7 @@ const useImport = (props, emits) => {
443
440
  let taskId = nanoid();
444
441
  const params = {
445
442
  fileName: importFileName,
446
- filePath: `temp/${tenantId}/${props.ossName}/${importFileName}`,
443
+ filePath: `${props.bucketName}/${tenantId}/${props.ossName}/${importFileName}`,
447
444
  taskId,
448
445
  ...props.importParams
449
446
  };
@@ -455,10 +452,9 @@ const useImport = (props, emits) => {
455
452
  return { status: true, taskId };
456
453
  };
457
454
  const confirmImport = async () => {
458
- if (!fileList.value.length)
459
- return DasMessage.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6");
455
+ if (!fileList.value.length) return DasMessage.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6");
460
456
  const options = {
461
- bucketName: "temp",
457
+ bucketName: props.bucketName,
462
458
  importFileName: `${tenantId}/${props.ossName}/${importFileName}`
463
459
  };
464
460
  await fileImport(importFileHandle, fileList.value[0], options);
@@ -466,15 +462,37 @@ const useImport = (props, emits) => {
466
462
  const errorFileDownload = () => {
467
463
  downloadFile(errorFilePath.value, errorFileName.value);
468
464
  };
465
+ const exportList = () => {
466
+ fileExport(exportHandle, props.templateName);
467
+ };
468
+ const exportHandle = async () => {
469
+ let taskId = nanoid();
470
+ const [error, data] = await props.templateFun({ taskId }).run();
471
+ if (error) {
472
+ return { status: false };
473
+ }
474
+ return { status: true, taskId };
475
+ };
469
476
  const downTemplate = async () => {
470
477
  let url = "";
471
478
  if (props.templateUrl) {
472
479
  url = props.templateUrl;
473
480
  } else if (props.templateFun) {
474
- const [error, data] = await props.templateFun().run();
475
- url = data;
481
+ if (props.templateType === "static") {
482
+ if (props.templateUrl) {
483
+ url = props.templateUrl;
484
+ } else if (props.templateFun) {
485
+ const [error, data] = await props.templateFun().run();
486
+ url = data;
487
+ }
488
+ downloadFile(pureImageSrc(url), props.templateName);
489
+ }
490
+ if (props.templateType === "dynamic") {
491
+ if (props.templateFun) {
492
+ exportList();
493
+ }
494
+ }
476
495
  }
477
- downloadFile(pureImageSrc(url), props.templateName);
478
496
  };
479
497
  return {
480
498
  showProgressDialog,
@@ -496,10 +514,6 @@ const useImport = (props, emits) => {
496
514
  };
497
515
  };
498
516
 
499
- const _hoisted_1 = { class: "das-import-button" };
500
- const _hoisted_2 = { class: "tip-box" };
501
- const _hoisted_3 = { class: "first-line" };
502
- const _hoisted_4 = { class: "second-line" };
503
517
  var _sfc_main = /* @__PURE__ */ defineComponent({
504
518
  __name: "App",
505
519
  props: {
@@ -508,14 +522,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
508
522
  templateName: { type: String, required: false, default: "\u5BFC\u5165\u6A21\u677F" },
509
523
  templateUrl: { type: String, required: false },
510
524
  templateFun: { type: Function, required: false },
525
+ templateType: { type: String, required: false, default: "static" },
511
526
  fileType: { type: String, required: false, default: ".xls,.xlsx" },
512
527
  fileMaxSize: { type: String, required: false, default: "5MB" },
513
528
  importParams: { type: null, required: false, default: {} },
514
529
  importParamsPosition: { type: String, required: false, default: "params" },
515
530
  importDialogName: { type: String, required: false, default: "\u5BFC\u5165" },
516
- confirmButtonName: { type: String, required: false, default: "\u786E\u5B9A\u5BFC\u5165" }
531
+ confirmButtonName: { type: String, required: false, default: "\u786E\u5B9A\u5BFC\u5165" },
532
+ openDisabled: { type: Boolean, required: false, default: true },
533
+ bucketName: { type: String, required: false, default: "temp" }
517
534
  },
518
- emits: ["success", "error"],
535
+ emits: ["open", "success", "error"],
519
536
  setup(__props, { expose: __expose, emit: __emit }) {
520
537
  const props = __props;
521
538
  const emits = __emit;
@@ -537,152 +554,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
537
554
  errorFileDownload,
538
555
  downTemplate
539
556
  } = useImport(props, emits);
540
- const progressMap = [i18n("\u6B63\u5728\u5BFC\u5165\u4E2D...").value, i18n("\u5BFC\u5165\u5931\u8D25").value, i18n("\u5BFC\u5165\u6210\u529F").value];
557
+ let progressMap;
558
+ watch(progressTitle, (newVal) => {
559
+ if (newVal.includes("\u5BFC\u5165")) {
560
+ progressMap = ["\u6B63\u5728\u5BFC\u5165\u4E2D...", "\u5BFC\u5165\u5931\u8D25", "\u5BFC\u5165\u6210\u529F"];
561
+ } else {
562
+ progressMap = ["\u6B63\u5728\u5BFC\u51FA\u4E2D...", "\u5BFC\u51FA\u5931\u8D25", "\u5BFC\u51FA\u6210\u529F"];
563
+ }
564
+ });
541
565
  __expose({
542
566
  confirmImport
543
567
  });
544
- return (_ctx, _cache) => {
545
- return openBlock(), createElementBlock("div", _hoisted_1, [
546
- createElementVNode("div", {
547
- onClick: _cache[0] || (_cache[0] = //@ts-ignore
548
- (...args) => unref(showImportHandle) && unref(showImportHandle)(...args))
549
- }, [
550
- renderSlot(_ctx.$slots, "default", {}, () => [
551
- createVNode(unref(DasButton), {
552
- size: "middle",
553
- "btn-type": "primary"
554
- }, {
555
- default: withCtx(() => [
556
- createTextVNode(
557
- toDisplayString(unref(i18n)("\u5BFC\u5165").value),
558
- 1
559
- /* TEXT */
560
- )
561
- ]),
562
- _: 1
563
- /* STABLE */
564
- })
565
- ], true)
566
- ]),
567
- createCommentVNode(" \u5BFC\u5165\u5F39\u7A97 "),
568
- createVNode(unref(DasDialog), {
569
- title: unref(i18n)(_ctx.importDialogName).value,
570
- modelValue: unref(importDialog),
571
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(importDialog) ? importDialog.value = $event : null),
572
- "append-to-body": true,
573
- customClass: "upload-dialog",
574
- width: "610px",
575
- height: "500px"
576
- }, {
577
- footer: withCtx(() => [
578
- createElementVNode("div", null, [
579
- createVNode(unref(DasButton), {
580
- size: "middle",
581
- onClick: _cache[2] || (_cache[2] = ($event) => importDialog.value = false)
582
- }, {
583
- default: withCtx(() => [
584
- createTextVNode(
585
- toDisplayString(unref(i18n)("\u53D6\u6D88").value),
586
- 1
587
- /* TEXT */
588
- )
589
- ]),
590
- _: 1
591
- /* STABLE */
592
- }),
593
- createVNode(unref(DasButton), {
594
- size: "middle",
595
- "btn-type": "primary",
596
- disabled: unref(fileList).length === 0,
597
- style: { "margin-left": "12px" },
598
- onClick: unref(confirmImport)
599
- }, {
600
- default: withCtx(() => [
601
- createTextVNode(
602
- toDisplayString(_ctx.confirmButtonName),
603
- 1
604
- /* TEXT */
605
- )
606
- ]),
607
- _: 1
608
- /* STABLE */
609
- }, 8, ["disabled", "onClick"])
610
- ])
611
- ]),
612
- default: withCtx(() => [
613
- renderSlot(_ctx.$slots, "tip", {}, () => [
614
- createElementVNode("div", _hoisted_2, [
615
- createElementVNode("div", _hoisted_3, [
616
- createTextVNode(
617
- toDisplayString(unref(i18n)("1\u3001\u70B9\u51FB\u4E0B\u8F7D ").value),
618
- 1
619
- /* TEXT */
620
- ),
621
- createVNode(unref(DasButton), {
622
- size: "large",
623
- btnType: "primary-text",
624
- block: "",
625
- onClick: unref(downTemplate)
626
- }, {
627
- default: withCtx(() => [
628
- createTextVNode(
629
- toDisplayString(unref(i18n)(`${_ctx.templateName}`).value),
630
- 1
631
- /* TEXT */
632
- )
633
- ]),
634
- _: 1
635
- /* STABLE */
636
- }, 8, ["onClick"])
637
- ]),
638
- createElementVNode(
639
- "div",
640
- _hoisted_4,
641
- toDisplayString(unref(i18n)("2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6").value),
642
- 1
643
- /* TEXT */
644
- )
645
- ])
646
- ], true),
647
- createVNode(unref(DasUpload), {
648
- modelValue: unref(fileList),
649
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(fileList) ? fileList.value = $event : null),
650
- error: unref(errorImport),
651
- "error-file-name": unref(errorFileName),
652
- "error-file-size": unref(errorFileSize),
653
- "error-message": unref(errorMessage),
654
- accept: _ctx.fileType,
655
- onErrorFileDownload: unref(errorFileDownload),
656
- onFileUpload: unref(fileUpload)
657
- }, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "onErrorFileDownload", "onFileUpload"])
658
- ]),
659
- _: 3
660
- /* FORWARDED */
661
- }, 8, ["title", "modelValue"]),
662
- createCommentVNode(" \u8FDB\u5EA6\u5F39\u7A97 "),
663
- createVNode(unref(DasDialog), {
664
- size: "mini",
665
- title: unref(i18n)(unref(progressTitle)).value,
666
- "is-feedback-img": false,
667
- modelValue: unref(showProgressDialog),
668
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(showProgressDialog) ? showProgressDialog.value = $event : null),
669
- type: "feedback"
670
- }, {
671
- default: withCtx(() => [
672
- createVNode(unref(DasProgress), {
673
- modelValue: unref(percent),
674
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(percent) ? percent.value = $event : null),
675
- style: { "margin-top": "35px" },
676
- type: "circle",
677
- status: unref(progressStatus),
678
- textMap: progressMap
679
- }, null, 8, ["modelValue", "status"])
680
- ]),
681
- _: 1
682
- /* STABLE */
683
- }, 8, ["title", "modelValue"])
684
- ]);
685
- };
568
+ const __returned__ = { props, emits, showProgressDialog, progressTitle, percent, progressStatus, progressLoading, errorFileName, errorFileSize, errorMessage, errorImport, importDialog, fileList, showImportHandle, confirmImport, fileUpload, errorFileDownload, downTemplate, get progressMap() {
569
+ return progressMap;
570
+ }, set progressMap(v) {
571
+ progressMap = v;
572
+ }, get i18n() {
573
+ return i18n;
574
+ }, get DasDialog() {
575
+ return DasDialog;
576
+ }, get DasUpload() {
577
+ return DasUpload;
578
+ }, get DasProgress() {
579
+ return DasProgress;
580
+ }, get DasButton() {
581
+ return DasButton;
582
+ } };
583
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
584
+ return __returned__;
686
585
  }
687
586
  });
688
587
 
@@ -694,7 +593,151 @@ var _export_sfc = (sfc, props) => {
694
593
  return target;
695
594
  };
696
595
 
697
- var dasImportButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0212e9ba"], ["__file", "E:\\company-code\\v6r3\\framework-3\\packages\\das-ui\\packages\\business-components\\import-button\\src\\App.vue"]]);
596
+ const _hoisted_1 = { class: "das-import-button" };
597
+ const _hoisted_2 = { class: "tip-box" };
598
+ const _hoisted_3 = { class: "first-line" };
599
+ const _hoisted_4 = { class: "second-line" };
600
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
601
+ return openBlock(), createElementBlock("div", _hoisted_1, [
602
+ createElementVNode("div", {
603
+ onClick: _cache[0] || (_cache[0] = (...args) => $setup.showImportHandle && $setup.showImportHandle(...args))
604
+ }, [
605
+ renderSlot(_ctx.$slots, "default", {}, () => [
606
+ createVNode($setup["DasButton"], {
607
+ size: "middle",
608
+ "btn-type": "primary"
609
+ }, {
610
+ default: withCtx(() => [
611
+ createTextVNode(
612
+ toDisplayString($setup.i18n("\u5BFC\u5165").value),
613
+ 1
614
+ /* TEXT */
615
+ )
616
+ ]),
617
+ _: 1
618
+ /* STABLE */
619
+ })
620
+ ], true)
621
+ ]),
622
+ createCommentVNode(" \u5BFC\u5165\u5F39\u7A97 "),
623
+ createVNode($setup["DasDialog"], {
624
+ title: $setup.i18n($props.importDialogName).value,
625
+ modelValue: $setup.importDialog,
626
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.importDialog = $event),
627
+ customClass: "upload-dialog",
628
+ width: "610px",
629
+ height: "500px"
630
+ }, {
631
+ footer: withCtx(() => [
632
+ createElementVNode("div", null, [
633
+ createVNode($setup["DasButton"], {
634
+ size: "middle",
635
+ onClick: _cache[2] || (_cache[2] = ($event) => $setup.importDialog = false)
636
+ }, {
637
+ default: withCtx(() => [
638
+ createTextVNode(
639
+ toDisplayString($setup.i18n("\u53D6\u6D88").value),
640
+ 1
641
+ /* TEXT */
642
+ )
643
+ ]),
644
+ _: 1
645
+ /* STABLE */
646
+ }),
647
+ createVNode($setup["DasButton"], {
648
+ size: "middle",
649
+ "btn-type": "primary",
650
+ disabled: $props.openDisabled && $setup.fileList.length === 0,
651
+ style: { "margin-left": "12px" },
652
+ onClick: $setup.confirmImport
653
+ }, {
654
+ default: withCtx(() => [
655
+ createTextVNode(
656
+ toDisplayString($props.confirmButtonName),
657
+ 1
658
+ /* TEXT */
659
+ )
660
+ ]),
661
+ _: 1
662
+ /* STABLE */
663
+ }, 8, ["disabled", "onClick"])
664
+ ])
665
+ ]),
666
+ default: withCtx(() => [
667
+ renderSlot(_ctx.$slots, "tip", {}, () => [
668
+ createElementVNode("div", _hoisted_2, [
669
+ createElementVNode("div", _hoisted_3, [
670
+ createTextVNode(
671
+ toDisplayString($setup.i18n("1\u3001\u70B9\u51FB\u4E0B\u8F7D ").value),
672
+ 1
673
+ /* TEXT */
674
+ ),
675
+ createVNode($setup["DasButton"], {
676
+ size: "large",
677
+ btnType: "primary-text",
678
+ block: "",
679
+ onClick: $setup.downTemplate
680
+ }, {
681
+ default: withCtx(() => [
682
+ createTextVNode(
683
+ toDisplayString($setup.i18n(`${$props.templateName}`).value),
684
+ 1
685
+ /* TEXT */
686
+ )
687
+ ]),
688
+ _: 1
689
+ /* STABLE */
690
+ }, 8, ["onClick"])
691
+ ]),
692
+ createElementVNode(
693
+ "div",
694
+ _hoisted_4,
695
+ toDisplayString($setup.i18n("2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6").value),
696
+ 1
697
+ /* TEXT */
698
+ )
699
+ ])
700
+ ], true),
701
+ createVNode($setup["DasUpload"], {
702
+ modelValue: $setup.fileList,
703
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.fileList = $event),
704
+ error: $setup.errorImport,
705
+ "error-file-name": $setup.errorFileName,
706
+ "error-file-size": $setup.errorFileSize,
707
+ "error-message": $setup.errorMessage,
708
+ accept: $props.fileType,
709
+ onErrorFileDownload: $setup.errorFileDownload,
710
+ onFileUpload: $setup.fileUpload
711
+ }, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "onErrorFileDownload", "onFileUpload"])
712
+ ]),
713
+ _: 3
714
+ /* FORWARDED */
715
+ }, 8, ["title", "modelValue"]),
716
+ createCommentVNode(" \u8FDB\u5EA6\u5F39\u7A97 "),
717
+ createVNode($setup["DasDialog"], {
718
+ size: "mini",
719
+ title: $setup.i18n($setup.progressTitle).value,
720
+ "is-feedback-img": false,
721
+ modelValue: $setup.showProgressDialog,
722
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.showProgressDialog = $event),
723
+ type: "feedback"
724
+ }, {
725
+ default: withCtx(() => [
726
+ createVNode($setup["DasProgress"], {
727
+ modelValue: $setup.percent,
728
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.percent = $event),
729
+ style: { "margin-top": "35px" },
730
+ type: "circle",
731
+ status: $setup.progressStatus,
732
+ textMap: $setup.progressMap
733
+ }, null, 8, ["modelValue", "status", "textMap"])
734
+ ]),
735
+ _: 1
736
+ /* STABLE */
737
+ }, 8, ["title", "modelValue"])
738
+ ]);
739
+ }
740
+ var dasImportButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0212e9ba"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/import-button/src/App.vue"]]);
698
741
 
699
742
  const DasImportButton = withInstall(dasImportButton);
700
743
 
@@ -1,10 +1,17 @@
1
1
  export * from './app-container';
2
+ export * from './change-enterprises';
3
+ export * from './change-pwd';
4
+ export * from './currency-page';
5
+ export * from './device-panel';
2
6
  export * from './echarts';
3
7
  export * from './export-button';
4
8
  export * from './import-button';
5
9
  export * from './layout-breadcrumb';
6
- export * from './low-code';
7
10
  export * from './model-table-dialog';
11
+ export * from './process-configuration';
12
+ export * from './process-form';
8
13
  export * from './process-search-form';
9
14
  export * from './process-table';
15
+ export * from './urgent-panel';
10
16
  export * from './user-org-dialog';
17
+ export * from './video-dialog';