@varlet/ui 1.21.0 → 1.22.0-alpha.10
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/action-sheet/ActionSheet.js +15 -19
- package/es/app-bar/AppBar.js +14 -19
- package/es/back-top/BackTop.js +7 -10
- package/es/badge/Badge.js +7 -12
- package/es/button/Button.js +14 -13
- package/es/card/Card.js +19 -23
- package/es/cell/Cell.js +14 -19
- package/es/checkbox/Checkbox.js +14 -19
- package/es/checkbox-group/CheckboxGroup.js +6 -11
- package/es/chip/Chip.js +8 -11
- package/es/col/Col.js +8 -11
- package/es/collapse/Collapse.js +5 -10
- package/es/collapse-item/CollapseItem.js +16 -21
- package/es/countdown/Countdown.js +5 -10
- package/es/counter/Counter.js +18 -22
- package/es/date-picker/DatePicker.js +23 -28
- package/es/date-picker/src/day-picker-panel.js +14 -19
- package/es/date-picker/src/month-picker-panel.js +12 -17
- package/es/date-picker/src/panel-header.js +12 -17
- package/es/date-picker/src/year-picker-panel.js +12 -16
- package/es/dialog/Dialog.js +12 -17
- package/es/divider/Divider.js +8 -13
- package/es/form/Form.js +5 -10
- package/es/form-details/FormDetails.js +6 -11
- package/es/icon/Icon.js +6 -9
- package/es/icon/icon.less +1 -1
- package/es/image/Image.js +23 -21
- package/es/image-preview/ImagePreview.js +20 -24
- package/es/index-anchor/IndexAnchor.js +4 -7
- package/es/index-bar/IndexBar.js +15 -19
- package/es/input/Input.js +33 -37
- package/es/list/List.js +10 -15
- package/es/loading/Loading.js +21 -24
- package/es/menu/Menu.js +9 -12
- package/es/option/Option.js +16 -21
- package/es/picker/Picker.js +33 -36
- package/es/popup/Popup.js +14 -17
- package/es/progress/Progress.js +30 -32
- package/es/pull-refresh/PullRefresh.js +12 -15
- package/es/radio/Radio.js +14 -19
- package/es/radio-group/RadioGroup.js +6 -11
- package/es/rate/Rate.js +12 -16
- package/es/row/Row.js +7 -10
- package/es/select/Select.js +42 -47
- package/es/skeleton/Skeleton.js +41 -39
- package/es/slider/Slider.js +32 -36
- package/es/snackbar/Snackbar.js +8 -11
- package/es/snackbar/core.js +14 -19
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/step/Step.js +23 -28
- package/es/steps/Steps.js +6 -9
- package/es/sticky/Sticky.js +10 -13
- package/es/swipe/Swipe.js +20 -24
- package/es/swipe-item/SwipeItem.js +6 -9
- package/es/switch/Switch.js +16 -21
- package/es/tab/Tab.js +8 -11
- package/es/tab-item/TabItem.js +5 -8
- package/es/tabs/Tabs.js +10 -13
- package/es/tabs-items/TabsItems.js +4 -7
- package/es/time-picker/TimePicker.js +32 -37
- package/es/time-picker/clock.js +15 -20
- package/es/uploader/Uploader.js +31 -31
- package/package.json +4 -4
- package/umd/varlet.js +3 -1
package/es/skeleton/Skeleton.js
CHANGED
|
@@ -2,11 +2,9 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import { props } from './props';
|
|
3
3
|
import { toSizeUnit } from '../utils/elements';
|
|
4
4
|
import { toNumber } from '../utils/shared';
|
|
5
|
-
import { renderSlot as _renderSlot, openBlock as _openBlock,
|
|
5
|
+
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, renderList as _renderList, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
_pushScopeId("");
|
|
7
|
+
var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
|
|
10
8
|
|
|
11
9
|
var _hoisted_1 = {
|
|
12
10
|
class: "var--box var-skeleton"
|
|
@@ -20,91 +18,95 @@ var _hoisted_3 = {
|
|
|
20
18
|
class: "var-skeleton__content"
|
|
21
19
|
};
|
|
22
20
|
|
|
23
|
-
var _hoisted_4 = /*#__PURE__*/
|
|
21
|
+
var _hoisted_4 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode("div", {
|
|
24
22
|
class: "var-skeleton--animation"
|
|
25
23
|
}, null, -1
|
|
26
24
|
/* HOISTED */
|
|
27
|
-
);
|
|
25
|
+
));
|
|
28
26
|
|
|
29
|
-
var _hoisted_5 =
|
|
27
|
+
var _hoisted_5 = [_hoisted_4];
|
|
28
|
+
var _hoisted_6 = {
|
|
30
29
|
class: "var-skeleton__article"
|
|
31
30
|
};
|
|
32
31
|
|
|
33
|
-
var
|
|
32
|
+
var _hoisted_7 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode("div", {
|
|
34
33
|
class: "var-skeleton--animation"
|
|
35
34
|
}, null, -1
|
|
36
35
|
/* HOISTED */
|
|
37
|
-
);
|
|
36
|
+
));
|
|
38
37
|
|
|
39
|
-
var
|
|
38
|
+
var _hoisted_8 = [_hoisted_7];
|
|
39
|
+
var _hoisted_9 = {
|
|
40
40
|
class: "var-skeleton__section"
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _hoisted_10 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode("div", {
|
|
44
44
|
class: "var-skeleton--animation"
|
|
45
45
|
}, null, -1
|
|
46
46
|
/* HOISTED */
|
|
47
|
-
);
|
|
47
|
+
));
|
|
48
|
+
|
|
49
|
+
var _hoisted_11 = [_hoisted_10];
|
|
48
50
|
|
|
49
|
-
var
|
|
51
|
+
var _hoisted_12 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode("div", {
|
|
50
52
|
class: "var-skeleton--animation"
|
|
51
53
|
}, null, -1
|
|
52
54
|
/* HOISTED */
|
|
53
|
-
);
|
|
55
|
+
));
|
|
54
56
|
|
|
55
|
-
var
|
|
57
|
+
var _hoisted_13 = [_hoisted_12];
|
|
58
|
+
var _hoisted_14 = {
|
|
56
59
|
key: 2,
|
|
57
60
|
class: "var-skeleton__fullscreen"
|
|
58
61
|
};
|
|
59
62
|
|
|
60
|
-
var
|
|
63
|
+
var _hoisted_15 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode("div", {
|
|
61
64
|
class: "var-skeleton--animation"
|
|
62
65
|
}, null, -1
|
|
63
66
|
/* HOISTED */
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
_popScopeId();
|
|
67
|
+
));
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
var _hoisted_16 = [_hoisted_15];
|
|
70
|
+
export function render(_ctx, _cache) {
|
|
71
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [!_ctx.loading ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_renderSlot(_ctx.$slots, "default")])) : _createCommentVNode("v-if", true), _ctx.loading && !_ctx.fullscreen ? (_openBlock(), _createElementBlock("div", _hoisted_3, [_ctx.card ? (_openBlock(), _createElementBlock("div", {
|
|
70
72
|
key: 0,
|
|
71
73
|
class: "var-skeleton__card",
|
|
72
|
-
style: {
|
|
74
|
+
style: _normalizeStyle({
|
|
73
75
|
height: _ctx.toSizeUnit(_ctx.cardHeight)
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
+
})
|
|
77
|
+
}, _hoisted_5, 4
|
|
76
78
|
/* STYLE */
|
|
77
|
-
)) : _createCommentVNode("v-if", true),
|
|
79
|
+
)) : _createCommentVNode("v-if", true), _createElementVNode("div", _hoisted_6, [_ctx.avatar ? (_openBlock(), _createElementBlock("div", {
|
|
78
80
|
key: 0,
|
|
79
81
|
class: "var-skeleton__avatar",
|
|
80
|
-
style: {
|
|
82
|
+
style: _normalizeStyle({
|
|
81
83
|
width: _ctx.toSizeUnit(_ctx.avatarSize),
|
|
82
84
|
height: _ctx.toSizeUnit(_ctx.avatarSize)
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
+
})
|
|
86
|
+
}, _hoisted_8, 4
|
|
85
87
|
/* STYLE */
|
|
86
|
-
)) : _createCommentVNode("v-if", true),
|
|
88
|
+
)) : _createCommentVNode("v-if", true), _createElementVNode("div", _hoisted_9, [_ctx.title ? (_openBlock(), _createElementBlock("div", {
|
|
87
89
|
key: 0,
|
|
88
90
|
class: "var-skeleton__title",
|
|
89
|
-
style: {
|
|
91
|
+
style: _normalizeStyle({
|
|
90
92
|
width: _ctx.toSizeUnit(_ctx.titleWidth)
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
+
})
|
|
94
|
+
}, _hoisted_11, 4
|
|
93
95
|
/* STYLE */
|
|
94
|
-
)) : _createCommentVNode("v-if", true), (_openBlock(true),
|
|
95
|
-
return _openBlock(),
|
|
96
|
+
)) : _createCommentVNode("v-if", true), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.toNumber(_ctx.rows), (r, index) => {
|
|
97
|
+
return _openBlock(), _createElementBlock("div", {
|
|
96
98
|
class: "var-skeleton__row",
|
|
97
99
|
key: r,
|
|
98
|
-
style: {
|
|
100
|
+
style: _normalizeStyle({
|
|
99
101
|
width: _ctx.toSizeUnit(_ctx.rowsWidth[index])
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
+
})
|
|
103
|
+
}, _hoisted_13, 4
|
|
102
104
|
/* STYLE */
|
|
103
105
|
);
|
|
104
106
|
}), 128
|
|
105
107
|
/* KEYED_FRAGMENT */
|
|
106
|
-
))])])])) : _createCommentVNode("v-if", true), _ctx.loading && _ctx.fullscreen ? (_openBlock(),
|
|
107
|
-
}
|
|
108
|
+
))])])])) : _createCommentVNode("v-if", true), _ctx.loading && _ctx.fullscreen ? (_openBlock(), _createElementBlock("div", _hoisted_14, _hoisted_16)) : _createCommentVNode("v-if", true)]);
|
|
109
|
+
}
|
|
108
110
|
export default defineComponent({
|
|
109
111
|
render,
|
|
110
112
|
name: 'VarSkeleton',
|
package/es/slider/Slider.js
CHANGED
|
@@ -12,11 +12,9 @@ var Thumbs;
|
|
|
12
12
|
Thumbs["Second"] = "2";
|
|
13
13
|
})(Thumbs || (Thumbs = {}));
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
_pushScopeId("");
|
|
17
|
+
var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
|
|
20
18
|
|
|
21
19
|
var _hoisted_1 = {
|
|
22
20
|
class: "var-slider"
|
|
@@ -24,80 +22,78 @@ var _hoisted_1 = {
|
|
|
24
22
|
var _hoisted_2 = {
|
|
25
23
|
class: "var-slider__track"
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
25
|
+
var _hoisted_3 = ["onTouchstart", "onTouchmove", "onTouchend", "onTouchcancel"];
|
|
26
|
+
export function render(_ctx, _cache) {
|
|
31
27
|
var _component_var_form_details = _resolveComponent("var-form-details");
|
|
32
28
|
|
|
33
|
-
return _openBlock(),
|
|
34
|
-
class: ["var-slider-block", [_ctx.isDisabled ? 'var-slider__disable' : null, _ctx.errorMessage ? 'var-slider__error' : null]],
|
|
35
|
-
style: {
|
|
29
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", {
|
|
30
|
+
class: _normalizeClass(["var-slider-block", [_ctx.isDisabled ? 'var-slider__disable' : null, _ctx.errorMessage ? 'var-slider__error' : null]]),
|
|
31
|
+
style: _normalizeStyle({
|
|
36
32
|
height: 3 * _ctx.thumbSize + "px",
|
|
37
33
|
margin: "0 " + _ctx.thumbSize / 2 + "px"
|
|
38
|
-
},
|
|
34
|
+
}),
|
|
39
35
|
ref: "sliderEl",
|
|
40
|
-
onClick: _cache[
|
|
41
|
-
}, [
|
|
36
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
37
|
+
}, [_createElementVNode("div", _hoisted_2, [_createElementVNode("div", {
|
|
42
38
|
class: "var-slider__track-background",
|
|
43
|
-
style: {
|
|
39
|
+
style: _normalizeStyle({
|
|
44
40
|
background: _ctx.trackColor,
|
|
45
41
|
height: _ctx.trackHeight + 'px'
|
|
46
|
-
}
|
|
42
|
+
})
|
|
47
43
|
}, null, 4
|
|
48
44
|
/* STYLE */
|
|
49
|
-
),
|
|
45
|
+
), _createElementVNode("div", {
|
|
50
46
|
class: "var-slider__track-fill",
|
|
51
|
-
style: _ctx.getFillStyle
|
|
47
|
+
style: _normalizeStyle(_ctx.getFillStyle)
|
|
52
48
|
}, null, 4
|
|
53
49
|
/* STYLE */
|
|
54
|
-
)]), (_openBlock(true),
|
|
55
|
-
return _openBlock(),
|
|
50
|
+
)]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.thumbList, item => {
|
|
51
|
+
return _openBlock(), _createElementBlock("div", {
|
|
56
52
|
class: "var-slider__thumb",
|
|
57
53
|
key: item.enumValue,
|
|
58
|
-
style: {
|
|
54
|
+
style: _normalizeStyle({
|
|
59
55
|
left: item.value + "%",
|
|
60
56
|
zIndex: _ctx.thumbsProps[item.enumValue].active ? 1 : null
|
|
61
|
-
},
|
|
57
|
+
}),
|
|
62
58
|
onTouchstart: $event => _ctx.start($event, item.enumValue),
|
|
63
59
|
onTouchmove: $event => _ctx.move($event, item.enumValue),
|
|
64
60
|
onTouchend: $event => _ctx.end(item.enumValue),
|
|
65
61
|
onTouchcancel: $event => _ctx.end(item.enumValue)
|
|
66
62
|
}, [_renderSlot(_ctx.$slots, "button", {
|
|
67
63
|
currentValue: item.value
|
|
68
|
-
}, () => [
|
|
64
|
+
}, () => [_createElementVNode("div", {
|
|
69
65
|
class: "var-slider__thumb-block",
|
|
70
|
-
style: {
|
|
66
|
+
style: _normalizeStyle({
|
|
71
67
|
background: _ctx.thumbColor,
|
|
72
68
|
height: _ctx.thumbSize + 'px',
|
|
73
69
|
width: _ctx.thumbSize + 'px'
|
|
74
|
-
}
|
|
70
|
+
})
|
|
75
71
|
}, null, 4
|
|
76
72
|
/* STYLE */
|
|
77
|
-
),
|
|
78
|
-
class: ["var-slider__thumb-ripple", [_ctx.thumbsProps[item.enumValue].active ? 'var-slider__thumb-ripple-active' : null]],
|
|
79
|
-
style: {
|
|
73
|
+
), _createElementVNode("div", {
|
|
74
|
+
class: _normalizeClass(["var-slider__thumb-ripple", [_ctx.thumbsProps[item.enumValue].active ? 'var-slider__thumb-ripple-active' : null]]),
|
|
75
|
+
style: _normalizeStyle({
|
|
80
76
|
background: _ctx.thumbColor,
|
|
81
77
|
height: _ctx.thumbSize ? _ctx.thumbsProps[item.enumValue].active ? 3 * _ctx.thumbSize + 'px' : '0px' : null,
|
|
82
78
|
width: _ctx.thumbSize ? _ctx.thumbsProps[item.enumValue].active ? 3 * _ctx.thumbSize + 'px' : '0px' : null
|
|
83
|
-
}
|
|
79
|
+
})
|
|
84
80
|
}, null, 6
|
|
85
81
|
/* CLASS, STYLE */
|
|
86
|
-
),
|
|
87
|
-
class: ["var-slider__thumb-label", [_ctx.showLabel(item.enumValue) ? 'var-slider__thumb-label-active' : null]],
|
|
88
|
-
style: {
|
|
82
|
+
), _createElementVNode("div", {
|
|
83
|
+
class: _normalizeClass(["var-slider__thumb-label", [_ctx.showLabel(item.enumValue) ? 'var-slider__thumb-label-active' : null]]),
|
|
84
|
+
style: _normalizeStyle({
|
|
89
85
|
background: _ctx.labelColor,
|
|
90
86
|
color: _ctx.labelTextColor,
|
|
91
87
|
height: 2 * _ctx.thumbSize + 'px',
|
|
92
88
|
width: 2 * _ctx.thumbSize + 'px'
|
|
93
|
-
}
|
|
94
|
-
}, [
|
|
89
|
+
})
|
|
90
|
+
}, [_createElementVNode("span", null, _toDisplayString(item.value), 1
|
|
95
91
|
/* TEXT */
|
|
96
92
|
)], 6
|
|
97
93
|
/* CLASS, STYLE */
|
|
98
94
|
)])], 44
|
|
99
95
|
/* STYLE, PROPS, HYDRATE_EVENTS */
|
|
100
|
-
,
|
|
96
|
+
, _hoisted_3);
|
|
101
97
|
}), 128
|
|
102
98
|
/* KEYED_FRAGMENT */
|
|
103
99
|
))], 6
|
|
@@ -109,7 +105,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
|
109
105
|
}, null, 8
|
|
110
106
|
/* PROPS */
|
|
111
107
|
, ["error-message"])]);
|
|
112
|
-
}
|
|
108
|
+
}
|
|
113
109
|
export default defineComponent({
|
|
114
110
|
render,
|
|
115
111
|
name: 'VarSlider',
|
package/es/snackbar/Snackbar.js
CHANGED
|
@@ -2,11 +2,8 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import VarSnackbarCore from './core';
|
|
3
3
|
import { useTeleport } from '../utils/components';
|
|
4
4
|
import { props } from './props';
|
|
5
|
-
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, Transition as _Transition, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock
|
|
6
|
-
|
|
7
|
-
var _withId = /*#__PURE__*/_withScopeId("");
|
|
8
|
-
|
|
9
|
-
export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
5
|
+
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, Transition as _Transition, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
6
|
+
export function render(_ctx, _cache) {
|
|
10
7
|
var _component_var_snackbar_core = _resolveComponent("var-snackbar-core");
|
|
11
8
|
|
|
12
9
|
return _openBlock(), _createBlock(_Teleport, {
|
|
@@ -17,11 +14,11 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
|
17
14
|
onAfterEnter: _ctx.onOpened,
|
|
18
15
|
onAfterLeave: _ctx.onClosed
|
|
19
16
|
}, {
|
|
20
|
-
default:
|
|
17
|
+
default: _withCtx(() => [_createVNode(_component_var_snackbar_core, _mergeProps(_ctx.$props, {
|
|
21
18
|
class: "var-snackbar-transition"
|
|
22
19
|
}), {
|
|
23
|
-
action:
|
|
24
|
-
default:
|
|
20
|
+
action: _withCtx(() => [_renderSlot(_ctx.$slots, "action")]),
|
|
21
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default", {}, () => [_createTextVNode(_toDisplayString(_ctx.content), 1
|
|
25
22
|
/* TEXT */
|
|
26
23
|
)])]),
|
|
27
24
|
_: 3
|
|
@@ -30,15 +27,15 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
|
30
27
|
}, 16
|
|
31
28
|
/* FULL_PROPS */
|
|
32
29
|
)]),
|
|
33
|
-
_:
|
|
34
|
-
/*
|
|
30
|
+
_: 3
|
|
31
|
+
/* FORWARDED */
|
|
35
32
|
|
|
36
33
|
}, 8
|
|
37
34
|
/* PROPS */
|
|
38
35
|
, ["onAfterEnter", "onAfterLeave"])], 8
|
|
39
36
|
/* PROPS */
|
|
40
37
|
, ["to", "disabled"]);
|
|
41
|
-
}
|
|
38
|
+
}
|
|
42
39
|
export default defineComponent({
|
|
43
40
|
render,
|
|
44
41
|
name: 'VarSnackbar',
|
package/es/snackbar/core.js
CHANGED
|
@@ -13,41 +13,36 @@ var ICON_TYPE_DICT = {
|
|
|
13
13
|
error: 'error',
|
|
14
14
|
loading: ''
|
|
15
15
|
};
|
|
16
|
-
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode,
|
|
16
|
+
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, vShow as _vShow, withDirectives as _withDirectives, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
_pushScopeId("");
|
|
18
|
+
var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
|
|
21
19
|
|
|
22
20
|
var _hoisted_1 = {
|
|
23
21
|
class: "var-snackbar__action"
|
|
24
22
|
};
|
|
25
|
-
|
|
26
|
-
_popScopeId();
|
|
27
|
-
|
|
28
|
-
export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
23
|
+
export function render(_ctx, _cache) {
|
|
29
24
|
var _component_var_icon = _resolveComponent("var-icon");
|
|
30
25
|
|
|
31
26
|
var _component_var_loading = _resolveComponent("var-loading");
|
|
32
27
|
|
|
33
|
-
return _withDirectives((_openBlock(),
|
|
28
|
+
return _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
34
29
|
class: "var-snackbar",
|
|
35
|
-
style: {
|
|
30
|
+
style: _normalizeStyle({
|
|
36
31
|
pointerEvents: _ctx.isForbidClick ? 'auto' : 'none',
|
|
37
32
|
zIndex: _ctx.zIndex
|
|
38
|
-
}
|
|
39
|
-
}, [
|
|
40
|
-
class: _ctx.snackbarClass,
|
|
41
|
-
style: {
|
|
33
|
+
})
|
|
34
|
+
}, [_createElementVNode("div", {
|
|
35
|
+
class: _normalizeClass(_ctx.snackbarClass),
|
|
36
|
+
style: _normalizeStyle({
|
|
42
37
|
zIndex: _ctx.zIndex
|
|
43
|
-
}
|
|
44
|
-
}, [
|
|
45
|
-
class: ["var-snackbar__content", [_ctx.contentClass]]
|
|
38
|
+
})
|
|
39
|
+
}, [_createElementVNode("div", {
|
|
40
|
+
class: _normalizeClass(["var-snackbar__content", [_ctx.contentClass]])
|
|
46
41
|
}, [_renderSlot(_ctx.$slots, "default", {}, () => [_createTextVNode(_toDisplayString(_ctx.content), 1
|
|
47
42
|
/* TEXT */
|
|
48
43
|
)])], 2
|
|
49
44
|
/* CLASS */
|
|
50
|
-
),
|
|
45
|
+
), _createElementVNode("div", _hoisted_1, [_ctx.iconName ? (_openBlock(), _createBlock(_component_var_icon, {
|
|
51
46
|
key: 0,
|
|
52
47
|
name: _ctx.iconName
|
|
53
48
|
}, null, 8
|
|
@@ -63,7 +58,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
|
63
58
|
)], 4
|
|
64
59
|
/* STYLE */
|
|
65
60
|
)), [[_vShow, _ctx.show]]);
|
|
66
|
-
}
|
|
61
|
+
}
|
|
67
62
|
export default defineComponent({
|
|
68
63
|
render,
|
|
69
64
|
name: 'VarSnackbarCore',
|
|
@@ -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'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.less'
|
|
2
|
-
import '../SnackbarSfc.less'
|
|
3
2
|
import '../../styles/elevation.less'
|
|
4
3
|
import '../../loading/loading.less'
|
|
5
4
|
import '../../button/button.less'
|
|
6
5
|
import '../../icon/icon.less'
|
|
7
6
|
import '../snackbar.less'
|
|
8
7
|
import '../coreSfc.less'
|
|
8
|
+
import '../SnackbarSfc.less'
|
package/es/step/Step.js
CHANGED
|
@@ -2,11 +2,9 @@ import { computed, defineComponent, ref, watch } from 'vue';
|
|
|
2
2
|
import { props } from './props';
|
|
3
3
|
import { useSteps } from './provide';
|
|
4
4
|
import Icon from '../icon';
|
|
5
|
-
import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString,
|
|
5
|
+
import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
_pushScopeId("");
|
|
7
|
+
var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
|
|
10
8
|
|
|
11
9
|
var _hoisted_1 = {
|
|
12
10
|
class: "var-step"
|
|
@@ -14,26 +12,23 @@ var _hoisted_1 = {
|
|
|
14
12
|
var _hoisted_2 = {
|
|
15
13
|
key: 3
|
|
16
14
|
};
|
|
17
|
-
|
|
18
|
-
_popScopeId();
|
|
19
|
-
|
|
20
|
-
export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
15
|
+
export function render(_ctx, _cache) {
|
|
21
16
|
var _component_var_icon = _resolveComponent("var-icon");
|
|
22
17
|
|
|
23
|
-
return _openBlock(),
|
|
24
|
-
class: "var-step-" + _ctx.direction
|
|
25
|
-
}, [
|
|
26
|
-
class: "var-step-" + _ctx.direction + "__main",
|
|
18
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", {
|
|
19
|
+
class: _normalizeClass("var-step-" + _ctx.direction)
|
|
20
|
+
}, [_createElementVNode("div", {
|
|
21
|
+
class: _normalizeClass("var-step-" + _ctx.direction + "__main"),
|
|
27
22
|
ref: _ctx.getRef
|
|
28
|
-
}, [
|
|
29
|
-
class: {
|
|
23
|
+
}, [_createElementVNode("div", {
|
|
24
|
+
class: _normalizeClass({
|
|
30
25
|
["var-step-" + _ctx.direction + "__tag"]: true,
|
|
31
26
|
["var-step-" + _ctx.direction + "__tag--active"]: _ctx.isActive || _ctx.isCurrent
|
|
32
|
-
},
|
|
33
|
-
style: {
|
|
27
|
+
}),
|
|
28
|
+
style: _normalizeStyle({
|
|
34
29
|
backgroundColor: _ctx.isActive || _ctx.isCurrent ? _ctx.activeColor : _ctx.inactiveColor
|
|
35
|
-
},
|
|
36
|
-
onClick: _cache[
|
|
30
|
+
}),
|
|
31
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
37
32
|
}, [_ctx.isActive ? (_openBlock(), _createBlock(_component_var_icon, {
|
|
38
33
|
key: 0,
|
|
39
34
|
class: "var-step__icon",
|
|
@@ -55,32 +50,32 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
|
55
50
|
name: _ctx.inactiveIcon
|
|
56
51
|
}, null, 8
|
|
57
52
|
/* PROPS */
|
|
58
|
-
, ["name"])) : (_openBlock(),
|
|
53
|
+
, ["name"])) : (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.index + 1), 1
|
|
59
54
|
/* TEXT */
|
|
60
55
|
))], 6
|
|
61
56
|
/* CLASS, STYLE */
|
|
62
|
-
),
|
|
63
|
-
class: {
|
|
57
|
+
), _createElementVNode("div", {
|
|
58
|
+
class: _normalizeClass({
|
|
64
59
|
["var-step-" + _ctx.direction + "__content"]: true,
|
|
65
60
|
["var-step-" + _ctx.direction + "__content--active"]: _ctx.isActive || _ctx.isCurrent
|
|
66
|
-
},
|
|
67
|
-
onClick: _cache[
|
|
61
|
+
}),
|
|
62
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.click && _ctx.click(...args))
|
|
68
63
|
}, [_renderSlot(_ctx.$slots, "default")], 2
|
|
69
64
|
/* CLASS */
|
|
70
65
|
)], 2
|
|
71
66
|
/* CLASS */
|
|
72
|
-
), !_ctx.isLastChild ? (_openBlock(),
|
|
67
|
+
), !_ctx.isLastChild ? (_openBlock(), _createElementBlock("div", {
|
|
73
68
|
key: 0,
|
|
74
|
-
class: "var-step-" + _ctx.direction + "__line",
|
|
75
|
-
style: {
|
|
69
|
+
class: _normalizeClass("var-step-" + _ctx.direction + "__line"),
|
|
70
|
+
style: _normalizeStyle({
|
|
76
71
|
margin: _ctx.lineMargin
|
|
77
|
-
}
|
|
72
|
+
})
|
|
78
73
|
}, null, 6
|
|
79
74
|
/* CLASS, STYLE */
|
|
80
75
|
)) : _createCommentVNode("v-if", true)], 2
|
|
81
76
|
/* CLASS */
|
|
82
77
|
)]);
|
|
83
|
-
}
|
|
78
|
+
}
|
|
84
79
|
export default defineComponent({
|
|
85
80
|
render,
|
|
86
81
|
name: 'VarStep',
|
package/es/steps/Steps.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { computed, defineComponent } from 'vue';
|
|
2
2
|
import { useStep } from './provide';
|
|
3
3
|
import { props } from './props';
|
|
4
|
-
import { renderSlot as _renderSlot,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
9
|
-
return _openBlock(), _createBlock("div", {
|
|
4
|
+
import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
5
|
+
export function render(_ctx, _cache) {
|
|
6
|
+
return _openBlock(), _createElementBlock("div", {
|
|
10
7
|
class: "var-steps",
|
|
11
|
-
style: {
|
|
8
|
+
style: _normalizeStyle({
|
|
12
9
|
flexDirection: _ctx.direction === 'horizontal' ? 'row' : 'column'
|
|
13
|
-
}
|
|
10
|
+
})
|
|
14
11
|
}, [_renderSlot(_ctx.$slots, "default")], 4
|
|
15
12
|
/* STYLE */
|
|
16
13
|
);
|
|
17
|
-
}
|
|
14
|
+
}
|
|
18
15
|
export default defineComponent({
|
|
19
16
|
render,
|
|
20
17
|
name: 'VarSteps',
|
package/es/sticky/Sticky.js
CHANGED
|
@@ -2,37 +2,34 @@ import { defineComponent, ref, onMounted, onUnmounted, onActivated, onDeactivate
|
|
|
2
2
|
import { props } from './props';
|
|
3
3
|
import { getParentScroller, toPxNum } from '../utils/elements';
|
|
4
4
|
import { toNumber } from '../utils/shared';
|
|
5
|
-
import { renderSlot as _renderSlot,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
|
|
10
|
-
return _openBlock(), _createBlock("div", {
|
|
11
|
-
class: ["var-sticky", [_ctx.enableCSSMode ? 'var-sticky--css-mode' : null]],
|
|
5
|
+
import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
6
|
+
export function render(_ctx, _cache) {
|
|
7
|
+
return _openBlock(), _createElementBlock("div", {
|
|
8
|
+
class: _normalizeClass(["var-sticky", [_ctx.enableCSSMode ? 'var-sticky--css-mode' : null]]),
|
|
12
9
|
ref: "stickyEl",
|
|
13
|
-
style: {
|
|
10
|
+
style: _normalizeStyle({
|
|
14
11
|
zIndex: _ctx.toNumber(_ctx.zIndex),
|
|
15
12
|
top: _ctx.enableCSSMode ? _ctx.offsetTop + "px" : null,
|
|
16
13
|
width: _ctx.enableFixedMode ? _ctx.fixedWidth : null,
|
|
17
14
|
height: _ctx.enableFixedMode ? _ctx.fixedHeight : null
|
|
18
|
-
}
|
|
19
|
-
}, [
|
|
15
|
+
})
|
|
16
|
+
}, [_createElementVNode("div", {
|
|
20
17
|
class: "var-sticky__wrapper",
|
|
21
18
|
ref: "wrapperEl",
|
|
22
|
-
style: {
|
|
19
|
+
style: _normalizeStyle({
|
|
23
20
|
zIndex: _ctx.toNumber(_ctx.zIndex),
|
|
24
21
|
position: _ctx.enableFixedMode ? 'fixed' : null,
|
|
25
22
|
width: _ctx.enableFixedMode ? _ctx.fixedWrapperWidth : null,
|
|
26
23
|
height: _ctx.enableFixedMode ? _ctx.fixedWrapperHeight : null,
|
|
27
24
|
left: _ctx.enableFixedMode ? _ctx.fixedLeft : null,
|
|
28
25
|
top: _ctx.enableFixedMode ? _ctx.fixedTop : null
|
|
29
|
-
}
|
|
26
|
+
})
|
|
30
27
|
}, [_renderSlot(_ctx.$slots, "default")], 4
|
|
31
28
|
/* STYLE */
|
|
32
29
|
)], 6
|
|
33
30
|
/* CLASS, STYLE */
|
|
34
31
|
);
|
|
35
|
-
}
|
|
32
|
+
}
|
|
36
33
|
export default defineComponent({
|
|
37
34
|
render,
|
|
38
35
|
name: 'VarSticky',
|