@varlet/ui 2.20.7 → 2.21.0-alpha.1704976407062
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/es/card/Card.mjs +2 -0
- package/es/checkbox/Checkbox.mjs +3 -2
- package/es/collapse-item/CollapseItem.mjs +16 -81
- package/es/collapse-transition/CollapseTransition.mjs +50 -0
- package/es/collapse-transition/CollapseTransitionSfc.css +0 -0
- package/es/collapse-transition/collapseTransition.css +1 -0
- package/es/collapse-transition/index.mjs +12 -0
- package/es/collapse-transition/props.mjs +6 -0
- package/es/collapse-transition/style/index.mjs +3 -0
- package/es/collapse-transition/useCollapseTransition.mjs +87 -0
- package/es/image-preview/ImagePreview.mjs +3 -2
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/radio/Radio.mjs +4 -3
- package/es/snackbar/style/index.mjs +1 -1
- package/es/step/Step.mjs +4 -3
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/varlet.esm.js +4582 -4511
- package/highlight/web-types.en-US.json +23 -2
- package/highlight/web-types.zh-CN.json +23 -2
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +725 -648
- package/package.json +7 -7
- package/types/collapseTransition.d.ts +20 -0
- package/types/index.d.ts +2 -0
- package/umd/varlet.js +5 -5
package/es/card/Card.mjs
CHANGED
|
@@ -60,6 +60,8 @@ function __render__(_ctx, _cache) {
|
|
|
60
60
|
left: _ctx.floaterLeft,
|
|
61
61
|
overflow: _ctx.floaterOverflow,
|
|
62
62
|
position: _ctx.floaterPosition,
|
|
63
|
+
zIndex: _ctx.floated ? _ctx.zIndex : void 0,
|
|
64
|
+
background: _ctx.outline && !_ctx.floated ? "transparent" : void 0,
|
|
63
65
|
transition: _ctx.floated ? `background-color ${_ctx.floatingDuration}ms, color ${_ctx.floatingDuration}ms, width ${_ctx.floatingDuration}ms, height ${_ctx.floatingDuration}ms, top ${_ctx.floatingDuration}ms, left ${_ctx.floatingDuration}ms` : void 0
|
|
64
66
|
})
|
|
65
67
|
},
|
package/es/checkbox/Checkbox.mjs
CHANGED
|
@@ -79,9 +79,10 @@ function __render__(_ctx, _cache) {
|
|
|
79
79
|
[_directive_hover, _ctx.handleHovering, "desktop"],
|
|
80
80
|
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }]
|
|
81
81
|
]),
|
|
82
|
-
|
|
82
|
+
_ctx.$slots.default ? (_openBlock(), _createElementBlock(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
+
key: 0,
|
|
85
86
|
class: _normalizeClass(
|
|
86
87
|
_ctx.classes(
|
|
87
88
|
_ctx.n("text"),
|
|
@@ -95,7 +96,7 @@ function __render__(_ctx, _cache) {
|
|
|
95
96
|
],
|
|
96
97
|
2
|
|
97
98
|
/* CLASS */
|
|
98
|
-
)
|
|
99
|
+
)) : _createCommentVNode("v-if", true)
|
|
99
100
|
],
|
|
100
101
|
2
|
|
101
102
|
/* CLASS */
|
|
@@ -1,31 +1,11 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
var fulfilled = (value) => {
|
|
4
|
-
try {
|
|
5
|
-
step(generator.next(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
reject(e);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var rejected = (value) => {
|
|
11
|
-
try {
|
|
12
|
-
step(generator.throw(value));
|
|
13
|
-
} catch (e) {
|
|
14
|
-
reject(e);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
1
|
import VarIcon from "../icon/index.mjs";
|
|
22
|
-
import { defineComponent, ref,
|
|
23
|
-
import { doubleRaf, raf } from "@varlet/shared";
|
|
2
|
+
import { defineComponent, ref, computed } from "vue";
|
|
24
3
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
25
4
|
import { useCollapse } from "./provide.mjs";
|
|
26
5
|
import { props } from "./props.mjs";
|
|
6
|
+
import { useCollapseTransition } from "../collapse-transition/useCollapseTransition.mjs";
|
|
27
7
|
const { name, n, classes } = createNamespace("collapse-item");
|
|
28
|
-
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle
|
|
8
|
+
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle } from "vue";
|
|
29
9
|
function __render__(_ctx, _cache) {
|
|
30
10
|
const _component_var_icon = _resolveComponent("var-icon");
|
|
31
11
|
return _openBlock(), _createElementBlock(
|
|
@@ -51,9 +31,10 @@ function __render__(_ctx, _cache) {
|
|
|
51
31
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
|
|
52
32
|
},
|
|
53
33
|
[
|
|
54
|
-
|
|
34
|
+
_ctx.$slots.title || _ctx.title ? (_openBlock(), _createElementBlock(
|
|
55
35
|
"div",
|
|
56
36
|
{
|
|
37
|
+
key: 0,
|
|
57
38
|
class: _normalizeClass(_ctx.n("header-title"))
|
|
58
39
|
},
|
|
59
40
|
[
|
|
@@ -67,7 +48,7 @@ function __render__(_ctx, _cache) {
|
|
|
67
48
|
],
|
|
68
49
|
2
|
|
69
50
|
/* CLASS */
|
|
70
|
-
),
|
|
51
|
+
)) : _createCommentVNode("v-if", true),
|
|
71
52
|
_createElementVNode(
|
|
72
53
|
"div",
|
|
73
54
|
{
|
|
@@ -100,8 +81,8 @@ function __render__(_ctx, _cache) {
|
|
|
100
81
|
{
|
|
101
82
|
class: _normalizeClass(_ctx.n("content")),
|
|
102
83
|
ref: "contentEl",
|
|
103
|
-
onTransitionend: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
104
|
-
onTransitionstart: _cache[2] || (_cache[2] = (...args) => _ctx.
|
|
84
|
+
onTransitionend: _cache[1] || (_cache[1] = (...args) => _ctx.handleTransitionEnd && _ctx.handleTransitionEnd(...args)),
|
|
85
|
+
onTransitionstart: _cache[2] || (_cache[2] = (...args) => _ctx.handleTransitionStart && _ctx.handleTransitionStart(...args))
|
|
105
86
|
},
|
|
106
87
|
[
|
|
107
88
|
_createElementVNode(
|
|
@@ -146,49 +127,12 @@ const __sfc__ = defineComponent({
|
|
|
146
127
|
disabled,
|
|
147
128
|
init
|
|
148
129
|
};
|
|
149
|
-
let isInitToTrigger = true;
|
|
150
|
-
watch(isShow, (value) => {
|
|
151
|
-
value ? openPanel() : closePanel();
|
|
152
|
-
});
|
|
153
130
|
bindCollapse(collapseItemProvider);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
contentEl.value.style.height = "";
|
|
160
|
-
showContent.value = true;
|
|
161
|
-
yield raf();
|
|
162
|
-
if (!contentEl.value) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
const { offsetHeight } = contentEl.value;
|
|
166
|
-
contentEl.value.style.height = "0px";
|
|
167
|
-
yield raf();
|
|
168
|
-
if (!contentEl.value) {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
contentEl.value.style.height = offsetHeight + "px";
|
|
172
|
-
if (!isInitToTrigger) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
yield doubleRaf();
|
|
176
|
-
if (isInitToTrigger) {
|
|
177
|
-
transitionend();
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function closePanel() {
|
|
182
|
-
return __async(this, null, function* () {
|
|
183
|
-
if (!contentEl.value) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
const { offsetHeight } = contentEl.value;
|
|
187
|
-
contentEl.value.style.height = offsetHeight + "px";
|
|
188
|
-
yield raf();
|
|
189
|
-
contentEl.value.style.height = "0px";
|
|
190
|
-
});
|
|
191
|
-
}
|
|
131
|
+
const { handleTransitionEnd, handleTransitionStart } = useCollapseTransition({
|
|
132
|
+
contentEl,
|
|
133
|
+
showContent,
|
|
134
|
+
expand: isShow
|
|
135
|
+
});
|
|
192
136
|
function init(show) {
|
|
193
137
|
isShow.value = show;
|
|
194
138
|
}
|
|
@@ -199,15 +143,6 @@ const __sfc__ = defineComponent({
|
|
|
199
143
|
}
|
|
200
144
|
updateItem((_a = props2.name) != null ? _a : index.value, !isShow.value);
|
|
201
145
|
}
|
|
202
|
-
function start() {
|
|
203
|
-
isInitToTrigger = false;
|
|
204
|
-
}
|
|
205
|
-
function transitionend() {
|
|
206
|
-
if (!isShow.value) {
|
|
207
|
-
showContent.value = false;
|
|
208
|
-
}
|
|
209
|
-
contentEl.value.style.height = "";
|
|
210
|
-
}
|
|
211
146
|
return {
|
|
212
147
|
isShow,
|
|
213
148
|
showContent,
|
|
@@ -216,11 +151,11 @@ const __sfc__ = defineComponent({
|
|
|
216
151
|
elevation,
|
|
217
152
|
contentEl,
|
|
218
153
|
n,
|
|
219
|
-
start,
|
|
220
154
|
classes,
|
|
221
155
|
toggle,
|
|
222
|
-
|
|
223
|
-
|
|
156
|
+
formatElevation,
|
|
157
|
+
handleTransitionEnd,
|
|
158
|
+
handleTransitionStart
|
|
224
159
|
};
|
|
225
160
|
}
|
|
226
161
|
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from "vue";
|
|
2
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
3
|
+
import { props } from "./props.mjs";
|
|
4
|
+
import { useCollapseTransition } from "./useCollapseTransition.mjs";
|
|
5
|
+
const { name, n } = createNamespace("collapse-transition");
|
|
6
|
+
import { renderSlot as _renderSlot, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
7
|
+
function __render__(_ctx, _cache) {
|
|
8
|
+
return _withDirectives((_openBlock(), _createElementBlock(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
class: _normalizeClass(_ctx.n("content")),
|
|
12
|
+
ref: "contentEl",
|
|
13
|
+
onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.handleTransitionEnd && _ctx.handleTransitionEnd(...args)),
|
|
14
|
+
onTransitionstart: _cache[1] || (_cache[1] = (...args) => _ctx.handleTransitionStart && _ctx.handleTransitionStart(...args))
|
|
15
|
+
},
|
|
16
|
+
[
|
|
17
|
+
_renderSlot(_ctx.$slots, "default")
|
|
18
|
+
],
|
|
19
|
+
34
|
|
20
|
+
/* CLASS, NEED_HYDRATION */
|
|
21
|
+
)), [
|
|
22
|
+
[_vShow, _ctx.showContent]
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
25
|
+
const __sfc__ = defineComponent({
|
|
26
|
+
name,
|
|
27
|
+
props,
|
|
28
|
+
setup(props2) {
|
|
29
|
+
const showContent = ref(false);
|
|
30
|
+
const contentEl = ref(null);
|
|
31
|
+
const expand = computed(() => props2.expand);
|
|
32
|
+
const { handleTransitionEnd, handleTransitionStart } = useCollapseTransition({
|
|
33
|
+
contentEl,
|
|
34
|
+
showContent,
|
|
35
|
+
expand
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
showContent,
|
|
39
|
+
contentEl,
|
|
40
|
+
n,
|
|
41
|
+
handleTransitionEnd,
|
|
42
|
+
handleTransitionStart
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
__sfc__.render = __render__;
|
|
47
|
+
var stdin_default = __sfc__;
|
|
48
|
+
export {
|
|
49
|
+
stdin_default as default
|
|
50
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.var-collapse-transition__content { overflow: hidden; transition: all 0.25s;}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import CollapseTransition from "./CollapseTransition.mjs";
|
|
2
|
+
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
3
|
+
import { props as collapseTransitionProps } from "./props.mjs";
|
|
4
|
+
withInstall(CollapseTransition);
|
|
5
|
+
withPropsDefaultsSetter(CollapseTransition, collapseTransitionProps);
|
|
6
|
+
const _CollapseTransitionComponent = CollapseTransition;
|
|
7
|
+
var stdin_default = CollapseTransition;
|
|
8
|
+
export {
|
|
9
|
+
_CollapseTransitionComponent,
|
|
10
|
+
collapseTransitionProps,
|
|
11
|
+
stdin_default as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
import { raf, doubleRaf } from "@varlet/shared";
|
|
22
|
+
import { nextTick, watch } from "vue";
|
|
23
|
+
function useCollapseTransition(options) {
|
|
24
|
+
const { contentEl, showContent, expand } = options;
|
|
25
|
+
let isInitToTrigger = true;
|
|
26
|
+
watch(
|
|
27
|
+
expand,
|
|
28
|
+
(value) => {
|
|
29
|
+
nextTick(() => {
|
|
30
|
+
value ? open() : close();
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
{ immediate: true }
|
|
34
|
+
);
|
|
35
|
+
function open() {
|
|
36
|
+
return __async(this, null, function* () {
|
|
37
|
+
if (!contentEl.value) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
contentEl.value.style.height = "";
|
|
41
|
+
showContent.value = true;
|
|
42
|
+
yield raf();
|
|
43
|
+
if (!contentEl.value) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const { offsetHeight } = contentEl.value;
|
|
47
|
+
contentEl.value.style.height = "0px";
|
|
48
|
+
yield raf();
|
|
49
|
+
if (!contentEl.value) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
contentEl.value.style.height = offsetHeight + "px";
|
|
53
|
+
if (!isInitToTrigger) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
yield doubleRaf();
|
|
57
|
+
if (isInitToTrigger) {
|
|
58
|
+
handleTransitionEnd();
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
const close = () => __async(this, null, function* () {
|
|
63
|
+
if (!contentEl.value) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const { offsetHeight } = contentEl.value;
|
|
67
|
+
contentEl.value.style.height = offsetHeight + "px";
|
|
68
|
+
yield raf();
|
|
69
|
+
contentEl.value.style.height = "0px";
|
|
70
|
+
});
|
|
71
|
+
const handleTransitionEnd = () => {
|
|
72
|
+
if (!expand.value) {
|
|
73
|
+
showContent.value = false;
|
|
74
|
+
}
|
|
75
|
+
contentEl.value.style.height = "";
|
|
76
|
+
};
|
|
77
|
+
const handleTransitionStart = () => {
|
|
78
|
+
isInitToTrigger = false;
|
|
79
|
+
};
|
|
80
|
+
return {
|
|
81
|
+
handleTransitionEnd,
|
|
82
|
+
handleTransitionStart
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
useCollapseTransition
|
|
87
|
+
};
|
|
@@ -116,9 +116,10 @@ function __render__(_ctx, _cache) {
|
|
|
116
116
|
onClick: _ctx.close
|
|
117
117
|
}, null, 8, ["class", "onClick"])) : _createCommentVNode("v-if", true)
|
|
118
118
|
]),
|
|
119
|
-
|
|
119
|
+
_ctx.$slots.extra ? (_openBlock(), _createElementBlock(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
122
|
+
key: 0,
|
|
122
123
|
class: _normalizeClass(_ctx.n("extra"))
|
|
123
124
|
},
|
|
124
125
|
[
|
|
@@ -126,7 +127,7 @@ function __render__(_ctx, _cache) {
|
|
|
126
127
|
],
|
|
127
128
|
2
|
|
128
129
|
/* CLASS */
|
|
129
|
-
)
|
|
130
|
+
)) : _createCommentVNode("v-if", true)
|
|
130
131
|
]),
|
|
131
132
|
_: 3
|
|
132
133
|
/* FORWARDED */
|
package/es/index.bundle.mjs
CHANGED
|
@@ -18,6 +18,7 @@ import Chip from './chip/index.mjs'
|
|
|
18
18
|
import Col from './col/index.mjs'
|
|
19
19
|
import Collapse from './collapse/index.mjs'
|
|
20
20
|
import CollapseItem from './collapse-item/index.mjs'
|
|
21
|
+
import CollapseTransition from './collapse-transition/index.mjs'
|
|
21
22
|
import Context from './context/index.mjs'
|
|
22
23
|
import Countdown from './countdown/index.mjs'
|
|
23
24
|
import Counter from './counter/index.mjs'
|
|
@@ -105,6 +106,7 @@ export * from './chip/index.mjs'
|
|
|
105
106
|
export * from './col/index.mjs'
|
|
106
107
|
export * from './collapse/index.mjs'
|
|
107
108
|
export * from './collapse-item/index.mjs'
|
|
109
|
+
export * from './collapse-transition/index.mjs'
|
|
108
110
|
export * from './context/index.mjs'
|
|
109
111
|
export * from './countdown/index.mjs'
|
|
110
112
|
export * from './counter/index.mjs'
|
|
@@ -192,6 +194,7 @@ import './chip/style/index.mjs'
|
|
|
192
194
|
import './col/style/index.mjs'
|
|
193
195
|
import './collapse/style/index.mjs'
|
|
194
196
|
import './collapse-item/style/index.mjs'
|
|
197
|
+
import './collapse-transition/style/index.mjs'
|
|
195
198
|
import './context/style/index.mjs'
|
|
196
199
|
import './countdown/style/index.mjs'
|
|
197
200
|
import './counter/style/index.mjs'
|
|
@@ -259,7 +262,7 @@ import './tooltip/style/index.mjs'
|
|
|
259
262
|
import './uploader/style/index.mjs'
|
|
260
263
|
import './watermark/style/index.mjs'
|
|
261
264
|
|
|
262
|
-
const version = '2.
|
|
265
|
+
const version = '2.21.0-alpha.1704976407062'
|
|
263
266
|
|
|
264
267
|
function install(app) {
|
|
265
268
|
ActionSheet.install && app.use(ActionSheet)
|
|
@@ -282,6 +285,7 @@ function install(app) {
|
|
|
282
285
|
Col.install && app.use(Col)
|
|
283
286
|
Collapse.install && app.use(Collapse)
|
|
284
287
|
CollapseItem.install && app.use(CollapseItem)
|
|
288
|
+
CollapseTransition.install && app.use(CollapseTransition)
|
|
285
289
|
Context.install && app.use(Context)
|
|
286
290
|
Countdown.install && app.use(Countdown)
|
|
287
291
|
Counter.install && app.use(Counter)
|
|
@@ -373,6 +377,7 @@ export {
|
|
|
373
377
|
Col,
|
|
374
378
|
Collapse,
|
|
375
379
|
CollapseItem,
|
|
380
|
+
CollapseTransition,
|
|
376
381
|
Context,
|
|
377
382
|
Countdown,
|
|
378
383
|
Counter,
|
|
@@ -464,6 +469,7 @@ export default {
|
|
|
464
469
|
Col,
|
|
465
470
|
Collapse,
|
|
466
471
|
CollapseItem,
|
|
472
|
+
CollapseTransition,
|
|
467
473
|
Context,
|
|
468
474
|
Countdown,
|
|
469
475
|
Counter,
|
package/es/index.mjs
CHANGED
|
@@ -18,6 +18,7 @@ import Chip from './chip/index.mjs'
|
|
|
18
18
|
import Col from './col/index.mjs'
|
|
19
19
|
import Collapse from './collapse/index.mjs'
|
|
20
20
|
import CollapseItem from './collapse-item/index.mjs'
|
|
21
|
+
import CollapseTransition from './collapse-transition/index.mjs'
|
|
21
22
|
import Context from './context/index.mjs'
|
|
22
23
|
import Countdown from './countdown/index.mjs'
|
|
23
24
|
import Counter from './counter/index.mjs'
|
|
@@ -105,6 +106,7 @@ export * from './chip/index.mjs'
|
|
|
105
106
|
export * from './col/index.mjs'
|
|
106
107
|
export * from './collapse/index.mjs'
|
|
107
108
|
export * from './collapse-item/index.mjs'
|
|
109
|
+
export * from './collapse-transition/index.mjs'
|
|
108
110
|
export * from './context/index.mjs'
|
|
109
111
|
export * from './countdown/index.mjs'
|
|
110
112
|
export * from './counter/index.mjs'
|
|
@@ -172,7 +174,7 @@ export * from './tooltip/index.mjs'
|
|
|
172
174
|
export * from './uploader/index.mjs'
|
|
173
175
|
export * from './watermark/index.mjs'
|
|
174
176
|
|
|
175
|
-
const version = '2.
|
|
177
|
+
const version = '2.21.0-alpha.1704976407062'
|
|
176
178
|
|
|
177
179
|
function install(app) {
|
|
178
180
|
ActionSheet.install && app.use(ActionSheet)
|
|
@@ -195,6 +197,7 @@ function install(app) {
|
|
|
195
197
|
Col.install && app.use(Col)
|
|
196
198
|
Collapse.install && app.use(Collapse)
|
|
197
199
|
CollapseItem.install && app.use(CollapseItem)
|
|
200
|
+
CollapseTransition.install && app.use(CollapseTransition)
|
|
198
201
|
Context.install && app.use(Context)
|
|
199
202
|
Countdown.install && app.use(Countdown)
|
|
200
203
|
Counter.install && app.use(Counter)
|
|
@@ -286,6 +289,7 @@ export {
|
|
|
286
289
|
Col,
|
|
287
290
|
Collapse,
|
|
288
291
|
CollapseItem,
|
|
292
|
+
CollapseTransition,
|
|
289
293
|
Context,
|
|
290
294
|
Countdown,
|
|
291
295
|
Counter,
|
|
@@ -377,6 +381,7 @@ export default {
|
|
|
377
381
|
Col,
|
|
378
382
|
Collapse,
|
|
379
383
|
CollapseItem,
|
|
384
|
+
CollapseTransition,
|
|
380
385
|
Context,
|
|
381
386
|
Countdown,
|
|
382
387
|
Counter,
|
package/es/radio/Radio.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { useForm } from "../form/provide.mjs";
|
|
|
11
11
|
import { call } from "@varlet/shared";
|
|
12
12
|
import { useVModel } from "@varlet/use";
|
|
13
13
|
const { name, n, classes } = createNamespace("radio");
|
|
14
|
-
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives,
|
|
14
|
+
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, mergeProps as _mergeProps, createElementVNode as _createElementVNode } from "vue";
|
|
15
15
|
function __render__(_ctx, _cache) {
|
|
16
16
|
const _component_var_icon = _resolveComponent("var-icon");
|
|
17
17
|
const _component_var_hover_overlay = _resolveComponent("var-hover-overlay");
|
|
@@ -70,9 +70,10 @@ function __render__(_ctx, _cache) {
|
|
|
70
70
|
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }],
|
|
71
71
|
[_directive_hover, _ctx.handleHovering, "desktop"]
|
|
72
72
|
]),
|
|
73
|
-
|
|
73
|
+
_ctx.$slots.default ? (_openBlock(), _createElementBlock(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
+
key: 0,
|
|
76
77
|
class: _normalizeClass(
|
|
77
78
|
_ctx.classes(
|
|
78
79
|
_ctx.n("text"),
|
|
@@ -86,7 +87,7 @@ function __render__(_ctx, _cache) {
|
|
|
86
87
|
],
|
|
87
88
|
2
|
|
88
89
|
/* CLASS */
|
|
89
|
-
)
|
|
90
|
+
)) : _createCommentVNode("v-if", true)
|
|
90
91
|
],
|
|
91
92
|
16
|
|
92
93
|
/* FULL_PROPS */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|
package/es/step/Step.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useSteps } from "./provide.mjs";
|
|
|
5
5
|
import { toNumber } from "@varlet/shared";
|
|
6
6
|
import { createNamespace } from "../utils/components.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("step");
|
|
8
|
-
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
8
|
+
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
9
9
|
const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
|
|
10
10
|
const _hoisted_1 = { key: 3 };
|
|
11
11
|
function __render__(_ctx, _cache) {
|
|
@@ -59,9 +59,10 @@ function __render__(_ctx, _cache) {
|
|
|
59
59
|
6
|
|
60
60
|
/* CLASS, STYLE */
|
|
61
61
|
),
|
|
62
|
-
|
|
62
|
+
_ctx.$slots.default ? (_openBlock(), _createElementBlock(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
+
key: 0,
|
|
65
66
|
class: _normalizeClass(_ctx.classes(_ctx.n(`${_ctx.direction}-content`), [_ctx.isActive || _ctx.isCurrent, _ctx.n(`${_ctx.direction}-content--active`)])),
|
|
66
67
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.click && _ctx.click(...args))
|
|
67
68
|
},
|
|
@@ -70,7 +71,7 @@ function __render__(_ctx, _cache) {
|
|
|
70
71
|
],
|
|
71
72
|
2
|
|
72
73
|
/* CLASS */
|
|
73
|
-
),
|
|
74
|
+
)) : _createCommentVNode("v-if", true),
|
|
74
75
|
_createElementVNode(
|
|
75
76
|
"div",
|
|
76
77
|
{
|