@fangzhongya/fang-ui 0.1.55 → 0.1.57
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/audios/src/index2.cjs +16 -10
- package/dist/components/audios/src/index2.js +16 -10
- package/dist/components/box-adjust/src/index2.cjs +6 -4
- package/dist/components/box-adjust/src/index2.js +6 -4
- package/dist/components/box-title/src/index2.cjs +3 -2
- package/dist/components/box-title/src/index2.js +3 -2
- package/dist/components/buttons/src/data.d.ts +5 -5
- package/dist/components/buttons/src/index2.cjs +2 -2
- package/dist/components/buttons/src/index2.js +2 -2
- package/dist/components/cascaders/src/data.d.ts +5 -5
- package/dist/components/checks/src/data.d.ts +5 -5
- package/dist/components/common/list.d.ts +1 -1
- package/dist/components/common/use.cjs +1 -1
- package/dist/components/common/use.js +1 -1
- package/dist/components/dates/src/data.d.ts +5 -5
- package/dist/components/dates2/src/data.d.ts +5 -5
- package/dist/components/double/src/index2.cjs +3 -2
- package/dist/components/double/src/index2.js +3 -2
- package/dist/components/edit/index.css +5 -5
- package/dist/components/edit/index.scss +5 -5
- package/dist/components/edit/src/data.cjs +3 -2
- package/dist/components/edit/src/data.d.ts +5 -1
- package/dist/components/edit/src/data.js +3 -2
- package/dist/components/edit/src/index2.cjs +32 -23
- package/dist/components/edit/src/index2.js +32 -23
- package/dist/components/edit-data/src/area/array-json2.cjs +8 -4
- package/dist/components/edit-data/src/area/array-json2.js +8 -4
- package/dist/components/edit-data/src/area/array2.cjs +46 -8
- package/dist/components/edit-data/src/area/array2.js +47 -9
- package/dist/components/edit-data/src/area/editor2.cjs +22 -4
- package/dist/components/edit-data/src/area/editor2.js +22 -4
- package/dist/components/edit-data/src/area/general2.cjs +8 -1
- package/dist/components/edit-data/src/area/general2.js +8 -1
- package/dist/components/edit-data/src/area/object-json2.cjs +5 -1
- package/dist/components/edit-data/src/area/object-json2.js +5 -1
- package/dist/components/edit-data/src/area/object2.cjs +48 -11
- package/dist/components/edit-data/src/area/object2.js +49 -12
- package/dist/components/edit-data/src/data/array2.cjs +9 -5
- package/dist/components/edit-data/src/data/array2.js +9 -5
- package/dist/components/edit-data/src/data/bigint2.cjs +7 -3
- package/dist/components/edit-data/src/data/bigint2.js +7 -3
- package/dist/components/edit-data/src/data/boolean2.cjs +7 -3
- package/dist/components/edit-data/src/data/boolean2.js +7 -3
- package/dist/components/edit-data/src/data/date.cjs +4 -0
- package/dist/components/edit-data/src/data/date.js +4 -0
- package/dist/components/edit-data/src/data/date2.cjs +48 -0
- package/dist/components/edit-data/src/data/date2.js +48 -0
- package/dist/components/edit-data/src/data/function2.cjs +16 -7
- package/dist/components/edit-data/src/data/function2.js +17 -8
- package/dist/components/edit-data/src/data/null2.cjs +3 -1
- package/dist/components/edit-data/src/data/null2.js +4 -2
- package/dist/components/edit-data/src/data/number2.cjs +7 -3
- package/dist/components/edit-data/src/data/number2.js +7 -3
- package/dist/components/edit-data/src/data/object2.cjs +9 -5
- package/dist/components/edit-data/src/data/object2.js +9 -5
- package/dist/components/edit-data/src/data/other2.cjs +13 -5
- package/dist/components/edit-data/src/data/other2.js +14 -6
- package/dist/components/edit-data/src/data/string2.cjs +7 -3
- package/dist/components/edit-data/src/data/string2.js +7 -3
- package/dist/components/edit-data/src/data/symbol2.cjs +7 -3
- package/dist/components/edit-data/src/data/symbol2.js +7 -3
- package/dist/components/edit-data/src/data/undefined2.cjs +3 -1
- package/dist/components/edit-data/src/data/undefined2.js +4 -2
- package/dist/components/edit-data/src/data.cjs +10 -0
- package/dist/components/edit-data/src/data.d.ts +20 -0
- package/dist/components/edit-data/src/data.js +10 -0
- package/dist/components/edit-data/src/index2.cjs +31 -2
- package/dist/components/edit-data/src/index2.js +45 -16
- package/dist/components/edit-data-add/src/index2.cjs +2 -0
- package/dist/components/edit-data-add/src/index2.js +2 -0
- package/dist/components/edit-float/src/index2.cjs +3 -2
- package/dist/components/edit-float/src/index2.js +3 -2
- package/dist/components/history/src/index2.cjs +6 -4
- package/dist/components/history/src/index2.js +6 -4
- package/dist/components/input-array/src/index2.cjs +3 -2
- package/dist/components/input-array/src/index2.js +3 -2
- package/dist/components/input-history/src/index2.cjs +3 -2
- package/dist/components/input-history/src/index2.js +3 -2
- package/dist/components/input-select/src/index2.cjs +6 -4
- package/dist/components/input-select/src/index2.js +6 -4
- package/dist/components/labels/src/data.d.ts +5 -5
- package/dist/components/message/index.d.ts +11 -4
- package/dist/components/message/src/function.d.ts +11 -4
- package/dist/components/message-box/index.d.ts +2 -3
- package/dist/components/message-box/src/function.d.ts +2 -3
- package/dist/components/retract/index.css +23 -20
- package/dist/components/retract/index.scss +39 -20
- package/dist/components/retract/src/data.cjs +4 -1
- package/dist/components/retract/src/data.d.ts +4 -1
- package/dist/components/retract/src/data.js +4 -1
- package/dist/components/retract/src/index2.cjs +12 -10
- package/dist/components/retract/src/index2.js +9 -7
- package/dist/components/right-key/index.css +2 -1
- package/dist/components/right-key/index.scss +2 -1
- package/dist/components/right-key/src/data.cjs +7 -2
- package/dist/components/right-key/src/data.d.ts +5 -0
- package/dist/components/right-key/src/data.js +7 -2
- package/dist/components/right-key/src/index2.cjs +134 -60
- package/dist/components/right-key/src/index2.js +135 -61
- package/dist/components/selects/src/data.d.ts +5 -5
- package/dist/components/stick-window/src/index2.cjs +3 -2
- package/dist/components/stick-window/src/index2.js +3 -2
- package/dist/components/switchs/src/data.d.ts +5 -4
- package/dist/components/uploads/src/data.d.ts +5 -5
- package/dist/components/uploads/src/index2.cjs +26 -21
- package/dist/components/uploads/src/index2.js +15 -10
- package/dist/components/videos/src/index2.cjs +30 -19
- package/dist/components/videos/src/index2.js +30 -19
- package/dist/components/window/src/index2.cjs +9 -6
- package/dist/components/window/src/index2.js +9 -6
- package/dist/css/edit.css +5 -5
- package/dist/css/index.css +30 -26
- package/dist/css/retract.css +23 -20
- package/dist/css/right-key.css +2 -1
- package/dist/hooks/model/index.cjs +25 -0
- package/dist/hooks/model/index.d.ts +2 -0
- package/dist/hooks/model/index.js +25 -0
- package/dist/icons/index.json +1 -1
- package/dist/icons/vue/bar.cjs +2 -18
- package/dist/icons/vue/bar.js +1 -17
- package/dist/icons/vue/bar2.cjs +21 -2
- package/dist/icons/vue/bar2.js +21 -2
- package/dist/icons/vue/below.cjs +2 -18
- package/dist/icons/vue/below.js +1 -17
- package/dist/icons/vue/below2.cjs +21 -2
- package/dist/icons/vue/below2.js +21 -2
- package/dist/icons/vue/bicycle.cjs +2 -15
- package/dist/icons/vue/bicycle.js +1 -14
- package/dist/icons/vue/bicycle2.cjs +18 -2
- package/dist/icons/vue/bicycle2.js +18 -2
- package/dist/icons/vue/bottom-left.cjs +2 -22
- package/dist/icons/vue/bottom-left.js +1 -21
- package/dist/icons/vue/bottom-left2.cjs +25 -2
- package/dist/icons/vue/bottom-left2.js +25 -2
- package/dist/icons/vue/bottom-right.cjs +2 -22
- package/dist/icons/vue/bottom-right.js +1 -21
- package/dist/icons/vue/bottom-right2.cjs +25 -2
- package/dist/icons/vue/bottom-right2.js +25 -2
- package/dist/icons/vue/bottom.cjs +2 -18
- package/dist/icons/vue/bottom.js +1 -17
- package/dist/icons/vue/bottom2.cjs +21 -2
- package/dist/icons/vue/bottom2.js +21 -2
- package/dist/icons/vue/catalogue.cjs +2 -23
- package/dist/icons/vue/catalogue.js +1 -22
- package/dist/icons/vue/catalogue2.cjs +26 -2
- package/dist/icons/vue/catalogue2.js +26 -2
- package/dist/icons/vue/clear.cjs +2 -23
- package/dist/icons/vue/clear.js +1 -22
- package/dist/icons/vue/clear2.cjs +26 -2
- package/dist/icons/vue/clear2.js +26 -2
- package/dist/icons/vue/close.cjs +2 -18
- package/dist/icons/vue/close.js +1 -17
- package/dist/icons/vue/close2.cjs +21 -2
- package/dist/icons/vue/close2.js +21 -2
- package/dist/icons/vue/delete.cjs +2 -18
- package/dist/icons/vue/delete.js +1 -17
- package/dist/icons/vue/delete2.cjs +21 -2
- package/dist/icons/vue/delete2.js +21 -2
- package/dist/icons/vue/document.cjs +2 -23
- package/dist/icons/vue/document.js +1 -22
- package/dist/icons/vue/document2.cjs +26 -2
- package/dist/icons/vue/document2.js +26 -2
- package/dist/icons/vue/down.cjs +2 -18
- package/dist/icons/vue/down.js +1 -17
- package/dist/icons/vue/down2.cjs +21 -2
- package/dist/icons/vue/down2.js +21 -2
- package/dist/icons/vue/download.cjs +2 -18
- package/dist/icons/vue/download.js +1 -17
- package/dist/icons/vue/download2.cjs +21 -2
- package/dist/icons/vue/download2.js +21 -2
- package/dist/icons/vue/edit.cjs +2 -23
- package/dist/icons/vue/edit.js +1 -22
- package/dist/icons/vue/edit2.cjs +26 -2
- package/dist/icons/vue/edit2.js +26 -2
- package/dist/icons/vue/enter.cjs +2 -19
- package/dist/icons/vue/enter.js +1 -18
- package/dist/icons/vue/enter2.cjs +22 -2
- package/dist/icons/vue/enter2.js +22 -2
- package/dist/icons/vue/frame.cjs +2 -15
- package/dist/icons/vue/frame.js +1 -14
- package/dist/icons/vue/frame2.cjs +18 -2
- package/dist/icons/vue/frame2.js +18 -2
- package/dist/icons/vue/index.cjs +81 -54
- package/dist/icons/vue/index.js +54 -27
- package/dist/icons/vue/left.cjs +2 -18
- package/dist/icons/vue/left.js +1 -17
- package/dist/icons/vue/left2.cjs +21 -2
- package/dist/icons/vue/left2.js +21 -2
- package/dist/icons/vue/mute.cjs +2 -18
- package/dist/icons/vue/mute.js +1 -17
- package/dist/icons/vue/mute2.cjs +21 -2
- package/dist/icons/vue/mute2.js +21 -2
- package/dist/icons/vue/pause.cjs +2 -24
- package/dist/icons/vue/pause.js +1 -23
- package/dist/icons/vue/pause2.cjs +27 -2
- package/dist/icons/vue/pause2.js +27 -2
- package/dist/icons/vue/play.cjs +2 -19
- package/dist/icons/vue/play.js +1 -18
- package/dist/icons/vue/play2.cjs +22 -2
- package/dist/icons/vue/play2.js +22 -2
- package/dist/icons/vue/plus.cjs +2 -18
- package/dist/icons/vue/plus.js +1 -17
- package/dist/icons/vue/plus2.cjs +21 -2
- package/dist/icons/vue/plus2.js +21 -2
- package/dist/icons/vue/retreat.cjs +2 -19
- package/dist/icons/vue/retreat.js +1 -18
- package/dist/icons/vue/retreat2.cjs +22 -2
- package/dist/icons/vue/retreat2.js +22 -2
- package/dist/icons/vue/right.cjs +2 -18
- package/dist/icons/vue/right.js +1 -17
- package/dist/icons/vue/right2.cjs +21 -2
- package/dist/icons/vue/right2.js +21 -2
- package/dist/icons/vue/sound.cjs +2 -22
- package/dist/icons/vue/sound.js +1 -21
- package/dist/icons/vue/sound2.cjs +25 -2
- package/dist/icons/vue/sound2.js +25 -2
- package/dist/icons/vue/star.cjs +2 -22
- package/dist/icons/vue/star.js +1 -21
- package/dist/icons/vue/star2.cjs +25 -2
- package/dist/icons/vue/star2.js +25 -2
- package/dist/icons/vue/up.cjs +2 -18
- package/dist/icons/vue/up.js +1 -17
- package/dist/icons/vue/up2.cjs +21 -2
- package/dist/icons/vue/up2.js +21 -2
- package/dist/icons/vue/views.cjs +2 -18
- package/dist/icons/vue/views.js +1 -17
- package/dist/icons/vue/views2.cjs +21 -2
- package/dist/icons/vue/views2.js +21 -2
- package/dist/index.css +30 -26
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/shared.cjs +19 -0
- package/dist/utils/vues/shared.d.ts +5 -0
- package/dist/utils/vues/shared.js +19 -0
- package/package.json +10 -11
- package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -10
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- /package/dist/components/{keep-com → global-config}/index.css +0 -0
- /package/dist/css/{keep-com.css → global-config.css} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
require("../../../icons/vue/enter.cjs");
|
|
5
|
+
require("../../../icons/vue/retreat.cjs");
|
|
6
|
+
require("../../../icons/vue/catalogue.cjs");
|
|
7
|
+
require("../../../icons/vue/frame.cjs");
|
|
8
|
+
require("../../../icons/vue/star.cjs");
|
|
9
|
+
require("../../../icons/vue/up.cjs");
|
|
10
|
+
require("../../../icons/vue/down.cjs");
|
|
11
|
+
require("../../../icons/vue/play.cjs");
|
|
12
|
+
require("../../../icons/vue/pause.cjs");
|
|
13
|
+
require("../../../icons/vue/sound.cjs");
|
|
14
|
+
require("../../../icons/vue/mute.cjs");
|
|
15
15
|
const index$5 = require("../../sliders/index.cjs");
|
|
16
16
|
const index$6 = require("../../button/index.cjs");
|
|
17
17
|
const index$7 = require("../../selects/index.cjs");
|
|
@@ -24,6 +24,17 @@ const index$3 = require("../../../hooks/full-screen/index.cjs");
|
|
|
24
24
|
const util = require("../../players/common/util.cjs");
|
|
25
25
|
const index$2 = require("../../../hooks/props-default/index.cjs");
|
|
26
26
|
const index$4 = require("element-plus/es/components/loading/index");
|
|
27
|
+
const up_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/up2.cjs");
|
|
28
|
+
const retreat_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/retreat2.cjs");
|
|
29
|
+
const pause_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/pause2.cjs");
|
|
30
|
+
const play_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/play2.cjs");
|
|
31
|
+
const enter_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/enter2.cjs");
|
|
32
|
+
const down_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/down2.cjs");
|
|
33
|
+
const mute_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/mute2.cjs");
|
|
34
|
+
const sound_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/sound2.cjs");
|
|
35
|
+
const catalogue_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/catalogue2.cjs");
|
|
36
|
+
const star_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/star2.cjs");
|
|
37
|
+
const frame_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/frame2.cjs");
|
|
27
38
|
const _hoisted_1 = ["src"];
|
|
28
39
|
const _hoisted_2 = { class: "end-content" };
|
|
29
40
|
const _hoisted_3 = { class: "end-buttons" };
|
|
@@ -344,32 +355,32 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
344
355
|
list.value.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Button), {
|
|
345
356
|
key: 0,
|
|
346
357
|
size: "small",
|
|
347
|
-
icon:
|
|
358
|
+
icon: up_vue_vue_type_script_setup_true_lang.default,
|
|
348
359
|
disabled: current.value == 0,
|
|
349
360
|
circle: "",
|
|
350
361
|
onClick: _cache[2] || (_cache[2] = ($event) => onTrack(true))
|
|
351
362
|
}, null, 8, ["disabled"])) : vue.createCommentVNode("", true),
|
|
352
363
|
vue.createVNode(vue.unref(index$6.Button), {
|
|
353
364
|
size: "small",
|
|
354
|
-
icon:
|
|
365
|
+
icon: retreat_vue_vue_type_script_setup_true_lang.default,
|
|
355
366
|
circle: "",
|
|
356
367
|
onClick: _cache[3] || (_cache[3] = ($event) => onSkip(true))
|
|
357
368
|
}),
|
|
358
369
|
vue.createVNode(vue.unref(index$6.Button), {
|
|
359
|
-
icon: isPlaying.value ?
|
|
370
|
+
icon: isPlaying.value ? pause_vue_vue_type_script_setup_true_lang.default : play_vue_vue_type_script_setup_true_lang.default,
|
|
360
371
|
circle: "",
|
|
361
372
|
onClick: togglePlay
|
|
362
373
|
}, null, 8, ["icon"]),
|
|
363
374
|
vue.createVNode(vue.unref(index$6.Button), {
|
|
364
375
|
size: "small",
|
|
365
|
-
icon:
|
|
376
|
+
icon: enter_vue_vue_type_script_setup_true_lang.default,
|
|
366
377
|
circle: "",
|
|
367
378
|
onClick: _cache[4] || (_cache[4] = ($event) => onSkip(false))
|
|
368
379
|
}),
|
|
369
380
|
list.value.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Button), {
|
|
370
381
|
key: 1,
|
|
371
382
|
size: "small",
|
|
372
|
-
icon:
|
|
383
|
+
icon: down_vue_vue_type_script_setup_true_lang.default,
|
|
373
384
|
circle: "",
|
|
374
385
|
disabled: current.value + 1 == list.value.length,
|
|
375
386
|
onClick: _cache[5] || (_cache[5] = ($event) => onTrack(false))
|
|
@@ -380,7 +391,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
380
391
|
}, [
|
|
381
392
|
vue.createVNode(vue.unref(index$6.Button), {
|
|
382
393
|
class: vue.normalizeClass(vue.unref(cs).z("control-volume-but")),
|
|
383
|
-
icon: isMuted.value ?
|
|
394
|
+
icon: isMuted.value ? mute_vue_vue_type_script_setup_true_lang.default : sound_vue_vue_type_script_setup_true_lang.default,
|
|
384
395
|
circle: "",
|
|
385
396
|
onClick: toggleMute,
|
|
386
397
|
size: "small"
|
|
@@ -407,13 +418,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
407
418
|
list.value.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Button), {
|
|
408
419
|
key: 0,
|
|
409
420
|
size: "small",
|
|
410
|
-
icon:
|
|
421
|
+
icon: catalogue_vue_vue_type_script_setup_true_lang.default,
|
|
411
422
|
circle: "",
|
|
412
423
|
onClick: onShowList
|
|
413
424
|
})) : vue.createCommentVNode("", true),
|
|
414
425
|
vue.createVNode(vue.unref(index$6.Button), {
|
|
415
426
|
size: "small",
|
|
416
|
-
icon: vue.unref(isFullscreen) ?
|
|
427
|
+
icon: vue.unref(isFullscreen) ? star_vue_vue_type_script_setup_true_lang.default : frame_vue_vue_type_script_setup_true_lang.default,
|
|
417
428
|
circle: "",
|
|
418
429
|
onClick: onFullscreen
|
|
419
430
|
}, null, 8, ["icon"])
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, nextTick, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, withDirectives, createCommentVNode, toDisplayString, createVNode, createBlock, Fragment, renderList, vShow } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
2
|
+
import "../../../icons/vue/enter.js";
|
|
3
|
+
import "../../../icons/vue/retreat.js";
|
|
4
|
+
import "../../../icons/vue/catalogue.js";
|
|
5
|
+
import "../../../icons/vue/frame.js";
|
|
6
|
+
import "../../../icons/vue/star.js";
|
|
7
|
+
import "../../../icons/vue/up.js";
|
|
8
|
+
import "../../../icons/vue/down.js";
|
|
9
|
+
import "../../../icons/vue/play.js";
|
|
10
|
+
import "../../../icons/vue/pause.js";
|
|
11
|
+
import "../../../icons/vue/sound.js";
|
|
12
|
+
import "../../../icons/vue/mute.js";
|
|
13
13
|
import { Sliders } from "../../sliders/index.js";
|
|
14
14
|
import { Button } from "../../button/index.js";
|
|
15
15
|
import { Selects } from "../../selects/index.js";
|
|
@@ -22,6 +22,17 @@ import { useFullscreen } from "../../../hooks/full-screen/index.js";
|
|
|
22
22
|
import { getListValue } from "../../players/common/util.js";
|
|
23
23
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
24
24
|
import { vLoading } from "element-plus/es/components/loading/index";
|
|
25
|
+
import _sfc_main$1 from "../../../icons/vue/up2.js";
|
|
26
|
+
import _sfc_main$2 from "../../../icons/vue/retreat2.js";
|
|
27
|
+
import _sfc_main$3 from "../../../icons/vue/pause2.js";
|
|
28
|
+
import _sfc_main$4 from "../../../icons/vue/play2.js";
|
|
29
|
+
import _sfc_main$5 from "../../../icons/vue/enter2.js";
|
|
30
|
+
import _sfc_main$6 from "../../../icons/vue/down2.js";
|
|
31
|
+
import _sfc_main$7 from "../../../icons/vue/mute2.js";
|
|
32
|
+
import _sfc_main$8 from "../../../icons/vue/sound2.js";
|
|
33
|
+
import _sfc_main$9 from "../../../icons/vue/catalogue2.js";
|
|
34
|
+
import _sfc_main$a from "../../../icons/vue/star2.js";
|
|
35
|
+
import _sfc_main$b from "../../../icons/vue/frame2.js";
|
|
25
36
|
const _hoisted_1 = ["src"];
|
|
26
37
|
const _hoisted_2 = { class: "end-content" };
|
|
27
38
|
const _hoisted_3 = { class: "end-buttons" };
|
|
@@ -342,32 +353,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
342
353
|
list.value.length > 1 ? (openBlock(), createBlock(unref(Button), {
|
|
343
354
|
key: 0,
|
|
344
355
|
size: "small",
|
|
345
|
-
icon:
|
|
356
|
+
icon: _sfc_main$1,
|
|
346
357
|
disabled: current.value == 0,
|
|
347
358
|
circle: "",
|
|
348
359
|
onClick: _cache[2] || (_cache[2] = ($event) => onTrack(true))
|
|
349
360
|
}, null, 8, ["disabled"])) : createCommentVNode("", true),
|
|
350
361
|
createVNode(unref(Button), {
|
|
351
362
|
size: "small",
|
|
352
|
-
icon:
|
|
363
|
+
icon: _sfc_main$2,
|
|
353
364
|
circle: "",
|
|
354
365
|
onClick: _cache[3] || (_cache[3] = ($event) => onSkip(true))
|
|
355
366
|
}),
|
|
356
367
|
createVNode(unref(Button), {
|
|
357
|
-
icon: isPlaying.value ?
|
|
368
|
+
icon: isPlaying.value ? _sfc_main$3 : _sfc_main$4,
|
|
358
369
|
circle: "",
|
|
359
370
|
onClick: togglePlay
|
|
360
371
|
}, null, 8, ["icon"]),
|
|
361
372
|
createVNode(unref(Button), {
|
|
362
373
|
size: "small",
|
|
363
|
-
icon:
|
|
374
|
+
icon: _sfc_main$5,
|
|
364
375
|
circle: "",
|
|
365
376
|
onClick: _cache[4] || (_cache[4] = ($event) => onSkip(false))
|
|
366
377
|
}),
|
|
367
378
|
list.value.length > 1 ? (openBlock(), createBlock(unref(Button), {
|
|
368
379
|
key: 1,
|
|
369
380
|
size: "small",
|
|
370
|
-
icon:
|
|
381
|
+
icon: _sfc_main$6,
|
|
371
382
|
circle: "",
|
|
372
383
|
disabled: current.value + 1 == list.value.length,
|
|
373
384
|
onClick: _cache[5] || (_cache[5] = ($event) => onTrack(false))
|
|
@@ -378,7 +389,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
378
389
|
}, [
|
|
379
390
|
createVNode(unref(Button), {
|
|
380
391
|
class: normalizeClass(unref(cs).z("control-volume-but")),
|
|
381
|
-
icon: isMuted.value ?
|
|
392
|
+
icon: isMuted.value ? _sfc_main$7 : _sfc_main$8,
|
|
382
393
|
circle: "",
|
|
383
394
|
onClick: toggleMute,
|
|
384
395
|
size: "small"
|
|
@@ -405,13 +416,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
405
416
|
list.value.length > 1 ? (openBlock(), createBlock(unref(Button), {
|
|
406
417
|
key: 0,
|
|
407
418
|
size: "small",
|
|
408
|
-
icon:
|
|
419
|
+
icon: _sfc_main$9,
|
|
409
420
|
circle: "",
|
|
410
421
|
onClick: onShowList
|
|
411
422
|
})) : createCommentVNode("", true),
|
|
412
423
|
createVNode(unref(Button), {
|
|
413
424
|
size: "small",
|
|
414
|
-
icon: unref(isFullscreen) ?
|
|
425
|
+
icon: unref(isFullscreen) ? _sfc_main$a : _sfc_main$b,
|
|
415
426
|
circle: "",
|
|
416
427
|
onClick: onFullscreen
|
|
417
428
|
}, null, 8, ["icon"])
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const index$6 = require("../../icon/index.cjs");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
require("../../../icons/vue/bar.cjs");
|
|
6
|
+
require("../../../icons/vue/frame.cjs");
|
|
7
|
+
require("../../../icons/vue/star.cjs");
|
|
8
8
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
9
9
|
const setCss = require("@fangzhongya/utils/css/setCss");
|
|
10
10
|
const data = require("./data.cjs");
|
|
@@ -18,6 +18,9 @@ const setClassName = require("@fangzhongya/utils/css/setClassName");
|
|
|
18
18
|
const index$7 = require("../../../directives/drag/index.cjs");
|
|
19
19
|
const index$2 = require("../../../hooks/props-default/index.cjs");
|
|
20
20
|
const data$1 = require("../../box-title/src/data.cjs");
|
|
21
|
+
const bar_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/bar2.cjs");
|
|
22
|
+
const star_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/star2.cjs");
|
|
23
|
+
const frame_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/frame2.cjs");
|
|
21
24
|
const _hoisted_1 = ["title"];
|
|
22
25
|
const _hoisted_2 = ["title"];
|
|
23
26
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -232,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
232
235
|
vue.createVNode(vue.unref(index$6.Icon), null, {
|
|
233
236
|
default: vue.withCtx(() => [
|
|
234
237
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot)["icon-min"], {}, () => [
|
|
235
|
-
vue.createVNode(
|
|
238
|
+
vue.createVNode(bar_vue_vue_type_script_setup_true_lang.default)
|
|
236
239
|
])
|
|
237
240
|
]),
|
|
238
241
|
_: 3
|
|
@@ -249,9 +252,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
249
252
|
vue.createVNode(vue.unref(index$6.Icon), null, {
|
|
250
253
|
default: vue.withCtx(() => [
|
|
251
254
|
isMax.value ? vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot)["icon-full"], { key: 0 }, () => [
|
|
252
|
-
vue.createVNode(
|
|
255
|
+
vue.createVNode(star_vue_vue_type_script_setup_true_lang.default)
|
|
253
256
|
]) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot)["icon-max"], { key: 1 }, () => [
|
|
254
|
-
vue.createVNode(
|
|
257
|
+
vue.createVNode(frame_vue_vue_type_script_setup_true_lang.default)
|
|
255
258
|
])
|
|
256
259
|
]),
|
|
257
260
|
_: 3
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, shallowRef, watch, nextTick, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, normalizeClass, withDirectives, renderSlot, createElementVNode, createVNode } from "vue";
|
|
2
2
|
import { Icon } from "../../icon/index.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import "../../../icons/vue/bar.js";
|
|
4
|
+
import "../../../icons/vue/frame.js";
|
|
5
|
+
import "../../../icons/vue/star.js";
|
|
6
6
|
import { getCss } from "@fangzhongya/utils/css/getCss";
|
|
7
7
|
import { setCss } from "@fangzhongya/utils/css/setCss";
|
|
8
8
|
import { name, dataProps, dataExpose, dataSlot, dataEmits } from "./data.js";
|
|
@@ -16,6 +16,9 @@ import { setClassName } from "@fangzhongya/utils/css/setClassName";
|
|
|
16
16
|
import vDrag from "../../../directives/drag/index.js";
|
|
17
17
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
18
18
|
import { name as name$1 } from "../../box-title/src/data.js";
|
|
19
|
+
import _sfc_main$1 from "../../../icons/vue/bar2.js";
|
|
20
|
+
import _sfc_main$2 from "../../../icons/vue/star2.js";
|
|
21
|
+
import _sfc_main$3 from "../../../icons/vue/frame2.js";
|
|
19
22
|
const _hoisted_1 = ["title"];
|
|
20
23
|
const _hoisted_2 = ["title"];
|
|
21
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -230,7 +233,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
230
233
|
createVNode(unref(Icon), null, {
|
|
231
234
|
default: withCtx(() => [
|
|
232
235
|
renderSlot(_ctx.$slots, unref(dataSlot)["icon-min"], {}, () => [
|
|
233
|
-
createVNode(
|
|
236
|
+
createVNode(_sfc_main$1)
|
|
234
237
|
])
|
|
235
238
|
]),
|
|
236
239
|
_: 3
|
|
@@ -247,9 +250,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
247
250
|
createVNode(unref(Icon), null, {
|
|
248
251
|
default: withCtx(() => [
|
|
249
252
|
isMax.value ? renderSlot(_ctx.$slots, unref(dataSlot)["icon-full"], { key: 0 }, () => [
|
|
250
|
-
createVNode(
|
|
253
|
+
createVNode(_sfc_main$2)
|
|
251
254
|
]) : renderSlot(_ctx.$slots, unref(dataSlot)["icon-max"], { key: 1 }, () => [
|
|
252
|
-
createVNode(
|
|
255
|
+
createVNode(_sfc_main$3)
|
|
253
256
|
])
|
|
254
257
|
]),
|
|
255
258
|
_: 3
|
package/dist/css/edit.css
CHANGED
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.edit {
|
|
26
|
-
display: inline-
|
|
26
|
+
display: inline-block;
|
|
27
27
|
align-items: center;
|
|
28
|
+
height: 100%;
|
|
28
29
|
}
|
|
29
30
|
.edit-value {
|
|
30
31
|
display: inline-block;
|
|
32
|
+
height: 100%;
|
|
31
33
|
min-width: 3px;
|
|
32
34
|
}
|
|
33
35
|
.edit-icon {
|
|
34
|
-
|
|
35
|
-
align-items: center;
|
|
36
|
+
box-sizing: border-box;
|
|
36
37
|
height: 100%;
|
|
37
|
-
min-width: 3px;
|
|
38
38
|
font-size: 16px;
|
|
39
|
-
margin:
|
|
39
|
+
margin: 2px;
|
|
40
40
|
cursor: pointer;
|
|
41
41
|
}
|
package/dist/css/index.css
CHANGED
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
|
|
793
793
|
.right-key-box {
|
|
794
794
|
width: 140px;
|
|
795
|
-
position:
|
|
795
|
+
position: fixed;
|
|
796
796
|
padding: 10px;
|
|
797
797
|
z-index: 9999;
|
|
798
798
|
background: #ffffff;
|
|
@@ -808,6 +808,7 @@
|
|
|
808
808
|
white-space: nowrap;
|
|
809
809
|
display: flex;
|
|
810
810
|
align-items: center;
|
|
811
|
+
box-sizing: border-box;
|
|
811
812
|
height: 40px;
|
|
812
813
|
padding: 8px 14px 8px 10px;
|
|
813
814
|
border-radius: 4px;
|
|
@@ -1460,6 +1461,9 @@
|
|
|
1460
1461
|
|
|
1461
1462
|
.retract {
|
|
1462
1463
|
position: relative;
|
|
1464
|
+
--retract-width: 12px;
|
|
1465
|
+
--retract-height: 40px;
|
|
1466
|
+
--retract-width-adjust: 8px;
|
|
1463
1467
|
}
|
|
1464
1468
|
.retract-div.left, .retract-div.right {
|
|
1465
1469
|
height: 100%;
|
|
@@ -1489,13 +1493,13 @@
|
|
|
1489
1493
|
}
|
|
1490
1494
|
.retract .retract-but.is-left {
|
|
1491
1495
|
top: 50%;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
left: -
|
|
1496
|
+
height: var(--retract-height);
|
|
1497
|
+
margin-top: calc(var(--retract-height) / 2 * -1);
|
|
1498
|
+
width: var(--retract-width);
|
|
1499
|
+
left: calc(0 - var(--retract-width));
|
|
1496
1500
|
}
|
|
1497
1501
|
.retract .retract-but.is-left.is-adjust {
|
|
1498
|
-
left: -
|
|
1502
|
+
left: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
1499
1503
|
}
|
|
1500
1504
|
.retract .retract-but.is-left .retract-icon {
|
|
1501
1505
|
transform: rotate(0);
|
|
@@ -1505,13 +1509,13 @@
|
|
|
1505
1509
|
}
|
|
1506
1510
|
.retract .retract-but.is-right {
|
|
1507
1511
|
top: 50%;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
right: -
|
|
1512
|
+
height: var(--retract-height);
|
|
1513
|
+
margin-top: calc(var(--retract-height) / 2 * -1);
|
|
1514
|
+
width: var(--retract-width);
|
|
1515
|
+
right: calc(0 - var(--retract-width));
|
|
1512
1516
|
}
|
|
1513
1517
|
.retract .retract-but.is-right.is-adjust {
|
|
1514
|
-
right: -
|
|
1518
|
+
right: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
1515
1519
|
}
|
|
1516
1520
|
.retract .retract-but.is-right .retract-icon {
|
|
1517
1521
|
transform: rotate(-180deg);
|
|
@@ -1521,13 +1525,13 @@
|
|
|
1521
1525
|
}
|
|
1522
1526
|
.retract .retract-but.is-top {
|
|
1523
1527
|
left: 50%;
|
|
1524
|
-
width:
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
top: -
|
|
1528
|
+
width: var(--retract-height);
|
|
1529
|
+
margin-left: calc(var(--retract-height) / 2 * -1);
|
|
1530
|
+
height: var(--retract-width);
|
|
1531
|
+
top: calc(0 - var(--retract-width));
|
|
1528
1532
|
}
|
|
1529
1533
|
.retract .retract-but.is-top.is-adjust {
|
|
1530
|
-
top: -
|
|
1534
|
+
top: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
1531
1535
|
}
|
|
1532
1536
|
.retract .retract-but.is-top .retract-icon {
|
|
1533
1537
|
transform: rotate(90deg);
|
|
@@ -1537,13 +1541,13 @@
|
|
|
1537
1541
|
}
|
|
1538
1542
|
.retract .retract-but.is-bottom {
|
|
1539
1543
|
left: 50%;
|
|
1540
|
-
width:
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
bottom: -
|
|
1544
|
+
width: var(--retract-height);
|
|
1545
|
+
margin-left: calc(var(--retract-height) / 2 * -1);
|
|
1546
|
+
height: var(--retract-width);
|
|
1547
|
+
bottom: calc(0 - var(--retract-width));
|
|
1544
1548
|
}
|
|
1545
1549
|
.retract .retract-but.is-bottom.is-adjust {
|
|
1546
|
-
bottom: -
|
|
1550
|
+
bottom: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
1547
1551
|
}
|
|
1548
1552
|
.retract .retract-but.is-bottom .retract-icon {
|
|
1549
1553
|
transform: rotate(-90deg);
|
|
@@ -1710,20 +1714,20 @@
|
|
|
1710
1714
|
}
|
|
1711
1715
|
|
|
1712
1716
|
.edit {
|
|
1713
|
-
display: inline-
|
|
1717
|
+
display: inline-block;
|
|
1714
1718
|
align-items: center;
|
|
1719
|
+
height: 100%;
|
|
1715
1720
|
}
|
|
1716
1721
|
.edit-value {
|
|
1717
1722
|
display: inline-block;
|
|
1723
|
+
height: 100%;
|
|
1718
1724
|
min-width: 3px;
|
|
1719
1725
|
}
|
|
1720
1726
|
.edit-icon {
|
|
1721
|
-
|
|
1722
|
-
align-items: center;
|
|
1727
|
+
box-sizing: border-box;
|
|
1723
1728
|
height: 100%;
|
|
1724
|
-
min-width: 3px;
|
|
1725
1729
|
font-size: 16px;
|
|
1726
|
-
margin:
|
|
1730
|
+
margin: 2px;
|
|
1727
1731
|
cursor: pointer;
|
|
1728
1732
|
}
|
|
1729
1733
|
|
package/dist/css/retract.css
CHANGED
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
|
|
25
25
|
.retract {
|
|
26
26
|
position: relative;
|
|
27
|
+
--retract-width: 12px;
|
|
28
|
+
--retract-height: 40px;
|
|
29
|
+
--retract-width-adjust: 8px;
|
|
27
30
|
}
|
|
28
31
|
.retract-div.left, .retract-div.right {
|
|
29
32
|
height: 100%;
|
|
@@ -53,13 +56,13 @@
|
|
|
53
56
|
}
|
|
54
57
|
.retract .retract-but.is-left {
|
|
55
58
|
top: 50%;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
left: -
|
|
59
|
+
height: var(--retract-height);
|
|
60
|
+
margin-top: calc(var(--retract-height) / 2 * -1);
|
|
61
|
+
width: var(--retract-width);
|
|
62
|
+
left: calc(0 - var(--retract-width));
|
|
60
63
|
}
|
|
61
64
|
.retract .retract-but.is-left.is-adjust {
|
|
62
|
-
left: -
|
|
65
|
+
left: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
63
66
|
}
|
|
64
67
|
.retract .retract-but.is-left .retract-icon {
|
|
65
68
|
transform: rotate(0);
|
|
@@ -69,13 +72,13 @@
|
|
|
69
72
|
}
|
|
70
73
|
.retract .retract-but.is-right {
|
|
71
74
|
top: 50%;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
right: -
|
|
75
|
+
height: var(--retract-height);
|
|
76
|
+
margin-top: calc(var(--retract-height) / 2 * -1);
|
|
77
|
+
width: var(--retract-width);
|
|
78
|
+
right: calc(0 - var(--retract-width));
|
|
76
79
|
}
|
|
77
80
|
.retract .retract-but.is-right.is-adjust {
|
|
78
|
-
right: -
|
|
81
|
+
right: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
79
82
|
}
|
|
80
83
|
.retract .retract-but.is-right .retract-icon {
|
|
81
84
|
transform: rotate(-180deg);
|
|
@@ -85,13 +88,13 @@
|
|
|
85
88
|
}
|
|
86
89
|
.retract .retract-but.is-top {
|
|
87
90
|
left: 50%;
|
|
88
|
-
width:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
top: -
|
|
91
|
+
width: var(--retract-height);
|
|
92
|
+
margin-left: calc(var(--retract-height) / 2 * -1);
|
|
93
|
+
height: var(--retract-width);
|
|
94
|
+
top: calc(0 - var(--retract-width));
|
|
92
95
|
}
|
|
93
96
|
.retract .retract-but.is-top.is-adjust {
|
|
94
|
-
top: -
|
|
97
|
+
top: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
95
98
|
}
|
|
96
99
|
.retract .retract-but.is-top .retract-icon {
|
|
97
100
|
transform: rotate(90deg);
|
|
@@ -101,13 +104,13 @@
|
|
|
101
104
|
}
|
|
102
105
|
.retract .retract-but.is-bottom {
|
|
103
106
|
left: 50%;
|
|
104
|
-
width:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
bottom: -
|
|
107
|
+
width: var(--retract-height);
|
|
108
|
+
margin-left: calc(var(--retract-height) / 2 * -1);
|
|
109
|
+
height: var(--retract-width);
|
|
110
|
+
bottom: calc(0 - var(--retract-width));
|
|
108
111
|
}
|
|
109
112
|
.retract .retract-but.is-bottom.is-adjust {
|
|
110
|
-
bottom: -
|
|
113
|
+
bottom: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
111
114
|
}
|
|
112
115
|
.retract .retract-but.is-bottom .retract-icon {
|
|
113
116
|
transform: rotate(-90deg);
|
package/dist/css/right-key.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.right-key-box {
|
|
26
26
|
width: 140px;
|
|
27
|
-
position:
|
|
27
|
+
position: fixed;
|
|
28
28
|
padding: 10px;
|
|
29
29
|
z-index: 9999;
|
|
30
30
|
background: #ffffff;
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
43
|
+
box-sizing: border-box;
|
|
43
44
|
height: 40px;
|
|
44
45
|
padding: 8px 14px 8px 10px;
|
|
45
46
|
border-radius: 4px;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
function useModel(props, emit) {
|
|
5
|
+
const internalValue = vue.ref();
|
|
6
|
+
const instance = vue.getCurrentInstance();
|
|
7
|
+
const hasExternalValue = vue.computed(() => {
|
|
8
|
+
if (!instance) return false;
|
|
9
|
+
const vnodeProps = instance.vnode.props || {};
|
|
10
|
+
return "modelValue" in vnodeProps;
|
|
11
|
+
});
|
|
12
|
+
return vue.computed({
|
|
13
|
+
get() {
|
|
14
|
+
return hasExternalValue.value ? props.modelValue : internalValue.value;
|
|
15
|
+
},
|
|
16
|
+
set(v) {
|
|
17
|
+
if (hasExternalValue.value) {
|
|
18
|
+
emit("update:modelValue", v);
|
|
19
|
+
} else {
|
|
20
|
+
internalValue.value = v;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.useModel = useModel;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ref, getCurrentInstance, computed } from "vue";
|
|
2
|
+
function useModel(props, emit) {
|
|
3
|
+
const internalValue = ref();
|
|
4
|
+
const instance = getCurrentInstance();
|
|
5
|
+
const hasExternalValue = computed(() => {
|
|
6
|
+
if (!instance) return false;
|
|
7
|
+
const vnodeProps = instance.vnode.props || {};
|
|
8
|
+
return "modelValue" in vnodeProps;
|
|
9
|
+
});
|
|
10
|
+
return computed({
|
|
11
|
+
get() {
|
|
12
|
+
return hasExternalValue.value ? props.modelValue : internalValue.value;
|
|
13
|
+
},
|
|
14
|
+
set(v) {
|
|
15
|
+
if (hasExternalValue.value) {
|
|
16
|
+
emit("update:modelValue", v);
|
|
17
|
+
} else {
|
|
18
|
+
internalValue.value = v;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
useModel
|
|
25
|
+
};
|
package/dist/icons/index.json
CHANGED
package/dist/icons/vue/bar.cjs
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.cjs");
|
|
6
|
-
const _hoisted_1 = {
|
|
7
|
-
id: "icon-bar",
|
|
8
|
-
viewBox: "0 0 1024 1024",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
-
};
|
|
11
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
-
vue.createElementVNode("path", {
|
|
14
|
-
fill: "currentColor",
|
|
15
|
-
d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"
|
|
16
|
-
}, null, -1)
|
|
17
|
-
])]);
|
|
18
|
-
}
|
|
19
|
-
const Bar = /* @__PURE__ */ _pluginVue_exportHelper.default(bar_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
|
|
20
|
-
exports.default = Bar;
|
|
3
|
+
const bar_vue_vue_type_script_setup_true_lang = require("./bar2.cjs");
|
|
4
|
+
exports.default = bar_vue_vue_type_script_setup_true_lang.default;
|