@cyberpunk-vue/components 1.13.14 → 1.13.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +20 -12
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2648,7 +2648,15 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2648
2648
|
}, _e = (e) => {
|
|
2649
2649
|
e.preventDefault(), e.deltaY < 0 ? Y() : X();
|
|
2650
2650
|
}, ve = (e) => {
|
|
2651
|
-
d.closeOnClickModal
|
|
2651
|
+
if (!d.closeOnClickModal) return;
|
|
2652
|
+
let t = e.target;
|
|
2653
|
+
t instanceof Element && t.closest([
|
|
2654
|
+
`.${m.e("img")}`,
|
|
2655
|
+
`.${m.e("toolbar")}`,
|
|
2656
|
+
`.${m.e("arrow")}`,
|
|
2657
|
+
`.${m.e("close")}`,
|
|
2658
|
+
`.${m.e("counter")}`
|
|
2659
|
+
].join(",")) || oe();
|
|
2652
2660
|
};
|
|
2653
2661
|
return W(() => d.modelValue, (e) => {
|
|
2654
2662
|
h.value = e, e ? (_.value = d.initialIndex, q(), b.value = !0, he()) : ge();
|
|
@@ -2692,7 +2700,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2692
2700
|
title: "关闭预览 (ESC)",
|
|
2693
2701
|
onClick: oe
|
|
2694
2702
|
}, {
|
|
2695
|
-
default: K(() => [...r[
|
|
2703
|
+
default: K(() => [...r[1] ||= [l("svg", {
|
|
2696
2704
|
viewBox: "0 0 24 24",
|
|
2697
2705
|
width: "20",
|
|
2698
2706
|
height: "20",
|
|
@@ -2721,7 +2729,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2721
2729
|
title: "上一张 (←)",
|
|
2722
2730
|
disabled: !V.value
|
|
2723
2731
|
}, {
|
|
2724
|
-
default: K(() => [...r[
|
|
2732
|
+
default: K(() => [...r[2] ||= [l("svg", {
|
|
2725
2733
|
viewBox: "0 0 24 24",
|
|
2726
2734
|
width: "24",
|
|
2727
2735
|
height: "24",
|
|
@@ -2750,7 +2758,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2750
2758
|
title: "下一张 (→)",
|
|
2751
2759
|
disabled: !H.value
|
|
2752
2760
|
}, {
|
|
2753
|
-
default: K(() => [...r[
|
|
2761
|
+
default: K(() => [...r[3] ||= [l("svg", {
|
|
2754
2762
|
viewBox: "0 0 24 24",
|
|
2755
2763
|
width: "24",
|
|
2756
2764
|
height: "24",
|
|
@@ -2766,7 +2774,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2766
2774
|
])], 2)),
|
|
2767
2775
|
l("div", {
|
|
2768
2776
|
class: S(B(m).e("canvas")),
|
|
2769
|
-
onClick:
|
|
2777
|
+
onClick: ve
|
|
2770
2778
|
}, [b.value ? (D(), c("div", {
|
|
2771
2779
|
key: 0,
|
|
2772
2780
|
class: S(B(m).e("loading"))
|
|
@@ -2785,7 +2793,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2785
2793
|
}, null, 46, en), [[U, !b.value]])], 2),
|
|
2786
2794
|
l("div", {
|
|
2787
2795
|
class: S(B(m).e("toolbar")),
|
|
2788
|
-
onClick: r[
|
|
2796
|
+
onClick: r[0] ||= J(() => {}, ["stop"])
|
|
2789
2797
|
}, [N(e.$slots, "toolbar", C(g(pe.value)), () => [
|
|
2790
2798
|
p(B(Ye), {
|
|
2791
2799
|
variant: "ghost",
|
|
@@ -2797,7 +2805,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2797
2805
|
disabled: v.value <= tn,
|
|
2798
2806
|
onClick: X
|
|
2799
2807
|
}, {
|
|
2800
|
-
default: K(() => [...r[
|
|
2808
|
+
default: K(() => [...r[4] ||= [l("svg", {
|
|
2801
2809
|
viewBox: "0 0 24 24",
|
|
2802
2810
|
width: "20",
|
|
2803
2811
|
height: "20",
|
|
@@ -2825,7 +2833,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2825
2833
|
disabled: v.value >= nn,
|
|
2826
2834
|
onClick: Y
|
|
2827
2835
|
}, {
|
|
2828
|
-
default: K(() => [...r[
|
|
2836
|
+
default: K(() => [...r[5] ||= [l("svg", {
|
|
2829
2837
|
viewBox: "0 0 24 24",
|
|
2830
2838
|
width: "20",
|
|
2831
2839
|
height: "20",
|
|
@@ -2853,7 +2861,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2853
2861
|
title: "向左旋转",
|
|
2854
2862
|
onClick: ne
|
|
2855
2863
|
}, {
|
|
2856
|
-
default: K(() => [...r[
|
|
2864
|
+
default: K(() => [...r[6] ||= [l("svg", {
|
|
2857
2865
|
viewBox: "0 0 24 24",
|
|
2858
2866
|
width: "20",
|
|
2859
2867
|
height: "20",
|
|
@@ -2872,7 +2880,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2872
2880
|
title: "向右旋转",
|
|
2873
2881
|
onClick: re
|
|
2874
2882
|
}, {
|
|
2875
|
-
default: K(() => [...r[
|
|
2883
|
+
default: K(() => [...r[7] ||= [l("svg", {
|
|
2876
2884
|
viewBox: "0 0 24 24",
|
|
2877
2885
|
width: "20",
|
|
2878
2886
|
height: "20",
|
|
@@ -2892,7 +2900,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2892
2900
|
title: "还原缩放与位置",
|
|
2893
2901
|
onClick: q
|
|
2894
2902
|
}, {
|
|
2895
|
-
default: K(() => [...r[
|
|
2903
|
+
default: K(() => [...r[8] ||= [l("svg", {
|
|
2896
2904
|
viewBox: "0 0 24 24",
|
|
2897
2905
|
width: "20",
|
|
2898
2906
|
height: "20",
|
|
@@ -2917,7 +2925,7 @@ var xe = [], Se = 0, Ce = 0, we = () => [...xe].sort((e, t) => e.stackPriority =
|
|
|
2917
2925
|
title: "下载图片",
|
|
2918
2926
|
onClick: fe
|
|
2919
2927
|
}, {
|
|
2920
|
-
default: K(() => [...r[
|
|
2928
|
+
default: K(() => [...r[9] ||= [l("svg", {
|
|
2921
2929
|
viewBox: "0 0 24 24",
|
|
2922
2930
|
width: "20",
|
|
2923
2931
|
height: "20",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.16",
|
|
4
4
|
"description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@floating-ui/dom": "^1.7.6",
|
|
27
27
|
"dayjs": "^1.11.20",
|
|
28
|
-
"@cyberpunk-vue/constants": "1.13.
|
|
29
|
-
"@cyberpunk-vue/
|
|
30
|
-
"@cyberpunk-vue/
|
|
28
|
+
"@cyberpunk-vue/constants": "1.13.16",
|
|
29
|
+
"@cyberpunk-vue/theme-chalk": "1.13.16",
|
|
30
|
+
"@cyberpunk-vue/hooks": "1.13.16"
|
|
31
31
|
},
|
|
32
32
|
"author": "Juxest",
|
|
33
33
|
"license": "MIT",
|