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.
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/yc-batch-import-dialog/index.d.ts +167 -0
- package/es/components/yc-batch-import-dialog/index.mjs +13 -0
- package/es/components/yc-batch-import-dialog/src/UploadRecordList.vue.d.ts +45 -0
- package/es/components/yc-batch-import-dialog/src/UploadRecordList.vue.mjs +6 -0
- package/es/components/yc-batch-import-dialog/src/UploadRecordList.vue2.mjs +186 -0
- package/es/components/yc-batch-import-dialog/src/index.vue.d.ts +73 -0
- package/es/components/yc-batch-import-dialog/src/index.vue.mjs +6 -0
- package/es/components/yc-batch-import-dialog/src/index.vue2.mjs +579 -0
- package/es/components/yc-batch-import-dialog/src/types.d.ts +159 -0
- package/es/components/yc-batch-import-dialog/src/types.mjs +1 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +210 -26
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +96 -8
- package/es/components/yc-plus-page/src/type.d.ts +12 -0
- package/es/index.css +13 -11
- package/es/index.mjs +2 -0
- package/index.css +285 -6
- package/index.js +1176 -327
- package/index.min.css +4 -2
- package/index.min.js +11 -11
- package/index.min.mjs +11 -11
- package/index.mjs +1176 -330
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +5 -0
- package/lib/components/yc-batch-import-dialog/index.d.ts +167 -0
- package/lib/components/yc-batch-import-dialog/index.js +20 -0
- package/lib/components/yc-batch-import-dialog/src/UploadRecordList.vue.d.ts +45 -0
- package/lib/components/yc-batch-import-dialog/src/UploadRecordList.vue.js +10 -0
- package/lib/components/yc-batch-import-dialog/src/UploadRecordList.vue2.js +190 -0
- package/lib/components/yc-batch-import-dialog/src/index.vue.d.ts +73 -0
- package/lib/components/yc-batch-import-dialog/src/index.vue.js +10 -0
- package/lib/components/yc-batch-import-dialog/src/index.vue2.js +583 -0
- package/lib/components/yc-batch-import-dialog/src/types.d.ts +159 -0
- package/lib/components/yc-batch-import-dialog/src/types.js +2 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +210 -26
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +95 -7
- package/lib/components/yc-plus-page/src/type.d.ts +12 -0
- package/lib/index.css +11 -9
- package/lib/index.js +5 -0
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-table.css +1 -1
- package/theme-chalk/plus-yc-plus-page.css +1 -1
- package/theme-chalk/src/table.scss +5 -0
- package/theme-chalk/src/yc-plus-page.scss +46 -0
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -40,6 +40,7 @@ export { YcSegmentedWithInstall } from './yc-segmented/index.mjs';
|
|
|
40
40
|
export { YcAnimateSelectorWithInstall } from './yc-animate-selector/index.mjs';
|
|
41
41
|
export { YcDownloadDialogWithInstall } from './yc-download-dialog/index.mjs';
|
|
42
42
|
export { YcTabsWithFilterWithInstall } from './yc-tabs-with-filter/index.mjs';
|
|
43
|
+
export { YcBatchImportDialogWithInstall } from './yc-batch-import-dialog/index.mjs';
|
|
43
44
|
export { useColumnAdapter } from './virtual-table/src/use-column-adapter.mjs';
|
|
44
45
|
export { useVirtualSelection } from './virtual-table/src/use-virtual-selection.mjs';
|
|
45
46
|
export { useVirtualScroll } from './virtual-table/src/use-virtual-scroll.mjs';
|
|
@@ -65,3 +66,4 @@ export { animates } from './yc-animate-selector/src/animate.mjs';
|
|
|
65
66
|
export { default as ReAnimateSelector, default as YcAnimateSelector } from './yc-animate-selector/src/index.vue.mjs';
|
|
66
67
|
export { default as ReDownloadDialog, default as YcDownloadDialog } from './yc-download-dialog/src/index.vue.mjs';
|
|
67
68
|
export { default as ReTabsWithFilter, default as YcTabsWithFilter } from './yc-tabs-with-filter/src/index.vue.mjs';
|
|
69
|
+
export { default as ReBatchImportDialog, default as YcBatchImportDialog } from './yc-batch-import-dialog/src/index.vue.mjs';
|
|
@@ -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,13 @@
|
|
|
1
|
+
import 'js-cookie';
|
|
2
|
+
import 'dayjs';
|
|
3
|
+
import 'numeral';
|
|
4
|
+
import 'accounting';
|
|
5
|
+
import 'good-storage';
|
|
6
|
+
import 'crypto-js';
|
|
7
|
+
import 'qs';
|
|
8
|
+
import { withInstall as l } from '../../utils/dist/component.mjs';
|
|
9
|
+
import YcBatchImportDialog from './src/index.vue.mjs';
|
|
10
|
+
|
|
11
|
+
const YcBatchImportDialogWithInstall = l(YcBatchImportDialog);
|
|
12
|
+
|
|
13
|
+
export { YcBatchImportDialog as ReBatchImportDialog, YcBatchImportDialog, YcBatchImportDialogWithInstall, YcBatchImportDialog as default };
|
|
@@ -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,6 @@
|
|
|
1
|
+
import _sfc_main from './UploadRecordList.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
var UploadRecordList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ffeed27e"], ["__file", "UploadRecordList.vue"]]);
|
|
5
|
+
|
|
6
|
+
export { UploadRecordList as default };
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createCommentVNode, createElementVNode, Fragment, renderList, createVNode, unref, withCtx, toDisplayString, createBlock, createStaticVNode, pushScopeId, popScopeId } from 'vue';
|
|
2
|
+
import { ElTooltip, ElProgress } from 'element-plus';
|
|
3
|
+
|
|
4
|
+
const _withScopeId = (n) => (pushScopeId("data-v-ffeed27e"), n = n(), popScopeId(), n);
|
|
5
|
+
const _hoisted_1 = { class: "upload-record-list" };
|
|
6
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
7
|
+
"div",
|
|
8
|
+
{ class: "record-header" },
|
|
9
|
+
"\u4E0A\u4F20\u8BB0\u5F55",
|
|
10
|
+
-1
|
|
11
|
+
/* HOISTED */
|
|
12
|
+
));
|
|
13
|
+
const _hoisted_3 = { class: "record-table" };
|
|
14
|
+
const _hoisted_4 = /* @__PURE__ */ 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);
|
|
15
|
+
const _hoisted_5 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "empty-state"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
20
|
+
"span",
|
|
21
|
+
{ class: "empty-text" },
|
|
22
|
+
"\u6682\u65E0\u4E0A\u4F20\u8BB0\u5F55",
|
|
23
|
+
-1
|
|
24
|
+
/* HOISTED */
|
|
25
|
+
));
|
|
26
|
+
const _hoisted_7 = [
|
|
27
|
+
_hoisted_6
|
|
28
|
+
];
|
|
29
|
+
const _hoisted_8 = { class: "col-name" };
|
|
30
|
+
const _hoisted_9 = { class: "col-size" };
|
|
31
|
+
const _hoisted_10 = { class: "col-action" };
|
|
32
|
+
const _hoisted_11 = { class: "action-icons" };
|
|
33
|
+
const _hoisted_12 = { class: "col-status" };
|
|
34
|
+
const _hoisted_13 = { class: "progress-wrapper" };
|
|
35
|
+
const _hoisted_14 = { class: "progress-text" };
|
|
36
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
|
+
...{
|
|
38
|
+
name: "UploadRecordList"
|
|
39
|
+
},
|
|
40
|
+
__name: "UploadRecordList",
|
|
41
|
+
props: {
|
|
42
|
+
records: { default: () => [] },
|
|
43
|
+
iconBaseUrl: { default: "" }
|
|
44
|
+
},
|
|
45
|
+
emits: ["pause", "resume", "cancel"],
|
|
46
|
+
setup(__props, { emit: __emit }) {
|
|
47
|
+
const props = __props;
|
|
48
|
+
const emit = __emit;
|
|
49
|
+
const isEmpty = computed(() => props.records.length === 0);
|
|
50
|
+
const startIconUrl = computed(
|
|
51
|
+
() => props.iconBaseUrl ? `${props.iconBaseUrl}start_icon_260128.svg` : ""
|
|
52
|
+
);
|
|
53
|
+
const pauseIconUrl = computed(
|
|
54
|
+
() => props.iconBaseUrl ? `${props.iconBaseUrl}pause_icon_260128.svg` : ""
|
|
55
|
+
);
|
|
56
|
+
const cancelIconUrl = computed(
|
|
57
|
+
() => props.iconBaseUrl ? `${props.iconBaseUrl}cancel_icon_260128.svg` : ""
|
|
58
|
+
);
|
|
59
|
+
const formatSize = (bytes) => {
|
|
60
|
+
if (bytes === 0) return "0 B";
|
|
61
|
+
const k = 1024;
|
|
62
|
+
const sizes = ["B", "KB", "MB", "GB", "TB"];
|
|
63
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
64
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + sizes[i];
|
|
65
|
+
};
|
|
66
|
+
const handlePause = (id) => {
|
|
67
|
+
emit("pause", id);
|
|
68
|
+
};
|
|
69
|
+
const handleResume = (id) => {
|
|
70
|
+
emit("resume", id);
|
|
71
|
+
};
|
|
72
|
+
const handleCancel = (id) => {
|
|
73
|
+
emit("cancel", id);
|
|
74
|
+
};
|
|
75
|
+
return (_ctx, _cache) => {
|
|
76
|
+
const _component_YcSvgIcon = resolveComponent("YcSvgIcon");
|
|
77
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
78
|
+
createCommentVNode(" \u6807\u9898 "),
|
|
79
|
+
_hoisted_2,
|
|
80
|
+
createCommentVNode(" \u8868\u683C\u533A\u57DF "),
|
|
81
|
+
createElementVNode("div", _hoisted_3, [
|
|
82
|
+
createCommentVNode(" \u8868\u5934 "),
|
|
83
|
+
_hoisted_4,
|
|
84
|
+
createCommentVNode(" \u7A7A\u72B6\u6001 "),
|
|
85
|
+
isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_5, _hoisted_7)) : (openBlock(), createElementBlock(
|
|
86
|
+
Fragment,
|
|
87
|
+
{ key: 1 },
|
|
88
|
+
[
|
|
89
|
+
createCommentVNode(" \u8BB0\u5F55\u5217\u8868 "),
|
|
90
|
+
(openBlock(true), createElementBlock(
|
|
91
|
+
Fragment,
|
|
92
|
+
null,
|
|
93
|
+
renderList(_ctx.records, (record) => {
|
|
94
|
+
return openBlock(), createElementBlock("div", {
|
|
95
|
+
key: record.id,
|
|
96
|
+
class: "record-row"
|
|
97
|
+
}, [
|
|
98
|
+
createCommentVNode(" \u6587\u4EF6\u540D "),
|
|
99
|
+
createVNode(unref(ElTooltip), {
|
|
100
|
+
content: record.name,
|
|
101
|
+
placement: "top",
|
|
102
|
+
"show-after": 300
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
createElementVNode(
|
|
106
|
+
"span",
|
|
107
|
+
_hoisted_8,
|
|
108
|
+
toDisplayString(record.name),
|
|
109
|
+
1
|
|
110
|
+
/* TEXT */
|
|
111
|
+
)
|
|
112
|
+
]),
|
|
113
|
+
_: 2
|
|
114
|
+
/* DYNAMIC */
|
|
115
|
+
}, 1032, ["content"]),
|
|
116
|
+
createCommentVNode(" \u6587\u4EF6\u5927\u5C0F "),
|
|
117
|
+
createElementVNode(
|
|
118
|
+
"span",
|
|
119
|
+
_hoisted_9,
|
|
120
|
+
toDisplayString(formatSize(record.size)),
|
|
121
|
+
1
|
|
122
|
+
/* TEXT */
|
|
123
|
+
),
|
|
124
|
+
createCommentVNode(" \u64CD\u4F5C\u5217 "),
|
|
125
|
+
createElementVNode("div", _hoisted_10, [
|
|
126
|
+
createElementVNode("div", _hoisted_11, [
|
|
127
|
+
createCommentVNode(" \u6682\u505C\u6309\u94AE\uFF08\u4E0A\u4F20\u4E2D\u4E14\u8FDB\u5EA6\u672A\u8FBE100%\u65F6\u663E\u793A\uFF09 "),
|
|
128
|
+
record.status === "uploading" && record.progress < 100 ? (openBlock(), createBlock(_component_YcSvgIcon, {
|
|
129
|
+
key: 0,
|
|
130
|
+
src: pauseIconUrl.value,
|
|
131
|
+
size: 16,
|
|
132
|
+
class: "action-icon pause-icon",
|
|
133
|
+
onClick: ($event) => handlePause(record.id)
|
|
134
|
+
}, null, 8, ["src", "onClick"])) : createCommentVNode("v-if", true),
|
|
135
|
+
createCommentVNode(" \u7EE7\u7EED\u6309\u94AE\uFF08\u6682\u505C\u65F6\u4E14\u8FDB\u5EA6\u672A\u8FBE100%\u65F6\u663E\u793A\uFF09 "),
|
|
136
|
+
record.status === "paused" && record.progress < 100 ? (openBlock(), createBlock(_component_YcSvgIcon, {
|
|
137
|
+
key: 1,
|
|
138
|
+
src: startIconUrl.value,
|
|
139
|
+
size: 16,
|
|
140
|
+
class: "action-icon play-icon",
|
|
141
|
+
onClick: ($event) => handleResume(record.id)
|
|
142
|
+
}, null, 8, ["src", "onClick"])) : createCommentVNode("v-if", true),
|
|
143
|
+
createCommentVNode(" \u53D6\u6D88/\u5220\u9664\u6309\u94AE\uFF08\u59CB\u7EC8\u663E\u793A\uFF09 "),
|
|
144
|
+
createVNode(_component_YcSvgIcon, {
|
|
145
|
+
src: cancelIconUrl.value,
|
|
146
|
+
size: 16,
|
|
147
|
+
class: "action-icon cancel-icon",
|
|
148
|
+
onClick: ($event) => handleCancel(record.id)
|
|
149
|
+
}, null, 8, ["src", "onClick"])
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
createCommentVNode(" \u72B6\u6001\u5217 "),
|
|
153
|
+
createElementVNode("div", _hoisted_12, [
|
|
154
|
+
createCommentVNode(" \u8FDB\u5EA6\u4FE1\u606F "),
|
|
155
|
+
createElementVNode("div", _hoisted_13, [
|
|
156
|
+
createElementVNode(
|
|
157
|
+
"span",
|
|
158
|
+
_hoisted_14,
|
|
159
|
+
"\u8FDB\u5EA6" + toDisplayString(record.progress) + "%",
|
|
160
|
+
1
|
|
161
|
+
/* TEXT */
|
|
162
|
+
),
|
|
163
|
+
createVNode(unref(ElProgress), {
|
|
164
|
+
percentage: record.progress,
|
|
165
|
+
"show-text": false,
|
|
166
|
+
"stroke-width": 4,
|
|
167
|
+
class: "progress-bar"
|
|
168
|
+
}, null, 8, ["percentage"])
|
|
169
|
+
])
|
|
170
|
+
])
|
|
171
|
+
]);
|
|
172
|
+
}),
|
|
173
|
+
128
|
|
174
|
+
/* KEYED_FRAGMENT */
|
|
175
|
+
))
|
|
176
|
+
],
|
|
177
|
+
64
|
|
178
|
+
/* STABLE_FRAGMENT */
|
|
179
|
+
))
|
|
180
|
+
])
|
|
181
|
+
]);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
export { _sfc_main as default };
|
|
@@ -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,6 @@
|
|
|
1
|
+
import _sfc_main from './index.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
var YcBatchImportDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-338bd60b"], ["__file", "index.vue"]]);
|
|
5
|
+
|
|
6
|
+
export { YcBatchImportDialog as default };
|