knt-shared 1.10.8 → 1.10.9
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/index.esm.js
CHANGED
|
@@ -2881,7 +2881,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2881
2881
|
};
|
|
2882
2882
|
}
|
|
2883
2883
|
});
|
|
2884
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
2884
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7b674f81"]]);
|
|
2885
2885
|
const _hoisted_1$9 = { class: "basic-upload" };
|
|
2886
2886
|
const _hoisted_2$6 = {
|
|
2887
2887
|
key: 0,
|
|
@@ -2972,7 +2972,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2972
2972
|
emits: ["register", "update:modelValue", "change", "handleSuccess", "handleError", "progress", "remove", "preview", "exceed", "sortChange"],
|
|
2973
2973
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2974
2974
|
useCssVars((_ctx) => ({
|
|
2975
|
-
"
|
|
2975
|
+
"v5d214bdf": cardSizeValue.value
|
|
2976
2976
|
}));
|
|
2977
2977
|
const MAX_SIZE_UNIT_BYTES = {
|
|
2978
2978
|
B: 1,
|
|
@@ -3256,8 +3256,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3256
3256
|
const addVideoFileClass = () => {
|
|
3257
3257
|
nextTick(() => {
|
|
3258
3258
|
var _a;
|
|
3259
|
-
const root = (
|
|
3260
|
-
const scope = root
|
|
3259
|
+
const root = (_a = uploadRef.value) == null ? void 0 : _a.$el;
|
|
3260
|
+
const scope = root instanceof Element ? root : document;
|
|
3261
3261
|
const uploadItems = scope.querySelectorAll(".arco-upload-list-picture");
|
|
3262
3262
|
uploadItems.forEach((item) => {
|
|
3263
3263
|
const img = item.querySelector("img");
|
|
@@ -3661,7 +3661,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3661
3661
|
};
|
|
3662
3662
|
}
|
|
3663
3663
|
});
|
|
3664
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
3664
|
+
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-627de95c"]]);
|
|
3665
3665
|
function useUpload(props) {
|
|
3666
3666
|
const uploadRef = ref(null);
|
|
3667
3667
|
const fileListRef = ref((props == null ? void 0 : props.defaultFileList) || []);
|