vlite3 1.5.18 → 1.5.20
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/components/Carousel/Carousel.vue.d.ts +4 -0
- package/components/Carousel/Carousel.vue.js +2 -2
- package/components/Carousel/Carousel2.vue.js +38 -32
- package/components/EditableTitle/EditableTitle.vue.js +2 -2
- package/components/EditableTitle/EditableTitle2.vue.js +187 -184
- package/components/Workbook/Sheet.vue.d.ts +5 -0
- package/components/Workbook/Sheet.vue.js +81 -72
- package/components/Workbook/Workbook.vue.d.ts +1 -0
- package/components/Workbook/Workbook.vue.js +2 -2
- package/components/Workbook/Workbook2.vue.js +100 -95
- package/components/Workbook/types.d.ts +4 -0
- package/docs/components/carousel.md +9 -6
- package/docs/components/editable-title.md +6 -6
- package/docs/components/workbook.md +7 -2
- package/docs-manifest.json +5 -5
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -384,6 +384,10 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {
|
|
|
384
384
|
goPrev: (smooth?: boolean) => void;
|
|
385
385
|
goNextPage: (smooth?: boolean) => void;
|
|
386
386
|
goPrevPage: (smooth?: boolean) => void;
|
|
387
|
+
focus: () => void;
|
|
388
|
+
state: import('vue').ComputedRef<any>;
|
|
389
|
+
canGoNext: import('vue').ComputedRef<any>;
|
|
390
|
+
canGoPrev: import('vue').ComputedRef<any>;
|
|
387
391
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
388
392
|
"slide-change": (index: number) => any;
|
|
389
393
|
}, string, import('vue').PublicProps, Readonly<CarouselProps> & Readonly<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Carousel2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-968cf839"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as S, shallowRef as x, computed as a, openBlock as w, createElementBlock as T, createVNode as N, unref as _, mergeProps as b, createSlots as C, renderList as k, withCtx as z, renderSlot as G, normalizeProps as R, guardReactiveProps as E } from "vue";
|
|
2
|
+
import I from "vue-carousel-lite";
|
|
3
3
|
import "vue-carousel-lite/style.css";
|
|
4
|
-
const
|
|
4
|
+
const V = { class: "carousel-wrapper" }, $ = /* @__PURE__ */ S({
|
|
5
5
|
__name: "Carousel",
|
|
6
6
|
props: {
|
|
7
7
|
data: { default: () => [] },
|
|
@@ -37,36 +37,42 @@ const N = { class: "carousel-wrapper" }, V = /* @__PURE__ */ f({
|
|
|
37
37
|
updateKey: { default: void 0 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["slide-change"],
|
|
40
|
-
setup(r, { expose:
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
m
|
|
40
|
+
setup(r, { expose: s, emit: u }) {
|
|
41
|
+
const i = r, d = u, t = x(null), f = (e, o) => {
|
|
42
|
+
t.value?.goToSlide(e, o);
|
|
43
|
+
}, p = (e) => {
|
|
44
|
+
t.value?.goNext(e);
|
|
45
|
+
}, c = (e) => {
|
|
46
|
+
t.value?.goPrev(e);
|
|
47
|
+
}, g = (e) => {
|
|
48
|
+
t.value?.goNextPage(e);
|
|
49
|
+
}, m = (e) => {
|
|
50
|
+
t.value?.goPrevPage(e);
|
|
51
|
+
}, v = () => {
|
|
52
|
+
t.value?.focus?.();
|
|
53
|
+
}, h = a(() => t.value?.state), P = a(() => t.value?.canGoNext ?? !0), y = a(() => t.value?.canGoPrev ?? !1);
|
|
54
|
+
return s({
|
|
55
|
+
goToSlide: f,
|
|
56
|
+
goNext: p,
|
|
57
|
+
goPrev: c,
|
|
58
|
+
goNextPage: g,
|
|
59
|
+
goPrevPage: m,
|
|
60
|
+
focus: v,
|
|
61
|
+
state: h,
|
|
62
|
+
canGoNext: P,
|
|
63
|
+
canGoPrev: y
|
|
64
|
+
}), (e, o) => (w(), T("div", V, [
|
|
65
|
+
N(_(I), b({
|
|
60
66
|
ref_key: "carouselRef",
|
|
61
|
-
ref:
|
|
62
|
-
},
|
|
67
|
+
ref: t
|
|
68
|
+
}, i, {
|
|
63
69
|
style: { height: "100%", width: "100%" },
|
|
64
|
-
onSlideChange:
|
|
65
|
-
}),
|
|
66
|
-
|
|
67
|
-
name:
|
|
68
|
-
fn:
|
|
69
|
-
|
|
70
|
+
onSlideChange: o[0] || (o[0] = (l) => d("slide-change", l))
|
|
71
|
+
}), C({ _: 2 }, [
|
|
72
|
+
k(e.$slots, (l, n) => ({
|
|
73
|
+
name: n,
|
|
74
|
+
fn: z((B) => [
|
|
75
|
+
G(e.$slots, n, R(E(B || {})), void 0, !0)
|
|
70
76
|
])
|
|
71
77
|
}))
|
|
72
78
|
]), 1040)
|
|
@@ -74,5 +80,5 @@ const N = { class: "carousel-wrapper" }, V = /* @__PURE__ */ f({
|
|
|
74
80
|
}
|
|
75
81
|
});
|
|
76
82
|
export {
|
|
77
|
-
|
|
83
|
+
$ as default
|
|
78
84
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./EditableTitle2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ff749f41"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|