qidian-vue-ui 1.0.88 → 1.0.90
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/config.d.ts +4 -5
- package/dist/components/config-provider/index.d.ts +2 -2
- package/dist/components/upload/config.d.ts +1 -1
- package/dist/components/upload/index.d.ts +1 -0
- package/dist/components/upload/props.d.ts +1 -0
- package/dist/components/upload/types.d.ts +3 -1
- package/dist/{en-US-DIZ_8gWs.mjs → en-US-BSS1X-7z.mjs} +2 -2
- package/dist/{en-US-DIZ_8gWs.mjs.map → en-US-BSS1X-7z.mjs.map} +1 -1
- package/dist/{en-US-BbEMmlGf.js → en-US-DEgpJcFC.js} +2 -2
- package/dist/{en-US-BbEMmlGf.js.map → en-US-DEgpJcFC.js.map} +1 -1
- package/dist/{index-DyhSKQs7.mjs → index-C3Sdw0Yn.mjs} +45 -36
- package/dist/index-C3Sdw0Yn.mjs.map +1 -0
- package/dist/{index-YsJcyYUi.js → index-sjLYurym.js} +35 -26
- package/dist/index-sjLYurym.js.map +1 -0
- package/dist/qidian-vue-ui.css +8 -8
- package/dist/qidian-vue-ui.js +2 -1
- package/dist/qidian-vue-ui.js.map +1 -1
- package/dist/qidian-vue-ui.mjs +13 -12
- package/dist/{zh-TW-C5TIFP-C.mjs → zh-TW-CAPe-kl5.mjs} +2 -2
- package/dist/{zh-TW-C5TIFP-C.mjs.map → zh-TW-CAPe-kl5.mjs.map} +1 -1
- package/dist/{zh-TW-CoMdJzvj.js → zh-TW-JkTp2ish.js} +2 -2
- package/dist/{zh-TW-CoMdJzvj.js.map → zh-TW-JkTp2ish.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DyhSKQs7.mjs.map +0 -1
- package/dist/index-YsJcyYUi.js.map +0 -1
|
@@ -12741,9 +12741,12 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12741
12741
|
...props.globalConfig
|
|
12742
12742
|
};
|
|
12743
12743
|
});
|
|
12744
|
-
vue.
|
|
12745
|
-
vue.
|
|
12746
|
-
vue.
|
|
12744
|
+
const user = vue.computed(() => props.user);
|
|
12745
|
+
const dict = vue.computed(() => props.dict);
|
|
12746
|
+
const upload = vue.computed(() => props.upload);
|
|
12747
|
+
vue.provide(PROVIDE_USER, user);
|
|
12748
|
+
vue.provide(PROVIDE_DICT, dict);
|
|
12749
|
+
vue.provide(PROVIDE_UPLOAD, upload);
|
|
12747
12750
|
vue.provide(PROVIDE_GLOBAL_CONFIG, mergedGlobalConfig);
|
|
12748
12751
|
vue.watch(
|
|
12749
12752
|
() => [props.user, props.dict, props.agentChat],
|
|
@@ -12759,8 +12762,8 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12759
12762
|
vue.watchEffect(async () => {
|
|
12760
12763
|
const localeMap = {
|
|
12761
12764
|
"zh-CN": () => Promise.resolve().then(() => zhCN$1),
|
|
12762
|
-
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-
|
|
12763
|
-
"en-US": () => Promise.resolve().then(() => require("./en-US-
|
|
12765
|
+
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-JkTp2ish.js")),
|
|
12766
|
+
"en-US": () => Promise.resolve().then(() => require("./en-US-DEgpJcFC.js"))
|
|
12764
12767
|
};
|
|
12765
12768
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12766
12769
|
const [err, res] = await to(
|
|
@@ -12769,13 +12772,7 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12769
12772
|
if (err) return;
|
|
12770
12773
|
qdGlobalConfig.value = res.default;
|
|
12771
12774
|
});
|
|
12772
|
-
return () => vue.h(
|
|
12773
|
-
tdesignVueNext.ConfigProvider,
|
|
12774
|
-
{
|
|
12775
|
-
globalConfig: mergedGlobalConfig.value
|
|
12776
|
-
},
|
|
12777
|
-
slots.default
|
|
12778
|
-
);
|
|
12775
|
+
return () => vue.h(tdesignVueNext.ConfigProvider, { globalConfig: mergedGlobalConfig.value }, slots.default);
|
|
12779
12776
|
}
|
|
12780
12777
|
});
|
|
12781
12778
|
const watchHandleMap = /* @__PURE__ */ new Map();
|
|
@@ -28270,7 +28267,7 @@ class NodeFilterFactory extends BaseFilterFactory {
|
|
|
28270
28267
|
}
|
|
28271
28268
|
class NodeCanvasFactory extends BaseCanvasFactory {
|
|
28272
28269
|
_createCanvas(width, height) {
|
|
28273
|
-
const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-
|
|
28270
|
+
const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-sjLYurym.js", document.baseURI).href);
|
|
28274
28271
|
const canvas = require$1("@napi-rs/canvas");
|
|
28275
28272
|
return canvas.createCanvas(width, height);
|
|
28276
28273
|
}
|
|
@@ -54763,9 +54760,10 @@ const qdUploadProps = {
|
|
|
54763
54760
|
del: void 0
|
|
54764
54761
|
};
|
|
54765
54762
|
const qdUploadSizeLimit = {
|
|
54763
|
+
size: 5,
|
|
54766
54764
|
unit: "MB"
|
|
54767
54765
|
};
|
|
54768
|
-
const
|
|
54766
|
+
const qdUploadAcceptMap = {
|
|
54769
54767
|
default: [
|
|
54770
54768
|
".doc",
|
|
54771
54769
|
".docx",
|
|
@@ -54805,6 +54803,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54805
54803
|
__name: "index",
|
|
54806
54804
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
54807
54805
|
modelValue: {},
|
|
54806
|
+
action: { type: [String, Function] },
|
|
54807
|
+
bucketConfigKey: {},
|
|
54808
54808
|
convStr: { type: [Boolean, String] },
|
|
54809
54809
|
valueMode: {},
|
|
54810
54810
|
theme: {},
|
|
@@ -54814,7 +54814,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54814
54814
|
listOssByUrls: {},
|
|
54815
54815
|
del: {},
|
|
54816
54816
|
abridgeName: {},
|
|
54817
|
-
action: {},
|
|
54818
54817
|
allowUploadDuplicateFile: { type: Boolean },
|
|
54819
54818
|
autoUpload: { type: Boolean },
|
|
54820
54819
|
beforeAllFilesUpload: { type: Function },
|
|
@@ -54908,7 +54907,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54908
54907
|
const { timer: uploadTimer, clearTimer: clearUploadTimer } = useTimer("interval");
|
|
54909
54908
|
const delList = vue.ref([]);
|
|
54910
54909
|
const popupFileList = vue.computed(() => [...fileList.value]);
|
|
54911
|
-
const globalUploadProps = vue.inject(
|
|
54910
|
+
const globalUploadProps = vue.inject(
|
|
54911
|
+
PROVIDE_UPLOAD,
|
|
54912
|
+
vue.computed(() => void 0)
|
|
54913
|
+
);
|
|
54912
54914
|
const reProps = vue.computed(() => {
|
|
54913
54915
|
const {
|
|
54914
54916
|
modelValue: modelValue2,
|
|
@@ -54929,12 +54931,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54929
54931
|
listOssByIds,
|
|
54930
54932
|
listOssByUrls,
|
|
54931
54933
|
del,
|
|
54934
|
+
action,
|
|
54935
|
+
bucketConfigKey,
|
|
54932
54936
|
showImageFileName,
|
|
54933
54937
|
showUploadProgress,
|
|
54934
54938
|
draggable,
|
|
54935
54939
|
...uploadOptions
|
|
54936
54940
|
} = props;
|
|
54937
|
-
const
|
|
54941
|
+
const globalUploadPropsV = globalUploadProps.value;
|
|
54942
|
+
const reAction = action || globalUploadPropsV?.action;
|
|
54943
|
+
const actionUrl = typeof reAction === "string" ? reAction : reAction?.(bucketConfigKey);
|
|
54944
|
+
const reSizeLimit = easyCopy(qdUploadSizeLimit);
|
|
54938
54945
|
if (reSizeLimit) {
|
|
54939
54946
|
if (typeof sizeLimit === "number") {
|
|
54940
54947
|
reSizeLimit.size = sizeLimit;
|
|
@@ -54943,7 +54950,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54943
54950
|
Object.assign(reSizeLimit, { message: t("sizeLimitMessage") }, sizeLimit);
|
|
54944
54951
|
}
|
|
54945
54952
|
}
|
|
54946
|
-
const acceptStr = (accept ? accept : theme.includes("image") ?
|
|
54953
|
+
const acceptStr = (accept ? accept : theme.includes("image") ? qdUploadAcceptMap.image : qdUploadAcceptMap.default).join(",");
|
|
54947
54954
|
const reBeforeUpload = (file) => {
|
|
54948
54955
|
if (beforeUpload) return beforeUpload(file);
|
|
54949
54956
|
if (accept && !isTypeByName(file.name, accept)) {
|
|
@@ -55004,6 +55011,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55004
55011
|
fileList.value.splice(context.index, 1);
|
|
55005
55012
|
};
|
|
55006
55013
|
const reUploadOptions = {
|
|
55014
|
+
action: actionUrl,
|
|
55007
55015
|
theme: ["custom", "file", "file-input", "file-flow", "image", "image-flow"].includes(theme) ? theme : "custom",
|
|
55008
55016
|
sizeLimit: reSizeLimit,
|
|
55009
55017
|
accept: acceptStr,
|
|
@@ -55019,9 +55027,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55019
55027
|
draggable: onlyView ? false : draggable,
|
|
55020
55028
|
...uploadOptions
|
|
55021
55029
|
};
|
|
55022
|
-
if (
|
|
55023
|
-
Object.entries(
|
|
55024
|
-
if (isEmpty(value)) return;
|
|
55030
|
+
if (globalUploadPropsV) {
|
|
55031
|
+
Object.entries(globalUploadPropsV).forEach(([key, value]) => {
|
|
55032
|
+
if (["action"].includes(key) || isEmpty(value)) return;
|
|
55025
55033
|
reUploadOptions[key] = value;
|
|
55026
55034
|
});
|
|
55027
55035
|
}
|
|
@@ -55033,14 +55041,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55033
55041
|
handlePopupRemove,
|
|
55034
55042
|
onlyView,
|
|
55035
55043
|
listOssByIds: {
|
|
55036
|
-
...
|
|
55044
|
+
...globalUploadPropsV?.listOssByIds,
|
|
55037
55045
|
...listOssByIds
|
|
55038
55046
|
},
|
|
55039
55047
|
listOssByUrls: {
|
|
55040
|
-
...
|
|
55048
|
+
...globalUploadPropsV?.listOssByUrls,
|
|
55041
55049
|
...listOssByUrls
|
|
55042
55050
|
},
|
|
55043
|
-
del: { ...
|
|
55051
|
+
del: { ...globalUploadPropsV?.del, ...del },
|
|
55044
55052
|
uploadOptions: reUploadOptions,
|
|
55045
55053
|
models: {
|
|
55046
55054
|
modelValue: modelValue2,
|
|
@@ -55291,7 +55299,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55291
55299
|
};
|
|
55292
55300
|
}
|
|
55293
55301
|
});
|
|
55294
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
55302
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f0674a59"]]);
|
|
55295
55303
|
exports.PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE;
|
|
55296
55304
|
exports.PROVIDE_GRID_ITEM_PROPS_KEY = PROVIDE_GRID_ITEM_PROPS_KEY;
|
|
55297
55305
|
exports.PROVIDE_GRID_WIDTH_KEY = PROVIDE_GRID_WIDTH_KEY;
|
|
@@ -55328,6 +55336,7 @@ exports.qdAsyncCompute = qdAsyncCompute;
|
|
|
55328
55336
|
exports.qdCompute = qdCompute;
|
|
55329
55337
|
exports.qdFormGrid = qdFormGrid;
|
|
55330
55338
|
exports.qdFormGutter = qdFormGutter;
|
|
55339
|
+
exports.qdUploadAcceptMap = qdUploadAcceptMap;
|
|
55331
55340
|
exports.qdUseComputeValue = qdUseComputeValue;
|
|
55332
55341
|
exports.radioGroup = radioGroup;
|
|
55333
55342
|
exports.resolveVModelBinding = resolveVModelBinding;
|
|
@@ -55341,4 +55350,4 @@ exports.useDictDynamic = useDictDynamic;
|
|
|
55341
55350
|
exports.useDisabled = useDisabled;
|
|
55342
55351
|
exports.useModal = useModal;
|
|
55343
55352
|
exports.useReadonly = useReadonly;
|
|
55344
|
-
//# sourceMappingURL=index-
|
|
55353
|
+
//# sourceMappingURL=index-sjLYurym.js.map
|