yc-pro-components 0.0.45 → 0.0.46

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 (68) hide show
  1. package/es/components/index.d.ts +1 -0
  2. package/es/components/index.mjs +2 -0
  3. package/es/components/yc-batch-import-dialog/index.d.ts +167 -0
  4. package/es/components/yc-batch-import-dialog/index.mjs +13 -0
  5. package/es/components/yc-batch-import-dialog/src/UploadRecordList.vue.d.ts +45 -0
  6. package/es/components/yc-batch-import-dialog/src/UploadRecordList.vue.mjs +6 -0
  7. package/es/components/yc-batch-import-dialog/src/UploadRecordList.vue2.mjs +186 -0
  8. package/es/components/yc-batch-import-dialog/src/index.vue.d.ts +73 -0
  9. package/es/components/yc-batch-import-dialog/src/index.vue.mjs +6 -0
  10. package/es/components/yc-batch-import-dialog/src/index.vue2.mjs +579 -0
  11. package/es/components/yc-batch-import-dialog/src/types.d.ts +159 -0
  12. package/es/components/yc-batch-import-dialog/src/types.mjs +1 -0
  13. package/es/components/yc-plus-page/src/index.vue.d.ts +210 -26
  14. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  15. package/es/components/yc-plus-page/src/index.vue2.mjs +96 -8
  16. package/es/components/yc-plus-page/src/type.d.ts +12 -0
  17. package/es/index.css +13 -11
  18. package/es/index.mjs +2 -0
  19. package/index.css +285 -6
  20. package/index.js +1176 -327
  21. package/index.min.css +4 -2
  22. package/index.min.js +11 -11
  23. package/index.min.mjs +11 -11
  24. package/index.mjs +1176 -330
  25. package/lib/components/index.d.ts +1 -0
  26. package/lib/components/index.js +5 -0
  27. package/lib/components/yc-batch-import-dialog/index.d.ts +167 -0
  28. package/lib/components/yc-batch-import-dialog/index.js +20 -0
  29. package/lib/components/yc-batch-import-dialog/src/UploadRecordList.vue.d.ts +45 -0
  30. package/lib/components/yc-batch-import-dialog/src/UploadRecordList.vue.js +10 -0
  31. package/lib/components/yc-batch-import-dialog/src/UploadRecordList.vue2.js +190 -0
  32. package/lib/components/yc-batch-import-dialog/src/index.vue.d.ts +73 -0
  33. package/lib/components/yc-batch-import-dialog/src/index.vue.js +10 -0
  34. package/lib/components/yc-batch-import-dialog/src/index.vue2.js +583 -0
  35. package/lib/components/yc-batch-import-dialog/src/types.d.ts +159 -0
  36. package/lib/components/yc-batch-import-dialog/src/types.js +2 -0
  37. package/lib/components/yc-plus-page/src/index.vue.d.ts +210 -26
  38. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  39. package/lib/components/yc-plus-page/src/index.vue2.js +95 -7
  40. package/lib/components/yc-plus-page/src/type.d.ts +12 -0
  41. package/lib/index.css +11 -9
  42. package/lib/index.js +5 -0
  43. package/locale/en.js +1 -1
  44. package/locale/en.min.js +1 -1
  45. package/locale/en.min.mjs +1 -1
  46. package/locale/en.mjs +1 -1
  47. package/locale/ja.js +1 -1
  48. package/locale/ja.min.js +1 -1
  49. package/locale/ja.min.mjs +1 -1
  50. package/locale/ja.mjs +1 -1
  51. package/locale/ko.js +1 -1
  52. package/locale/ko.min.js +1 -1
  53. package/locale/ko.min.mjs +1 -1
  54. package/locale/ko.mjs +1 -1
  55. package/locale/zh-cn.js +1 -1
  56. package/locale/zh-cn.min.js +1 -1
  57. package/locale/zh-cn.min.mjs +1 -1
  58. package/locale/zh-cn.mjs +1 -1
  59. package/locale/zh-tw.js +1 -1
  60. package/locale/zh-tw.min.js +1 -1
  61. package/locale/zh-tw.min.mjs +1 -1
  62. package/locale/zh-tw.mjs +1 -1
  63. package/package.json +1 -1
  64. package/theme-chalk/index.css +1 -1
  65. package/theme-chalk/plus-table.css +1 -1
  66. package/theme-chalk/plus-yc-plus-page.css +1 -1
  67. package/theme-chalk/src/table.scss +5 -0
  68. package/theme-chalk/src/yc-plus-page.scss +46 -0
@@ -43,3 +43,4 @@ export * from './yc-segmented';
43
43
  export * from './yc-animate-selector';
44
44
  export * from './yc-download-dialog';
45
45
  export * from './yc-tabs-with-filter';
46
+ export * from './yc-batch-import-dialog';
@@ -42,6 +42,7 @@ var index$L = require('./yc-segmented/index.js');
42
42
  var index$N = require('./yc-animate-selector/index.js');
43
43
  var index$P = require('./yc-download-dialog/index.js');
44
44
  var index$R = require('./yc-tabs-with-filter/index.js');
45
+ var index$T = require('./yc-batch-import-dialog/index.js');
45
46
  var useColumnAdapter = require('./virtual-table/src/use-column-adapter.js');
46
47
  var useVirtualSelection = require('./virtual-table/src/use-virtual-selection.js');
47
48
  var useVirtualScroll = require('./virtual-table/src/use-virtual-scroll.js');
@@ -67,6 +68,7 @@ var animate = require('./yc-animate-selector/src/animate.js');
67
68
  var index$O = require('./yc-animate-selector/src/index.vue.js');
68
69
  var index$Q = require('./yc-download-dialog/src/index.vue.js');
69
70
  var index$S = require('./yc-tabs-with-filter/src/index.vue.js');
71
+ var index$U = require('./yc-batch-import-dialog/src/index.vue.js');
70
72
 
71
73
 
72
74
 
@@ -126,6 +128,7 @@ exports.YcSegmentedWithInstall = index$L.YcSegmentedWithInstall;
126
128
  exports.YcAnimateSelectorWithInstall = index$N.YcAnimateSelectorWithInstall;
127
129
  exports.YcDownloadDialogWithInstall = index$P.YcDownloadDialogWithInstall;
128
130
  exports.YcTabsWithFilterWithInstall = index$R.YcTabsWithFilterWithInstall;
131
+ exports.YcBatchImportDialogWithInstall = index$T.YcBatchImportDialogWithInstall;
129
132
  exports.useColumnAdapter = useColumnAdapter.useColumnAdapter;
130
133
  exports.useVirtualSelection = useVirtualSelection.useVirtualSelection;
131
134
  exports.useVirtualScroll = useVirtualScroll.useVirtualScroll;
@@ -188,3 +191,5 @@ exports.ReDownloadDialog = index$Q.default;
188
191
  exports.YcDownloadDialog = index$Q.default;
189
192
  exports.ReTabsWithFilter = index$S.default;
190
193
  exports.YcTabsWithFilter = index$S.default;
194
+ exports.ReBatchImportDialog = index$U.default;
195
+ exports.YcBatchImportDialog = index$U.default;
@@ -0,0 +1,167 @@
1
+ import { DownloadTemplateFn, ImportApiFn, ResponseType } from './src/types';
2
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ import { SFCWithInstall } from 'yc-pro-components/es/utils';
4
+ import { default as YcBatchImportDialog } from './src/index.vue';
5
+
6
+ /** 批量导入对话框组件 */
7
+ export declare const YcBatchImportDialogWithInstall: SFCWithInstall<DefineComponent<{
8
+ title: {
9
+ type: PropType<string>;
10
+ default: string;
11
+ };
12
+ width: {
13
+ type: PropType<number>;
14
+ default: number;
15
+ };
16
+ accept: {
17
+ type: PropType<string>;
18
+ default: string;
19
+ };
20
+ templateUrl: {
21
+ type: PropType<string>;
22
+ };
23
+ iconBaseUrl: {
24
+ type: PropType<string>;
25
+ default: string;
26
+ };
27
+ stepOneTitle: {
28
+ type: PropType<string>;
29
+ default: string;
30
+ };
31
+ tips: {
32
+ type: PropType<string>;
33
+ default: string;
34
+ };
35
+ templateFileName: {
36
+ type: PropType<string>;
37
+ };
38
+ resultFileName: {
39
+ type: PropType<string>;
40
+ default: string;
41
+ };
42
+ templateButtonText: {
43
+ type: PropType<string>;
44
+ default: string;
45
+ };
46
+ onDownloadTemplate: {
47
+ type: PropType<DownloadTemplateFn>;
48
+ };
49
+ stepTwoTitle: {
50
+ type: PropType<string>;
51
+ default: string;
52
+ };
53
+ maxFileSize: {
54
+ type: PropType<number>;
55
+ default: number;
56
+ };
57
+ maxRowCount: {
58
+ type: PropType<number>;
59
+ default: number;
60
+ };
61
+ importApi: {
62
+ type: PropType<ImportApiFn>;
63
+ required: true;
64
+ };
65
+ extraFormData: {
66
+ type: PropType<Record<string, string | Blob>>;
67
+ };
68
+ responseType: {
69
+ type: PropType<ResponseType>;
70
+ default: string;
71
+ };
72
+ }, {
73
+ open: (type?: string | undefined) => void;
74
+ close: () => void;
75
+ reset: () => void;
76
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
77
+ success: (result: unknown) => void;
78
+ error: (error: Error) => void;
79
+ close: () => void;
80
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
81
+ title: {
82
+ type: PropType<string>;
83
+ default: string;
84
+ };
85
+ width: {
86
+ type: PropType<number>;
87
+ default: number;
88
+ };
89
+ accept: {
90
+ type: PropType<string>;
91
+ default: string;
92
+ };
93
+ templateUrl: {
94
+ type: PropType<string>;
95
+ };
96
+ iconBaseUrl: {
97
+ type: PropType<string>;
98
+ default: string;
99
+ };
100
+ stepOneTitle: {
101
+ type: PropType<string>;
102
+ default: string;
103
+ };
104
+ tips: {
105
+ type: PropType<string>;
106
+ default: string;
107
+ };
108
+ templateFileName: {
109
+ type: PropType<string>;
110
+ };
111
+ resultFileName: {
112
+ type: PropType<string>;
113
+ default: string;
114
+ };
115
+ templateButtonText: {
116
+ type: PropType<string>;
117
+ default: string;
118
+ };
119
+ onDownloadTemplate: {
120
+ type: PropType<DownloadTemplateFn>;
121
+ };
122
+ stepTwoTitle: {
123
+ type: PropType<string>;
124
+ default: string;
125
+ };
126
+ maxFileSize: {
127
+ type: PropType<number>;
128
+ default: number;
129
+ };
130
+ maxRowCount: {
131
+ type: PropType<number>;
132
+ default: number;
133
+ };
134
+ importApi: {
135
+ type: PropType<ImportApiFn>;
136
+ required: true;
137
+ };
138
+ extraFormData: {
139
+ type: PropType<Record<string, string | Blob>>;
140
+ };
141
+ responseType: {
142
+ type: PropType<ResponseType>;
143
+ default: string;
144
+ };
145
+ }>> & {
146
+ onError?: ((error: Error) => any) | undefined;
147
+ onClose?: (() => any) | undefined;
148
+ onSuccess?: ((result: unknown) => any) | undefined;
149
+ }, {
150
+ title: string;
151
+ width: number;
152
+ accept: string;
153
+ iconBaseUrl: string;
154
+ stepOneTitle: string;
155
+ tips: string;
156
+ resultFileName: string;
157
+ templateButtonText: string;
158
+ stepTwoTitle: string;
159
+ maxFileSize: number;
160
+ maxRowCount: number;
161
+ responseType: ResponseType;
162
+ }, {}>>;
163
+ export { YcBatchImportDialog };
164
+ export default YcBatchImportDialog;
165
+ export { YcBatchImportDialog as ReBatchImportDialog };
166
+ export type YcBatchImportDialogInstance = InstanceType<typeof YcBatchImportDialog>;
167
+ export type { BatchImportDialogProps, BatchImportDialogEmits, BatchImportDialogExpose, ImportStatus, ResponseType, ImportApiFn, DownloadTemplateFn, BatchUploadRecord, BatchUploadRecordStatus } from './src/types';
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('js-cookie');
6
+ require('dayjs');
7
+ require('numeral');
8
+ require('accounting');
9
+ require('good-storage');
10
+ require('crypto-js');
11
+ require('qs');
12
+ var component = require('../../utils/dist/component.js');
13
+ var index = require('./src/index.vue.js');
14
+
15
+ const YcBatchImportDialogWithInstall = component.withInstall(index.default);
16
+
17
+ exports.ReBatchImportDialog = index.default;
18
+ exports.YcBatchImportDialog = index.default;
19
+ exports.default = index.default;
20
+ exports.YcBatchImportDialogWithInstall = YcBatchImportDialogWithInstall;
@@ -0,0 +1,45 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { BatchUploadRecord } from './types';
3
+
4
+ interface Props {
5
+ /** 上传记录列表 */
6
+ records?: BatchUploadRecord[];
7
+ /** 图标 CDN 基础路径 */
8
+ iconBaseUrl?: string;
9
+ }
10
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ records: () => never[];
12
+ iconBaseUrl: string;
13
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ pause: (id: string) => void;
15
+ resume: (id: string) => void;
16
+ cancel: (id: string) => void;
17
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ records: () => never[];
19
+ iconBaseUrl: string;
20
+ }>>> & {
21
+ onPause?: ((id: string) => any) | undefined;
22
+ onCancel?: ((id: string) => any) | undefined;
23
+ onResume?: ((id: string) => any) | undefined;
24
+ }, {
25
+ records: BatchUploadRecord[];
26
+ iconBaseUrl: string;
27
+ }, {}>;
28
+ export default _default;
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToRuntimeProps<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
+ default: D[K];
41
+ }> : P[K];
42
+ };
43
+ type __VLS_Prettify<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var UploadRecordList_vue_vue_type_script_setup_true_lang = require('./UploadRecordList.vue2.js');
6
+ var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ var UploadRecordList = /* @__PURE__ */ _pluginVue_exportHelper.default(UploadRecordList_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-ffeed27e"], ["__file", "UploadRecordList.vue"]]);
9
+
10
+ exports.default = UploadRecordList;
@@ -0,0 +1,190 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var elementPlus = require('element-plus');
7
+
8
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-ffeed27e"), n = n(), vue.popScopeId(), n);
9
+ const _hoisted_1 = { class: "upload-record-list" };
10
+ const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode(
11
+ "div",
12
+ { class: "record-header" },
13
+ "\u4E0A\u4F20\u8BB0\u5F55",
14
+ -1
15
+ /* HOISTED */
16
+ ));
17
+ const _hoisted_3 = { class: "record-table" };
18
+ const _hoisted_4 = /* @__PURE__ */ vue.createStaticVNode('<div class="table-header" data-v-ffeed27e><span class="col-name" data-v-ffeed27e>\u540D\u79F0</span><span class="col-size" data-v-ffeed27e>\u5927\u5C0F</span><span class="col-action" data-v-ffeed27e></span><span class="col-status" data-v-ffeed27e>\u72B6\u6001</span></div>', 1);
19
+ const _hoisted_5 = {
20
+ key: 0,
21
+ class: "empty-state"
22
+ };
23
+ const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode(
24
+ "span",
25
+ { class: "empty-text" },
26
+ "\u6682\u65E0\u4E0A\u4F20\u8BB0\u5F55",
27
+ -1
28
+ /* HOISTED */
29
+ ));
30
+ const _hoisted_7 = [
31
+ _hoisted_6
32
+ ];
33
+ const _hoisted_8 = { class: "col-name" };
34
+ const _hoisted_9 = { class: "col-size" };
35
+ const _hoisted_10 = { class: "col-action" };
36
+ const _hoisted_11 = { class: "action-icons" };
37
+ const _hoisted_12 = { class: "col-status" };
38
+ const _hoisted_13 = { class: "progress-wrapper" };
39
+ const _hoisted_14 = { class: "progress-text" };
40
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
41
+ ...{
42
+ name: "UploadRecordList"
43
+ },
44
+ __name: "UploadRecordList",
45
+ props: {
46
+ records: { default: () => [] },
47
+ iconBaseUrl: { default: "" }
48
+ },
49
+ emits: ["pause", "resume", "cancel"],
50
+ setup(__props, { emit: __emit }) {
51
+ const props = __props;
52
+ const emit = __emit;
53
+ const isEmpty = vue.computed(() => props.records.length === 0);
54
+ const startIconUrl = vue.computed(
55
+ () => props.iconBaseUrl ? `${props.iconBaseUrl}start_icon_260128.svg` : ""
56
+ );
57
+ const pauseIconUrl = vue.computed(
58
+ () => props.iconBaseUrl ? `${props.iconBaseUrl}pause_icon_260128.svg` : ""
59
+ );
60
+ const cancelIconUrl = vue.computed(
61
+ () => props.iconBaseUrl ? `${props.iconBaseUrl}cancel_icon_260128.svg` : ""
62
+ );
63
+ const formatSize = (bytes) => {
64
+ if (bytes === 0) return "0 B";
65
+ const k = 1024;
66
+ const sizes = ["B", "KB", "MB", "GB", "TB"];
67
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
68
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + sizes[i];
69
+ };
70
+ const handlePause = (id) => {
71
+ emit("pause", id);
72
+ };
73
+ const handleResume = (id) => {
74
+ emit("resume", id);
75
+ };
76
+ const handleCancel = (id) => {
77
+ emit("cancel", id);
78
+ };
79
+ return (_ctx, _cache) => {
80
+ const _component_YcSvgIcon = vue.resolveComponent("YcSvgIcon");
81
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
82
+ vue.createCommentVNode(" \u6807\u9898 "),
83
+ _hoisted_2,
84
+ vue.createCommentVNode(" \u8868\u683C\u533A\u57DF "),
85
+ vue.createElementVNode("div", _hoisted_3, [
86
+ vue.createCommentVNode(" \u8868\u5934 "),
87
+ _hoisted_4,
88
+ vue.createCommentVNode(" \u7A7A\u72B6\u6001 "),
89
+ isEmpty.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, _hoisted_7)) : (vue.openBlock(), vue.createElementBlock(
90
+ vue.Fragment,
91
+ { key: 1 },
92
+ [
93
+ vue.createCommentVNode(" \u8BB0\u5F55\u5217\u8868 "),
94
+ (vue.openBlock(true), vue.createElementBlock(
95
+ vue.Fragment,
96
+ null,
97
+ vue.renderList(_ctx.records, (record) => {
98
+ return vue.openBlock(), vue.createElementBlock("div", {
99
+ key: record.id,
100
+ class: "record-row"
101
+ }, [
102
+ vue.createCommentVNode(" \u6587\u4EF6\u540D "),
103
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
104
+ content: record.name,
105
+ placement: "top",
106
+ "show-after": 300
107
+ }, {
108
+ default: vue.withCtx(() => [
109
+ vue.createElementVNode(
110
+ "span",
111
+ _hoisted_8,
112
+ vue.toDisplayString(record.name),
113
+ 1
114
+ /* TEXT */
115
+ )
116
+ ]),
117
+ _: 2
118
+ /* DYNAMIC */
119
+ }, 1032, ["content"]),
120
+ vue.createCommentVNode(" \u6587\u4EF6\u5927\u5C0F "),
121
+ vue.createElementVNode(
122
+ "span",
123
+ _hoisted_9,
124
+ vue.toDisplayString(formatSize(record.size)),
125
+ 1
126
+ /* TEXT */
127
+ ),
128
+ vue.createCommentVNode(" \u64CD\u4F5C\u5217 "),
129
+ vue.createElementVNode("div", _hoisted_10, [
130
+ vue.createElementVNode("div", _hoisted_11, [
131
+ vue.createCommentVNode(" \u6682\u505C\u6309\u94AE\uFF08\u4E0A\u4F20\u4E2D\u4E14\u8FDB\u5EA6\u672A\u8FBE100%\u65F6\u663E\u793A\uFF09 "),
132
+ record.status === "uploading" && record.progress < 100 ? (vue.openBlock(), vue.createBlock(_component_YcSvgIcon, {
133
+ key: 0,
134
+ src: pauseIconUrl.value,
135
+ size: 16,
136
+ class: "action-icon pause-icon",
137
+ onClick: ($event) => handlePause(record.id)
138
+ }, null, 8, ["src", "onClick"])) : vue.createCommentVNode("v-if", true),
139
+ vue.createCommentVNode(" \u7EE7\u7EED\u6309\u94AE\uFF08\u6682\u505C\u65F6\u4E14\u8FDB\u5EA6\u672A\u8FBE100%\u65F6\u663E\u793A\uFF09 "),
140
+ record.status === "paused" && record.progress < 100 ? (vue.openBlock(), vue.createBlock(_component_YcSvgIcon, {
141
+ key: 1,
142
+ src: startIconUrl.value,
143
+ size: 16,
144
+ class: "action-icon play-icon",
145
+ onClick: ($event) => handleResume(record.id)
146
+ }, null, 8, ["src", "onClick"])) : vue.createCommentVNode("v-if", true),
147
+ vue.createCommentVNode(" \u53D6\u6D88/\u5220\u9664\u6309\u94AE\uFF08\u59CB\u7EC8\u663E\u793A\uFF09 "),
148
+ vue.createVNode(_component_YcSvgIcon, {
149
+ src: cancelIconUrl.value,
150
+ size: 16,
151
+ class: "action-icon cancel-icon",
152
+ onClick: ($event) => handleCancel(record.id)
153
+ }, null, 8, ["src", "onClick"])
154
+ ])
155
+ ]),
156
+ vue.createCommentVNode(" \u72B6\u6001\u5217 "),
157
+ vue.createElementVNode("div", _hoisted_12, [
158
+ vue.createCommentVNode(" \u8FDB\u5EA6\u4FE1\u606F "),
159
+ vue.createElementVNode("div", _hoisted_13, [
160
+ vue.createElementVNode(
161
+ "span",
162
+ _hoisted_14,
163
+ "\u8FDB\u5EA6" + vue.toDisplayString(record.progress) + "%",
164
+ 1
165
+ /* TEXT */
166
+ ),
167
+ vue.createVNode(vue.unref(elementPlus.ElProgress), {
168
+ percentage: record.progress,
169
+ "show-text": false,
170
+ "stroke-width": 4,
171
+ class: "progress-bar"
172
+ }, null, 8, ["percentage"])
173
+ ])
174
+ ])
175
+ ]);
176
+ }),
177
+ 128
178
+ /* KEYED_FRAGMENT */
179
+ ))
180
+ ],
181
+ 64
182
+ /* STABLE_FRAGMENT */
183
+ ))
184
+ ])
185
+ ]);
186
+ };
187
+ }
188
+ });
189
+
190
+ exports.default = _sfc_main;
@@ -0,0 +1,73 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { BatchImportDialogProps, ResponseType } from './types';
3
+
4
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BatchImportDialogProps>, {
5
+ title: string;
6
+ width: number;
7
+ stepOneTitle: string;
8
+ tips: string;
9
+ templateButtonText: string;
10
+ stepTwoTitle: string;
11
+ accept: string;
12
+ maxFileSize: number;
13
+ maxRowCount: number;
14
+ responseType: string;
15
+ resultFileName: string;
16
+ iconBaseUrl: string;
17
+ }>, {
18
+ open: (type?: string | undefined) => void;
19
+ close: () => void;
20
+ reset: () => void;
21
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ success: (result: unknown) => void;
23
+ error: (error: Error) => void;
24
+ close: () => void;
25
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BatchImportDialogProps>, {
26
+ title: string;
27
+ width: number;
28
+ stepOneTitle: string;
29
+ tips: string;
30
+ templateButtonText: string;
31
+ stepTwoTitle: string;
32
+ accept: string;
33
+ maxFileSize: number;
34
+ maxRowCount: number;
35
+ responseType: string;
36
+ resultFileName: string;
37
+ iconBaseUrl: string;
38
+ }>>> & {
39
+ onError?: ((error: Error) => any) | undefined;
40
+ onClose?: (() => any) | undefined;
41
+ onSuccess?: ((result: unknown) => any) | undefined;
42
+ }, {
43
+ title: string;
44
+ width: number;
45
+ accept: string;
46
+ iconBaseUrl: string;
47
+ stepOneTitle: string;
48
+ tips: string;
49
+ resultFileName: string;
50
+ templateButtonText: string;
51
+ stepTwoTitle: string;
52
+ maxFileSize: number;
53
+ maxRowCount: number;
54
+ responseType: ResponseType;
55
+ }, {}>;
56
+ export default _default;
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToRuntimeProps<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
66
+ type __VLS_WithDefaults<P, D> = {
67
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
68
+ default: D[K];
69
+ }> : P[K];
70
+ };
71
+ type __VLS_Prettify<T> = {
72
+ [K in keyof T]: T[K];
73
+ } & {};
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
6
+ var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ var YcBatchImportDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-338bd60b"], ["__file", "index.vue"]]);
9
+
10
+ exports.default = YcBatchImportDialog;