qidian-vue-ui 1.0.89 → 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/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-B06bZxl_.mjs → en-US-BSS1X-7z.mjs} +2 -2
- package/dist/{en-US-B06bZxl_.mjs.map → en-US-BSS1X-7z.mjs.map} +1 -1
- package/dist/{en-US-DnuIFYoC.js → en-US-DEgpJcFC.js} +2 -2
- package/dist/{en-US-DnuIFYoC.js.map → en-US-DEgpJcFC.js.map} +1 -1
- package/dist/{index-Bs_BBkKT.mjs → index-C3Sdw0Yn.mjs} +29 -21
- package/dist/{index-Bs_BBkKT.mjs.map → index-C3Sdw0Yn.mjs.map} +1 -1
- package/dist/{index-DZxi0PUr.js → index-sjLYurym.js} +19 -11
- package/dist/{index-DZxi0PUr.js.map → index-sjLYurym.js.map} +1 -1
- 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-DtCk016l.mjs → zh-TW-CAPe-kl5.mjs} +2 -2
- package/dist/{zh-TW-DtCk016l.mjs.map → zh-TW-CAPe-kl5.mjs.map} +1 -1
- package/dist/{zh-TW-CpEagq9x.js → zh-TW-JkTp2ish.js} +2 -2
- package/dist/{zh-TW-CpEagq9x.js.map → zh-TW-JkTp2ish.js.map} +1 -1
- package/package.json +1 -1
|
@@ -12762,8 +12762,8 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12762
12762
|
vue.watchEffect(async () => {
|
|
12763
12763
|
const localeMap = {
|
|
12764
12764
|
"zh-CN": () => Promise.resolve().then(() => zhCN$1),
|
|
12765
|
-
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-
|
|
12766
|
-
"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"))
|
|
12767
12767
|
};
|
|
12768
12768
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12769
12769
|
const [err, res] = await to(
|
|
@@ -28267,7 +28267,7 @@ class NodeFilterFactory extends BaseFilterFactory {
|
|
|
28267
28267
|
}
|
|
28268
28268
|
class NodeCanvasFactory extends BaseCanvasFactory {
|
|
28269
28269
|
_createCanvas(width, height) {
|
|
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-
|
|
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);
|
|
28271
28271
|
const canvas = require$1("@napi-rs/canvas");
|
|
28272
28272
|
return canvas.createCanvas(width, height);
|
|
28273
28273
|
}
|
|
@@ -54760,9 +54760,10 @@ const qdUploadProps = {
|
|
|
54760
54760
|
del: void 0
|
|
54761
54761
|
};
|
|
54762
54762
|
const qdUploadSizeLimit = {
|
|
54763
|
+
size: 5,
|
|
54763
54764
|
unit: "MB"
|
|
54764
54765
|
};
|
|
54765
|
-
const
|
|
54766
|
+
const qdUploadAcceptMap = {
|
|
54766
54767
|
default: [
|
|
54767
54768
|
".doc",
|
|
54768
54769
|
".docx",
|
|
@@ -54802,6 +54803,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54802
54803
|
__name: "index",
|
|
54803
54804
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
54804
54805
|
modelValue: {},
|
|
54806
|
+
action: { type: [String, Function] },
|
|
54807
|
+
bucketConfigKey: {},
|
|
54805
54808
|
convStr: { type: [Boolean, String] },
|
|
54806
54809
|
valueMode: {},
|
|
54807
54810
|
theme: {},
|
|
@@ -54811,7 +54814,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54811
54814
|
listOssByUrls: {},
|
|
54812
54815
|
del: {},
|
|
54813
54816
|
abridgeName: {},
|
|
54814
|
-
action: {},
|
|
54815
54817
|
allowUploadDuplicateFile: { type: Boolean },
|
|
54816
54818
|
autoUpload: { type: Boolean },
|
|
54817
54819
|
beforeAllFilesUpload: { type: Function },
|
|
@@ -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,10 +55027,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55019
55027
|
draggable: onlyView ? false : draggable,
|
|
55020
55028
|
...uploadOptions
|
|
55021
55029
|
};
|
|
55022
|
-
const globalUploadPropsV = globalUploadProps.value;
|
|
55023
55030
|
if (globalUploadPropsV) {
|
|
55024
55031
|
Object.entries(globalUploadPropsV).forEach(([key, value]) => {
|
|
55025
|
-
if (isEmpty(value)) return;
|
|
55032
|
+
if (["action"].includes(key) || isEmpty(value)) return;
|
|
55026
55033
|
reUploadOptions[key] = value;
|
|
55027
55034
|
});
|
|
55028
55035
|
}
|
|
@@ -55292,7 +55299,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55292
55299
|
};
|
|
55293
55300
|
}
|
|
55294
55301
|
});
|
|
55295
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
55302
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f0674a59"]]);
|
|
55296
55303
|
exports.PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE;
|
|
55297
55304
|
exports.PROVIDE_GRID_ITEM_PROPS_KEY = PROVIDE_GRID_ITEM_PROPS_KEY;
|
|
55298
55305
|
exports.PROVIDE_GRID_WIDTH_KEY = PROVIDE_GRID_WIDTH_KEY;
|
|
@@ -55329,6 +55336,7 @@ exports.qdAsyncCompute = qdAsyncCompute;
|
|
|
55329
55336
|
exports.qdCompute = qdCompute;
|
|
55330
55337
|
exports.qdFormGrid = qdFormGrid;
|
|
55331
55338
|
exports.qdFormGutter = qdFormGutter;
|
|
55339
|
+
exports.qdUploadAcceptMap = qdUploadAcceptMap;
|
|
55332
55340
|
exports.qdUseComputeValue = qdUseComputeValue;
|
|
55333
55341
|
exports.radioGroup = radioGroup;
|
|
55334
55342
|
exports.resolveVModelBinding = resolveVModelBinding;
|
|
@@ -55342,4 +55350,4 @@ exports.useDictDynamic = useDictDynamic;
|
|
|
55342
55350
|
exports.useDisabled = useDisabled;
|
|
55343
55351
|
exports.useModal = useModal;
|
|
55344
55352
|
exports.useReadonly = useReadonly;
|
|
55345
|
-
//# sourceMappingURL=index-
|
|
55353
|
+
//# sourceMappingURL=index-sjLYurym.js.map
|