knt-shared 1.8.4 → 1.8.5
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance, inject, defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, createVNode, unref, createBlock, reactive, Fragment, renderList, withModifiers, ref, watch, onMounted, onUnmounted, withDirectives, vModelText, vShow, toDisplayString, withCtx, createTextVNode,
|
|
1
|
+
import { getCurrentInstance, inject, defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, useCssVars, createCommentVNode, createVNode, unref, createBlock, reactive, Fragment, renderList, withModifiers, ref, watch, onMounted, onUnmounted, withDirectives, vModelText, vShow, toDisplayString, withCtx, createTextVNode, nextTick, renderSlot, mergeProps, createSlots, onBeforeUnmount, toRef, normalizeProps, guardReactiveProps, h, resolveDynamicComponent, isVNode, useSlots, Teleport, createApp } from "vue";
|
|
2
2
|
import ArcoVue, { Progress, Spin, Dropdown, Doption, Modal, Upload, Button, Image as Image$1, Message, Select, Cascader, Transfer, Mention, Rate, Slider, Switch, RangePicker, TimePicker, DatePicker, TreeSelect, CheckboxGroup, Checkbox, RadioGroup, Radio, AutoComplete, Textarea, InputPassword, InputNumber, Input, ImagePreviewGroup, Form, Row, Col, FormItem, Tooltip, Space, Divider, Popover, Table, Popconfirm, Link, Descriptions, DescriptionsItem } from "@arco-design/web-vue";
|
|
3
3
|
const configProviderInjectionKey = Symbol("ArcoConfigProvider");
|
|
4
4
|
const CLASS_PREFIX = "arco";
|
|
@@ -2303,12 +2303,24 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2303
2303
|
},
|
|
2304
2304
|
emits: ["dragstart", "dragend", "preview", "remove"],
|
|
2305
2305
|
setup(__props, { emit: __emit }) {
|
|
2306
|
+
useCssVars((_ctx) => ({
|
|
2307
|
+
"v6adf0568": _ctx.cardSize + 10 + "px"
|
|
2308
|
+
}));
|
|
2306
2309
|
const props = __props;
|
|
2307
2310
|
const emit = __emit;
|
|
2308
2311
|
const isVideoFile = (file) => {
|
|
2309
2312
|
if (!file.url && !file.name) return false;
|
|
2310
2313
|
const fileName = file.name || "";
|
|
2311
|
-
const videoExtensions = [
|
|
2314
|
+
const videoExtensions = [
|
|
2315
|
+
".mp4",
|
|
2316
|
+
".avi",
|
|
2317
|
+
".mov",
|
|
2318
|
+
".wmv",
|
|
2319
|
+
".flv",
|
|
2320
|
+
".mkv",
|
|
2321
|
+
".webm",
|
|
2322
|
+
".m4v"
|
|
2323
|
+
];
|
|
2312
2324
|
return videoExtensions.some((ext) => fileName.toLowerCase().endsWith(ext));
|
|
2313
2325
|
};
|
|
2314
2326
|
const handleDragStart = (event) => {
|
|
@@ -2386,7 +2398,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2386
2398
|
}
|
|
2387
2399
|
return target;
|
|
2388
2400
|
};
|
|
2389
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
2401
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-c8377d24"]]);
|
|
2390
2402
|
const _hoisted_1$b = { class: "sortable-file-list" };
|
|
2391
2403
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2392
2404
|
...{
|