knt-shared 1.8.10 → 1.9.1
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/Drawer/BasicDrawer.vue.d.ts +122 -0
- package/dist/components/Drawer/BasicDrawer.vue.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +5 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Drawer/types.d.ts +177 -0
- package/dist/components/Drawer/types.d.ts.map +1 -0
- package/dist/components/Drawer/useDrawer.d.ts +10 -0
- package/dist/components/Drawer/useDrawer.d.ts.map +1 -0
- package/dist/components/Drawer/useDrawerInner.d.ts +10 -0
- package/dist/components/Drawer/useDrawerInner.d.ts.map +1 -0
- package/dist/components/Form/componentMap.d.ts +33 -33
- package/dist/components/Form/components/ApiCascader.vue.d.ts +1 -1
- package/dist/components/Form/components/ApiCascader.vue.d.ts.map +1 -1
- package/dist/components/Form/components/ApiSelect.vue.d.ts +1 -1
- package/dist/components/Form/components/ApiSelect.vue.d.ts.map +1 -1
- package/dist/components/Image/BasicImage.vue.d.ts +1 -1
- package/dist/components/Loading/BasicLoading.vue.d.ts +1 -1
- package/dist/components/Modal/BasicModal.vue.d.ts +9 -9
- package/dist/components/Table/BasicTable.vue.d.ts.map +1 -1
- package/dist/components/Table/components/componentMap.d.ts +33 -33
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Upload/BasicUpload.vue.d.ts +1 -1
- package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs.js +646 -118
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +646 -118
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +19 -9
- package/package.json +70 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
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, Drawer, Descriptions, DescriptionsItem } from "@arco-design/web-vue";
|
|
1
2
|
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, useCssVars, nextTick, renderSlot, mergeProps, createSlots, onBeforeUnmount, toRef, normalizeProps, guardReactiveProps, h, resolveDynamicComponent, isVNode, useSlots, Teleport, createApp } from "vue";
|
|
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";
|
|
5
5
|
const GLOBAL_CONFIG_NAME = "$arco";
|
|
@@ -22,7 +22,7 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
22
22
|
}
|
|
23
23
|
return sfc;
|
|
24
24
|
};
|
|
25
|
-
const _sfc_main$
|
|
25
|
+
const _sfc_main$z = defineComponent({
|
|
26
26
|
name: "IconPlus",
|
|
27
27
|
props: {
|
|
28
28
|
size: {
|
|
@@ -75,7 +75,7 @@ const _sfc_main$y = defineComponent({
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
const _hoisted_1$
|
|
78
|
+
const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
79
79
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80
80
|
return openBlock(), createElementBlock("svg", {
|
|
81
81
|
viewBox: "0 0 48 48",
|
|
@@ -90,9 +90,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
90
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
91
91
|
}, _cache[1] || (_cache[1] = [
|
|
92
92
|
createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
|
|
93
|
-
]), 14, _hoisted_1$
|
|
93
|
+
]), 14, _hoisted_1$u);
|
|
94
94
|
}
|
|
95
|
-
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
95
|
+
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$g]]);
|
|
96
96
|
const IconPlus = Object.assign(_IconPlus, {
|
|
97
97
|
install: (app, options) => {
|
|
98
98
|
var _a;
|
|
@@ -100,7 +100,7 @@ const IconPlus = Object.assign(_IconPlus, {
|
|
|
100
100
|
app.component(iconPrefix + _IconPlus.name, _IconPlus);
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
const _sfc_main$
|
|
103
|
+
const _sfc_main$y = defineComponent({
|
|
104
104
|
name: "IconQuestionCircle",
|
|
105
105
|
props: {
|
|
106
106
|
size: {
|
|
@@ -153,7 +153,7 @@ const _sfc_main$x = defineComponent({
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
|
-
const _hoisted_1$
|
|
156
|
+
const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
157
157
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
158
158
|
return openBlock(), createElementBlock("svg", {
|
|
159
159
|
viewBox: "0 0 48 48",
|
|
@@ -169,9 +169,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
169
|
}, _cache[1] || (_cache[1] = [
|
|
170
170
|
createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
|
|
171
171
|
createElementVNode("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
|
|
172
|
-
]), 14, _hoisted_1$
|
|
172
|
+
]), 14, _hoisted_1$t);
|
|
173
173
|
}
|
|
174
|
-
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
174
|
+
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$f]]);
|
|
175
175
|
const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
176
176
|
install: (app, options) => {
|
|
177
177
|
var _a;
|
|
@@ -179,7 +179,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
|
179
179
|
app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
|
-
const _sfc_main$
|
|
182
|
+
const _sfc_main$x = defineComponent({
|
|
183
183
|
name: "IconEye",
|
|
184
184
|
props: {
|
|
185
185
|
size: {
|
|
@@ -232,7 +232,7 @@ const _sfc_main$w = defineComponent({
|
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
const _hoisted_1$
|
|
235
|
+
const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
236
236
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
237
237
|
return openBlock(), createElementBlock("svg", {
|
|
238
238
|
viewBox: "0 0 48 48",
|
|
@@ -251,9 +251,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
251
251
|
d: "M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"
|
|
252
252
|
}, null, -1),
|
|
253
253
|
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
|
254
|
-
]), 14, _hoisted_1$
|
|
254
|
+
]), 14, _hoisted_1$s);
|
|
255
255
|
}
|
|
256
|
-
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
256
|
+
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$e]]);
|
|
257
257
|
const IconEye = Object.assign(_IconEye, {
|
|
258
258
|
install: (app, options) => {
|
|
259
259
|
var _a;
|
|
@@ -261,7 +261,7 @@ const IconEye = Object.assign(_IconEye, {
|
|
|
261
261
|
app.component(iconPrefix + _IconEye.name, _IconEye);
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
const _sfc_main$
|
|
264
|
+
const _sfc_main$w = defineComponent({
|
|
265
265
|
name: "IconMore",
|
|
266
266
|
props: {
|
|
267
267
|
size: {
|
|
@@ -314,7 +314,7 @@ const _sfc_main$v = defineComponent({
|
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
|
-
const _hoisted_1$
|
|
317
|
+
const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
318
318
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
319
319
|
return openBlock(), createElementBlock("svg", {
|
|
320
320
|
viewBox: "0 0 48 48",
|
|
@@ -334,9 +334,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
334
334
|
stroke: "none"
|
|
335
335
|
}, null, -1),
|
|
336
336
|
createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
|
|
337
|
-
]), 14, _hoisted_1$
|
|
337
|
+
]), 14, _hoisted_1$r);
|
|
338
338
|
}
|
|
339
|
-
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
339
|
+
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$d]]);
|
|
340
340
|
const IconMore = Object.assign(_IconMore, {
|
|
341
341
|
install: (app, options) => {
|
|
342
342
|
var _a;
|
|
@@ -344,7 +344,7 @@ const IconMore = Object.assign(_IconMore, {
|
|
|
344
344
|
app.component(iconPrefix + _IconMore.name, _IconMore);
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
|
-
const _sfc_main$
|
|
347
|
+
const _sfc_main$v = defineComponent({
|
|
348
348
|
name: "IconRefresh",
|
|
349
349
|
props: {
|
|
350
350
|
size: {
|
|
@@ -397,7 +397,7 @@ const _sfc_main$u = defineComponent({
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
|
-
const _hoisted_1$
|
|
400
|
+
const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
401
401
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
402
402
|
return openBlock(), createElementBlock("svg", {
|
|
403
403
|
viewBox: "0 0 48 48",
|
|
@@ -412,9 +412,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
412
412
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
413
413
|
}, _cache[1] || (_cache[1] = [
|
|
414
414
|
createElementVNode("path", { d: "M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30" }, null, -1)
|
|
415
|
-
]), 14, _hoisted_1$
|
|
415
|
+
]), 14, _hoisted_1$q);
|
|
416
416
|
}
|
|
417
|
-
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
417
|
+
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$c]]);
|
|
418
418
|
const IconRefresh = Object.assign(_IconRefresh, {
|
|
419
419
|
install: (app, options) => {
|
|
420
420
|
var _a;
|
|
@@ -422,7 +422,7 @@ const IconRefresh = Object.assign(_IconRefresh, {
|
|
|
422
422
|
app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
|
-
const _sfc_main$
|
|
425
|
+
const _sfc_main$u = defineComponent({
|
|
426
426
|
name: "IconSearch",
|
|
427
427
|
props: {
|
|
428
428
|
size: {
|
|
@@ -475,7 +475,7 @@ const _sfc_main$t = defineComponent({
|
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
|
-
const _hoisted_1$
|
|
478
|
+
const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
479
479
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
480
480
|
return openBlock(), createElementBlock("svg", {
|
|
481
481
|
viewBox: "0 0 48 48",
|
|
@@ -490,9 +490,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
490
490
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
491
491
|
}, _cache[1] || (_cache[1] = [
|
|
492
492
|
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
|
493
|
-
]), 14, _hoisted_1$
|
|
493
|
+
]), 14, _hoisted_1$p);
|
|
494
494
|
}
|
|
495
|
-
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
495
|
+
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$b]]);
|
|
496
496
|
const IconSearch = Object.assign(_IconSearch, {
|
|
497
497
|
install: (app, options) => {
|
|
498
498
|
var _a;
|
|
@@ -500,7 +500,7 @@ const IconSearch = Object.assign(_IconSearch, {
|
|
|
500
500
|
app.component(iconPrefix + _IconSearch.name, _IconSearch);
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
|
-
const _sfc_main$
|
|
503
|
+
const _sfc_main$t = defineComponent({
|
|
504
504
|
name: "IconSettings",
|
|
505
505
|
props: {
|
|
506
506
|
size: {
|
|
@@ -553,7 +553,7 @@ const _sfc_main$s = defineComponent({
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
|
-
const _hoisted_1$
|
|
556
|
+
const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
557
557
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
558
558
|
return openBlock(), createElementBlock("svg", {
|
|
559
559
|
viewBox: "0 0 48 48",
|
|
@@ -569,9 +569,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
569
569
|
}, _cache[1] || (_cache[1] = [
|
|
570
570
|
createElementVNode("path", { d: "M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z" }, null, -1),
|
|
571
571
|
createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
|
|
572
|
-
]), 14, _hoisted_1$
|
|
572
|
+
]), 14, _hoisted_1$o);
|
|
573
573
|
}
|
|
574
|
-
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
574
|
+
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$a]]);
|
|
575
575
|
const IconSettings = Object.assign(_IconSettings, {
|
|
576
576
|
install: (app, options) => {
|
|
577
577
|
var _a;
|
|
@@ -579,7 +579,7 @@ const IconSettings = Object.assign(_IconSettings, {
|
|
|
579
579
|
app.component(iconPrefix + _IconSettings.name, _IconSettings);
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
|
-
const _sfc_main$
|
|
582
|
+
const _sfc_main$s = defineComponent({
|
|
583
583
|
name: "IconUpload",
|
|
584
584
|
props: {
|
|
585
585
|
size: {
|
|
@@ -632,7 +632,7 @@ const _sfc_main$r = defineComponent({
|
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
|
-
const _hoisted_1$
|
|
635
|
+
const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
636
636
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
637
637
|
return openBlock(), createElementBlock("svg", {
|
|
638
638
|
viewBox: "0 0 48 48",
|
|
@@ -647,9 +647,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
647
647
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
648
648
|
}, _cache[1] || (_cache[1] = [
|
|
649
649
|
createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
|
|
650
|
-
]), 14, _hoisted_1$
|
|
650
|
+
]), 14, _hoisted_1$n);
|
|
651
651
|
}
|
|
652
|
-
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
652
|
+
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$9]]);
|
|
653
653
|
const IconUpload = Object.assign(_IconUpload, {
|
|
654
654
|
install: (app, options) => {
|
|
655
655
|
var _a;
|
|
@@ -657,7 +657,7 @@ const IconUpload = Object.assign(_IconUpload, {
|
|
|
657
657
|
app.component(iconPrefix + _IconUpload.name, _IconUpload);
|
|
658
658
|
}
|
|
659
659
|
});
|
|
660
|
-
const _sfc_main$
|
|
660
|
+
const _sfc_main$r = defineComponent({
|
|
661
661
|
name: "IconDelete",
|
|
662
662
|
props: {
|
|
663
663
|
size: {
|
|
@@ -710,7 +710,7 @@ const _sfc_main$q = defineComponent({
|
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
|
-
const _hoisted_1$
|
|
713
|
+
const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
714
714
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
715
715
|
return openBlock(), createElementBlock("svg", {
|
|
716
716
|
viewBox: "0 0 48 48",
|
|
@@ -725,9 +725,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
725
725
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
726
726
|
}, _cache[1] || (_cache[1] = [
|
|
727
727
|
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
|
728
|
-
]), 14, _hoisted_1$
|
|
728
|
+
]), 14, _hoisted_1$m);
|
|
729
729
|
}
|
|
730
|
-
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
730
|
+
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$8]]);
|
|
731
731
|
const IconDelete = Object.assign(_IconDelete, {
|
|
732
732
|
install: (app, options) => {
|
|
733
733
|
var _a;
|
|
@@ -735,7 +735,7 @@ const IconDelete = Object.assign(_IconDelete, {
|
|
|
735
735
|
app.component(iconPrefix + _IconDelete.name, _IconDelete);
|
|
736
736
|
}
|
|
737
737
|
});
|
|
738
|
-
const _sfc_main$
|
|
738
|
+
const _sfc_main$q = defineComponent({
|
|
739
739
|
name: "IconLineHeight",
|
|
740
740
|
props: {
|
|
741
741
|
size: {
|
|
@@ -788,7 +788,7 @@ const _sfc_main$p = defineComponent({
|
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
});
|
|
791
|
-
const _hoisted_1$
|
|
791
|
+
const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
792
792
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
793
793
|
return openBlock(), createElementBlock("svg", {
|
|
794
794
|
viewBox: "0 0 48 48",
|
|
@@ -809,9 +809,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
809
809
|
stroke: "none"
|
|
810
810
|
}, null, -1),
|
|
811
811
|
createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
|
|
812
|
-
]), 14, _hoisted_1$
|
|
812
|
+
]), 14, _hoisted_1$l);
|
|
813
813
|
}
|
|
814
|
-
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
814
|
+
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$7]]);
|
|
815
815
|
const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
816
816
|
install: (app, options) => {
|
|
817
817
|
var _a;
|
|
@@ -819,7 +819,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
|
819
819
|
app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
|
-
const _sfc_main$
|
|
822
|
+
const _sfc_main$p = defineComponent({
|
|
823
823
|
name: "IconFullscreenExit",
|
|
824
824
|
props: {
|
|
825
825
|
size: {
|
|
@@ -872,7 +872,7 @@ const _sfc_main$o = defineComponent({
|
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
|
-
const _hoisted_1$
|
|
875
|
+
const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
876
876
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
877
877
|
return openBlock(), createElementBlock("svg", {
|
|
878
878
|
viewBox: "0 0 48 48",
|
|
@@ -887,9 +887,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
887
887
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
888
888
|
}, _cache[1] || (_cache[1] = [
|
|
889
889
|
createElementVNode("path", { d: "M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4" }, null, -1)
|
|
890
|
-
]), 14, _hoisted_1$
|
|
890
|
+
]), 14, _hoisted_1$k);
|
|
891
891
|
}
|
|
892
|
-
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
892
|
+
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$6]]);
|
|
893
893
|
const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
894
894
|
install: (app, options) => {
|
|
895
895
|
var _a;
|
|
@@ -897,7 +897,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
|
897
897
|
app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
|
-
const _sfc_main$
|
|
900
|
+
const _sfc_main$o = defineComponent({
|
|
901
901
|
name: "IconFullscreen",
|
|
902
902
|
props: {
|
|
903
903
|
size: {
|
|
@@ -950,7 +950,7 @@ const _sfc_main$n = defineComponent({
|
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
});
|
|
953
|
-
const _hoisted_1$
|
|
953
|
+
const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
954
954
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
955
955
|
return openBlock(), createElementBlock("svg", {
|
|
956
956
|
viewBox: "0 0 48 48",
|
|
@@ -965,9 +965,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
965
965
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
966
966
|
}, _cache[1] || (_cache[1] = [
|
|
967
967
|
createElementVNode("path", { d: "M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8" }, null, -1)
|
|
968
|
-
]), 14, _hoisted_1$
|
|
968
|
+
]), 14, _hoisted_1$j);
|
|
969
969
|
}
|
|
970
|
-
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
970
|
+
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$5]]);
|
|
971
971
|
const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
972
972
|
install: (app, options) => {
|
|
973
973
|
var _a;
|
|
@@ -975,7 +975,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
|
975
975
|
app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
|
|
976
976
|
}
|
|
977
977
|
});
|
|
978
|
-
const _sfc_main$
|
|
978
|
+
const _sfc_main$n = defineComponent({
|
|
979
979
|
name: "IconMute",
|
|
980
980
|
props: {
|
|
981
981
|
size: {
|
|
@@ -1028,7 +1028,7 @@ const _sfc_main$m = defineComponent({
|
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
|
-
const _hoisted_1$
|
|
1031
|
+
const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1032
1032
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1033
1033
|
return openBlock(), createElementBlock("svg", {
|
|
1034
1034
|
viewBox: "0 0 48 48",
|
|
@@ -1043,9 +1043,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1043
1043
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1044
1044
|
}, _cache[1] || (_cache[1] = [
|
|
1045
1045
|
createElementVNode("path", { d: "m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35" }, null, -1)
|
|
1046
|
-
]), 14, _hoisted_1$
|
|
1046
|
+
]), 14, _hoisted_1$i);
|
|
1047
1047
|
}
|
|
1048
|
-
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1048
|
+
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$4]]);
|
|
1049
1049
|
const IconMute = Object.assign(_IconMute, {
|
|
1050
1050
|
install: (app, options) => {
|
|
1051
1051
|
var _a;
|
|
@@ -1053,7 +1053,7 @@ const IconMute = Object.assign(_IconMute, {
|
|
|
1053
1053
|
app.component(iconPrefix + _IconMute.name, _IconMute);
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
|
-
const _sfc_main$
|
|
1056
|
+
const _sfc_main$m = defineComponent({
|
|
1057
1057
|
name: "IconPause",
|
|
1058
1058
|
props: {
|
|
1059
1059
|
size: {
|
|
@@ -1106,7 +1106,7 @@ const _sfc_main$l = defineComponent({
|
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
1108
|
});
|
|
1109
|
-
const _hoisted_1$
|
|
1109
|
+
const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1110
1110
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1111
1111
|
return openBlock(), createElementBlock("svg", {
|
|
1112
1112
|
viewBox: "0 0 48 48",
|
|
@@ -1126,9 +1126,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1126
1126
|
stroke: "none",
|
|
1127
1127
|
d: "M14 12h4v24h-4zM30 12h4v24h-4z"
|
|
1128
1128
|
}, null, -1)
|
|
1129
|
-
]), 14, _hoisted_1$
|
|
1129
|
+
]), 14, _hoisted_1$h);
|
|
1130
1130
|
}
|
|
1131
|
-
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1131
|
+
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$3]]);
|
|
1132
1132
|
const IconPause = Object.assign(_IconPause, {
|
|
1133
1133
|
install: (app, options) => {
|
|
1134
1134
|
var _a;
|
|
@@ -1136,7 +1136,7 @@ const IconPause = Object.assign(_IconPause, {
|
|
|
1136
1136
|
app.component(iconPrefix + _IconPause.name, _IconPause);
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
|
-
const _sfc_main$
|
|
1139
|
+
const _sfc_main$l = defineComponent({
|
|
1140
1140
|
name: "IconPlayArrow",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
size: {
|
|
@@ -1189,7 +1189,7 @@ const _sfc_main$k = defineComponent({
|
|
|
1189
1189
|
};
|
|
1190
1190
|
}
|
|
1191
1191
|
});
|
|
1192
|
-
const _hoisted_1$
|
|
1192
|
+
const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1193
1193
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1194
1194
|
return openBlock(), createElementBlock("svg", {
|
|
1195
1195
|
viewBox: "0 0 48 48",
|
|
@@ -1204,9 +1204,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1204
1204
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1205
1205
|
}, _cache[1] || (_cache[1] = [
|
|
1206
1206
|
createElementVNode("path", { d: "M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z" }, null, -1)
|
|
1207
|
-
]), 14, _hoisted_1$
|
|
1207
|
+
]), 14, _hoisted_1$g);
|
|
1208
1208
|
}
|
|
1209
|
-
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1209
|
+
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$2]]);
|
|
1210
1210
|
const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
1211
1211
|
install: (app, options) => {
|
|
1212
1212
|
var _a;
|
|
@@ -1214,7 +1214,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
|
1214
1214
|
app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
|
|
1215
1215
|
}
|
|
1216
1216
|
});
|
|
1217
|
-
const _sfc_main$
|
|
1217
|
+
const _sfc_main$k = defineComponent({
|
|
1218
1218
|
name: "IconSound",
|
|
1219
1219
|
props: {
|
|
1220
1220
|
size: {
|
|
@@ -1267,7 +1267,7 @@ const _sfc_main$j = defineComponent({
|
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
1269
|
});
|
|
1270
|
-
const _hoisted_1$
|
|
1270
|
+
const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1271
1271
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1272
1272
|
return openBlock(), createElementBlock("svg", {
|
|
1273
1273
|
viewBox: "0 0 48 48",
|
|
@@ -1283,9 +1283,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1283
1283
|
}, _cache[1] || (_cache[1] = [
|
|
1284
1284
|
createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
|
|
1285
1285
|
createElementVNode("path", { d: "M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456" }, null, -1)
|
|
1286
|
-
]), 14, _hoisted_1$
|
|
1286
|
+
]), 14, _hoisted_1$f);
|
|
1287
1287
|
}
|
|
1288
|
-
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1288
|
+
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$1]]);
|
|
1289
1289
|
const IconSound = Object.assign(_IconSound, {
|
|
1290
1290
|
install: (app, options) => {
|
|
1291
1291
|
var _a;
|
|
@@ -1293,7 +1293,7 @@ const IconSound = Object.assign(_IconSound, {
|
|
|
1293
1293
|
app.component(iconPrefix + _IconSound.name, _IconSound);
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
|
-
const _sfc_main$
|
|
1296
|
+
const _sfc_main$j = defineComponent({
|
|
1297
1297
|
name: "IconLoading",
|
|
1298
1298
|
props: {
|
|
1299
1299
|
size: {
|
|
@@ -1346,7 +1346,7 @@ const _sfc_main$i = defineComponent({
|
|
|
1346
1346
|
};
|
|
1347
1347
|
}
|
|
1348
1348
|
});
|
|
1349
|
-
const _hoisted_1$
|
|
1349
|
+
const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1350
1350
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1351
1351
|
return openBlock(), createElementBlock("svg", {
|
|
1352
1352
|
viewBox: "0 0 48 48",
|
|
@@ -1361,9 +1361,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1361
1361
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1362
1362
|
}, _cache[1] || (_cache[1] = [
|
|
1363
1363
|
createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1)
|
|
1364
|
-
]), 14, _hoisted_1$
|
|
1364
|
+
]), 14, _hoisted_1$e);
|
|
1365
1365
|
}
|
|
1366
|
-
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1366
|
+
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render]]);
|
|
1367
1367
|
const IconLoading = Object.assign(_IconLoading, {
|
|
1368
1368
|
install: (app, options) => {
|
|
1369
1369
|
var _a;
|
|
@@ -2196,7 +2196,7 @@ function subtractLight(color, amount) {
|
|
|
2196
2196
|
const c = cc < 0 ? 0 : cc;
|
|
2197
2197
|
return c.toString(16).length > 1 ? c.toString(16) : `0${c.toString(16)}`;
|
|
2198
2198
|
}
|
|
2199
|
-
const _hoisted_1$
|
|
2199
|
+
const _hoisted_1$d = ["draggable"];
|
|
2200
2200
|
const _hoisted_2$9 = ["src", "alt"];
|
|
2201
2201
|
const _hoisted_3$7 = {
|
|
2202
2202
|
key: 1,
|
|
@@ -2211,7 +2211,7 @@ const _hoisted_6$4 = {
|
|
|
2211
2211
|
key: 3,
|
|
2212
2212
|
class: "error-tip"
|
|
2213
2213
|
};
|
|
2214
|
-
const _sfc_main$
|
|
2214
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2215
2215
|
...{
|
|
2216
2216
|
name: "SortableFileItem"
|
|
2217
2217
|
},
|
|
@@ -2311,7 +2311,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2311
2311
|
onClick: handleRemove
|
|
2312
2312
|
})) : createCommentVNode("", true)
|
|
2313
2313
|
])) : createCommentVNode("", true)
|
|
2314
|
-
], 46, _hoisted_1$
|
|
2314
|
+
], 46, _hoisted_1$d);
|
|
2315
2315
|
};
|
|
2316
2316
|
}
|
|
2317
2317
|
});
|
|
@@ -2322,9 +2322,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return target;
|
|
2324
2324
|
};
|
|
2325
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2326
|
-
const _hoisted_1$
|
|
2327
|
-
const _sfc_main$
|
|
2325
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-07a9ff47"]]);
|
|
2326
|
+
const _hoisted_1$c = { class: "sortable-file-list" };
|
|
2327
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2328
2328
|
...{
|
|
2329
2329
|
name: "SortableFileList"
|
|
2330
2330
|
},
|
|
@@ -2388,7 +2388,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2388
2388
|
emit("remove", file);
|
|
2389
2389
|
};
|
|
2390
2390
|
return (_ctx, _cache) => {
|
|
2391
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2391
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
2392
2392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fileList, (file, index) => {
|
|
2393
2393
|
return openBlock(), createBlock(SortableFileItem, {
|
|
2394
2394
|
key: file.uid,
|
|
@@ -2409,8 +2409,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2409
2409
|
};
|
|
2410
2410
|
}
|
|
2411
2411
|
});
|
|
2412
|
-
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2413
|
-
const _hoisted_1$
|
|
2412
|
+
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1ede8f45"]]);
|
|
2413
|
+
const _hoisted_1$b = ["src", "autoplay", "loop", "muted", "preload"];
|
|
2414
2414
|
const _hoisted_2$8 = {
|
|
2415
2415
|
key: 0,
|
|
2416
2416
|
class: "play-overlay"
|
|
@@ -2427,7 +2427,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
|
|
|
2427
2427
|
const _hoisted_9 = { class: "time-display" };
|
|
2428
2428
|
const _hoisted_10 = { class: "controls-right" };
|
|
2429
2429
|
const _hoisted_11 = { class: "control-button" };
|
|
2430
|
-
const _sfc_main$
|
|
2430
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2431
2431
|
...{
|
|
2432
2432
|
name: "VideoPreview"
|
|
2433
2433
|
},
|
|
@@ -2644,7 +2644,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2644
2644
|
onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
|
|
2645
2645
|
onEnded: handleEnded,
|
|
2646
2646
|
onVolumechange: handleVolumeChange
|
|
2647
|
-
}, null, 40, _hoisted_1$
|
|
2647
|
+
}, null, 40, _hoisted_1$b),
|
|
2648
2648
|
!isPlaying.value && !isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
2649
2649
|
createElementVNode("div", _hoisted_3$6, [
|
|
2650
2650
|
createVNode(unref(IconPlayArrow), { size: 48 })
|
|
@@ -2773,11 +2773,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
2775
2775
|
});
|
|
2776
|
-
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2777
|
-
const _hoisted_1$
|
|
2776
|
+
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b982f870"]]);
|
|
2777
|
+
const _hoisted_1$a = { class: "video-modal-title" };
|
|
2778
2778
|
const _hoisted_2$7 = { class: "file-name" };
|
|
2779
2779
|
const _hoisted_3$5 = { class: "video-modal-content" };
|
|
2780
|
-
const _sfc_main$
|
|
2780
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2781
2781
|
...{
|
|
2782
2782
|
name: "VideoPreviewModal"
|
|
2783
2783
|
},
|
|
@@ -2827,7 +2827,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2827
2827
|
onCancel: handleClose
|
|
2828
2828
|
}, {
|
|
2829
2829
|
title: withCtx(() => [
|
|
2830
|
-
createElementVNode("div", _hoisted_1$
|
|
2830
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
2831
2831
|
createElementVNode("span", _hoisted_2$7, toDisplayString(__props.fileName || "视频预览"), 1)
|
|
2832
2832
|
])
|
|
2833
2833
|
]),
|
|
@@ -2848,8 +2848,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2848
2848
|
};
|
|
2849
2849
|
}
|
|
2850
2850
|
});
|
|
2851
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2852
|
-
const _hoisted_1$
|
|
2851
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-cac8e63e"]]);
|
|
2852
|
+
const _hoisted_1$9 = { class: "basic-upload" };
|
|
2853
2853
|
const _hoisted_2$6 = {
|
|
2854
2854
|
key: 0,
|
|
2855
2855
|
class: "upload-empty-state"
|
|
@@ -2875,7 +2875,7 @@ const _hoisted_8 = {
|
|
|
2875
2875
|
key: 5,
|
|
2876
2876
|
class: "inline-video-preview"
|
|
2877
2877
|
};
|
|
2878
|
-
const _sfc_main$
|
|
2878
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2879
2879
|
...{
|
|
2880
2880
|
name: "BasicUpload",
|
|
2881
2881
|
inheritAttrs: false
|
|
@@ -3444,7 +3444,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3444
3444
|
});
|
|
3445
3445
|
});
|
|
3446
3446
|
return (_ctx, _cache) => {
|
|
3447
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3447
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
3448
3448
|
shouldShowEmptyState.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
3449
3449
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
3450
3450
|
createTextVNode(toDisplayString(getProps.value.emptyText), 1)
|
|
@@ -3592,7 +3592,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3592
3592
|
};
|
|
3593
3593
|
}
|
|
3594
3594
|
});
|
|
3595
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3595
|
+
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-13e8439f"]]);
|
|
3596
3596
|
function useUpload(props) {
|
|
3597
3597
|
const uploadRef = ref(null);
|
|
3598
3598
|
const fileListRef = ref((props == null ? void 0 : props.defaultFileList) || []);
|
|
@@ -3838,7 +3838,7 @@ function clearApiCache(api, params) {
|
|
|
3838
3838
|
const cacheKey = getCacheKey(api, params);
|
|
3839
3839
|
cacheMap.delete(cacheKey);
|
|
3840
3840
|
}
|
|
3841
|
-
const _sfc_main$
|
|
3841
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3842
3842
|
__name: "ApiSelect",
|
|
3843
3843
|
props: {
|
|
3844
3844
|
modelValue: {},
|
|
@@ -3948,7 +3948,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3948
3948
|
};
|
|
3949
3949
|
}
|
|
3950
3950
|
});
|
|
3951
|
-
const _sfc_main$
|
|
3951
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3952
3952
|
__name: "ApiCascader",
|
|
3953
3953
|
props: {
|
|
3954
3954
|
modelValue: {},
|
|
@@ -4114,13 +4114,13 @@ const componentMap = {
|
|
|
4114
4114
|
Textarea,
|
|
4115
4115
|
AutoComplete,
|
|
4116
4116
|
Select,
|
|
4117
|
-
ApiSelect: _sfc_main$
|
|
4117
|
+
ApiSelect: _sfc_main$d,
|
|
4118
4118
|
Radio,
|
|
4119
4119
|
RadioGroup,
|
|
4120
4120
|
Checkbox,
|
|
4121
4121
|
CheckboxGroup,
|
|
4122
4122
|
Cascader,
|
|
4123
|
-
ApiCascader: _sfc_main$
|
|
4123
|
+
ApiCascader: _sfc_main$c,
|
|
4124
4124
|
TreeSelect,
|
|
4125
4125
|
DatePicker,
|
|
4126
4126
|
TimePicker,
|
|
@@ -4726,7 +4726,7 @@ const rendererMap = {
|
|
|
4726
4726
|
function getRenderer(component = "Input") {
|
|
4727
4727
|
return rendererMap[component] || rendererMap.default;
|
|
4728
4728
|
}
|
|
4729
|
-
const _sfc_main$
|
|
4729
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
4730
4730
|
...{
|
|
4731
4731
|
name: "BasicReadonlyField",
|
|
4732
4732
|
inheritAttrs: false
|
|
@@ -4835,7 +4835,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
4835
4835
|
};
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
4838
|
-
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4838
|
+
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-3d2d24e0"]]);
|
|
4839
4839
|
function useReadonlyField(options) {
|
|
4840
4840
|
const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
|
|
4841
4841
|
const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
|
|
@@ -4947,7 +4947,7 @@ function useReadonlyField(options) {
|
|
|
4947
4947
|
clearCache
|
|
4948
4948
|
};
|
|
4949
4949
|
}
|
|
4950
|
-
const _sfc_main$
|
|
4950
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
4951
4951
|
...{
|
|
4952
4952
|
name: "BasicForm",
|
|
4953
4953
|
inheritAttrs: false
|
|
@@ -5755,8 +5755,8 @@ function createFormSchema(schemas) {
|
|
|
5755
5755
|
function mergeFormSchemas(...schemas) {
|
|
5756
5756
|
return schemas.flat();
|
|
5757
5757
|
}
|
|
5758
|
-
const _hoisted_1$
|
|
5759
|
-
const _sfc_main$
|
|
5758
|
+
const _hoisted_1$8 = { class: "basic-text-ellipsis" };
|
|
5759
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
5760
5760
|
__name: "BasicTextEllipsis",
|
|
5761
5761
|
props: {
|
|
5762
5762
|
text: { default: "" },
|
|
@@ -5843,7 +5843,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
5843
5843
|
}
|
|
5844
5844
|
);
|
|
5845
5845
|
return (_ctx, _cache) => {
|
|
5846
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5846
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
5847
5847
|
showTooltip.value ? (openBlock(), createBlock(unref(Tooltip), mergeProps({
|
|
5848
5848
|
key: 0,
|
|
5849
5849
|
content: __props.text,
|
|
@@ -5869,7 +5869,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
5869
5869
|
};
|
|
5870
5870
|
}
|
|
5871
5871
|
});
|
|
5872
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5872
|
+
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-305f9842"]]);
|
|
5873
5873
|
function useLocalStorage(key, initialValue) {
|
|
5874
5874
|
let initialStoredValue;
|
|
5875
5875
|
try {
|
|
@@ -6279,12 +6279,12 @@ function useEditFormat(options) {
|
|
|
6279
6279
|
wrapFormatListeners
|
|
6280
6280
|
};
|
|
6281
6281
|
}
|
|
6282
|
-
const _hoisted_1$
|
|
6282
|
+
const _hoisted_1$7 = { class: "edit-cell" };
|
|
6283
6283
|
const _hoisted_2$5 = {
|
|
6284
6284
|
key: 2,
|
|
6285
6285
|
class: "edit-cell-error"
|
|
6286
6286
|
};
|
|
6287
|
-
const _sfc_main$
|
|
6287
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
6288
6288
|
...{
|
|
6289
6289
|
name: "EditCell"
|
|
6290
6290
|
},
|
|
@@ -6371,7 +6371,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
6371
6371
|
}
|
|
6372
6372
|
});
|
|
6373
6373
|
return (_ctx, _cache) => {
|
|
6374
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6374
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
6375
6375
|
props.column.editRender ? (openBlock(), createBlock(resolveDynamicComponent(customRenderContent.value), { key: 0 })) : (openBlock(), createBlock(resolveDynamicComponent(editComponent.value), mergeProps({ key: 1 }, mergedProps.value, {
|
|
6376
6376
|
"model-value": unref(currentValue),
|
|
6377
6377
|
"onUpdate:modelValue": handleChange,
|
|
@@ -6382,7 +6382,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
6382
6382
|
};
|
|
6383
6383
|
}
|
|
6384
6384
|
});
|
|
6385
|
-
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6385
|
+
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-52761074"]]);
|
|
6386
6386
|
function useEditValidation() {
|
|
6387
6387
|
const validateField = async (value, column, record) => {
|
|
6388
6388
|
if (!column.editRule) {
|
|
@@ -6793,7 +6793,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
6793
6793
|
getChangedValues
|
|
6794
6794
|
};
|
|
6795
6795
|
}
|
|
6796
|
-
const _hoisted_1$
|
|
6796
|
+
const _hoisted_1$6 = {
|
|
6797
6797
|
key: 0,
|
|
6798
6798
|
class: "basic-table-search"
|
|
6799
6799
|
};
|
|
@@ -6811,7 +6811,7 @@ const _hoisted_5$2 = {
|
|
|
6811
6811
|
class: "toolbar-right"
|
|
6812
6812
|
};
|
|
6813
6813
|
const _hoisted_6$1 = { class: "column-setting" };
|
|
6814
|
-
const _sfc_main$
|
|
6814
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
6815
6815
|
...{
|
|
6816
6816
|
name: "BasicTable"
|
|
6817
6817
|
},
|
|
@@ -7928,8 +7928,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
7928
7928
|
ref: tableWrapperRef,
|
|
7929
7929
|
class: normalizeClass(["basic-table-wrapper", { "is-fullscreen": isFullscreen.value }])
|
|
7930
7930
|
}, [
|
|
7931
|
-
getSearchConfig.value.show ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7932
|
-
createVNode(unref(_sfc_main$
|
|
7931
|
+
getSearchConfig.value.show ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
7932
|
+
createVNode(unref(_sfc_main$a), mergeProps({
|
|
7933
7933
|
ref_key: "searchFormRef",
|
|
7934
7934
|
ref: searchFormRef
|
|
7935
7935
|
}, getSearchFormProps.value, {
|
|
@@ -8155,7 +8155,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8155
8155
|
key: action.label
|
|
8156
8156
|
}, [
|
|
8157
8157
|
action.popConfirm ? (openBlock(), createBlock(unref(Popconfirm), {
|
|
8158
|
-
key:
|
|
8158
|
+
key: `${action.label}-confirm`,
|
|
8159
8159
|
content: action.popConfirm.title,
|
|
8160
8160
|
"ok-text": action.popConfirm.okText,
|
|
8161
8161
|
"cancel-text": action.popConfirm.cancelText,
|
|
@@ -8188,7 +8188,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8188
8188
|
]),
|
|
8189
8189
|
_: 2
|
|
8190
8190
|
}, 1032, ["content", "ok-text", "cancel-text", "onOk", "onCancel"])) : (openBlock(), createBlock(unref(Link), {
|
|
8191
|
-
key:
|
|
8191
|
+
key: `${action.label}-link`,
|
|
8192
8192
|
status: action.color,
|
|
8193
8193
|
disabled: getActionDisabled(action, slotProps.record),
|
|
8194
8194
|
onClick: ($event) => handleActionClick(action, slotProps)
|
|
@@ -8307,7 +8307,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8307
8307
|
};
|
|
8308
8308
|
}
|
|
8309
8309
|
});
|
|
8310
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8310
|
+
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-b3a2e402"]]);
|
|
8311
8311
|
function useTable(options = {}) {
|
|
8312
8312
|
const tableRef = ref(null);
|
|
8313
8313
|
const formRef = ref(null);
|
|
@@ -8666,9 +8666,9 @@ function createTableColumns(columns) {
|
|
|
8666
8666
|
function mergeTableColumns(...columns) {
|
|
8667
8667
|
return columns.flat();
|
|
8668
8668
|
}
|
|
8669
|
-
const _hoisted_1$
|
|
8669
|
+
const _hoisted_1$5 = { style: { "position": "relative", "width": "100%" } };
|
|
8670
8670
|
const _hoisted_2$3 = { key: 1 };
|
|
8671
|
-
const _sfc_main$
|
|
8671
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
8672
8672
|
...{
|
|
8673
8673
|
name: "BasicModal",
|
|
8674
8674
|
inheritAttrs: false
|
|
@@ -9014,7 +9014,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
9014
9014
|
} : getProps.value.title ? {
|
|
9015
9015
|
name: "title",
|
|
9016
9016
|
fn: withCtx(() => [
|
|
9017
|
-
createElementVNode("div", _hoisted_1$
|
|
9017
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
9018
9018
|
createElementVNode("span", {
|
|
9019
9019
|
style: normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
|
|
9020
9020
|
class: normalizeClass(["block"])
|
|
@@ -9115,7 +9115,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
9115
9115
|
};
|
|
9116
9116
|
}
|
|
9117
9117
|
});
|
|
9118
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9118
|
+
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e4400cf8"]]);
|
|
9119
9119
|
function useModal(props) {
|
|
9120
9120
|
const modalRef = ref(null);
|
|
9121
9121
|
const loadedRef = ref(false);
|
|
@@ -9273,6 +9273,530 @@ function useModalInner(callbackFn) {
|
|
|
9273
9273
|
}
|
|
9274
9274
|
];
|
|
9275
9275
|
}
|
|
9276
|
+
const _hoisted_1$4 = { style: { "position": "relative", "display": "flex", "align-items": "center", "gap": "0.5rem" } };
|
|
9277
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
9278
|
+
...{
|
|
9279
|
+
name: "BasicDrawer",
|
|
9280
|
+
inheritAttrs: false
|
|
9281
|
+
},
|
|
9282
|
+
__name: "BasicDrawer",
|
|
9283
|
+
props: {
|
|
9284
|
+
visible: { type: Boolean, default: false },
|
|
9285
|
+
defaultVisible: { type: Boolean, default: false },
|
|
9286
|
+
placement: { default: "right" },
|
|
9287
|
+
title: {},
|
|
9288
|
+
mask: { type: Boolean, default: true },
|
|
9289
|
+
maskClosable: { type: Boolean, default: true },
|
|
9290
|
+
closable: { type: Boolean, default: true },
|
|
9291
|
+
okText: { default: "确定" },
|
|
9292
|
+
cancelText: { default: "取消" },
|
|
9293
|
+
okLoading: { type: Boolean },
|
|
9294
|
+
okButtonProps: {},
|
|
9295
|
+
cancelButtonProps: {},
|
|
9296
|
+
unmountOnClose: { type: Boolean },
|
|
9297
|
+
width: { default: 378 },
|
|
9298
|
+
height: {},
|
|
9299
|
+
popupContainer: {},
|
|
9300
|
+
drawerStyle: {},
|
|
9301
|
+
bodyClass: {},
|
|
9302
|
+
bodyStyle: { type: [Boolean, null, String, Object, Array] },
|
|
9303
|
+
onBeforeOk: {},
|
|
9304
|
+
onBeforeCancel: {},
|
|
9305
|
+
escToClose: { type: Boolean, default: true },
|
|
9306
|
+
renderToBody: { type: Boolean, default: true },
|
|
9307
|
+
header: { type: Boolean, default: true },
|
|
9308
|
+
footer: { type: Boolean, default: true },
|
|
9309
|
+
hideCancel: { type: Boolean, default: false },
|
|
9310
|
+
loading: { type: Boolean, default: false },
|
|
9311
|
+
loadingTip: {},
|
|
9312
|
+
showCancelBtn: { type: Boolean, default: true },
|
|
9313
|
+
showOkBtn: { type: Boolean, default: true },
|
|
9314
|
+
showFooter: { type: Boolean, default: true },
|
|
9315
|
+
helpMessage: {},
|
|
9316
|
+
closeFunc: {},
|
|
9317
|
+
clearDataOnClose: { type: Boolean },
|
|
9318
|
+
_data: {}
|
|
9319
|
+
},
|
|
9320
|
+
emits: ["register", "update:visible", "ok", "cancel", "open", "close", "before-open", "before-close", "visible-change"],
|
|
9321
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
9322
|
+
const props = __props;
|
|
9323
|
+
const emit = __emit;
|
|
9324
|
+
const visibleRef = ref(false);
|
|
9325
|
+
const confirmLoading = ref(false);
|
|
9326
|
+
const drawerLoading = ref(false);
|
|
9327
|
+
const propsRef = ref({});
|
|
9328
|
+
const getProps = computed(() => {
|
|
9329
|
+
return { ...props, ...unref(propsRef) };
|
|
9330
|
+
});
|
|
9331
|
+
const isValidClass = (value) => {
|
|
9332
|
+
if (value === void 0 || value === null) return false;
|
|
9333
|
+
return typeof value === "string" || Array.isArray(value);
|
|
9334
|
+
};
|
|
9335
|
+
const isValidStyle = (value) => {
|
|
9336
|
+
if (value === void 0 || value === null) return false;
|
|
9337
|
+
if (typeof value === "string") return true;
|
|
9338
|
+
if (Array.isArray(value)) return true;
|
|
9339
|
+
if (typeof value === "object" && !Array.isArray(value)) return true;
|
|
9340
|
+
return false;
|
|
9341
|
+
};
|
|
9342
|
+
const isValidButtonProps = (value) => {
|
|
9343
|
+
if (value === void 0 || value === null) return false;
|
|
9344
|
+
return typeof value === "object" && !Array.isArray(value);
|
|
9345
|
+
};
|
|
9346
|
+
const isValidPopupContainer = (value) => {
|
|
9347
|
+
if (value === void 0 || value === null) return false;
|
|
9348
|
+
return typeof value === "string" || value instanceof HTMLElement;
|
|
9349
|
+
};
|
|
9350
|
+
const getBindValue = computed(() => {
|
|
9351
|
+
const propsData = unref(getProps);
|
|
9352
|
+
return {
|
|
9353
|
+
defaultVisible: propsData.defaultVisible,
|
|
9354
|
+
placement: propsData.placement,
|
|
9355
|
+
title: propsData.title,
|
|
9356
|
+
width: propsData.width,
|
|
9357
|
+
height: propsData.height,
|
|
9358
|
+
mask: propsData.mask,
|
|
9359
|
+
maskClosable: propsData.maskClosable,
|
|
9360
|
+
closable: propsData.closable,
|
|
9361
|
+
okText: propsData.okText,
|
|
9362
|
+
cancelText: propsData.cancelText,
|
|
9363
|
+
okLoading: propsData.okLoading,
|
|
9364
|
+
okButtonProps: isValidButtonProps(propsData.okButtonProps) ? propsData.okButtonProps : void 0,
|
|
9365
|
+
cancelButtonProps: isValidButtonProps(propsData.cancelButtonProps) ? propsData.cancelButtonProps : void 0,
|
|
9366
|
+
unmountOnClose: propsData.unmountOnClose,
|
|
9367
|
+
popupContainer: isValidPopupContainer(propsData.popupContainer) ? propsData.popupContainer : void 0,
|
|
9368
|
+
drawerStyle: isValidStyle(propsData.drawerStyle) ? propsData.drawerStyle : void 0,
|
|
9369
|
+
bodyClass: isValidClass(propsData.bodyClass) ? propsData.bodyClass : void 0,
|
|
9370
|
+
bodyStyle: isValidStyle(propsData.bodyStyle) ? propsData.bodyStyle : void 0,
|
|
9371
|
+
escToClose: propsData.escToClose,
|
|
9372
|
+
renderToBody: propsData.renderToBody,
|
|
9373
|
+
header: propsData.header,
|
|
9374
|
+
footer: propsData.footer === false ? false : void 0,
|
|
9375
|
+
hideCancel: propsData.hideCancel
|
|
9376
|
+
};
|
|
9377
|
+
});
|
|
9378
|
+
const spinStyle = computed(() => {
|
|
9379
|
+
const propsData = unref(getProps);
|
|
9380
|
+
const style = {
|
|
9381
|
+
minHeight: "46px",
|
|
9382
|
+
width: "100%"
|
|
9383
|
+
};
|
|
9384
|
+
if (propsData.loading) {
|
|
9385
|
+
style.pointerEvents = "none";
|
|
9386
|
+
}
|
|
9387
|
+
return style;
|
|
9388
|
+
});
|
|
9389
|
+
const getCancelButtonProps = computed(() => {
|
|
9390
|
+
const propsData = unref(getProps);
|
|
9391
|
+
return {
|
|
9392
|
+
...propsData.cancelButtonProps
|
|
9393
|
+
};
|
|
9394
|
+
});
|
|
9395
|
+
const getOkButtonProps = computed(() => {
|
|
9396
|
+
const propsData = unref(getProps);
|
|
9397
|
+
return {
|
|
9398
|
+
...propsData.okButtonProps,
|
|
9399
|
+
loading: confirmLoading.value || propsData.okLoading
|
|
9400
|
+
};
|
|
9401
|
+
});
|
|
9402
|
+
const handleVisibleChange = (visible) => {
|
|
9403
|
+
visibleRef.value = visible;
|
|
9404
|
+
emit("update:visible", visible);
|
|
9405
|
+
emit("visible-change", visible);
|
|
9406
|
+
};
|
|
9407
|
+
const handleOk = async (ev) => {
|
|
9408
|
+
const propsData = unref(getProps);
|
|
9409
|
+
if (confirmLoading.value || propsData.loading) {
|
|
9410
|
+
return;
|
|
9411
|
+
}
|
|
9412
|
+
if (propsData.onBeforeOk) {
|
|
9413
|
+
confirmLoading.value = true;
|
|
9414
|
+
try {
|
|
9415
|
+
await new Promise((resolve, reject) => {
|
|
9416
|
+
propsData.onBeforeOk((closed) => {
|
|
9417
|
+
if (closed) {
|
|
9418
|
+
resolve(true);
|
|
9419
|
+
} else {
|
|
9420
|
+
reject(false);
|
|
9421
|
+
}
|
|
9422
|
+
});
|
|
9423
|
+
});
|
|
9424
|
+
emit("ok", ev);
|
|
9425
|
+
handleVisibleChange(false);
|
|
9426
|
+
} catch {
|
|
9427
|
+
} finally {
|
|
9428
|
+
confirmLoading.value = false;
|
|
9429
|
+
}
|
|
9430
|
+
return;
|
|
9431
|
+
}
|
|
9432
|
+
if (propsData.closeFunc) {
|
|
9433
|
+
confirmLoading.value = true;
|
|
9434
|
+
try {
|
|
9435
|
+
const canClose = await propsData.closeFunc();
|
|
9436
|
+
if (canClose) {
|
|
9437
|
+
emit("ok", ev);
|
|
9438
|
+
handleVisibleChange(false);
|
|
9439
|
+
}
|
|
9440
|
+
} finally {
|
|
9441
|
+
confirmLoading.value = false;
|
|
9442
|
+
}
|
|
9443
|
+
return;
|
|
9444
|
+
}
|
|
9445
|
+
emit("ok", ev);
|
|
9446
|
+
handleVisibleChange(false);
|
|
9447
|
+
};
|
|
9448
|
+
const handleCancel = async (ev) => {
|
|
9449
|
+
const propsData = unref(getProps);
|
|
9450
|
+
if (propsData.onBeforeCancel) {
|
|
9451
|
+
try {
|
|
9452
|
+
const result = propsData.onBeforeCancel();
|
|
9453
|
+
if (result === false) {
|
|
9454
|
+
return;
|
|
9455
|
+
}
|
|
9456
|
+
emit("cancel", ev);
|
|
9457
|
+
handleVisibleChange(false);
|
|
9458
|
+
} catch {
|
|
9459
|
+
}
|
|
9460
|
+
return;
|
|
9461
|
+
}
|
|
9462
|
+
emit("cancel", ev);
|
|
9463
|
+
handleVisibleChange(false);
|
|
9464
|
+
};
|
|
9465
|
+
const setDrawerProps = (drawerProps) => {
|
|
9466
|
+
propsRef.value = { ...unref(propsRef), ...drawerProps };
|
|
9467
|
+
};
|
|
9468
|
+
const openDrawer = () => {
|
|
9469
|
+
handleVisibleChange(true);
|
|
9470
|
+
};
|
|
9471
|
+
const closeDrawer = () => {
|
|
9472
|
+
handleVisibleChange(false);
|
|
9473
|
+
const propsData = unref(getProps);
|
|
9474
|
+
if (propsData.clearDataOnClose) {
|
|
9475
|
+
setTimeout(() => {
|
|
9476
|
+
clearData();
|
|
9477
|
+
}, 300);
|
|
9478
|
+
}
|
|
9479
|
+
};
|
|
9480
|
+
const changeOkLoading = (loading) => {
|
|
9481
|
+
confirmLoading.value = loading;
|
|
9482
|
+
};
|
|
9483
|
+
const changeLoading = (loading) => {
|
|
9484
|
+
drawerLoading.value = loading;
|
|
9485
|
+
setDrawerProps({ loading });
|
|
9486
|
+
};
|
|
9487
|
+
const getDrawerProps = () => {
|
|
9488
|
+
return { ...unref(getProps), visible: visibleRef.value };
|
|
9489
|
+
};
|
|
9490
|
+
const clearData = () => {
|
|
9491
|
+
propsRef.value = {};
|
|
9492
|
+
confirmLoading.value = false;
|
|
9493
|
+
drawerLoading.value = false;
|
|
9494
|
+
};
|
|
9495
|
+
const drawerMethods = {
|
|
9496
|
+
setDrawerProps,
|
|
9497
|
+
openDrawer,
|
|
9498
|
+
closeDrawer,
|
|
9499
|
+
changeOkLoading,
|
|
9500
|
+
changeLoading,
|
|
9501
|
+
getDrawerProps,
|
|
9502
|
+
clearData
|
|
9503
|
+
};
|
|
9504
|
+
__expose(drawerMethods);
|
|
9505
|
+
watch(
|
|
9506
|
+
() => getProps.value.visible,
|
|
9507
|
+
(val) => {
|
|
9508
|
+
visibleRef.value = val ?? false;
|
|
9509
|
+
},
|
|
9510
|
+
{ immediate: true }
|
|
9511
|
+
);
|
|
9512
|
+
onMounted(() => {
|
|
9513
|
+
nextTick(() => {
|
|
9514
|
+
emit("register", drawerMethods);
|
|
9515
|
+
});
|
|
9516
|
+
});
|
|
9517
|
+
return (_ctx, _cache) => {
|
|
9518
|
+
return openBlock(), createBlock(unref(Drawer), mergeProps(getBindValue.value, {
|
|
9519
|
+
visible: visibleRef.value,
|
|
9520
|
+
"onUpdate:visible": handleVisibleChange,
|
|
9521
|
+
onOk: handleOk,
|
|
9522
|
+
onCancel: handleCancel,
|
|
9523
|
+
onOpen: _cache[0] || (_cache[0] = ($event) => emit("open")),
|
|
9524
|
+
onClose: _cache[1] || (_cache[1] = ($event) => emit("close")),
|
|
9525
|
+
onBeforeOpen: _cache[2] || (_cache[2] = ($event) => emit("before-open")),
|
|
9526
|
+
onBeforeClose: _cache[3] || (_cache[3] = ($event) => emit("before-close"))
|
|
9527
|
+
}), createSlots({
|
|
9528
|
+
default: withCtx(() => [
|
|
9529
|
+
createVNode(unref(Spin), {
|
|
9530
|
+
loading: getProps.value.loading,
|
|
9531
|
+
tip: getProps.value.loadingTip,
|
|
9532
|
+
style: normalizeStyle(spinStyle.value),
|
|
9533
|
+
class: "w-full"
|
|
9534
|
+
}, {
|
|
9535
|
+
default: withCtx(() => [
|
|
9536
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9537
|
+
]),
|
|
9538
|
+
_: 3
|
|
9539
|
+
}, 8, ["loading", "tip", "style"])
|
|
9540
|
+
]),
|
|
9541
|
+
_: 2
|
|
9542
|
+
}, [
|
|
9543
|
+
_ctx.$slots.title ? {
|
|
9544
|
+
name: "title",
|
|
9545
|
+
fn: withCtx(() => [
|
|
9546
|
+
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
9547
|
+
]),
|
|
9548
|
+
key: "0"
|
|
9549
|
+
} : getProps.value.title ? {
|
|
9550
|
+
name: "title",
|
|
9551
|
+
fn: withCtx(() => [
|
|
9552
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
9553
|
+
createElementVNode("span", null, toDisplayString(getProps.value.title), 1),
|
|
9554
|
+
getProps.value.helpMessage ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9555
|
+
Array.isArray(getProps.value.helpMessage) ? (openBlock(), createBlock(unref(Tooltip), {
|
|
9556
|
+
key: 0,
|
|
9557
|
+
position: "top"
|
|
9558
|
+
}, {
|
|
9559
|
+
content: withCtx(() => [
|
|
9560
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getProps.value.helpMessage, (msg, index) => {
|
|
9561
|
+
return openBlock(), createElementBlock("div", { key: index }, toDisplayString(msg), 1);
|
|
9562
|
+
}), 128))
|
|
9563
|
+
]),
|
|
9564
|
+
default: withCtx(() => [
|
|
9565
|
+
createVNode(unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
|
|
9566
|
+
]),
|
|
9567
|
+
_: 1
|
|
9568
|
+
})) : (openBlock(), createBlock(unref(Tooltip), {
|
|
9569
|
+
key: 1,
|
|
9570
|
+
position: "top"
|
|
9571
|
+
}, {
|
|
9572
|
+
content: withCtx(() => [
|
|
9573
|
+
createTextVNode(toDisplayString(getProps.value.helpMessage), 1)
|
|
9574
|
+
]),
|
|
9575
|
+
default: withCtx(() => [
|
|
9576
|
+
createVNode(unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
|
|
9577
|
+
]),
|
|
9578
|
+
_: 1
|
|
9579
|
+
}))
|
|
9580
|
+
], 64)) : createCommentVNode("", true)
|
|
9581
|
+
])
|
|
9582
|
+
]),
|
|
9583
|
+
key: "1"
|
|
9584
|
+
} : void 0,
|
|
9585
|
+
_ctx.$slots.header ? {
|
|
9586
|
+
name: "header",
|
|
9587
|
+
fn: withCtx(() => [
|
|
9588
|
+
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
9589
|
+
]),
|
|
9590
|
+
key: "2"
|
|
9591
|
+
} : void 0,
|
|
9592
|
+
_ctx.$slots.footer ? {
|
|
9593
|
+
name: "footer",
|
|
9594
|
+
fn: withCtx(() => [
|
|
9595
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
9596
|
+
]),
|
|
9597
|
+
key: "3"
|
|
9598
|
+
} : getProps.value.showFooter !== false ? {
|
|
9599
|
+
name: "footer",
|
|
9600
|
+
fn: withCtx(() => [
|
|
9601
|
+
createElementVNode("div", {
|
|
9602
|
+
style: normalizeStyle({
|
|
9603
|
+
pointerEvents: getProps.value.loading ? "none" : "auto",
|
|
9604
|
+
opacity: getProps.value.loading ? 0.6 : 1
|
|
9605
|
+
})
|
|
9606
|
+
}, [
|
|
9607
|
+
createVNode(unref(Space), null, {
|
|
9608
|
+
default: withCtx(() => [
|
|
9609
|
+
renderSlot(_ctx.$slots, "insertFooter", {}, void 0, true),
|
|
9610
|
+
getProps.value.showCancelBtn ? (openBlock(), createBlock(unref(Button), mergeProps({ key: 0 }, getCancelButtonProps.value, { onClick: handleCancel }), {
|
|
9611
|
+
default: withCtx(() => [
|
|
9612
|
+
createTextVNode(toDisplayString(getProps.value.cancelText || "取消"), 1)
|
|
9613
|
+
]),
|
|
9614
|
+
_: 1
|
|
9615
|
+
}, 16)) : createCommentVNode("", true),
|
|
9616
|
+
renderSlot(_ctx.$slots, "centerFooter", {}, void 0, true),
|
|
9617
|
+
getProps.value.showOkBtn ? (openBlock(), createBlock(unref(Button), mergeProps({ key: 1 }, getOkButtonProps.value, {
|
|
9618
|
+
type: "primary",
|
|
9619
|
+
onClick: handleOk
|
|
9620
|
+
}), {
|
|
9621
|
+
default: withCtx(() => [
|
|
9622
|
+
createTextVNode(toDisplayString(getProps.value.okText || "确定"), 1)
|
|
9623
|
+
]),
|
|
9624
|
+
_: 1
|
|
9625
|
+
}, 16)) : createCommentVNode("", true),
|
|
9626
|
+
renderSlot(_ctx.$slots, "appendFooter", {}, void 0, true)
|
|
9627
|
+
]),
|
|
9628
|
+
_: 3
|
|
9629
|
+
})
|
|
9630
|
+
], 4)
|
|
9631
|
+
]),
|
|
9632
|
+
key: "4"
|
|
9633
|
+
} : {
|
|
9634
|
+
name: "footer",
|
|
9635
|
+
fn: withCtx(() => []),
|
|
9636
|
+
key: "5"
|
|
9637
|
+
}
|
|
9638
|
+
]), 1040, ["visible"]);
|
|
9639
|
+
};
|
|
9640
|
+
}
|
|
9641
|
+
});
|
|
9642
|
+
const BasicDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-83e4752e"]]);
|
|
9643
|
+
function useDrawer(props) {
|
|
9644
|
+
const drawerRef = ref(null);
|
|
9645
|
+
const loadedRef = ref(false);
|
|
9646
|
+
const register = (drawerInstance) => {
|
|
9647
|
+
drawerRef.value = drawerInstance;
|
|
9648
|
+
loadedRef.value = true;
|
|
9649
|
+
if (props && Object.keys(props).length > 0) {
|
|
9650
|
+
setDrawerProps(props);
|
|
9651
|
+
}
|
|
9652
|
+
};
|
|
9653
|
+
const getDrawer = () => {
|
|
9654
|
+
const drawer = unref(drawerRef);
|
|
9655
|
+
if (!drawer) {
|
|
9656
|
+
console.error("Drawer 实例尚未注册,请确保组件已挂载并正确使用 @register");
|
|
9657
|
+
return null;
|
|
9658
|
+
}
|
|
9659
|
+
return drawer;
|
|
9660
|
+
};
|
|
9661
|
+
const openDrawer = (visible = true, data) => {
|
|
9662
|
+
const drawer = getDrawer();
|
|
9663
|
+
if (!drawer) return;
|
|
9664
|
+
drawer.setDrawerProps({ _data: data });
|
|
9665
|
+
if (visible) {
|
|
9666
|
+
drawer.openDrawer();
|
|
9667
|
+
} else {
|
|
9668
|
+
drawer.closeDrawer();
|
|
9669
|
+
}
|
|
9670
|
+
};
|
|
9671
|
+
const closeDrawer = () => {
|
|
9672
|
+
const drawer = getDrawer();
|
|
9673
|
+
if (!drawer) return;
|
|
9674
|
+
drawer.closeDrawer();
|
|
9675
|
+
setTimeout(() => {
|
|
9676
|
+
drawer.setDrawerProps({ _data: void 0 });
|
|
9677
|
+
});
|
|
9678
|
+
};
|
|
9679
|
+
const setDrawerProps = (drawerProps) => {
|
|
9680
|
+
const drawer = getDrawer();
|
|
9681
|
+
if (!drawer) return;
|
|
9682
|
+
drawer.setDrawerProps(drawerProps);
|
|
9683
|
+
};
|
|
9684
|
+
const getVisible = () => {
|
|
9685
|
+
const drawer = getDrawer();
|
|
9686
|
+
if (!drawer) return false;
|
|
9687
|
+
return drawer.getDrawerProps().visible || false;
|
|
9688
|
+
};
|
|
9689
|
+
const changeOkLoading = (loading) => {
|
|
9690
|
+
const drawer = getDrawer();
|
|
9691
|
+
if (!drawer) return;
|
|
9692
|
+
drawer.changeOkLoading(loading);
|
|
9693
|
+
};
|
|
9694
|
+
const changeLoading = (loading) => {
|
|
9695
|
+
const drawer = getDrawer();
|
|
9696
|
+
if (!drawer) return;
|
|
9697
|
+
drawer.changeLoading(loading);
|
|
9698
|
+
};
|
|
9699
|
+
const getDrawerProps = () => {
|
|
9700
|
+
const drawer = getDrawer();
|
|
9701
|
+
if (!drawer) return {};
|
|
9702
|
+
return drawer.getDrawerProps();
|
|
9703
|
+
};
|
|
9704
|
+
const clearData = () => {
|
|
9705
|
+
const drawer = getDrawer();
|
|
9706
|
+
if (!drawer) return;
|
|
9707
|
+
drawer.clearData();
|
|
9708
|
+
};
|
|
9709
|
+
return [
|
|
9710
|
+
register,
|
|
9711
|
+
{
|
|
9712
|
+
openDrawer,
|
|
9713
|
+
closeDrawer,
|
|
9714
|
+
setDrawerProps,
|
|
9715
|
+
getVisible,
|
|
9716
|
+
changeOkLoading,
|
|
9717
|
+
changeLoading,
|
|
9718
|
+
getDrawerProps,
|
|
9719
|
+
clearData
|
|
9720
|
+
}
|
|
9721
|
+
];
|
|
9722
|
+
}
|
|
9723
|
+
function useDrawerInner(callbackFn) {
|
|
9724
|
+
const drawerRef = ref(null);
|
|
9725
|
+
const loadedRef = ref(false);
|
|
9726
|
+
const instance = getCurrentInstance();
|
|
9727
|
+
if (!instance) {
|
|
9728
|
+
throw new Error("useDrawerInner 必须在 setup 函数中调用");
|
|
9729
|
+
}
|
|
9730
|
+
const register = (drawerInstance) => {
|
|
9731
|
+
var _a, _b;
|
|
9732
|
+
if (unref(loadedRef) && drawerInstance === unref(drawerRef)) return;
|
|
9733
|
+
drawerRef.value = drawerInstance;
|
|
9734
|
+
loadedRef.value = true;
|
|
9735
|
+
(_a = instance.proxy) == null ? void 0 : _a.$watch(
|
|
9736
|
+
() => getDrawerProps().visible,
|
|
9737
|
+
(visible) => {
|
|
9738
|
+
if (visible && callbackFn) {
|
|
9739
|
+
const currentProps = getDrawerProps();
|
|
9740
|
+
callbackFn(currentProps._data);
|
|
9741
|
+
}
|
|
9742
|
+
}
|
|
9743
|
+
);
|
|
9744
|
+
(_b = instance.emit) == null ? void 0 : _b.call(instance, "register", drawerInstance);
|
|
9745
|
+
};
|
|
9746
|
+
const getDrawer = () => {
|
|
9747
|
+
const drawer = unref(drawerRef);
|
|
9748
|
+
if (!drawer) {
|
|
9749
|
+
console.error("Drawer 实例尚未注册,请确保组件已挂载并正确使用 @register");
|
|
9750
|
+
return null;
|
|
9751
|
+
}
|
|
9752
|
+
return drawer;
|
|
9753
|
+
};
|
|
9754
|
+
const closeDrawer = () => {
|
|
9755
|
+
const drawer = getDrawer();
|
|
9756
|
+
if (!drawer) return;
|
|
9757
|
+
drawer.closeDrawer();
|
|
9758
|
+
};
|
|
9759
|
+
const changeOkLoading = (loading) => {
|
|
9760
|
+
const drawer = getDrawer();
|
|
9761
|
+
if (!drawer) return;
|
|
9762
|
+
drawer.changeOkLoading(loading);
|
|
9763
|
+
};
|
|
9764
|
+
const changeLoading = (loading) => {
|
|
9765
|
+
const drawer = getDrawer();
|
|
9766
|
+
if (!drawer) return;
|
|
9767
|
+
drawer.changeLoading(loading);
|
|
9768
|
+
};
|
|
9769
|
+
const setDrawerProps = (props) => {
|
|
9770
|
+
const drawer = getDrawer();
|
|
9771
|
+
if (!drawer) return;
|
|
9772
|
+
drawer.setDrawerProps(props);
|
|
9773
|
+
};
|
|
9774
|
+
const getDrawerProps = () => {
|
|
9775
|
+
const drawer = unref(drawerRef);
|
|
9776
|
+
if (!drawer) return {};
|
|
9777
|
+
return drawer.getDrawerProps();
|
|
9778
|
+
};
|
|
9779
|
+
const clearData = () => {
|
|
9780
|
+
const drawer = getDrawer();
|
|
9781
|
+
if (!drawer) return;
|
|
9782
|
+
drawer.clearData();
|
|
9783
|
+
};
|
|
9784
|
+
onUnmounted(() => {
|
|
9785
|
+
drawerRef.value = null;
|
|
9786
|
+
loadedRef.value = false;
|
|
9787
|
+
});
|
|
9788
|
+
return [
|
|
9789
|
+
register,
|
|
9790
|
+
{
|
|
9791
|
+
closeDrawer,
|
|
9792
|
+
changeOkLoading,
|
|
9793
|
+
changeLoading,
|
|
9794
|
+
setDrawerProps,
|
|
9795
|
+
getDrawerProps,
|
|
9796
|
+
clearData
|
|
9797
|
+
}
|
|
9798
|
+
];
|
|
9799
|
+
}
|
|
9276
9800
|
const _hoisted_1$3 = { class: "basic-description" };
|
|
9277
9801
|
const _hoisted_2$2 = {
|
|
9278
9802
|
key: 0,
|
|
@@ -10057,10 +10581,11 @@ const KntSharedPlugin = {
|
|
|
10057
10581
|
}
|
|
10058
10582
|
};
|
|
10059
10583
|
export {
|
|
10060
|
-
_sfc_main$
|
|
10061
|
-
_sfc_main$
|
|
10584
|
+
_sfc_main$c as ApiCascader,
|
|
10585
|
+
_sfc_main$d as ApiSelect,
|
|
10062
10586
|
BasicDescription,
|
|
10063
|
-
|
|
10587
|
+
BasicDrawer,
|
|
10588
|
+
_sfc_main$a as BasicForm,
|
|
10064
10589
|
BasicImage,
|
|
10065
10590
|
_sfc_main as BasicLoading,
|
|
10066
10591
|
BasicModal,
|
|
@@ -10068,6 +10593,7 @@ export {
|
|
|
10068
10593
|
BasicTable,
|
|
10069
10594
|
BasicTextEllipsis,
|
|
10070
10595
|
BasicUpload,
|
|
10596
|
+
EditCell,
|
|
10071
10597
|
KntSharedPlugin,
|
|
10072
10598
|
VideoPreview,
|
|
10073
10599
|
VideoPreviewModal,
|
|
@@ -10153,6 +10679,8 @@ export {
|
|
|
10153
10679
|
useApiRequest,
|
|
10154
10680
|
useDebounce,
|
|
10155
10681
|
useDescription,
|
|
10682
|
+
useDrawer,
|
|
10683
|
+
useDrawerInner,
|
|
10156
10684
|
useForm,
|
|
10157
10685
|
useImage,
|
|
10158
10686
|
useLocalStorage,
|