qidian-vue-ui 1.3.1 → 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/crud/table/index.css +9 -9
- package/dist/components/crud/table/index.vue.mjs +1 -1
- package/dist/components/crud/table/index.vue2.mjs +31 -9
- 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/multi-file-viewer/index.css +3 -5
- 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,36 +1,36 @@
|
|
|
1
|
-
.qd-crud-table[data-v-
|
|
1
|
+
.qd-crud-table[data-v-deb7960f] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
|
-
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-
|
|
7
|
+
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-deb7960f] {
|
|
8
8
|
margin-top: var(--td-comp-margin-l);
|
|
9
9
|
}
|
|
10
|
-
.qd-crud-table__body[data-v-
|
|
10
|
+
.qd-crud-table__body[data-v-deb7960f] {
|
|
11
11
|
flex: auto;
|
|
12
12
|
}
|
|
13
|
-
.qd-crud-table__body[data-v-
|
|
13
|
+
.qd-crud-table__body[data-v-deb7960f] > .t-loading__parent > .t-card__body {
|
|
14
14
|
height: 100%;
|
|
15
15
|
min-height: 443px;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
19
|
-
.qd-crud-table__body[data-v-
|
|
19
|
+
.qd-crud-table__body[data-v-deb7960f] > .t-loading__parent > .t-card__body > .qd-service-table {
|
|
20
20
|
flex: 1 1 0;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
}
|
|
23
|
-
.qd-crud-table__body[data-v-
|
|
23
|
+
.qd-crud-table__body[data-v-deb7960f] > .t-loading__parent > .t-card__body > .qd-service-table .t-table__pagination {
|
|
24
24
|
padding-bottom: 0;
|
|
25
25
|
}
|
|
26
|
-
.qd-crud-table__toolbar[data-v-
|
|
26
|
+
.qd-crud-table__toolbar[data-v-deb7960f] {
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
.qd-crud-table__toolbar
|
|
30
|
+
.qd-crud-table__toolbar--has-space-item + .qd-service-table[data-v-deb7960f] {
|
|
31
31
|
margin-top: var(--td-comp-margin-l);
|
|
32
32
|
}
|
|
33
|
-
.qd-crud-table__toolbar-separator[data-v-
|
|
33
|
+
.qd-crud-table__toolbar-separator[data-v-deb7960f] {
|
|
34
34
|
display: inline-block;
|
|
35
35
|
padding-left: var(--td-comp-paddingLR-s);
|
|
36
36
|
}
|
|
@@ -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 QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-deb7960f"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdCrudTable as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, computed, reactive, useTemplateRef, ref, createElementBlock, openBlock, renderSlot, createVNode, withDirectives, createCommentVNode, createBlock, unref, mergeProps, isRef, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, vShow, createElementVNode, Fragment, withModifiers, nextTick, shallowRef, toRef, triggerRef } from "vue";
|
|
2
|
+
import { defineComponent, mergeDefaults, computed, reactive, useTemplateRef, ref, onMounted, onBeforeUnmount, createElementBlock, openBlock, renderSlot, createVNode, withDirectives, createCommentVNode, createBlock, unref, mergeProps, isRef, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, vShow, createElementVNode, normalizeClass, Fragment, withModifiers, nextTick, shallowRef, toRef, triggerRef } from "vue";
|
|
3
3
|
import { useVModels, useLocalStorage } from "../../../node_modules/.pnpm/@vueuse_core@14.2.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
4
4
|
import { MD5, easyCopy, suspectedWrapperPromise, createExposeProxy, extractSlotsWithPrefix, isEmpty, generateRandomString, to } from "qidian-shared";
|
|
5
5
|
import { SearchIcon, RefreshIcon, UnfoldLessIcon, UnfoldMoreIcon, SettingIcon, AddIcon, DeleteIcon } from "tdesign-icons-vue-next";
|
|
@@ -24,13 +24,10 @@ const _hoisted_1 = {
|
|
|
24
24
|
class: "qd-crud-table"
|
|
25
25
|
};
|
|
26
26
|
const _hoisted_2 = {
|
|
27
|
-
class: "qd-crud-table__toolbar"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_3 = {
|
|
30
27
|
key: 0,
|
|
31
28
|
class: "qd-crud-table__toolbar-separator"
|
|
32
29
|
};
|
|
33
|
-
const
|
|
30
|
+
const _hoisted_3 = {
|
|
34
31
|
key: 0,
|
|
35
32
|
class: "qd-crud-table__toolbar-separator"
|
|
36
33
|
};
|
|
@@ -569,6 +566,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
569
566
|
const searchVisible = ref(true);
|
|
570
567
|
const searchRef = useTemplateRef("search");
|
|
571
568
|
let searchMode = "refresh";
|
|
569
|
+
const toolbarRef = useTemplateRef("toolbar");
|
|
570
|
+
const toolbarHasSpaceItem = ref(false);
|
|
571
|
+
let toolbarObserver = null;
|
|
572
572
|
function handleSearch() {
|
|
573
573
|
searchMode = "changeCurrent";
|
|
574
574
|
}
|
|
@@ -966,6 +966,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
966
966
|
}
|
|
967
967
|
return false;
|
|
968
968
|
}
|
|
969
|
+
function syncToolbarHasSpaceItem() {
|
|
970
|
+
toolbarHasSpaceItem.value = !!toolbarRef.value?.querySelector(".t-space-item");
|
|
971
|
+
}
|
|
972
|
+
onMounted(() => {
|
|
973
|
+
syncToolbarHasSpaceItem();
|
|
974
|
+
const toolbarEl = toolbarRef.value;
|
|
975
|
+
if (!toolbarEl) return;
|
|
976
|
+
toolbarObserver = new MutationObserver(syncToolbarHasSpaceItem);
|
|
977
|
+
toolbarObserver.observe(toolbarEl, {
|
|
978
|
+
childList: true,
|
|
979
|
+
subtree: true
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
onBeforeUnmount(() => {
|
|
983
|
+
toolbarObserver?.disconnect();
|
|
984
|
+
toolbarObserver = null;
|
|
985
|
+
});
|
|
969
986
|
__expose(createExposeProxy({}, tableRef));
|
|
970
987
|
return (_ctx, _cache) => {
|
|
971
988
|
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "header", {}, () => [reProps.value.searchOptions?.items?.length ? withDirectives((openBlock(), createBlock(unref(QdCrudSearch), mergeProps({
|
|
@@ -988,7 +1005,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
988
1005
|
})]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true)], true), createVNode(unref(QdCard), {
|
|
989
1006
|
class: "qd-crud-table__body"
|
|
990
1007
|
}, {
|
|
991
|
-
default: withCtx(() => [createElementVNode("div",
|
|
1008
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1009
|
+
ref: "toolbar",
|
|
1010
|
+
class: normalizeClass(["qd-crud-table__toolbar", {
|
|
1011
|
+
"qd-crud-table__toolbar--has-space-item": toolbarHasSpaceItem.value
|
|
1012
|
+
}])
|
|
1013
|
+
}, [createVNode(unref(Space), {
|
|
992
1014
|
align: "center",
|
|
993
1015
|
size: 0
|
|
994
1016
|
}, {
|
|
@@ -997,7 +1019,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
997
1019
|
key: item.uid || index
|
|
998
1020
|
}, [getActionSeparator(item, {
|
|
999
1021
|
index
|
|
1000
|
-
}) ? (openBlock(), createElementBlock("span",
|
|
1022
|
+
}) ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("", true), withDirectives(createVNode(unref(_sfc_main$1), {
|
|
1001
1023
|
"fn-inject-ctx": "",
|
|
1002
1024
|
context: getConfigRendererCtx(item),
|
|
1003
1025
|
config: {
|
|
@@ -1023,7 +1045,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1023
1045
|
}, [getActionSeparator(item, {
|
|
1024
1046
|
index,
|
|
1025
1047
|
mapKey: "tool"
|
|
1026
|
-
}) ? (openBlock(), createElementBlock("span",
|
|
1048
|
+
}) ? (openBlock(), createElementBlock("span", _hoisted_3)) : createCommentVNode("", true), createVNode(unref(Tooltip), {
|
|
1027
1049
|
content: item.content,
|
|
1028
1050
|
disabled: !item.content
|
|
1029
1051
|
}, {
|
|
@@ -1116,7 +1138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1116
1138
|
_: 1
|
|
1117
1139
|
}, 8, ["content"])], 64)) : createCommentVNode("", true)], true)]),
|
|
1118
1140
|
_: 3
|
|
1119
|
-
})]), createVNode(unref(QdServiceTable), mergeProps({
|
|
1141
|
+
})], 2), createVNode(unref(QdServiceTable), mergeProps({
|
|
1120
1142
|
ref: "table",
|
|
1121
1143
|
data: unref(data),
|
|
1122
1144
|
"onUpdate:data": _cache[2] || (_cache[2] = ($event) => isRef(data) ? data.value = $event : null),
|
|
@@ -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%)",
|
|
@@ -9,13 +9,11 @@
|
|
|
9
9
|
border-bottom: 1px solid var(--td-component-stroke);
|
|
10
10
|
}
|
|
11
11
|
.qd-multi-file-viewer .t-dialog .t-dialog__body,
|
|
12
|
-
.qd-multi-file-viewer
|
|
13
|
-
.qd-multi-file-viewer .t-dialog .t-dialog:has(.t-dialog__footer) .t-dialog__body,
|
|
14
|
-
.qd-multi-file-viewer .qd-dialog .t-dialog:has(.t-dialog__footer) .t-dialog__body,
|
|
12
|
+
.qd-multi-file-viewer.qd-dialog .t-dialog__body,
|
|
15
13
|
.qd-multi-file-viewer .t-dialog .t-dialog__body--fullscreen,
|
|
16
|
-
.qd-multi-file-viewer
|
|
14
|
+
.qd-multi-file-viewer.qd-dialog .t-dialog__body--fullscreen,
|
|
17
15
|
.qd-multi-file-viewer .t-dialog .t-dialog__body--fullscreen--without-footer,
|
|
18
|
-
.qd-multi-file-viewer
|
|
16
|
+
.qd-multi-file-viewer.qd-dialog .t-dialog__body--fullscreen--without-footer {
|
|
19
17
|
padding: 0 !important;
|
|
20
18
|
}
|
|
21
19
|
.qd-multi-file-viewer__body {
|
|
@@ -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": {
|