@opentinyvue/vue-carousel 2.21.0 → 3.21.0
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/lib/index.js +1 -1
- package/lib/mobile-first.js +156 -148
- package/lib/pc.js +155 -148
- package/package.json +3 -3
- package/src/index.d.ts +147 -1
- package/src/mobile-first.vue.d.ts +82 -1
- package/src/pc.vue.d.ts +79 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/carousel/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import { IconChevronLeft, IconChevronRight, IconChevronUp, IconChevronDown } from '@opentinyvue/vue-icon';
|
|
4
|
+
import { openBlock, createElementBlock, withModifiers, createElementVNode, normalizeStyle, withDirectives, normalizeClass, createBlock, resolveDynamicComponent, vShow, createCommentVNode, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var originalRender = options.render;
|
|
20
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
21
|
-
hook.call(context);
|
|
22
|
-
return originalRender(h, context);
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
34
38
|
|
|
35
|
-
var
|
|
39
|
+
var _sfc_main = defineComponent({
|
|
36
40
|
emits: ["change", "complete"],
|
|
37
41
|
props: [].concat(props, ["initialIndex", "height", "trigger", "autoplay", "interval", "indicatorPosition", "indicatorStyle", "arrow", "type", "showTitle", "loop", "aspectRatio", "swipeable", "lite", "beforeSwipe"]),
|
|
38
42
|
setup: function setup$1(props2, context) {
|
|
@@ -50,130 +54,134 @@ var __vue2_script = defineComponent({
|
|
|
50
54
|
IconChevronDown: IconChevronDown()
|
|
51
55
|
}
|
|
52
56
|
});
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, [_c("div", {
|
|
73
|
-
ref: "carousel",
|
|
74
|
-
staticClass: "relative overflow-hidden rounded",
|
|
75
|
-
style: _vm.state.style,
|
|
76
|
-
attrs: {
|
|
77
|
-
"data-tag": "tiny-carousel-block"
|
|
78
|
-
},
|
|
79
|
-
on: {
|
|
80
|
-
"touchstart": _vm.touchstart,
|
|
81
|
-
"touchmove": _vm.touchmove,
|
|
82
|
-
"touchend": _vm.touchend
|
|
83
|
-
}
|
|
84
|
-
}, [_vm.state.hasButtons ? _c("button", {
|
|
85
|
-
directives: [{
|
|
86
|
-
name: "show",
|
|
87
|
-
rawName: "v-show",
|
|
88
|
-
value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex > 0),
|
|
89
|
-
expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex > 0)"
|
|
90
|
-
}],
|
|
91
|
-
staticClass: "absolute group border-none outline-0 p-0 m-0 h-8 w-8 cursor-pointer z-[3] rounded-full bg-color-bg-3 active:bg-color-bg-7 text-color-text-inverse text-center text-xs flex items-center justify-center hover:bg-color-bg-7",
|
|
92
|
-
class: [_vm.type === "vertical" ? "top-4 left-1/2" : "left-4 top-1/2 -translate-y-4"],
|
|
93
|
-
attrs: {
|
|
94
|
-
"type": "button"
|
|
95
|
-
},
|
|
96
|
-
on: {
|
|
97
|
-
"mouseenter": function mouseenter($event) {
|
|
98
|
-
return _vm.handleButtonEnter("left");
|
|
99
|
-
},
|
|
100
|
-
"mouseleave": _vm.handleButtonLeave,
|
|
101
|
-
"click": function click($event) {
|
|
102
|
-
$event.stopPropagation();
|
|
103
|
-
return _vm.throttledArrowClick(_vm.state.activeIndex - 1);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}, [_c(_vm.type === "vertical" ? "icon-chevron-up" : "icon-chevron-left", {
|
|
107
|
-
tag: "component",
|
|
108
|
-
staticClass: "w-4.5 h-4.5 opacity-50 fill-color-icon-primary group-active:fill-color-bg-2 group-hover:fill-color-bg-1"
|
|
109
|
-
})], 1) : _vm._e(), _vm.state.hasButtons ? _c("button", {
|
|
110
|
-
directives: [{
|
|
111
|
-
name: "show",
|
|
112
|
-
rawName: "v-show",
|
|
113
|
-
value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex < _vm.state.items.length - 1),
|
|
114
|
-
expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex < state.items.length - 1)"
|
|
115
|
-
}],
|
|
116
|
-
staticClass: "absolute group border-none outline-0 p-0 m-0 h-8 w-8 cursor-pointer z-[3] rounded-full bg-color-bg-3 active:bg-color-bg-7 text-color-text-inverse text-center text-xs flex items-center justify-center hover:bg-color-bg-7",
|
|
117
|
-
class: [_vm.type === "vertical" ? "top-auto left-1/2 bottom-4" : "right-4 top-1/2 -translate-y-4"],
|
|
118
|
-
attrs: {
|
|
119
|
-
"type": "button"
|
|
57
|
+
var _hoisted_1 = ["onMouseenter", "onClick"];
|
|
58
|
+
var _hoisted_2 = {
|
|
59
|
+
key: 0,
|
|
60
|
+
"data-tag": "tiny-carousel-label"
|
|
61
|
+
};
|
|
62
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63
|
+
return openBlock(), createElementBlock(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
"data-tag": "tiny-carousel",
|
|
67
|
+
class: "relative overflow-hidden rounded",
|
|
68
|
+
onMouseenter: _cache[9] || (_cache[9] = withModifiers(function() {
|
|
69
|
+
return _ctx.handleMouseEnter && _ctx.handleMouseEnter.apply(_ctx, arguments);
|
|
70
|
+
}, ["stop"])),
|
|
71
|
+
onMouseleave: _cache[10] || (_cache[10] = withModifiers(function() {
|
|
72
|
+
return _ctx.handleMouseLeave && _ctx.handleMouseLeave.apply(_ctx, arguments);
|
|
73
|
+
}, ["stop"]))
|
|
120
74
|
},
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"data-tag": "tiny-carousel-body"
|
|
138
|
-
}
|
|
139
|
-
}, _vm._l(_vm.state.items, function(item, index) {
|
|
140
|
-
return _c("li", {
|
|
141
|
-
key: index,
|
|
142
|
-
class: ["group cursor-pointer", _vm.type === "vertical" ? "block h-auto mb-1.5 mx-0 p-0 first:pl-0 last:pr-0" : "inline-block h-1 p-0 my-0 mr-1.5", _vm.state.hasLabel ? "py-1.5 px-1" : ""],
|
|
143
|
-
attrs: {
|
|
144
|
-
"data-tag": "tiny-carousel-list"
|
|
75
|
+
[createElementVNode(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
"data-tag": "tiny-carousel-block",
|
|
79
|
+
onTouchstart: _cache[6] || (_cache[6] = function() {
|
|
80
|
+
return _ctx.touchstart && _ctx.touchstart.apply(_ctx, arguments);
|
|
81
|
+
}),
|
|
82
|
+
onTouchmove: _cache[7] || (_cache[7] = function() {
|
|
83
|
+
return _ctx.touchmove && _ctx.touchmove.apply(_ctx, arguments);
|
|
84
|
+
}),
|
|
85
|
+
onTouchend: _cache[8] || (_cache[8] = function() {
|
|
86
|
+
return _ctx.touchend && _ctx.touchend.apply(_ctx, arguments);
|
|
87
|
+
}),
|
|
88
|
+
ref: "carousel",
|
|
89
|
+
class: "relative overflow-hidden rounded",
|
|
90
|
+
style: normalizeStyle(_ctx.state.style)
|
|
145
91
|
},
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
|
|
92
|
+
[_ctx.state.hasButtons ? withDirectives((openBlock(), createElementBlock(
|
|
93
|
+
"button",
|
|
94
|
+
{
|
|
95
|
+
key: 0,
|
|
96
|
+
type: "button",
|
|
97
|
+
class: normalizeClass(["absolute group border-none outline-0 p-0 m-0 h-8 w-8 cursor-pointer z-[3] rounded-full bg-color-bg-3 active:bg-color-bg-7 text-color-text-inverse text-center text-xs flex items-center justify-center hover:bg-color-bg-7", [_ctx.type === "vertical" ? "top-4 left-1/2" : "left-4 top-1/2 -translate-y-4"]]),
|
|
98
|
+
onMouseenter: _cache[0] || (_cache[0] = function($event) {
|
|
99
|
+
return _ctx.handleButtonEnter("left");
|
|
100
|
+
}),
|
|
101
|
+
onMouseleave: _cache[1] || (_cache[1] = function() {
|
|
102
|
+
return _ctx.handleButtonLeave && _ctx.handleButtonLeave.apply(_ctx, arguments);
|
|
103
|
+
}),
|
|
104
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(function($event) {
|
|
105
|
+
return _ctx.throttledArrowClick(_ctx.state.activeIndex - 1);
|
|
106
|
+
}, ["stop"]))
|
|
149
107
|
},
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
108
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "vertical" ? "icon-chevron-up" : "icon-chevron-left"), {
|
|
109
|
+
class: "w-4.5 h-4.5 opacity-50 fill-color-icon-primary group-active:fill-color-bg-2 group-hover:fill-color-bg-1"
|
|
110
|
+
}))],
|
|
111
|
+
34
|
|
112
|
+
/* CLASS, NEED_HYDRATION */
|
|
113
|
+
)), [[vShow, (_ctx.arrow === "always" || _ctx.state.hover) && (_ctx.loop || _ctx.state.activeIndex > 0)]]) : createCommentVNode("v-if", true), _ctx.state.hasButtons ? withDirectives((openBlock(), createElementBlock(
|
|
114
|
+
"button",
|
|
115
|
+
{
|
|
116
|
+
key: 1,
|
|
117
|
+
type: "button",
|
|
118
|
+
class: normalizeClass(["absolute group border-none outline-0 p-0 m-0 h-8 w-8 cursor-pointer z-[3] rounded-full bg-color-bg-3 active:bg-color-bg-7 text-color-text-inverse text-center text-xs flex items-center justify-center hover:bg-color-bg-7", [_ctx.type === "vertical" ? "top-auto left-1/2 bottom-4" : "right-4 top-1/2 -translate-y-4"]]),
|
|
119
|
+
onMouseenter: _cache[3] || (_cache[3] = function($event) {
|
|
120
|
+
return _ctx.handleButtonEnter("right");
|
|
121
|
+
}),
|
|
122
|
+
onMouseleave: _cache[4] || (_cache[4] = function() {
|
|
123
|
+
return _ctx.handleButtonLeave && _ctx.handleButtonLeave.apply(_ctx, arguments);
|
|
124
|
+
}),
|
|
125
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(function($event) {
|
|
126
|
+
return _ctx.throttledArrowClick(_ctx.state.activeIndex + 1);
|
|
127
|
+
}, ["stop"]))
|
|
128
|
+
},
|
|
129
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "vertical" ? "icon-chevron-down" : "icon-chevron-right"), {
|
|
130
|
+
class: "w-4.5 h-4.5 opacity-50 fill-color-icon-primary group-active:fill-color-bg-2 group-hover:fill-color-bg-1"
|
|
131
|
+
}))],
|
|
132
|
+
34
|
|
133
|
+
/* CLASS, NEED_HYDRATION */
|
|
134
|
+
)), [[vShow, (_ctx.arrow === "always" || _ctx.state.hover) && (_ctx.loop || _ctx.state.activeIndex < _ctx.state.items.length - 1)]]) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")],
|
|
135
|
+
36
|
|
136
|
+
/* STYLE, NEED_HYDRATION */
|
|
137
|
+
), _ctx.state.hasIndicators ? (openBlock(), createElementBlock(
|
|
138
|
+
"ul",
|
|
139
|
+
{
|
|
140
|
+
key: 0,
|
|
141
|
+
"data-tag": "tiny-carousel-body",
|
|
142
|
+
class: normalizeClass(["list-none m-0 py-0 px-1 z-[2] flex justify-center items-center", _ctx.type === "vertical" && _ctx.indicatorPosition !== "outside" ? "flex-col left-4 bottom-0 transform-none w-1 h-full py-1 px-0" : "w-full h-1 left-0 bottom-4", _ctx.indicatorPosition === "outside" ? "static mt-2" : "absolute", _ctx.state.hasLabel ? "left-0 right-0 text-center transform-none" : "", _ctx.showTitle ? "left-auto right-3 bottom-1 transform-none bg-transparent" : ""])
|
|
143
|
+
},
|
|
144
|
+
[(openBlock(true), createElementBlock(
|
|
145
|
+
Fragment,
|
|
146
|
+
null,
|
|
147
|
+
renderList(_ctx.state.items, function(item, index) {
|
|
148
|
+
return openBlock(), createElementBlock("li", {
|
|
149
|
+
"data-tag": "tiny-carousel-list",
|
|
150
|
+
key: index,
|
|
151
|
+
class: normalizeClass(["group cursor-pointer", _ctx.type === "vertical" ? "block h-auto mb-1.5 mx-0 p-0 first:pl-0 last:pr-0" : "inline-block h-1 p-0 my-0 mr-1.5", _ctx.state.hasLabel ? "py-1.5 px-1" : ""]),
|
|
152
|
+
onMouseenter: function onMouseenter($event) {
|
|
153
|
+
return _ctx.throttledIndicatorHover(index);
|
|
154
|
+
},
|
|
155
|
+
onClick: withModifiers(function($event) {
|
|
156
|
+
return _ctx.handleIndicatorClick(index);
|
|
157
|
+
}, ["stop"])
|
|
158
|
+
}, [createElementVNode(
|
|
159
|
+
"button",
|
|
160
|
+
{
|
|
161
|
+
type: "button",
|
|
162
|
+
class: normalizeClass(_ctx.m(["block border-none outline-0 p-0 m-0 cursor-pointer rounded-sm", _ctx.indicatorPosition === "outside" || _ctx.indicatorStyle === "light" ? "bg-color-bg-3 hover:bg-color-brand" : "bg-color-bg-6 hover:bg-color-bg-5", _ctx.state.hasLabel ? "py-0.5 px-4.5 text-xs" : "", _ctx.type === "vertical" ? "h-1 w-1" : "w-1 h-1", index === _ctx.state.activeIndex ? _ctx.type === "vertical" ? "h-4 w-1" : "w-4 h-1" : "", index === _ctx.state.activeIndex ? _ctx.indicatorPosition === "outside" || _ctx.indicatorStyle === "light" ? "bg-color-brand" : "bg-color-bg-1" : ""]))
|
|
163
|
+
},
|
|
164
|
+
[_ctx.state.hasLabel ? (openBlock(), createElementBlock(
|
|
165
|
+
"span",
|
|
166
|
+
_hoisted_2,
|
|
167
|
+
toDisplayString(item.label),
|
|
168
|
+
1
|
|
169
|
+
/* TEXT */
|
|
170
|
+
)) : createCommentVNode("v-if", true)],
|
|
171
|
+
2
|
|
172
|
+
/* CLASS */
|
|
173
|
+
)], 42, _hoisted_1);
|
|
174
|
+
}),
|
|
175
|
+
128
|
|
176
|
+
/* KEYED_FRAGMENT */
|
|
177
|
+
))],
|
|
178
|
+
2
|
|
179
|
+
/* CLASS */
|
|
180
|
+
)) : createCommentVNode("v-if", true)],
|
|
181
|
+
32
|
|
182
|
+
/* NEED_HYDRATION */
|
|
183
|
+
);
|
|
174
184
|
}
|
|
175
|
-
var mobileFirst = /* @__PURE__ */
|
|
176
|
-
return __component__.exports;
|
|
177
|
-
}();
|
|
185
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
178
186
|
|
|
179
187
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -2,38 +2,42 @@ import { renderless, api } from '@opentinyvue/vue-renderless/carousel/vue';
|
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import { iconChevronLeft, iconChevronRight, iconChevronUp, iconChevronDown } from '@opentinyvue/vue-icon';
|
|
4
4
|
import '@opentinyvue/vue-theme/carousel/index.css';
|
|
5
|
+
import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, normalizeStyle, createVNode, Transition, withCtx, withDirectives, createBlock, resolveDynamicComponent, vShow, createCommentVNode, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
|
|
5
6
|
|
|
6
|
-
function
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
+
t && (r = t);
|
|
12
|
+
var o = 0;
|
|
13
|
+
return function() {
|
|
14
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var originalRender = options.render;
|
|
21
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
22
|
-
hook.call(context);
|
|
23
|
-
return originalRender(h, context);
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
var existing = options.beforeCreate;
|
|
27
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
28
|
-
}
|
|
17
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
+
}
|
|
19
|
+
function _unsupportedIterableToArray(r, a) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
29
24
|
}
|
|
30
|
-
return {
|
|
31
|
-
exports: scriptExports,
|
|
32
|
-
options
|
|
33
|
-
};
|
|
34
25
|
}
|
|
26
|
+
function _arrayLikeToArray(r, a) {
|
|
27
|
+
(null == a || a > r.length) && (a = r.length);
|
|
28
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
+
var target = sfc.__vccOpts || sfc;
|
|
33
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
35
39
|
|
|
36
|
-
var
|
|
40
|
+
var _sfc_main = defineComponent({
|
|
37
41
|
emits: ["change", "complete"],
|
|
38
42
|
props: [].concat(props, ["initialIndex", "height", "trigger", "autoplay", "interval", "indicatorPosition", "arrow", "type", "showTitle", "loop", "disabled", "swipeable", "lite", "beforeSwipe"]),
|
|
39
43
|
setup: function setup$1(props2, context) {
|
|
@@ -51,130 +55,133 @@ var __vue2_script = defineComponent({
|
|
|
51
55
|
IconChevronDown: iconChevronDown()
|
|
52
56
|
}
|
|
53
57
|
});
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
}, [_c("transition", {
|
|
79
|
-
attrs: {
|
|
80
|
-
"name": _vm.type === "vertical" ? "tiny-transition-carousel-arrow-top" : "tiny-transition-carousel-arrow-left"
|
|
81
|
-
}
|
|
82
|
-
}, [_vm.state.hasButtons ? _c("button", {
|
|
83
|
-
directives: [{
|
|
84
|
-
name: "show",
|
|
85
|
-
rawName: "v-show",
|
|
86
|
-
value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex > 0),
|
|
87
|
-
expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex > 0)"
|
|
88
|
-
}],
|
|
89
|
-
class: ["tiny-carousel__arrow", _vm.type === "vertical" ? "tiny-carousel__arrow-top" : "tiny-carousel__arrow-left", _vm.disabled && _vm.state.activeIndex === 0 ? "tiny-carousel__arrow-disabled" : ""],
|
|
90
|
-
attrs: {
|
|
91
|
-
"type": "button",
|
|
92
|
-
"disabled": _vm.loop && _vm.disabled && _vm.state.activeIndex === 0
|
|
93
|
-
},
|
|
94
|
-
on: {
|
|
95
|
-
"mouseenter": function mouseenter($event) {
|
|
96
|
-
return _vm.handleButtonEnter("left");
|
|
97
|
-
},
|
|
98
|
-
"mouseleave": _vm.handleButtonLeave,
|
|
99
|
-
"click": function click($event) {
|
|
100
|
-
$event.stopPropagation();
|
|
101
|
-
return _vm.throttledArrowClick(_vm.state.activeIndex - 1);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}, [_c(_vm.type === "vertical" ? "icon-chevron-up" : "icon-chevron-left", {
|
|
105
|
-
tag: "component",
|
|
106
|
-
staticClass: "tiny-svg-size"
|
|
107
|
-
})], 1) : _vm._e()]), _c("transition", {
|
|
108
|
-
attrs: {
|
|
109
|
-
"name": _vm.type === "vertical" ? "tiny-transition-carousel-arrow-bottom" : "tiny-transition-carousel-arrow-right"
|
|
110
|
-
}
|
|
111
|
-
}, [_vm.state.hasButtons ? _c("button", {
|
|
112
|
-
directives: [{
|
|
113
|
-
name: "show",
|
|
114
|
-
rawName: "v-show",
|
|
115
|
-
value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex < _vm.state.items.length - 1),
|
|
116
|
-
expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex < state.items.length - 1)"
|
|
117
|
-
}],
|
|
118
|
-
class: ["tiny-carousel__arrow", _vm.type === "vertical" ? "tiny-carousel__arrow-bottom" : "tiny-carousel__arrow-right", _vm.disabled && _vm.state.activeIndex === _vm.state.items.length - 1 ? "tiny-carousel__arrow-disabled" : ""],
|
|
119
|
-
attrs: {
|
|
120
|
-
"type": "button",
|
|
121
|
-
"disabled": _vm.loop && _vm.disabled && _vm.state.activeIndex === _vm.state.items.length - 1
|
|
58
|
+
var _hoisted_1 = ["disabled"];
|
|
59
|
+
var _hoisted_2 = ["disabled"];
|
|
60
|
+
var _hoisted_3 = ["onMouseenter", "onClick"];
|
|
61
|
+
var _hoisted_4 = {
|
|
62
|
+
type: "button",
|
|
63
|
+
class: "tiny-carousel__button"
|
|
64
|
+
};
|
|
65
|
+
var _hoisted_5 = {
|
|
66
|
+
key: 0
|
|
67
|
+
};
|
|
68
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
+
return openBlock(), createElementBlock(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
class: normalizeClass([{
|
|
73
|
+
"tiny-carousel--card": _ctx.type === "card"
|
|
74
|
+
}, "tiny-carousel"]),
|
|
75
|
+
onMouseenter: _cache[6] || (_cache[6] = withModifiers(function() {
|
|
76
|
+
return _ctx.handleMouseEnter && _ctx.handleMouseEnter.apply(_ctx, arguments);
|
|
77
|
+
}, ["stop"])),
|
|
78
|
+
onMouseleave: _cache[7] || (_cache[7] = withModifiers(function() {
|
|
79
|
+
return _ctx.handleMouseLeave && _ctx.handleMouseLeave.apply(_ctx, arguments);
|
|
80
|
+
}, ["stop"]))
|
|
122
81
|
},
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
|
|
82
|
+
[createElementVNode(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
style: normalizeStyle({
|
|
86
|
+
height: _ctx.height
|
|
87
|
+
}),
|
|
88
|
+
class: "tiny-carousel__container"
|
|
126
89
|
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
90
|
+
[createVNode(Transition, {
|
|
91
|
+
name: _ctx.type === "vertical" ? "tiny-transition-carousel-arrow-top" : "tiny-transition-carousel-arrow-left"
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(function() {
|
|
94
|
+
return [_ctx.state.hasButtons ? withDirectives((openBlock(), createElementBlock("button", {
|
|
95
|
+
key: 0,
|
|
96
|
+
type: "button",
|
|
97
|
+
class: normalizeClass(["tiny-carousel__arrow", _ctx.type === "vertical" ? "tiny-carousel__arrow-top" : "tiny-carousel__arrow-left", _ctx.disabled && _ctx.state.activeIndex === 0 ? "tiny-carousel__arrow-disabled" : ""]),
|
|
98
|
+
disabled: _ctx.loop && _ctx.disabled && _ctx.state.activeIndex === 0,
|
|
99
|
+
onMouseenter: _cache[0] || (_cache[0] = function($event) {
|
|
100
|
+
return _ctx.handleButtonEnter("left");
|
|
101
|
+
}),
|
|
102
|
+
onMouseleave: _cache[1] || (_cache[1] = function() {
|
|
103
|
+
return _ctx.handleButtonLeave && _ctx.handleButtonLeave.apply(_ctx, arguments);
|
|
104
|
+
}),
|
|
105
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(function($event) {
|
|
106
|
+
return _ctx.throttledArrowClick(_ctx.state.activeIndex - 1);
|
|
107
|
+
}, ["stop"]))
|
|
108
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "vertical" ? "icon-chevron-up" : "icon-chevron-left"), {
|
|
109
|
+
class: "tiny-svg-size"
|
|
110
|
+
}))], 42, _hoisted_1)), [[vShow, (_ctx.arrow === "always" || _ctx.state.hover) && (_ctx.loop || _ctx.state.activeIndex > 0)]]) : createCommentVNode("v-if", true)];
|
|
111
|
+
}),
|
|
112
|
+
_: 1
|
|
113
|
+
/* STABLE */
|
|
114
|
+
}, 8, ["name"]), createVNode(Transition, {
|
|
115
|
+
name: _ctx.type === "vertical" ? "tiny-transition-carousel-arrow-bottom" : "tiny-transition-carousel-arrow-right"
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx(function() {
|
|
118
|
+
return [_ctx.state.hasButtons ? withDirectives((openBlock(), createElementBlock("button", {
|
|
119
|
+
key: 0,
|
|
120
|
+
type: "button",
|
|
121
|
+
class: normalizeClass(["tiny-carousel__arrow", _ctx.type === "vertical" ? "tiny-carousel__arrow-bottom" : "tiny-carousel__arrow-right", _ctx.disabled && _ctx.state.activeIndex === _ctx.state.items.length - 1 ? "tiny-carousel__arrow-disabled" : ""]),
|
|
122
|
+
disabled: _ctx.loop && _ctx.disabled && _ctx.state.activeIndex === _ctx.state.items.length - 1,
|
|
123
|
+
onMouseenter: _cache[3] || (_cache[3] = function($event) {
|
|
124
|
+
return _ctx.handleButtonEnter("right");
|
|
125
|
+
}),
|
|
126
|
+
onMouseleave: _cache[4] || (_cache[4] = function() {
|
|
127
|
+
return _ctx.handleButtonLeave && _ctx.handleButtonLeave.apply(_ctx, arguments);
|
|
128
|
+
}),
|
|
129
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(function($event) {
|
|
130
|
+
return _ctx.throttledArrowClick(_ctx.state.activeIndex + 1);
|
|
131
|
+
}, ["stop"]))
|
|
132
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "vertical" ? "icon-chevron-down" : "icon-chevron-right"), {
|
|
133
|
+
class: "tiny-svg-size"
|
|
134
|
+
}))], 42, _hoisted_2)), [[vShow, (_ctx.arrow === "always" || _ctx.state.hover) && (_ctx.loop || _ctx.state.activeIndex < _ctx.state.items.length - 1)]]) : createCommentVNode("v-if", true)];
|
|
135
|
+
}),
|
|
136
|
+
_: 1
|
|
137
|
+
/* STABLE */
|
|
138
|
+
}, 8, ["name"]), renderSlot(_ctx.$slots, "default")],
|
|
139
|
+
4
|
|
140
|
+
/* STYLE */
|
|
141
|
+
), _ctx.state.hasIndicators ? (openBlock(), createElementBlock(
|
|
142
|
+
"ul",
|
|
143
|
+
{
|
|
144
|
+
key: 0,
|
|
145
|
+
class: normalizeClass([{
|
|
146
|
+
"tiny-carousel__indicators-labels": _ctx.state.hasLabel,
|
|
147
|
+
"tiny-carousel__indicators-title": _ctx.showTitle,
|
|
148
|
+
"tiny-carousel__indicators-vertical": _ctx.type === "vertical",
|
|
149
|
+
"tiny-carousel__indicators-outside": _ctx.indicatorPosition === "outside" || _ctx.type === "card"
|
|
150
|
+
}, "tiny-carousel__indicators"])
|
|
150
151
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
152
|
+
[(openBlock(true), createElementBlock(
|
|
153
|
+
Fragment,
|
|
154
|
+
null,
|
|
155
|
+
renderList(_ctx.state.items, function(item, index) {
|
|
156
|
+
return openBlock(), createElementBlock("li", {
|
|
157
|
+
key: index,
|
|
158
|
+
class: normalizeClass([{
|
|
159
|
+
"is-active": index === _ctx.state.activeIndex
|
|
160
|
+
}, "tiny-carousel__indicator"]),
|
|
161
|
+
onMouseenter: function onMouseenter($event) {
|
|
162
|
+
return _ctx.throttledIndicatorHover(index);
|
|
163
|
+
},
|
|
164
|
+
onClick: withModifiers(function($event) {
|
|
165
|
+
return _ctx.handleIndicatorClick(index);
|
|
166
|
+
}, ["stop"])
|
|
167
|
+
}, [createElementVNode("button", _hoisted_4, [_ctx.state.hasLabel ? (openBlock(), createElementBlock(
|
|
168
|
+
"span",
|
|
169
|
+
_hoisted_5,
|
|
170
|
+
toDisplayString(item.label),
|
|
171
|
+
1
|
|
172
|
+
/* TEXT */
|
|
173
|
+
)) : createCommentVNode("v-if", true)])], 42, _hoisted_3);
|
|
174
|
+
}),
|
|
175
|
+
128
|
|
176
|
+
/* KEYED_FRAGMENT */
|
|
177
|
+
))],
|
|
178
|
+
2
|
|
179
|
+
/* CLASS */
|
|
180
|
+
)) : createCommentVNode("v-if", true)],
|
|
181
|
+
34
|
|
182
|
+
/* CLASS, NEED_HYDRATION */
|
|
183
|
+
);
|
|
175
184
|
}
|
|
176
|
-
var pc = /* @__PURE__ */
|
|
177
|
-
return __component__.exports;
|
|
178
|
-
}();
|
|
185
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
179
186
|
|
|
180
187
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-carousel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~
|
|
11
|
-
"@opentinyvue/vue-icon": "~
|
|
10
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.21.0",
|
|
12
12
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
13
13
|
"@opentinyvue/vue-theme": "~3.21.0"
|
|
14
14
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,148 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
_constants: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {
|
|
5
|
+
CHILD_NAME: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
initialIndex: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
height: StringConstructor;
|
|
13
|
+
trigger: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
autoplay: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
interval: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
loop: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
indicatorPosition: StringConstructor;
|
|
34
|
+
arrow: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
type: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
validator: (value: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
showTitle: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
aspectRatio: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
indicatorStyle: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
validator: (value: string) => boolean;
|
|
55
|
+
};
|
|
56
|
+
swipeable: BooleanConstructor;
|
|
57
|
+
lite: BooleanConstructor;
|
|
58
|
+
beforeSwipe: FunctionConstructor;
|
|
59
|
+
tiny_mode: StringConstructor;
|
|
60
|
+
tiny_mode_root: BooleanConstructor;
|
|
61
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
62
|
+
tiny_renderless: FunctionConstructor;
|
|
63
|
+
tiny_theme: StringConstructor;
|
|
64
|
+
tiny_chart_theme: ObjectConstructor;
|
|
65
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
68
|
+
_constants: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: () => {
|
|
71
|
+
CHILD_NAME: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
initialIndex: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
height: StringConstructor;
|
|
79
|
+
trigger: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
autoplay: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
interval: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
loop: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
disabled: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
indicatorPosition: StringConstructor;
|
|
100
|
+
arrow: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
type: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
validator: (value: string) => boolean;
|
|
108
|
+
};
|
|
109
|
+
showTitle: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
aspectRatio: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
indicatorStyle: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
validator: (value: string) => boolean;
|
|
121
|
+
};
|
|
122
|
+
swipeable: BooleanConstructor;
|
|
123
|
+
lite: BooleanConstructor;
|
|
124
|
+
beforeSwipe: FunctionConstructor;
|
|
125
|
+
tiny_mode: StringConstructor;
|
|
126
|
+
tiny_mode_root: BooleanConstructor;
|
|
127
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
128
|
+
tiny_renderless: FunctionConstructor;
|
|
129
|
+
tiny_theme: StringConstructor;
|
|
130
|
+
tiny_chart_theme: ObjectConstructor;
|
|
131
|
+
}>>, {
|
|
132
|
+
disabled: boolean;
|
|
133
|
+
type: string;
|
|
134
|
+
tiny_mode_root: boolean;
|
|
135
|
+
_constants: Record<string, any>;
|
|
136
|
+
trigger: string;
|
|
137
|
+
showTitle: boolean;
|
|
138
|
+
arrow: string;
|
|
139
|
+
aspectRatio: string;
|
|
140
|
+
swipeable: boolean;
|
|
141
|
+
initialIndex: number;
|
|
142
|
+
autoplay: boolean;
|
|
143
|
+
interval: number;
|
|
144
|
+
indicatorStyle: string;
|
|
145
|
+
loop: boolean;
|
|
146
|
+
lite: boolean;
|
|
147
|
+
}, {}>;
|
|
2
148
|
export default _default;
|
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
type?: any;
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
height?: any;
|
|
11
|
+
trigger?: any;
|
|
12
|
+
showTitle?: any;
|
|
13
|
+
arrow?: any;
|
|
14
|
+
aspectRatio?: any;
|
|
15
|
+
swipeable?: any;
|
|
16
|
+
initialIndex?: any;
|
|
17
|
+
autoplay?: any;
|
|
18
|
+
interval?: any;
|
|
19
|
+
indicatorPosition?: any;
|
|
20
|
+
indicatorStyle?: any;
|
|
21
|
+
loop?: any;
|
|
22
|
+
lite?: any;
|
|
23
|
+
beforeSwipe?: any;
|
|
24
|
+
}>, {
|
|
25
|
+
t: (this: any, path: any, options?: any) => any;
|
|
26
|
+
vm: any;
|
|
27
|
+
f: (props: any, attrs?: {}) => {};
|
|
28
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
29
|
+
d: (props: any) => void;
|
|
30
|
+
dp: (props: any) => void;
|
|
31
|
+
gcls: (key: any) => any;
|
|
32
|
+
m: (...cssClasses: any[]) => string;
|
|
33
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "complete")[], "change" | "complete", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
34
|
+
type?: any;
|
|
35
|
+
tiny_mode?: any;
|
|
36
|
+
tiny_mode_root?: any;
|
|
37
|
+
tiny_template?: any;
|
|
38
|
+
tiny_renderless?: any;
|
|
39
|
+
_constants?: any;
|
|
40
|
+
tiny_theme?: any;
|
|
41
|
+
tiny_chart_theme?: any;
|
|
42
|
+
height?: any;
|
|
43
|
+
trigger?: any;
|
|
44
|
+
showTitle?: any;
|
|
45
|
+
arrow?: any;
|
|
46
|
+
aspectRatio?: any;
|
|
47
|
+
swipeable?: any;
|
|
48
|
+
initialIndex?: any;
|
|
49
|
+
autoplay?: any;
|
|
50
|
+
interval?: any;
|
|
51
|
+
indicatorPosition?: any;
|
|
52
|
+
indicatorStyle?: any;
|
|
53
|
+
loop?: any;
|
|
54
|
+
lite?: any;
|
|
55
|
+
beforeSwipe?: any;
|
|
56
|
+
}>>> & {
|
|
57
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
readonly type?: any;
|
|
61
|
+
readonly tiny_mode?: any;
|
|
62
|
+
readonly tiny_mode_root?: any;
|
|
63
|
+
readonly tiny_template?: any;
|
|
64
|
+
readonly tiny_renderless?: any;
|
|
65
|
+
readonly _constants?: any;
|
|
66
|
+
readonly tiny_theme?: any;
|
|
67
|
+
readonly tiny_chart_theme?: any;
|
|
68
|
+
readonly height?: any;
|
|
69
|
+
readonly trigger?: any;
|
|
70
|
+
readonly showTitle?: any;
|
|
71
|
+
readonly arrow?: any;
|
|
72
|
+
readonly aspectRatio?: any;
|
|
73
|
+
readonly swipeable?: any;
|
|
74
|
+
readonly initialIndex?: any;
|
|
75
|
+
readonly autoplay?: any;
|
|
76
|
+
readonly interval?: any;
|
|
77
|
+
readonly indicatorPosition?: any;
|
|
78
|
+
readonly indicatorStyle?: any;
|
|
79
|
+
readonly loop?: any;
|
|
80
|
+
readonly lite?: any;
|
|
81
|
+
readonly beforeSwipe?: any;
|
|
82
|
+
}, {}>;
|
|
2
83
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,80 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
disabled?: any;
|
|
3
|
+
type?: any;
|
|
4
|
+
tiny_mode?: any;
|
|
5
|
+
tiny_mode_root?: any;
|
|
6
|
+
tiny_template?: any;
|
|
7
|
+
tiny_renderless?: any;
|
|
8
|
+
_constants?: any;
|
|
9
|
+
tiny_theme?: any;
|
|
10
|
+
tiny_chart_theme?: any;
|
|
11
|
+
height?: any;
|
|
12
|
+
trigger?: any;
|
|
13
|
+
showTitle?: any;
|
|
14
|
+
arrow?: any;
|
|
15
|
+
swipeable?: any;
|
|
16
|
+
initialIndex?: any;
|
|
17
|
+
autoplay?: any;
|
|
18
|
+
interval?: any;
|
|
19
|
+
indicatorPosition?: any;
|
|
20
|
+
loop?: any;
|
|
21
|
+
lite?: any;
|
|
22
|
+
beforeSwipe?: any;
|
|
23
|
+
}>, {
|
|
24
|
+
t: (this: any, path: any, options?: any) => any;
|
|
25
|
+
vm: any;
|
|
26
|
+
f: (props: any, attrs?: {}) => {};
|
|
27
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
28
|
+
d: (props: any) => void;
|
|
29
|
+
dp: (props: any) => void;
|
|
30
|
+
gcls: (key: any) => any;
|
|
31
|
+
m: (...cssClasses: any[]) => string;
|
|
32
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "complete")[], "change" | "complete", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
33
|
+
disabled?: any;
|
|
34
|
+
type?: any;
|
|
35
|
+
tiny_mode?: any;
|
|
36
|
+
tiny_mode_root?: any;
|
|
37
|
+
tiny_template?: any;
|
|
38
|
+
tiny_renderless?: any;
|
|
39
|
+
_constants?: any;
|
|
40
|
+
tiny_theme?: any;
|
|
41
|
+
tiny_chart_theme?: any;
|
|
42
|
+
height?: any;
|
|
43
|
+
trigger?: any;
|
|
44
|
+
showTitle?: any;
|
|
45
|
+
arrow?: any;
|
|
46
|
+
swipeable?: any;
|
|
47
|
+
initialIndex?: any;
|
|
48
|
+
autoplay?: any;
|
|
49
|
+
interval?: any;
|
|
50
|
+
indicatorPosition?: any;
|
|
51
|
+
loop?: any;
|
|
52
|
+
lite?: any;
|
|
53
|
+
beforeSwipe?: any;
|
|
54
|
+
}>>> & {
|
|
55
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
readonly disabled?: any;
|
|
59
|
+
readonly type?: any;
|
|
60
|
+
readonly tiny_mode?: any;
|
|
61
|
+
readonly tiny_mode_root?: any;
|
|
62
|
+
readonly tiny_template?: any;
|
|
63
|
+
readonly tiny_renderless?: any;
|
|
64
|
+
readonly _constants?: any;
|
|
65
|
+
readonly tiny_theme?: any;
|
|
66
|
+
readonly tiny_chart_theme?: any;
|
|
67
|
+
readonly height?: any;
|
|
68
|
+
readonly trigger?: any;
|
|
69
|
+
readonly showTitle?: any;
|
|
70
|
+
readonly arrow?: any;
|
|
71
|
+
readonly swipeable?: any;
|
|
72
|
+
readonly initialIndex?: any;
|
|
73
|
+
readonly autoplay?: any;
|
|
74
|
+
readonly interval?: any;
|
|
75
|
+
readonly indicatorPosition?: any;
|
|
76
|
+
readonly loop?: any;
|
|
77
|
+
readonly lite?: any;
|
|
78
|
+
readonly beforeSwipe?: any;
|
|
79
|
+
}, {}>;
|
|
2
80
|
export default _default;
|