@varlet/ui 2.2.1 → 2.3.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/es/action-sheet/ActionSheet.js +1 -1
- package/es/app-bar/AppBar.js +1 -1
- package/es/badge/Badge.js +5 -3
- package/es/button/Button.js +1 -1
- package/es/button/button.css +1 -1
- package/es/button/props.js +1 -2
- package/es/card/Card.js +3 -3
- package/es/cell/Cell.js +0 -1
- package/es/chip/Chip.js +6 -4
- package/es/chip/chip.css +1 -1
- package/es/col/Col.js +1 -1
- package/es/counter/Counter.js +2 -2
- package/es/date-picker/DatePicker.js +1 -1
- package/es/dialog/Dialog.js +1 -1
- package/es/divider/Divider.js +1 -1
- package/es/image/Image.js +1 -1
- package/es/image-preview/ImagePreview.js +3 -3
- package/es/index-anchor/IndexAnchor.js +1 -1
- package/es/index.js +5 -0
- package/es/input/Input.js +2 -2
- package/es/link/Link.js +102 -0
- package/es/link/LinkSfc.css +0 -0
- package/es/link/index.js +8 -0
- package/es/link/link.css +1 -0
- package/es/link/props.js +50 -0
- package/es/link/style/index.js +3 -0
- package/es/list/List.js +1 -1
- package/es/loading/Loading.js +1 -1
- package/es/menu/Menu.js +1 -1
- package/es/option/Option.js +2 -2
- package/es/pagination/Pagination.js +3 -3
- package/es/picker/Picker.js +1 -1
- package/es/popup/Popup.js +4 -4
- package/es/pull-refresh/PullRefresh.js +1 -1
- package/es/row/Row.js +1 -1
- package/es/select/Select.js +3 -3
- package/es/skeleton/Skeleton.js +1 -1
- package/es/slider/Slider.js +1 -1
- package/es/snackbar/core.js +1 -1
- package/es/snackbar/style/index.js +1 -1
- package/es/space/Space.js +2 -4
- package/es/style.css +1 -1
- package/es/style.js +1 -0
- package/es/switch/Switch.js +1 -1
- package/es/tab/Tab.js +2 -2
- package/es/table/Table.js +1 -1
- package/es/tabs/Tabs.js +2 -2
- package/es/time-picker/TimePicker.js +1 -1
- package/es/umdIndex.js +5 -0
- package/es/uploader/Uploader.js +3 -3
- package/es/utils/components.js +9 -3
- package/es/varlet.esm.js +3772 -3650
- package/highlight/attributes.json +38 -2
- package/highlight/tags.json +13 -0
- package/highlight/web-types.json +101 -3
- package/lib/action-sheet/ActionSheet.js +1 -1
- package/lib/app-bar/AppBar.js +1 -1
- package/lib/badge/Badge.js +5 -3
- package/lib/button/Button.js +1 -1
- package/lib/button/button.css +1 -1
- package/lib/button/props.js +1 -2
- package/lib/card/Card.js +3 -3
- package/lib/cell/Cell.js +0 -1
- package/lib/chip/Chip.js +6 -4
- package/lib/chip/chip.css +1 -1
- package/lib/col/Col.js +1 -1
- package/lib/counter/Counter.js +2 -2
- package/lib/date-picker/DatePicker.js +1 -1
- package/lib/dialog/Dialog.js +1 -1
- package/lib/divider/Divider.js +1 -1
- package/lib/image/Image.js +1 -1
- package/lib/image-preview/ImagePreview.js +3 -3
- package/lib/index-anchor/IndexAnchor.js +1 -1
- package/lib/index.js +3 -0
- package/lib/input/Input.js +2 -2
- package/lib/link/Link.js +115 -0
- package/lib/link/LinkSfc.css +0 -0
- package/lib/link/index.js +17 -0
- package/lib/link/link.css +1 -0
- package/lib/link/props.js +56 -0
- package/lib/link/style/index.js +3 -0
- package/lib/list/List.js +1 -1
- package/lib/loading/Loading.js +1 -1
- package/lib/menu/Menu.js +1 -1
- package/lib/option/Option.js +2 -2
- package/lib/pagination/Pagination.js +3 -3
- package/lib/picker/Picker.js +1 -1
- package/lib/popup/Popup.js +4 -4
- package/lib/pull-refresh/PullRefresh.js +1 -1
- package/lib/row/Row.js +1 -1
- package/lib/select/Select.js +3 -3
- package/lib/skeleton/Skeleton.js +1 -1
- package/lib/slider/Slider.js +1 -1
- package/lib/snackbar/core.js +1 -1
- package/lib/snackbar/style/index.js +1 -1
- package/lib/space/Space.js +2 -4
- package/lib/style.css +1 -1
- package/lib/style.js +1 -0
- package/lib/switch/Switch.js +1 -1
- package/lib/tab/Tab.js +2 -2
- package/lib/table/Table.js +1 -1
- package/lib/tabs/Tabs.js +2 -2
- package/lib/time-picker/TimePicker.js +1 -1
- package/lib/uploader/Uploader.js +3 -3
- package/lib/utils/components.js +9 -3
- package/package.json +7 -7
- package/types/index.d.ts +2 -0
- package/types/link.d.ts +30 -0
- package/umd/varlet.js +7 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports._LinkComponent = void 0;
|
|
5
|
+
|
|
6
|
+
var _Link = _interopRequireDefault(require("./Link.js"));
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
|
|
10
|
+
_Link.default.install = function (app) {
|
|
11
|
+
app.component(_Link.default.name, _Link.default);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
var _LinkComponent = _Link.default;
|
|
15
|
+
exports._LinkComponent = _LinkComponent;
|
|
16
|
+
var _default = _Link.default;
|
|
17
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root { --link-primary-color: var(--color-primary); --link-danger-color: var(--color-danger); --link-success-color: var(--color-success); --link-warning-color: var(--color-warning); --link-info-color: var(--color-info); --link-disabled-color: var(--color-text-disabled); --link-font-size: var(--font-size-md);}.var-link { position: relative; justify-content: center; align-items: center; outline: none; cursor: pointer; font-family: inherit; white-space: nowrap; color: inherit; text-decoration: none; font-size: var(--link-font-size);}.var-link--underline-always { text-decoration: underline;}.var-link--underline-hover:hover { text-decoration: underline;}.var-link--default { color: inherit;}.var-link--primary { color: var(--link-primary-color);}.var-link--info { color: var(--link-info-color);}.var-link--success { color: var(--link-success-color);}.var-link--warning { color: var(--link-warning-color);}.var-link--danger { color: var(--link-danger-color);}.var-link--disabled { color: var(--link-disabled-color); cursor: not-allowed;}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.props = void 0;
|
|
5
|
+
|
|
6
|
+
function typeValidator(type) {
|
|
7
|
+
return ['default', 'primary', 'info', 'success', 'warning', 'danger'].includes(type);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function underlineValidator(status) {
|
|
11
|
+
return ['always', 'hover', 'none'].includes(status);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var props = {
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'default',
|
|
18
|
+
validator: typeValidator
|
|
19
|
+
},
|
|
20
|
+
href: {
|
|
21
|
+
type: String
|
|
22
|
+
},
|
|
23
|
+
target: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
to: {
|
|
27
|
+
type: [String, Object]
|
|
28
|
+
},
|
|
29
|
+
replace: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
underline: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: 'always',
|
|
36
|
+
validator: underlineValidator
|
|
37
|
+
},
|
|
38
|
+
disabled: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
textSize: {
|
|
43
|
+
type: [String, Number]
|
|
44
|
+
},
|
|
45
|
+
textColor: {
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
defaultStyle: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
onClick: {
|
|
53
|
+
type: Function
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.props = props;
|
package/lib/list/List.js
CHANGED
|
@@ -39,7 +39,7 @@ function render(_ctx, _cache) {
|
|
|
39
39
|
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
40
40
|
|
|
41
41
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
42
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), '
|
|
42
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'))),
|
|
43
43
|
ref: "listEl"
|
|
44
44
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "default"), _ctx.loading ? (0, _vue.renderSlot)(_ctx.$slots, "loading", {
|
|
45
45
|
key: 0
|
package/lib/loading/Loading.js
CHANGED
|
@@ -47,7 +47,7 @@ function render(_ctx, _cache) {
|
|
|
47
47
|
/* CLASS */
|
|
48
48
|
)) : (0, _vue.createCommentVNode)("v-if", true), _ctx.isShow ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
49
49
|
key: 1,
|
|
50
|
-
class: (0, _vue.normalizeClass)(_ctx.classes('
|
|
50
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('$--box'), _ctx.n('body'), [_ctx.$slots.default, _ctx.n('inside')]))
|
|
51
51
|
}, [_ctx.type === 'circle' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: (0, _vue.normalizeClass)(_ctx.n('circle'))
|
package/lib/menu/Menu.js
CHANGED
|
@@ -58,7 +58,7 @@ function render(_ctx, _cache) {
|
|
|
58
58
|
style: (0, _vue.normalizeStyle)({
|
|
59
59
|
zIndex: _ctx.zIndex
|
|
60
60
|
}),
|
|
61
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('menu'), [_ctx.defaultStyle, _ctx.n('--menu-background-color') + "
|
|
61
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('menu'), [_ctx.defaultStyle, _ctx.n('--menu-background-color') + " " + _ctx.n('$-elevation--3')])),
|
|
62
62
|
onClick: _cache[0] || (_cache[0] = (0, _vue.withModifiers)(() => {}, ["stop"])),
|
|
63
63
|
onMouseenter: _cache[1] || (_cache[1] = function () {
|
|
64
64
|
return _ctx.handleMenuMouseenter && _ctx.handleMenuMouseenter(...arguments);
|
package/lib/option/Option.js
CHANGED
|
@@ -29,7 +29,7 @@ function render(_ctx, _cache) {
|
|
|
29
29
|
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
30
30
|
|
|
31
31
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
32
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), '
|
|
32
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.optionSelected, _ctx.n('--selected-color')])),
|
|
33
33
|
style: (0, _vue.normalizeStyle)({
|
|
34
34
|
width: _ctx.wrapWidth,
|
|
35
35
|
color: _ctx.optionSelected ? _ctx.focusColor : undefined
|
|
@@ -55,7 +55,7 @@ function render(_ctx, _cache) {
|
|
|
55
55
|
}, null, 8
|
|
56
56
|
/* PROPS */
|
|
57
57
|
, ["checked-color", "modelValue", "onChange"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", {
|
|
58
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('text'), '
|
|
58
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('text'), _ctx.n('$--ellipsis')))
|
|
59
59
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.label), 1
|
|
60
60
|
/* TEXT */
|
|
61
61
|
)])], 2
|
|
@@ -49,7 +49,7 @@ function render(_ctx, _cache) {
|
|
|
49
49
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("ul", {
|
|
50
50
|
class: (0, _vue.normalizeClass)(_ctx.n())
|
|
51
51
|
}, [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
52
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), '
|
|
52
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.n('$-elevation--2')])),
|
|
53
53
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.clickItem('prev'))
|
|
54
54
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "prev", {}, () => [(0, _vue.createVNode)(_component_var_icon, {
|
|
55
55
|
name: "chevron-left"
|
|
@@ -83,7 +83,7 @@ function render(_ctx, _cache) {
|
|
|
83
83
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
84
84
|
key: _ctx.toNumber(item) + index,
|
|
85
85
|
"item-mode": _ctx.getMode(item, index),
|
|
86
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), '
|
|
86
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('$-elevation--2'), [item === _ctx.current && !_ctx.disabled, _ctx.n('item--active')], [_ctx.isHideEllipsis(item, index), _ctx.n('item--hide')], [_ctx.disabled, _ctx.n('item--disabled')], [item === _ctx.current && _ctx.disabled, _ctx.n('item--disabled--active')])),
|
|
87
87
|
onClick: $event => _ctx.clickItem(item, index)
|
|
88
88
|
}, [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(item), 1
|
|
89
89
|
/* TEXT */
|
|
@@ -95,7 +95,7 @@ function render(_ctx, _cache) {
|
|
|
95
95
|
}), 128
|
|
96
96
|
/* KEYED_FRAGMENT */
|
|
97
97
|
)), (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
98
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), '
|
|
98
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.n('$-elevation--2')])),
|
|
99
99
|
onClick: _cache[4] || (_cache[4] = $event => _ctx.clickItem('next'))
|
|
100
100
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "next", {}, () => [(0, _vue.createVNode)(_component_var_icon, {
|
|
101
101
|
name: "chevron-right"
|
package/lib/picker/Picker.js
CHANGED
|
@@ -40,7 +40,7 @@ var _hoisted_2 = ["onTransitionend"];
|
|
|
40
40
|
function render(_ctx, _cache) {
|
|
41
41
|
var _component_var_button = (0, _vue.resolveComponent)("var-button");
|
|
42
42
|
|
|
43
|
-
return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.dynamic ? '
|
|
43
|
+
return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.dynamic ? _ctx.n('$-popup') : _ctx.Transition), (0, _vue.mergeProps)(_ctx.dynamic ? {
|
|
44
44
|
onOpen: _ctx.onOpen,
|
|
45
45
|
onOpened: _ctx.onOpened,
|
|
46
46
|
onClose: _ctx.onClose,
|
package/lib/popup/Popup.js
CHANGED
|
@@ -88,7 +88,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
88
88
|
|
|
89
89
|
var renderContent = () => {
|
|
90
90
|
return (0, _vue.createVNode)("div", (0, _vue.mergeProps)({
|
|
91
|
-
"class": classes(n('content'), '
|
|
91
|
+
"class": classes(n('content'), n('$-elevation--3'), n("--" + props.position)),
|
|
92
92
|
"style": {
|
|
93
93
|
zIndex: zIndex.value
|
|
94
94
|
}
|
|
@@ -105,17 +105,17 @@ var _default = (0, _vue.defineComponent)({
|
|
|
105
105
|
position
|
|
106
106
|
} = props;
|
|
107
107
|
return (0, _vue.createVNode)(_vue.Transition, {
|
|
108
|
-
"name":
|
|
108
|
+
"name": n('$-fade'),
|
|
109
109
|
"onAfterEnter": onOpened,
|
|
110
110
|
"onAfterLeave": onClosed
|
|
111
111
|
}, {
|
|
112
112
|
default: () => [(0, _vue.withDirectives)((0, _vue.createVNode)("div", {
|
|
113
|
-
"class": classes('
|
|
113
|
+
"class": classes(n('$--box'), n()),
|
|
114
114
|
"style": {
|
|
115
115
|
zIndex: zIndex.value - 2
|
|
116
116
|
}
|
|
117
117
|
}, [overlay && renderOverlay(), (0, _vue.createVNode)(_vue.Transition, {
|
|
118
|
-
"name": transition || "
|
|
118
|
+
"name": transition || n("$-pop-" + position)
|
|
119
119
|
}, {
|
|
120
120
|
default: () => [show && renderContent()]
|
|
121
121
|
})]), [[_vue.vShow, show]])]
|
|
@@ -49,7 +49,7 @@ function render(_ctx, _cache) {
|
|
|
49
49
|
return _ctx.touchEnd && _ctx.touchEnd(...arguments);
|
|
50
50
|
})
|
|
51
51
|
}, [(0, _vue.createElementVNode)("div", {
|
|
52
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('control'), '
|
|
52
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('control'), _ctx.n('$-elevation--2'), [_ctx.isSuccess, _ctx.n('control-success')])),
|
|
53
53
|
style: (0, _vue.normalizeStyle)(_ctx.controlStyle)
|
|
54
54
|
}, [(0, _vue.createVNode)(_component_var_icon, {
|
|
55
55
|
name: _ctx.iconName,
|
package/lib/row/Row.js
CHANGED
|
@@ -21,7 +21,7 @@ var {
|
|
|
21
21
|
|
|
22
22
|
function render(_ctx, _cache) {
|
|
23
23
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
24
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), '
|
|
24
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'))),
|
|
25
25
|
style: (0, _vue.normalizeStyle)({
|
|
26
26
|
justifyContent: _ctx.justify,
|
|
27
27
|
alignItems: _ctx.align,
|
package/lib/select/Select.js
CHANGED
|
@@ -52,7 +52,7 @@ function render(_ctx, _cache) {
|
|
|
52
52
|
var _component_var_form_details = (0, _vue.resolveComponent)("var-form-details");
|
|
53
53
|
|
|
54
54
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
55
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), '
|
|
55
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')])),
|
|
56
56
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
57
57
|
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
58
58
|
})
|
|
@@ -83,7 +83,7 @@ function render(_ctx, _cache) {
|
|
|
83
83
|
}, {
|
|
84
84
|
menu: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
|
|
85
85
|
ref: "menuEl",
|
|
86
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('scroller'), '
|
|
86
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('scroller'), _ctx.n('$-elevation--3')))
|
|
87
87
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
|
|
88
88
|
/* CLASS */
|
|
89
89
|
)]),
|
|
@@ -139,7 +139,7 @@ function render(_ctx, _cache) {
|
|
|
139
139
|
, ["class"])])], 6
|
|
140
140
|
/* CLASS, STYLE */
|
|
141
141
|
), (0, _vue.createElementVNode)("label", {
|
|
142
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('placeholder'), '
|
|
142
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('placeholder'), _ctx.n('$--ellipsis'), [_ctx.isFocus, _ctx.n('--focus')], [_ctx.errorMessage, _ctx.n('--error')], [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')], _ctx.computePlaceholderState(), [!_ctx.hint, _ctx.n('--placeholder-non-hint')])),
|
|
143
143
|
style: (0, _vue.normalizeStyle)({
|
|
144
144
|
color: !_ctx.errorMessage ? _ctx.isFocus ? _ctx.focusColor : _ctx.blurColor : undefined
|
|
145
145
|
})
|
package/lib/skeleton/Skeleton.js
CHANGED
|
@@ -21,7 +21,7 @@ var {
|
|
|
21
21
|
|
|
22
22
|
function render(_ctx, _cache) {
|
|
23
23
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
24
|
-
class: (0, _vue.normalizeClass)(_ctx.classes('
|
|
24
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('$--box'), _ctx.n()))
|
|
25
25
|
}, [!_ctx.loading ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: (0, _vue.normalizeClass)(_ctx.n('data'))
|
package/lib/slider/Slider.js
CHANGED
|
@@ -306,7 +306,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
306
306
|
|
|
307
307
|
var click = event => {
|
|
308
308
|
if (isDisabled.value || isReadonly.value) return;
|
|
309
|
-
if (event.target.closest(
|
|
309
|
+
if (event.target.closest("." + n('thumb'))) return;
|
|
310
310
|
var offset = event.clientX - (0, _elements.getLeft)(event.currentTarget);
|
|
311
311
|
var type = getType(offset);
|
|
312
312
|
setPercent(offset, type);
|
package/lib/snackbar/core.js
CHANGED
|
@@ -46,7 +46,7 @@ function render(_ctx, _cache) {
|
|
|
46
46
|
zIndex: _ctx.zIndex
|
|
47
47
|
})
|
|
48
48
|
}, [(0, _vue.createElementVNode)("div", {
|
|
49
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrapper'), _ctx.n("wrapper-" + _ctx.position), '
|
|
49
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrapper'), _ctx.n("wrapper-" + _ctx.position), _ctx.n('$-elevation--4'), [_ctx.vertical, _ctx.n('vertical')], [_ctx.type && _ctx.SNACKBAR_TYPE.includes(_ctx.type), _ctx.n("wrapper-" + _ctx.type)])),
|
|
50
50
|
style: (0, _vue.normalizeStyle)({
|
|
51
51
|
zIndex: _ctx.zIndex
|
|
52
52
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require('../../styles/common.css')
|
|
2
|
-
require('../SnackbarSfc.css')
|
|
3
2
|
require('../../styles/elevation.css')
|
|
4
3
|
require('../../loading/loading.css')
|
|
5
4
|
require('../../button/button.css')
|
|
6
5
|
require('../../icon/icon.css')
|
|
7
6
|
require('../snackbar.css')
|
|
8
7
|
require('../coreSfc.css')
|
|
8
|
+
require('../SnackbarSfc.css')
|
package/lib/space/Space.js
CHANGED
|
@@ -80,7 +80,6 @@ var _default = (0, _vue.defineComponent)({
|
|
|
80
80
|
children = flatten(children);
|
|
81
81
|
var lastIndex = children.length - 1;
|
|
82
82
|
var spacers = children.map((child, index) => {
|
|
83
|
-
var width = direction === 'row' ? undefined : '100%';
|
|
84
83
|
var margin = '0';
|
|
85
84
|
|
|
86
85
|
if (direction === 'row') {
|
|
@@ -109,13 +108,12 @@ var _default = (0, _vue.defineComponent)({
|
|
|
109
108
|
|
|
110
109
|
return (0, _vue.createVNode)("div", {
|
|
111
110
|
"style": {
|
|
112
|
-
margin
|
|
113
|
-
width
|
|
111
|
+
margin
|
|
114
112
|
}
|
|
115
113
|
}, [child]);
|
|
116
114
|
});
|
|
117
115
|
return (0, _vue.createVNode)("div", {
|
|
118
|
-
"class": classes(n(), '
|
|
116
|
+
"class": classes(n(), n('$--box'), [inline, n('--inline')]),
|
|
119
117
|
"style": {
|
|
120
118
|
flexDirection: direction,
|
|
121
119
|
justifyContent: padStartFlex(justify),
|