knt-shared 1.8.4 → 1.8.6
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
|
@@ -2308,7 +2308,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2308
2308
|
const isVideoFile = (file) => {
|
|
2309
2309
|
if (!file.url && !file.name) return false;
|
|
2310
2310
|
const fileName = file.name || "";
|
|
2311
|
-
const videoExtensions = [
|
|
2311
|
+
const videoExtensions = [
|
|
2312
|
+
".mp4",
|
|
2313
|
+
".avi",
|
|
2314
|
+
".mov",
|
|
2315
|
+
".wmv",
|
|
2316
|
+
".flv",
|
|
2317
|
+
".mkv",
|
|
2318
|
+
".webm",
|
|
2319
|
+
".m4v"
|
|
2320
|
+
];
|
|
2312
2321
|
return videoExtensions.some((ext) => fileName.toLowerCase().endsWith(ext));
|
|
2313
2322
|
};
|
|
2314
2323
|
const handleDragStart = (event) => {
|
|
@@ -2342,7 +2351,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2342
2351
|
draggable: !__props.disabled,
|
|
2343
2352
|
style: normalizeStyle({
|
|
2344
2353
|
width: `${__props.cardSize}px`,
|
|
2345
|
-
height: `${__props.cardSize}px
|
|
2354
|
+
height: `${__props.cardSize}px`,
|
|
2355
|
+
"--indicator-height": `${__props.cardSize + 10}px`
|
|
2346
2356
|
}),
|
|
2347
2357
|
onDragstart: handleDragStart,
|
|
2348
2358
|
onDragend: handleDragEnd
|
|
@@ -2386,7 +2396,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2386
2396
|
}
|
|
2387
2397
|
return target;
|
|
2388
2398
|
};
|
|
2389
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
2399
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b7fe69e3"]]);
|
|
2390
2400
|
const _hoisted_1$b = { class: "sortable-file-list" };
|
|
2391
2401
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2392
2402
|
...{
|