qidian-vue-ui 1.3.2 → 1.3.3
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/dist/components/config-provider/index.d.ts +3 -0
- package/dist/components/config-provider/types.d.ts +1 -0
- package/dist/components/config-provider/useConfig.d.ts +4 -0
- package/dist/components/form/item.css +2 -2
- package/dist/components/form/item.vue.mjs +1 -1
- package/dist/components/import-dialog/index.vue.d.ts +1 -1
- package/dist/components/import-dialog/index.vue.mjs +3 -1
- package/dist/components/service-dialog-table-select/index.css +10 -10
- package/dist/components/service-dialog-table-select/index.vue.mjs +1 -1
- package/dist/components/service-dialog-table-select/index.vue2.mjs +1 -1
- package/dist/components/service-popup-table-select/index.vue.mjs +1 -1
- package/dist/components/service-popup-table-select/index.vue2.mjs +1 -1
- package/dist/components/service-popup-table-select/index2.css +7 -7
- package/dist/components/stream-markdown/previewers/index.d.ts +1 -0
- package/dist/components/stream-markdown/previewers/index.mjs +1 -1
- package/dist/components/upload/index.css +33 -33
- package/dist/components/upload/index.vue.mjs +1 -1
- package/dist/components/upload/index.vue2.mjs +3 -2
- package/dist/components/upload/types.d.ts +1 -1
- package/dist/locales/en-US.d.ts +1 -0
- package/dist/locales/en-US.mjs +2 -1
- package/dist/locales/zh-CN.d.ts +1 -0
- package/dist/locales/zh-CN.mjs +2 -1
- package/dist/locales/zh-TW.d.ts +1 -0
- package/dist/locales/zh-TW.mjs +2 -1
- package/package.json +2 -2
|
@@ -81,6 +81,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
81
81
|
addText?: string;
|
|
82
82
|
addConfirmText?: string;
|
|
83
83
|
addCancelText?: string;
|
|
84
|
+
quoteText?: string;
|
|
84
85
|
};
|
|
85
86
|
importDialog?: {
|
|
86
87
|
fileSupport?: [string, string];
|
|
@@ -209,6 +210,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
209
210
|
addText?: string;
|
|
210
211
|
addConfirmText?: string;
|
|
211
212
|
addCancelText?: string;
|
|
213
|
+
quoteText?: string;
|
|
212
214
|
};
|
|
213
215
|
importDialog?: {
|
|
214
216
|
fileSupport?: [string, string];
|
|
@@ -322,6 +324,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
322
324
|
addText?: string;
|
|
323
325
|
addConfirmText?: string;
|
|
324
326
|
addCancelText?: string;
|
|
327
|
+
quoteText?: string;
|
|
325
328
|
};
|
|
326
329
|
importDialog?: {
|
|
327
330
|
fileSupport?: [string, string];
|
|
@@ -69,6 +69,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
69
69
|
addText?: string;
|
|
70
70
|
addConfirmText?: string;
|
|
71
71
|
addCancelText?: string;
|
|
72
|
+
quoteText?: string;
|
|
72
73
|
};
|
|
73
74
|
importDialog?: {
|
|
74
75
|
fileSupport?: [string, string];
|
|
@@ -180,6 +181,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
180
181
|
addText?: string;
|
|
181
182
|
addConfirmText?: string;
|
|
182
183
|
addCancelText?: string;
|
|
184
|
+
quoteText?: string;
|
|
183
185
|
};
|
|
184
186
|
importDialog?: {
|
|
185
187
|
fileSupport?: [string, string];
|
|
@@ -291,6 +293,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
291
293
|
addText?: string;
|
|
292
294
|
addConfirmText?: string;
|
|
293
295
|
addCancelText?: string;
|
|
296
|
+
quoteText?: string;
|
|
294
297
|
};
|
|
295
298
|
importDialog?: {
|
|
296
299
|
fileSupport?: [string, string];
|
|
@@ -403,6 +406,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
403
406
|
addText?: string;
|
|
404
407
|
addConfirmText?: string;
|
|
405
408
|
addCancelText?: string;
|
|
409
|
+
quoteText?: string;
|
|
406
410
|
};
|
|
407
411
|
importDialog?: {
|
|
408
412
|
fileSupport?: [string, string];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.qd-form-item[data-v-
|
|
1
|
+
.qd-form-item[data-v-3e69dc20] > .t-form__item > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.qd-form-item__component[data-v-
|
|
4
|
+
.qd-form-item__component[data-v-3e69dc20]:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ import './item.css'
|
|
|
2
2
|
import _sfc_main from "./item.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e69dc20"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdFormItem as default
|
|
8
8
|
};
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<QdImportDialogProps, {
|
|
|
8
8
|
"onUpdate:visible"?: ((args_0: boolean | undefined) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
name: string;
|
|
11
|
-
accept: string[];
|
|
11
|
+
accept: string[] | "*";
|
|
12
12
|
method: "POST" | "GET" | "PUT" | "OPTIONS" | "PATCH" | "post" | "get" | "put" | "options" | "patch";
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -66,13 +66,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
wrapper,
|
|
67
67
|
...uploadOptions
|
|
68
68
|
} = props;
|
|
69
|
+
const isAcceptUnlimited = accept === "*" || isEmpty(accept);
|
|
70
|
+
const reAccept = isAcceptUnlimited ? void 0 : accept;
|
|
69
71
|
const reUploadOptions = {
|
|
70
72
|
...uploadOptions,
|
|
71
73
|
listOssByIds: {
|
|
72
74
|
service: void 0
|
|
73
75
|
},
|
|
74
76
|
accept,
|
|
75
|
-
tips: tips ||
|
|
77
|
+
tips: tips || !reAccept ? tips : `${t("fileSupport")[0]} ${reAccept.join(",")} ${t("fileSupport")[1]}`
|
|
76
78
|
};
|
|
77
79
|
const qdDialogOptions = {
|
|
78
80
|
width: "min(600px, 100%)",
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
.qd-dialog-table-select[data-v-
|
|
1
|
+
.qd-dialog-table-select[data-v-cc0a2b83] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.qd-dialog-table-select__trigger[data-v-
|
|
4
|
+
.qd-dialog-table-select__trigger[data-v-cc0a2b83] {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
|
-
.qd-dialog-table-select__trigger[data-v-
|
|
7
|
+
.qd-dialog-table-select__trigger[data-v-cc0a2b83]:not(.qd-dialog-table-select__trigger--readonly):not(.qd-dialog-table-select__trigger--disabled) {
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
|
-
.qd-dialog-table-select__input-trigger[data-v-
|
|
10
|
+
.qd-dialog-table-select__input-trigger[data-v-cc0a2b83] {
|
|
11
11
|
border-top-left-radius: 0;
|
|
12
12
|
border-bottom-left-radius: 0;
|
|
13
13
|
}
|
|
14
|
-
.qd-dialog-table-select__table[data-v-
|
|
15
|
-
.qd-dialog-table-select__table[data-v-
|
|
14
|
+
.qd-dialog-table-select__table[data-v-cc0a2b83] .qd-crud-search > .t-loading__parent > .t-card__body,
|
|
15
|
+
.qd-dialog-table-select__table[data-v-cc0a2b83] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
16
16
|
padding: 0 !important;
|
|
17
17
|
}
|
|
18
|
-
.qd-dialog-table-select__table[data-v-
|
|
18
|
+
.qd-dialog-table-select__table[data-v-cc0a2b83] .qd-crud-table__toolbar {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
.qd-dialog-table-select__table[data-v-
|
|
21
|
+
.qd-dialog-table-select__table[data-v-cc0a2b83] .qd-service-table {
|
|
22
22
|
margin-top: 0;
|
|
23
23
|
}
|
|
24
|
-
.qd-dialog-table-select__table-add[data-v-
|
|
24
|
+
.qd-dialog-table-select__table-add[data-v-cc0a2b83] {
|
|
25
25
|
margin-top: var(--td-comp-margin-m);
|
|
26
26
|
display: flex;
|
|
27
27
|
}
|
|
28
|
-
.qd-dialog-table-select__table-add .t-input__wrap[data-v-
|
|
28
|
+
.qd-dialog-table-select__table-add .t-input__wrap[data-v-cc0a2b83] {
|
|
29
29
|
flex: 1 1 0;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
margin-right: var(--td-comp-margin-m);
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cc0a2b83"]]);
|
|
6
6
|
export {
|
|
7
7
|
index as default
|
|
8
8
|
};
|
|
@@ -448,7 +448,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
448
448
|
};
|
|
449
449
|
const effectiveCreatable = mode === "input" || creatable;
|
|
450
450
|
const quoteBtnOptions = merge({}, {
|
|
451
|
-
content: "
|
|
451
|
+
content: t("quoteText"),
|
|
452
452
|
onClick: openDialog,
|
|
453
453
|
disabled: tdReadonly.value || tdDisabled.value
|
|
454
454
|
}, typeof quoteBtn === "string" ? {
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./index.vue2.mjs";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c25d9fb5"]]);
|
|
8
8
|
export {
|
|
9
9
|
index as default
|
|
10
10
|
};
|
|
@@ -457,7 +457,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
457
457
|
};
|
|
458
458
|
const effectiveCreatable = mode === "input" || creatable;
|
|
459
459
|
const quoteBtnOptions = merge({}, {
|
|
460
|
-
content: "
|
|
460
|
+
content: t("quoteText"),
|
|
461
461
|
onClick: openPopup,
|
|
462
462
|
disabled: tdReadonly.value || tdDisabled.value
|
|
463
463
|
}, typeof quoteBtn === "string" ? {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.qd-popup-table-select__table[data-v-
|
|
2
|
-
.qd-popup-table-select__table[data-v-
|
|
1
|
+
.qd-popup-table-select__table[data-v-c25d9fb5] .qd-crud-search > .t-loading__parent > .t-card__body,
|
|
2
|
+
.qd-popup-table-select__table[data-v-c25d9fb5] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
3
3
|
padding: 0 !important;
|
|
4
4
|
}
|
|
5
|
-
.qd-popup-table-select__table[data-v-
|
|
5
|
+
.qd-popup-table-select__table[data-v-c25d9fb5] .qd-crud-table__toolbar {
|
|
6
6
|
display: none;
|
|
7
7
|
}
|
|
8
|
-
.qd-popup-table-select__table[data-v-
|
|
8
|
+
.qd-popup-table-select__table[data-v-c25d9fb5] .qd-service-table {
|
|
9
9
|
margin-top: 0;
|
|
10
10
|
}
|
|
11
|
-
.qd-popup-table-select__table-add[data-v-
|
|
11
|
+
.qd-popup-table-select__table-add[data-v-c25d9fb5] {
|
|
12
12
|
margin-top: var(--td-comp-margin-m);
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.qd-popup-table-select__table-add .t-input__wrap[data-v-
|
|
15
|
+
.qd-popup-table-select__table-add .t-input__wrap[data-v-c25d9fb5] {
|
|
16
16
|
flex: 1 1 0;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
margin-right: var(--td-comp-margin-m);
|
|
19
19
|
}
|
|
20
|
-
.qd-popup-table-select__input-trigger[data-v-
|
|
20
|
+
.qd-popup-table-select__input-trigger[data-v-c25d9fb5] {
|
|
21
21
|
border-top-left-radius: 0;
|
|
22
22
|
border-bottom-left-radius: 0;
|
|
23
23
|
}
|
|
@@ -9,7 +9,7 @@ const Markmap = defineAsyncComponent({
|
|
|
9
9
|
});
|
|
10
10
|
const defaultPreviewers = {
|
|
11
11
|
progressive: { echarts: true, markmap: true },
|
|
12
|
-
components: { echarts: Echarts, markmap: Markmap }
|
|
12
|
+
components: { echarts: Echarts, markmap: Markmap, html: true }
|
|
13
13
|
};
|
|
14
14
|
const defaultShikiOptions = { langAlias: { echarts: "json", markmap: "markdown" } };
|
|
15
15
|
export {
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
.qd-upload[data-v-
|
|
1
|
+
.qd-upload[data-v-987466f3] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
outline: none;
|
|
4
4
|
}
|
|
5
|
-
.qd-upload[data-v-
|
|
5
|
+
.qd-upload[data-v-987466f3] .t-image-viewer__trigger {
|
|
6
6
|
display: none;
|
|
7
7
|
}
|
|
8
|
-
.qd-upload[data-v-
|
|
8
|
+
.qd-upload[data-v-987466f3] .t-upload__dragger {
|
|
9
9
|
min-width: auto;
|
|
10
10
|
min-height: 144px;
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 100%;
|
|
13
13
|
}
|
|
14
|
-
.qd-upload[data-v-
|
|
14
|
+
.qd-upload[data-v-987466f3] .t-upload__flow {
|
|
15
15
|
width: 100%;
|
|
16
16
|
min-width: auto;
|
|
17
17
|
max-width: 100%;
|
|
18
18
|
}
|
|
19
|
-
.qd-upload[data-v-
|
|
19
|
+
.qd-upload[data-v-987466f3] .t-upload__flow-empty {
|
|
20
20
|
height: auto;
|
|
21
21
|
min-height: 144px;
|
|
22
22
|
}
|
|
23
|
-
.qd-upload[data-v-
|
|
24
|
-
.qd-upload[data-v-
|
|
23
|
+
.qd-upload[data-v-987466f3] .t-upload__flow-card-area,
|
|
24
|
+
.qd-upload[data-v-987466f3] .t-upload__flow-table {
|
|
25
25
|
margin-top: var(--td-comp-margin-s);
|
|
26
26
|
}
|
|
27
|
-
.qd-upload[data-v-
|
|
27
|
+
.qd-upload[data-v-987466f3] .t-upload__file-name__container {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
}
|
|
31
|
-
.qd-upload[data-v-
|
|
31
|
+
.qd-upload[data-v-987466f3] .t-upload__file-name-text {
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
34
|
-
.qd-upload[data-v-
|
|
34
|
+
.qd-upload[data-v-987466f3] .t-upload__file-thumbnail {
|
|
35
35
|
width: var(--td-comp-size-m);
|
|
36
36
|
height: var(--td-comp-size-m);
|
|
37
37
|
}
|
|
38
|
-
.qd-upload[data-v-
|
|
38
|
+
.qd-upload[data-v-987466f3] .t-upload__card-image {
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
|
-
.qd-upload__popup-upload[data-v-
|
|
42
|
+
.qd-upload__popup-upload[data-v-987466f3] .t-image-viewer__trigger {
|
|
43
43
|
display: none;
|
|
44
44
|
}
|
|
45
|
-
.qd-upload__popup-upload[data-v-
|
|
45
|
+
.qd-upload__popup-upload[data-v-987466f3] .t-upload__flow-table {
|
|
46
46
|
margin-top: 0;
|
|
47
47
|
}
|
|
48
|
-
.qd-upload__popup-upload[data-v-
|
|
48
|
+
.qd-upload__popup-upload[data-v-987466f3] .t-upload__file-name__container {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
}
|
|
52
|
-
.qd-upload__popup-upload[data-v-
|
|
52
|
+
.qd-upload__popup-upload[data-v-987466f3] .t-upload__file-name-text {
|
|
53
53
|
cursor: pointer;
|
|
54
54
|
}
|
|
55
|
-
.qd-upload__popup-upload[data-v-
|
|
55
|
+
.qd-upload__popup-upload[data-v-987466f3] .t-upload__file-thumbnail {
|
|
56
56
|
width: var(--td-comp-size-m);
|
|
57
57
|
height: var(--td-comp-size-m);
|
|
58
58
|
}
|
|
59
|
-
.qd-upload__popup-upload[data-v-
|
|
59
|
+
.qd-upload__popup-upload[data-v-987466f3] .t-upload__card-image {
|
|
60
60
|
width: 100%;
|
|
61
61
|
height: 100%;
|
|
62
62
|
}
|
|
63
|
-
.qd-upload__popup-upload--disabled[data-v-
|
|
64
|
-
.qd-upload__popup-upload--disabled[data-v-
|
|
63
|
+
.qd-upload__popup-upload--disabled[data-v-987466f3] .t-upload__flow-table th:last-child,
|
|
64
|
+
.qd-upload__popup-upload--disabled[data-v-987466f3] .t-upload__flow-table td:last-child {
|
|
65
65
|
display: none;
|
|
66
66
|
}
|
|
67
|
-
.qd-upload[data-v-
|
|
68
|
-
.qd-upload[data-v-
|
|
67
|
+
.qd-upload[data-v-987466f3]:focus .t-upload__flow-card-area,
|
|
68
|
+
.qd-upload[data-v-987466f3]:focus .t-upload__flow-table {
|
|
69
69
|
border-color: var(--td-brand-color);
|
|
70
70
|
}
|
|
71
|
-
.qd-upload--only-view[data-v-
|
|
72
|
-
.qd-upload--only-view[data-v-
|
|
71
|
+
.qd-upload--only-view[data-v-987466f3] .t-upload__flow-empty,
|
|
72
|
+
.qd-upload--only-view[data-v-987466f3] .t-upload__card-mask-item-divider {
|
|
73
73
|
display: none;
|
|
74
74
|
}
|
|
75
|
-
.qd-upload--only-view[data-v-
|
|
75
|
+
.qd-upload--only-view[data-v-987466f3] .t-upload__flow-card-area {
|
|
76
76
|
border-color: var(--td-component-border);
|
|
77
77
|
}
|
|
78
|
-
.qd-upload--only-view[data-v-
|
|
79
|
-
.qd-upload--only-view[data-v-
|
|
80
|
-
.qd-upload--only-view[data-v-
|
|
78
|
+
.qd-upload--only-view[data-v-987466f3]:not(.qd-upload--btn-image-popup):not(.qd-upload--btn-file-popup) .t-upload__flow-op,
|
|
79
|
+
.qd-upload--only-view[data-v-987466f3]:not(.qd-upload--btn-image-popup):not(.qd-upload--btn-file-popup) .t-upload__trigger,
|
|
80
|
+
.qd-upload--only-view[data-v-987466f3]:not(.qd-upload--btn-image-popup):not(.qd-upload--btn-file-popup) .t-upload__flow-bottom {
|
|
81
81
|
display: none;
|
|
82
82
|
}
|
|
83
|
-
.qd-upload--only-view[data-v-
|
|
84
|
-
.qd-upload--only-view[data-v-
|
|
83
|
+
.qd-upload--only-view[data-v-987466f3]:not(.qd-upload--btn-image-popup):not(.qd-upload--btn-file-popup) .t-upload__flow-table,
|
|
84
|
+
.qd-upload--only-view[data-v-987466f3]:not(.qd-upload--btn-image-popup):not(.qd-upload--btn-file-popup) .t-upload__flow-card-area {
|
|
85
85
|
margin-top: 0;
|
|
86
86
|
}
|
|
87
|
-
.qd-upload--hide-manual-upload[data-v-
|
|
87
|
+
.qd-upload--hide-manual-upload[data-v-987466f3] .t-upload__flow-bottom {
|
|
88
88
|
display: none;
|
|
89
89
|
margin-top: 0;
|
|
90
90
|
}
|
|
91
|
-
.qd-upload--hide-progress[data-v-
|
|
92
|
-
.qd-upload--hide-progress[data-v-
|
|
91
|
+
.qd-upload--hide-progress[data-v-987466f3] .t-upload__flow-table th:last-child,
|
|
92
|
+
.qd-upload--hide-progress[data-v-987466f3] .t-upload__flow-table td:last-child {
|
|
93
93
|
display: none;
|
|
94
94
|
}
|
|
95
|
-
.qd-upload--disabled[data-v-
|
|
95
|
+
.qd-upload--disabled[data-v-987466f3] .t-upload__flow-card-area {
|
|
96
96
|
border-color: var(--td-component-border);
|
|
97
97
|
}
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-987466f3"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdUpload as default
|
|
8
8
|
};
|
|
@@ -192,8 +192,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
192
192
|
Object.assign(reSizeLimit, { message: t("sizeLimitMessage") }, sizeLimit);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
const
|
|
195
|
+
const isAcceptUnlimited = accept === "*" || accept?.length === 0;
|
|
196
|
+
const reAccept = isAcceptUnlimited ? void 0 : accept ? accept : theme.includes("image") ? qdUploadAcceptMap.image : qdUploadAcceptMap.default;
|
|
197
|
+
const acceptStr = reAccept?.join(",");
|
|
197
198
|
const reBeforeUpload = (file) => {
|
|
198
199
|
if (beforeUpload) return beforeUpload(file);
|
|
199
200
|
if (reAccept && !isTypeByName(file.name, reAccept)) {
|
|
@@ -18,7 +18,7 @@ export interface QdUploadProps<F extends UploadFile = UploadFile, OR = unknown,
|
|
|
18
18
|
convStr?: boolean | string;
|
|
19
19
|
valueMode?: 'ossId' | 'url';
|
|
20
20
|
theme?: TdUploadProps['theme'] | 'btn-file-popup' | 'btn-image-popup';
|
|
21
|
-
accept?: string[];
|
|
21
|
+
accept?: string[] | '*';
|
|
22
22
|
onlyView?: boolean;
|
|
23
23
|
showManualButton?: boolean;
|
|
24
24
|
listOssByIds?: {
|
package/dist/locales/en-US.d.ts
CHANGED
package/dist/locales/en-US.mjs
CHANGED
|
@@ -71,7 +71,8 @@ const enUS = merge(enUS$1, {
|
|
|
71
71
|
dialogTableSelect: {
|
|
72
72
|
addText: "Can't select one? Click here to add one.",
|
|
73
73
|
addConfirmText: "Confirm",
|
|
74
|
-
addCancelText: "Cancel"
|
|
74
|
+
addCancelText: "Cancel",
|
|
75
|
+
quoteText: "Quote"
|
|
75
76
|
},
|
|
76
77
|
importDialog: {
|
|
77
78
|
fileSupport: ["Supported", "formats"],
|
package/dist/locales/zh-CN.d.ts
CHANGED
package/dist/locales/zh-CN.mjs
CHANGED
package/dist/locales/zh-TW.d.ts
CHANGED
package/dist/locales/zh-TW.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qidian-vue-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "基于 TDesign 的 QiDian Vue UI 组件库",
|
|
5
5
|
"author": "qidian",
|
|
6
6
|
"license": "MIT",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"vue": "~3.5.26",
|
|
130
130
|
"vue-codemirror": "^6.1.1",
|
|
131
131
|
"vue-echarts": "^8.0.1",
|
|
132
|
-
"vue-stream-markdown": "
|
|
132
|
+
"vue-stream-markdown": "1.0.1-beta.1",
|
|
133
133
|
"qidian-shared": "1.0.76"
|
|
134
134
|
},
|
|
135
135
|
"scripts": {
|