@varlet/ui 2.2.1-alpha.1668396604067 → 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/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
|
@@ -42,7 +42,7 @@ export function render(_ctx, _cache) {
|
|
|
42
42
|
onRouteChange: _ctx.onRouteChange
|
|
43
43
|
}), {
|
|
44
44
|
default: _withCtx(() => [_createElementVNode("div", _mergeProps({
|
|
45
|
-
class: _ctx.classes(_ctx.n(), '
|
|
45
|
+
class: _ctx.classes(_ctx.n(), _ctx.n('$--box'))
|
|
46
46
|
}, _ctx.$attrs), [_renderSlot(_ctx.$slots, "title", {}, () => [_createElementVNode("div", {
|
|
47
47
|
class: _normalizeClass(_ctx.n('title'))
|
|
48
48
|
}, _toDisplayString(_ctx.dt(_ctx.title, _ctx.pack.actionSheetTitle)), 3
|
package/es/app-bar/AppBar.js
CHANGED
|
@@ -8,7 +8,7 @@ var {
|
|
|
8
8
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode } from "vue";
|
|
9
9
|
export function render(_ctx, _cache) {
|
|
10
10
|
return _openBlock(), _createElementBlock("div", {
|
|
11
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.elevation, '
|
|
11
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.elevation, _ctx.n('$-elevation--3')])),
|
|
12
12
|
style: _normalizeStyle({
|
|
13
13
|
background: _ctx.color,
|
|
14
14
|
color: _ctx.textColor
|
package/es/badge/Badge.js
CHANGED
|
@@ -18,9 +18,9 @@ export function render(_ctx, _cache) {
|
|
|
18
18
|
var _component_var_icon = _resolveComponent("var-icon");
|
|
19
19
|
|
|
20
20
|
return _openBlock(), _createElementBlock("div", {
|
|
21
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
21
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box')))
|
|
22
22
|
}, [_createVNode(_Transition, {
|
|
23
|
-
name:
|
|
23
|
+
name: _ctx.n('$-badge-fade')
|
|
24
24
|
}, {
|
|
25
25
|
default: _withCtx(() => [_withDirectives(_createElementVNode("span", _mergeProps(_ctx.$attrs, {
|
|
26
26
|
class: _ctx.classes(_ctx.n('content'), ..._ctx.contentClass),
|
|
@@ -41,7 +41,9 @@ export function render(_ctx, _cache) {
|
|
|
41
41
|
_: 1
|
|
42
42
|
/* STABLE */
|
|
43
43
|
|
|
44
|
-
}
|
|
44
|
+
}, 8
|
|
45
|
+
/* PROPS */
|
|
46
|
+
, ["name"]), _renderSlot(_ctx.$slots, "default")], 2
|
|
45
47
|
/* CLASS */
|
|
46
48
|
);
|
|
47
49
|
}
|
package/es/button/Button.js
CHANGED
|
@@ -18,7 +18,7 @@ export function render(_ctx, _cache) {
|
|
|
18
18
|
var _directive_ripple = _resolveDirective("ripple");
|
|
19
19
|
|
|
20
20
|
return _withDirectives((_openBlock(), _createElementBlock("button", {
|
|
21
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
21
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), _ctx.n("--" + _ctx.size), [_ctx.block, _ctx.n('$--flex') + " " + _ctx.n('--block'), _ctx.n('$--inline-flex')], [_ctx.disabled, _ctx.n('--disabled')], [_ctx.text, _ctx.n("--text-" + _ctx.type) + " " + _ctx.n('--text'), _ctx.n("--" + _ctx.type) + " " + _ctx.n('$-elevation--2')], [_ctx.text && _ctx.disabled, _ctx.n('--text-disabled')], [_ctx.round, _ctx.n('--round')], [_ctx.outline, _ctx.n('--outline')])),
|
|
22
22
|
style: _normalizeStyle({
|
|
23
23
|
color: _ctx.textColor,
|
|
24
24
|
background: _ctx.color
|
package/es/button/button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --button-default-color: #f5f5f5; --button-primary-color: var(--color-primary); --button-danger-color: var(--color-danger); --button-success-color: var(--color-success); --button-warning-color: var(--color-warning); --button-info-color: var(--color-info); --button-disabled-color: var(--color-disabled); --button-disabled-text-color: var(--color-text-disabled); --button-border-radius: 4px; --button-mini-padding: 0 9px; --button-small-padding: 0 11px; --button-normal-padding: 0 15px; --button-large-padding: 0 22px; --button-round-padding: 6px; --button-mini-height: 20px; --button-small-height: 28px; --button-normal-height: 36px; --button-large-height: 44px;}.var-button { position: relative; justify-content: center; align-items: center; outline: none; border: none; border-radius: var(--button-border-radius); user-select: none; cursor: pointer; font-family: inherit; transition: box-shadow 0.2s, background-color 0.25s; will-change: box-shadow; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); white-space: nowrap;}.var-button:active { box-shadow: 0 3px 5px -1px var(--shadow-key-umbra-opacity), 0 5px 8px 0 var(--shadow-key-penumbra-opacity), 0 1px 14px 0 var(--shadow-key-ambient-opacity);}.var-button__content { display: flex; align-items: center; flex-wrap: wrap;}.var-button__loading[var-button-cover] { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}.var-button--default { color: inherit; background-color: var(--button-default-color);}.var-button--primary { color: #fff; background-color: var(--button-primary-color);}.var-button--info { color: #fff; background-color: var(--button-info-color);}.var-button--success { color: #fff; background-color: var(--button-success-color);}.var-button--warning { color: #fff; background-color: var(--button-warning-color);}.var-button--danger { color: #fff; background-color: var(--button-danger-color);}.var-button--disabled { background-color: var(--button-disabled-color); color: var(--button-disabled-text-color); cursor: not-allowed; box-shadow: none !important;}.var-button--block { width: 100%;}.var-button--text { background-color: transparent;}.var-button--text:active { box-shadow: none;}.var-button--text-default { color: inherit;}.var-button--text-primary { color: var(--button-primary-color);}.var-button--text-info { color: var(--button-info-color);}.var-button--text-success { color: var(--button-success-color);}.var-button--text-warning { color: var(--button-warning-color);}.var-button--text-danger { color: var(--button-danger-color);}.var-button--text-disabled { color: var(--button-disabled-text-color);}.var-button--normal { height: var(--button-normal-height); padding: var(--button-normal-padding); font-size: var(--font-size
|
|
1
|
+
:root { --button-default-color: #f5f5f5; --button-primary-color: var(--color-primary); --button-danger-color: var(--color-danger); --button-success-color: var(--color-success); --button-warning-color: var(--color-warning); --button-info-color: var(--color-info); --button-disabled-color: var(--color-disabled); --button-disabled-text-color: var(--color-text-disabled); --button-border-radius: 4px; --button-mini-padding: 0 9px; --button-small-padding: 0 11px; --button-normal-padding: 0 15px; --button-large-padding: 0 22px; --button-round-padding: 6px; --button-mini-height: 20px; --button-small-height: 28px; --button-normal-height: 36px; --button-large-height: 44px; --button-mini-font-size: var(--font-size-xs); --button-small-font-size: var(--font-size-sm); --button-normal-font-size: var(--font-size-md); --button-large-font-size: var(--font-size-lg);}.var-button { position: relative; justify-content: center; align-items: center; outline: none; border: none; border-radius: var(--button-border-radius); user-select: none; cursor: pointer; font-family: inherit; transition: box-shadow 0.2s, background-color 0.25s; will-change: box-shadow; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); white-space: nowrap;}.var-button:active { box-shadow: 0 3px 5px -1px var(--shadow-key-umbra-opacity), 0 5px 8px 0 var(--shadow-key-penumbra-opacity), 0 1px 14px 0 var(--shadow-key-ambient-opacity);}.var-button__content { display: flex; align-items: center; flex-wrap: wrap;}.var-button__loading[var-button-cover] { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}.var-button--default { color: inherit; background-color: var(--button-default-color);}.var-button--primary { color: #fff; background-color: var(--button-primary-color);}.var-button--info { color: #fff; background-color: var(--button-info-color);}.var-button--success { color: #fff; background-color: var(--button-success-color);}.var-button--warning { color: #fff; background-color: var(--button-warning-color);}.var-button--danger { color: #fff; background-color: var(--button-danger-color);}.var-button--disabled { background-color: var(--button-disabled-color); color: var(--button-disabled-text-color); cursor: not-allowed; box-shadow: none !important;}.var-button--block { width: 100%;}.var-button--text { background-color: transparent;}.var-button--text:active { box-shadow: none;}.var-button--text-default { color: inherit;}.var-button--text-primary { color: var(--button-primary-color);}.var-button--text-info { color: var(--button-info-color);}.var-button--text-success { color: var(--button-success-color);}.var-button--text-warning { color: var(--button-warning-color);}.var-button--text-danger { color: var(--button-danger-color);}.var-button--text-disabled { color: var(--button-disabled-text-color);}.var-button--normal { height: var(--button-normal-height); padding: var(--button-normal-padding); font-size: var(--button-normal-font-size);}.var-button--large { height: var(--button-large-height); padding: var(--button-large-padding); font-size: var(--button-large-font-size);}.var-button--small { height: var(--button-small-height); padding: var(--button-small-padding); font-size: var(--button-small-font-size);}.var-button--mini { height: var(--button-mini-height); padding: var(--button-mini-padding); font-size: var(--button-mini-font-size);}.var-button--round { padding: var(--button-round-padding); border-radius: 50%; height: auto;}.var-button--outline { border: thin solid currentColor;}.var-button--hidden { opacity: 0;}
|
package/es/button/props.js
CHANGED
package/es/card/Card.js
CHANGED
|
@@ -30,7 +30,7 @@ export function render(_ctx, _cache) {
|
|
|
30
30
|
|
|
31
31
|
return _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
32
32
|
ref: "card",
|
|
33
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.isRow, _ctx.n('--layout-row')], [_ctx.elevation, "
|
|
33
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.isRow, _ctx.n('--layout-row')], [_ctx.elevation, _ctx.n("$-elevation--" + _ctx.elevation), _ctx.n('$-elevation--1')])),
|
|
34
34
|
style: _normalizeStyle({
|
|
35
35
|
zIndex: _ctx.floated ? _ctx.zIndex : undefined
|
|
36
36
|
}),
|
|
@@ -97,7 +97,7 @@ export function render(_ctx, _cache) {
|
|
|
97
97
|
/* CLASS */
|
|
98
98
|
), _ctx.showFloatingButtons ? (_openBlock(), _createElementBlock("div", {
|
|
99
99
|
key: 0,
|
|
100
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('floating-buttons'), '
|
|
100
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('floating-buttons'), _ctx.n('$--box'))),
|
|
101
101
|
style: _normalizeStyle({
|
|
102
102
|
zIndex: _ctx.zIndex,
|
|
103
103
|
opacity: _ctx.opacity,
|
|
@@ -106,7 +106,7 @@ export function render(_ctx, _cache) {
|
|
|
106
106
|
}, [_renderSlot(_ctx.$slots, "close-button", {}, () => [_createVNode(_component_var_button, {
|
|
107
107
|
"var-card-cover": "",
|
|
108
108
|
round: "",
|
|
109
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('close-button'), '
|
|
109
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('close-button'), _ctx.n('$-elevation--6'))),
|
|
110
110
|
onClick: _withModifiers(_ctx.close, ["stop"])
|
|
111
111
|
}, {
|
|
112
112
|
default: _withCtx(() => [_createVNode(_component_var_icon, {
|
package/es/cell/Cell.js
CHANGED
|
@@ -16,7 +16,6 @@ export function render(_ctx, _cache) {
|
|
|
16
16
|
key: 0,
|
|
17
17
|
class: _normalizeClass(_ctx.classes(_ctx.n('icon'), [_ctx.iconClass, _ctx.iconClass]))
|
|
18
18
|
}, [_renderSlot(_ctx.$slots, "icon", {}, () => [_createVNode(_component_var_icon, {
|
|
19
|
-
class: "var--flex",
|
|
20
19
|
name: _ctx.icon
|
|
21
20
|
}, null, 8
|
|
22
21
|
/* PROPS */
|
package/es/chip/Chip.js
CHANGED
|
@@ -11,10 +11,10 @@ export function render(_ctx, _cache) {
|
|
|
11
11
|
var _component_var_icon = _resolveComponent("var-icon");
|
|
12
12
|
|
|
13
13
|
return _openBlock(), _createBlock(_Transition, {
|
|
14
|
-
name:
|
|
14
|
+
name: _ctx.n('$-fade')
|
|
15
15
|
}, {
|
|
16
16
|
default: _withCtx(() => [_createElementVNode("span", _mergeProps({
|
|
17
|
-
class: _ctx.classes(_ctx.n(), '
|
|
17
|
+
class: _ctx.classes(_ctx.n(), _ctx.n('$--box'), ..._ctx.contentClass),
|
|
18
18
|
style: _ctx.chipStyles
|
|
19
19
|
}, _ctx.$attrs), [_renderSlot(_ctx.$slots, "left"), _createElementVNode("span", {
|
|
20
20
|
class: _normalizeClass(_ctx.n("text-" + _ctx.size))
|
|
@@ -38,7 +38,9 @@ export function render(_ctx, _cache) {
|
|
|
38
38
|
_: 3
|
|
39
39
|
/* FORWARDED */
|
|
40
40
|
|
|
41
|
-
}
|
|
41
|
+
}, 8
|
|
42
|
+
/* PROPS */
|
|
43
|
+
, ["name"]);
|
|
42
44
|
}
|
|
43
45
|
export default defineComponent({
|
|
44
46
|
render,
|
|
@@ -77,7 +79,7 @@ export default defineComponent({
|
|
|
77
79
|
plain,
|
|
78
80
|
round
|
|
79
81
|
} = props;
|
|
80
|
-
var blockClass = block ? '
|
|
82
|
+
var blockClass = block ? n('$--flex') : n('$--inline-flex');
|
|
81
83
|
var plainTypeClass = plain ? n('plain') + " " + n("plain-" + type) : n("--" + type);
|
|
82
84
|
var roundClass = round ? n('--round') : null;
|
|
83
85
|
return [n("--" + size), blockClass, plainTypeClass, roundClass];
|
package/es/chip/chip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --chip-default-color: #e0e0e0; --chip-primary-color: var(--color-primary); --chip-danger-color: var(--color-danger); --chip-success-color: var(--color-success); --chip-warning-color: var(--color-warning); --chip-info-color: var(--color-info); --chip-border-radius: 2px; --chip-normal-height: 32px; --chip-large-height: 40px; --chip-small-height: 24px; --chip-mini-height: 16px; --chip-round-radius: 100px; --chip-normal-padding: 0 10px; --chip-large-padding: 0 17px; --chip-small-padding: 0 6px; --chip-mini-padding: 0 4px; --chip-text-normal-margin: 0 5px; --chip-text-large-margin: 0 5px; --chip-text-small-margin: 0 3px; --chip-text-mini-margin: 0 2px;}.var-fade-leave-to { opacity: 0;}.var-fade-leave-active { transition: opacity 0.3s;}.var-chip { justify-content: center; align-items: center; font-family: Roboto, sans-serif; border-radius: var(--chip-border-radius); cursor: default; border: thin solid transparent; vertical-align: middle; transition: background-color 0.25s;}.var-chip--default { color: inherit; background: var(--chip-default-color);}.var-chip--primary { color: #fff; background-color: var(--chip-primary-color);}.var-chip--info { color: #fff; background-color: var(--chip-info-color);}.var-chip--success { color: #fff; background-color: var(--chip-success-color);}.var-chip--warning { color: #fff; background-color: var(--chip-warning-color);}.var-chip--danger { color: #fff; background-color: var(--chip-danger-color);}.var-chip__plain { background-color: transparent;}.var-chip__plain:active { box-shadow: none;}.var-chip__plain-default { color: inherit; border-color: currentColor;}.var-chip__plain-primary { color: var(--chip-primary-color); border-color: currentColor;}.var-chip__plain-info { color: var(--chip-info-color); border-color: currentColor;}.var-chip__plain-success { color: var(--chip-success-color); border-color: currentColor;}.var-chip__plain-warning { color: var(--chip-warning-color); border-color: currentColor;}.var-chip__plain-danger { color: var(--chip-danger-color); border-color: currentColor;}.var-chip--round { border-radius: var(--chip-round-radius);}.var-chip--normal { font-size: var(--font-size
|
|
1
|
+
:root { --chip-default-color: #e0e0e0; --chip-primary-color: var(--color-primary); --chip-danger-color: var(--color-danger); --chip-success-color: var(--color-success); --chip-warning-color: var(--color-warning); --chip-info-color: var(--color-info); --chip-border-radius: 2px; --chip-normal-height: 32px; --chip-large-height: 40px; --chip-small-height: 24px; --chip-mini-height: 16px; --chip-round-radius: 100px; --chip-normal-padding: 0 10px; --chip-large-padding: 0 17px; --chip-small-padding: 0 6px; --chip-mini-padding: 0 4px; --chip-text-normal-margin: 0 5px; --chip-text-large-margin: 0 5px; --chip-text-small-margin: 0 3px; --chip-text-mini-margin: 0 2px; --chip-mini-font-size: var(--font-size-xs); --chip-small-font-size: var(--font-size-sm); --chip-normal-font-size: var(--font-size-md); --chip-large-font-size: var(--font-size-lg);}.var-fade-leave-to { opacity: 0;}.var-fade-leave-active { transition: opacity 0.3s;}.var-chip { justify-content: center; align-items: center; font-family: Roboto, sans-serif; border-radius: var(--chip-border-radius); cursor: default; border: thin solid transparent; vertical-align: middle; transition: background-color 0.25s;}.var-chip--default { color: inherit; background: var(--chip-default-color);}.var-chip--primary { color: #fff; background-color: var(--chip-primary-color);}.var-chip--info { color: #fff; background-color: var(--chip-info-color);}.var-chip--success { color: #fff; background-color: var(--chip-success-color);}.var-chip--warning { color: #fff; background-color: var(--chip-warning-color);}.var-chip--danger { color: #fff; background-color: var(--chip-danger-color);}.var-chip__plain { background-color: transparent;}.var-chip__plain:active { box-shadow: none;}.var-chip__plain-default { color: inherit; border-color: currentColor;}.var-chip__plain-primary { color: var(--chip-primary-color); border-color: currentColor;}.var-chip__plain-info { color: var(--chip-info-color); border-color: currentColor;}.var-chip__plain-success { color: var(--chip-success-color); border-color: currentColor;}.var-chip__plain-warning { color: var(--chip-warning-color); border-color: currentColor;}.var-chip__plain-danger { color: var(--chip-danger-color); border-color: currentColor;}.var-chip--round { border-radius: var(--chip-round-radius);}.var-chip--normal { font-size: var(--chip-normal-font-size); padding: var(--chip-normal-padding); height: var(--chip-normal-height);}.var-chip--large { padding: var(--chip-large-padding); font-size: var(--chip-large-font-size); height: var(--chip-large-height);}.var-chip--small { padding: var(--chip-small-padding); font-size: var(--chip-small-font-size); height: var(--chip-small-height);}.var-chip--mini { padding: var(--chip-mini-padding); font-size: var(--chip-mini-font-size); height: var(--chip-mini-height);}.var-chip--close { cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-chip__text-large { margin: var(--chip-text-large-margin);}.var-chip__text-normal { margin: var(--chip-text-normal-margin);}.var-chip__text-small { margin: var(--chip-text-small-margin);}.var-chip__text-mini { margin: var(--chip-text-mini-margin);}
|
package/es/col/Col.js
CHANGED
|
@@ -11,7 +11,7 @@ var {
|
|
|
11
11
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
12
12
|
export function render(_ctx, _cache) {
|
|
13
13
|
return _openBlock(), _createElementBlock("div", {
|
|
14
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
14
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.span >= 0, _ctx.n("--span-" + _ctx.span)], [_ctx.offset, _ctx.n("--offset-" + _ctx.offset)], ..._ctx.getSize('xs', _ctx.xs), ..._ctx.getSize('sm', _ctx.sm), ..._ctx.getSize('md', _ctx.md), ..._ctx.getSize('lg', _ctx.lg), ..._ctx.getSize('xl', _ctx.xl))),
|
|
15
15
|
style: _normalizeStyle({
|
|
16
16
|
flexDirection: _ctx.direction,
|
|
17
17
|
paddingLeft: _ctx.toSizeUnit(_ctx.padding.left),
|
package/es/counter/Counter.js
CHANGED
|
@@ -27,9 +27,9 @@ export function render(_ctx, _cache) {
|
|
|
27
27
|
var _directive_ripple = _resolveDirective("ripple");
|
|
28
28
|
|
|
29
29
|
return _openBlock(), _createElementBlock("div", {
|
|
30
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
30
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box')))
|
|
31
31
|
}, [_createElementVNode("div", _mergeProps({
|
|
32
|
-
class: _ctx.classes(_ctx.n('controller'), '
|
|
32
|
+
class: _ctx.classes(_ctx.n('controller'), _ctx.n('$-elevation--2'), [_ctx.disabled || _ctx.formDisabled, _ctx.n('--disabled')], [_ctx.errorMessage, _ctx.n('--error')]),
|
|
33
33
|
style: {
|
|
34
34
|
background: _ctx.color ? _ctx.color : undefined
|
|
35
35
|
}
|
|
@@ -22,7 +22,7 @@ export function render(_ctx, _cache) {
|
|
|
22
22
|
var _component_day_picker_panel = _resolveComponent("day-picker-panel");
|
|
23
23
|
|
|
24
24
|
return _openBlock(), _createElementBlock("div", {
|
|
25
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.elevation, '
|
|
25
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.elevation, _ctx.n('$-elevation--2')]))
|
|
26
26
|
}, [_createElementVNode("div", {
|
|
27
27
|
class: _normalizeClass(_ctx.n('title')),
|
|
28
28
|
style: _normalizeStyle({
|
package/es/dialog/Dialog.js
CHANGED
|
@@ -36,7 +36,7 @@ export function render(_ctx, _cache) {
|
|
|
36
36
|
onClickOverlay: _ctx.handleClickOverlay
|
|
37
37
|
}, {
|
|
38
38
|
default: _withCtx(() => [_createElementVNode("div", _mergeProps({
|
|
39
|
-
class: _ctx.classes('
|
|
39
|
+
class: _ctx.classes(_ctx.n('$--box'), _ctx.n(), _ctx.dialogClass),
|
|
40
40
|
style: _extends({
|
|
41
41
|
width: _ctx.toSizeUnit(_ctx.width)
|
|
42
42
|
}, _ctx.dialogStyle)
|
package/es/divider/Divider.js
CHANGED
|
@@ -12,7 +12,7 @@ var {
|
|
|
12
12
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle } from "vue";
|
|
13
13
|
export function render(_ctx, _cache) {
|
|
14
14
|
return _openBlock(), _createElementBlock("div", {
|
|
15
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
15
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.vertical, _ctx.n('--vertical')], [_ctx.withText, _ctx.n('--with-text')], [_ctx.isInset, _ctx.n('--inset')], [_ctx.dashed, _ctx.n('--dashed')], [_ctx.hairline, _ctx.n('--hairline')])),
|
|
16
16
|
style: _normalizeStyle(_ctx.style)
|
|
17
17
|
}, [_renderSlot(_ctx.$slots, "default", {}, () => [_ctx.description ? (_openBlock(), _createElementBlock("span", {
|
|
18
18
|
key: 0,
|
package/es/image/Image.js
CHANGED
|
@@ -20,7 +20,7 @@ export function render(_ctx, _cache) {
|
|
|
20
20
|
var _directive_ripple = _resolveDirective("ripple");
|
|
21
21
|
|
|
22
22
|
return _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
23
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
23
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [!_ctx.block, _ctx.n('$--inline-block')])),
|
|
24
24
|
style: _normalizeStyle({
|
|
25
25
|
width: _ctx.toSizeUnit(_ctx.width),
|
|
26
26
|
height: _ctx.toSizeUnit(_ctx.height),
|
|
@@ -31,7 +31,7 @@ export function render(_ctx, _cache) {
|
|
|
31
31
|
return _openBlock(), _createBlock(_component_var_popup, {
|
|
32
32
|
class: _normalizeClass(_ctx.n('popup')),
|
|
33
33
|
"var-image-preview-cover": "",
|
|
34
|
-
transition:
|
|
34
|
+
transition: _ctx.n('$-fade'),
|
|
35
35
|
show: _ctx.popupShow,
|
|
36
36
|
overlay: false,
|
|
37
37
|
"close-on-click-overlay": false,
|
|
@@ -130,7 +130,7 @@ export function render(_ctx, _cache) {
|
|
|
130
130
|
|
|
131
131
|
}, 8
|
|
132
132
|
/* PROPS */
|
|
133
|
-
, ["class", "show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
|
|
133
|
+
, ["class", "transition", "show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
|
|
134
134
|
}
|
|
135
135
|
export default defineComponent({
|
|
136
136
|
render,
|
|
@@ -250,7 +250,7 @@ export default defineComponent({
|
|
|
250
250
|
var {
|
|
251
251
|
naturalWidth,
|
|
252
252
|
naturalHeight
|
|
253
|
-
} = target.querySelector('
|
|
253
|
+
} = target.querySelector("." + n('image'));
|
|
254
254
|
return {
|
|
255
255
|
width: offsetWidth,
|
|
256
256
|
height: offsetHeight,
|
|
@@ -9,7 +9,7 @@ var {
|
|
|
9
9
|
} = createNamespace('index-anchor');
|
|
10
10
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, mergeProps as _mergeProps, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
11
11
|
export function render(_ctx, _cache) {
|
|
12
|
-
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.sticky ? '
|
|
12
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.sticky ? _ctx.n('$-sticky') : _ctx.Transition), {
|
|
13
13
|
"offset-top": _ctx.sticky ? _ctx.stickyOffsetTop : null,
|
|
14
14
|
"z-index": _ctx.sticky ? _ctx.zIndex : null,
|
|
15
15
|
disabled: _ctx.disabled && !_ctx.cssMode,
|
package/es/index.js
CHANGED
|
@@ -28,6 +28,7 @@ import IndexAnchor, * as IndexAnchorModule from './index-anchor'
|
|
|
28
28
|
import IndexBar, * as IndexBarModule from './index-bar'
|
|
29
29
|
import Input, * as InputModule from './input'
|
|
30
30
|
import Lazy, * as LazyModule from './lazy'
|
|
31
|
+
import Link, * as LinkModule from './link'
|
|
31
32
|
import List, * as ListModule from './list'
|
|
32
33
|
import Loading, * as LoadingModule from './loading'
|
|
33
34
|
import Locale, * as LocaleModule from './locale'
|
|
@@ -94,6 +95,7 @@ export const _IndexAnchorComponent = IndexAnchorModule._IndexAnchorComponent ||
|
|
|
94
95
|
export const _IndexBarComponent = IndexBarModule._IndexBarComponent || {}
|
|
95
96
|
export const _InputComponent = InputModule._InputComponent || {}
|
|
96
97
|
export const _LazyComponent = LazyModule._LazyComponent || {}
|
|
98
|
+
export const _LinkComponent = LinkModule._LinkComponent || {}
|
|
97
99
|
export const _ListComponent = ListModule._ListComponent || {}
|
|
98
100
|
export const _LoadingComponent = LoadingModule._LoadingComponent || {}
|
|
99
101
|
export const _LocaleComponent = LocaleModule._LocaleComponent || {}
|
|
@@ -162,6 +164,7 @@ function install(app) {
|
|
|
162
164
|
IndexBar.install && app.use(IndexBar)
|
|
163
165
|
Input.install && app.use(Input)
|
|
164
166
|
Lazy.install && app.use(Lazy)
|
|
167
|
+
Link.install && app.use(Link)
|
|
165
168
|
List.install && app.use(List)
|
|
166
169
|
Loading.install && app.use(Loading)
|
|
167
170
|
Locale.install && app.use(Locale)
|
|
@@ -231,6 +234,7 @@ export {
|
|
|
231
234
|
IndexBar,
|
|
232
235
|
Input,
|
|
233
236
|
Lazy,
|
|
237
|
+
Link,
|
|
234
238
|
List,
|
|
235
239
|
Loading,
|
|
236
240
|
Locale,
|
|
@@ -300,6 +304,7 @@ export default {
|
|
|
300
304
|
IndexBar,
|
|
301
305
|
Input,
|
|
302
306
|
Lazy,
|
|
307
|
+
Link,
|
|
303
308
|
List,
|
|
304
309
|
Loading,
|
|
305
310
|
Locale,
|
package/es/input/Input.js
CHANGED
|
@@ -22,7 +22,7 @@ export function render(_ctx, _cache) {
|
|
|
22
22
|
var _component_var_form_details = _resolveComponent("var-form-details");
|
|
23
23
|
|
|
24
24
|
return _openBlock(), _createElementBlock("div", {
|
|
25
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
25
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.disabled, _ctx.n('--disabled')])),
|
|
26
26
|
onClick: _cache[10] || (_cache[10] = function () {
|
|
27
27
|
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
28
28
|
})
|
|
@@ -107,7 +107,7 @@ export function render(_ctx, _cache) {
|
|
|
107
107
|
}, null, 46
|
|
108
108
|
/* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
|
|
109
109
|
, _hoisted_2)), _createElementVNode("label", {
|
|
110
|
-
class: _normalizeClass(_ctx.classes('
|
|
110
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('$--ellipsis'), [_ctx.isFocus, _ctx.n('--focus')], [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')], [_ctx.errorMessage, _ctx.n('--error')], [_ctx.textarea, _ctx.n('textarea-placeholder'), _ctx.n('placeholder')], _ctx.computePlaceholderState(), [!_ctx.hint, _ctx.n('--placeholder-non-hint')])),
|
|
111
111
|
style: _normalizeStyle({
|
|
112
112
|
color: !_ctx.errorMessage ? _ctx.isFocus ? _ctx.focusColor : _ctx.blurColor : undefined
|
|
113
113
|
}),
|
package/es/link/Link.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { computed, defineComponent } from 'vue';
|
|
2
|
+
import { props } from './props';
|
|
3
|
+
import { call, createNamespace } from '../utils/components';
|
|
4
|
+
import { toSizeUnit } from '../utils/elements';
|
|
5
|
+
var {
|
|
6
|
+
n,
|
|
7
|
+
classes
|
|
8
|
+
} = createNamespace('link');
|
|
9
|
+
import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
10
|
+
export function render(_ctx, _cache) {
|
|
11
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), _mergeProps(_ctx.linkProps, {
|
|
12
|
+
class: _ctx.classes(_ctx.n(), _ctx.n('$--box'), _ctx.n('$--inline-flex'), _ctx.n("--" + _ctx.type), [_ctx.underline !== 'none', _ctx.n("--underline-" + _ctx.underline)], [_ctx.disabled, _ctx.n('--disabled')]),
|
|
13
|
+
style: {
|
|
14
|
+
color: _ctx.textColor,
|
|
15
|
+
fontSize: _ctx.toSizeUnit(_ctx.textSize)
|
|
16
|
+
},
|
|
17
|
+
onClick: _ctx.handleClick
|
|
18
|
+
}), {
|
|
19
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
/* FORWARDED */
|
|
22
|
+
|
|
23
|
+
}, 16
|
|
24
|
+
/* FULL_PROPS */
|
|
25
|
+
, ["class", "style", "onClick"]);
|
|
26
|
+
}
|
|
27
|
+
export default defineComponent({
|
|
28
|
+
render,
|
|
29
|
+
name: 'VarLink',
|
|
30
|
+
props,
|
|
31
|
+
|
|
32
|
+
setup(props) {
|
|
33
|
+
var tag = computed(() => {
|
|
34
|
+
if (props.disabled) {
|
|
35
|
+
return 'span';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (props.href) {
|
|
39
|
+
return 'a';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (props.to) {
|
|
43
|
+
return 'router-link';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return 'a';
|
|
47
|
+
});
|
|
48
|
+
var linkProps = computed(() => {
|
|
49
|
+
var {
|
|
50
|
+
disabled,
|
|
51
|
+
href,
|
|
52
|
+
target,
|
|
53
|
+
to,
|
|
54
|
+
replace
|
|
55
|
+
} = props;
|
|
56
|
+
|
|
57
|
+
if (disabled) {
|
|
58
|
+
return {};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (href) {
|
|
62
|
+
return {
|
|
63
|
+
href,
|
|
64
|
+
target
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (to) {
|
|
69
|
+
return {
|
|
70
|
+
to,
|
|
71
|
+
target,
|
|
72
|
+
replace
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {};
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var handleClick = e => {
|
|
80
|
+
var {
|
|
81
|
+
disabled,
|
|
82
|
+
onClick
|
|
83
|
+
} = props;
|
|
84
|
+
|
|
85
|
+
if (disabled) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
call(onClick, e);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
n,
|
|
94
|
+
classes,
|
|
95
|
+
tag,
|
|
96
|
+
linkProps,
|
|
97
|
+
handleClick,
|
|
98
|
+
toSizeUnit
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
});
|
|
File without changes
|
package/es/link/index.js
ADDED
package/es/link/link.css
ADDED
|
@@ -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;}
|
package/es/link/props.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function typeValidator(type) {
|
|
2
|
+
return ['default', 'primary', 'info', 'success', 'warning', 'danger'].includes(type);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function underlineValidator(status) {
|
|
6
|
+
return ['always', 'hover', 'none'].includes(status);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export var props = {
|
|
10
|
+
type: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: 'default',
|
|
13
|
+
validator: typeValidator
|
|
14
|
+
},
|
|
15
|
+
href: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
target: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
to: {
|
|
22
|
+
type: [String, Object]
|
|
23
|
+
},
|
|
24
|
+
replace: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
underline: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: 'always',
|
|
31
|
+
validator: underlineValidator
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
textSize: {
|
|
38
|
+
type: [String, Number]
|
|
39
|
+
},
|
|
40
|
+
textColor: {
|
|
41
|
+
type: String
|
|
42
|
+
},
|
|
43
|
+
defaultStyle: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
onClick: {
|
|
48
|
+
type: Function
|
|
49
|
+
}
|
|
50
|
+
};
|
package/es/list/List.js
CHANGED
|
@@ -22,7 +22,7 @@ export function render(_ctx, _cache) {
|
|
|
22
22
|
var _directive_ripple = _resolveDirective("ripple");
|
|
23
23
|
|
|
24
24
|
return _openBlock(), _createElementBlock("div", {
|
|
25
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
25
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'))),
|
|
26
26
|
ref: "listEl"
|
|
27
27
|
}, [_renderSlot(_ctx.$slots, "default"), _ctx.loading ? _renderSlot(_ctx.$slots, "loading", {
|
|
28
28
|
key: 0
|
package/es/loading/Loading.js
CHANGED
|
@@ -37,7 +37,7 @@ export function render(_ctx, _cache) {
|
|
|
37
37
|
/* CLASS */
|
|
38
38
|
)) : _createCommentVNode("v-if", true), _ctx.isShow ? (_openBlock(), _createElementBlock("div", {
|
|
39
39
|
key: 1,
|
|
40
|
-
class: _normalizeClass(_ctx.classes('
|
|
40
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('$--box'), _ctx.n('body'), [_ctx.$slots.default, _ctx.n('inside')]))
|
|
41
41
|
}, [_ctx.type === 'circle' ? (_openBlock(), _createElementBlock("div", {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: _normalizeClass(_ctx.n('circle'))
|
package/es/menu/Menu.js
CHANGED
|
@@ -42,7 +42,7 @@ export function render(_ctx, _cache) {
|
|
|
42
42
|
style: _normalizeStyle({
|
|
43
43
|
zIndex: _ctx.zIndex
|
|
44
44
|
}),
|
|
45
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('menu'), [_ctx.defaultStyle, _ctx.n('--menu-background-color') + "
|
|
45
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('menu'), [_ctx.defaultStyle, _ctx.n('--menu-background-color') + " " + _ctx.n('$-elevation--3')])),
|
|
46
46
|
onClick: _cache[0] || (_cache[0] = _withModifiers(() => {}, ["stop"])),
|
|
47
47
|
onMouseenter: _cache[1] || (_cache[1] = function () {
|
|
48
48
|
return _ctx.handleMenuMouseenter && _ctx.handleMenuMouseenter(...arguments);
|
package/es/option/Option.js
CHANGED
|
@@ -15,7 +15,7 @@ export function render(_ctx, _cache) {
|
|
|
15
15
|
var _directive_ripple = _resolveDirective("ripple");
|
|
16
16
|
|
|
17
17
|
return _withDirectives((_openBlock(), _createElementBlock("div", {
|
|
18
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), '
|
|
18
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.optionSelected, _ctx.n('--selected-color')])),
|
|
19
19
|
style: _normalizeStyle({
|
|
20
20
|
width: _ctx.wrapWidth,
|
|
21
21
|
color: _ctx.optionSelected ? _ctx.focusColor : undefined
|
|
@@ -41,7 +41,7 @@ export function render(_ctx, _cache) {
|
|
|
41
41
|
}, null, 8
|
|
42
42
|
/* PROPS */
|
|
43
43
|
, ["checked-color", "modelValue", "onChange"])) : _createCommentVNode("v-if", true), _createElementVNode("div", {
|
|
44
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('text'), '
|
|
44
|
+
class: _normalizeClass(_ctx.classes(_ctx.n('text'), _ctx.n('$--ellipsis')))
|
|
45
45
|
}, [_renderSlot(_ctx.$slots, "default", {}, () => [_createTextVNode(_toDisplayString(_ctx.label), 1
|
|
46
46
|
/* TEXT */
|
|
47
47
|
)])], 2
|
|
@@ -31,7 +31,7 @@ export function render(_ctx, _cache) {
|
|
|
31
31
|
return _openBlock(), _createElementBlock("ul", {
|
|
32
32
|
class: _normalizeClass(_ctx.n())
|
|
33
33
|
}, [_withDirectives((_openBlock(), _createElementBlock("li", {
|
|
34
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), '
|
|
34
|
+
class: _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')])),
|
|
35
35
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.clickItem('prev'))
|
|
36
36
|
}, [_renderSlot(_ctx.$slots, "prev", {}, () => [_createVNode(_component_var_icon, {
|
|
37
37
|
name: "chevron-left"
|
|
@@ -65,7 +65,7 @@ export function render(_ctx, _cache) {
|
|
|
65
65
|
return _withDirectives((_openBlock(), _createElementBlock("li", {
|
|
66
66
|
key: _ctx.toNumber(item) + index,
|
|
67
67
|
"item-mode": _ctx.getMode(item, index),
|
|
68
|
-
class: _normalizeClass(_ctx.classes(_ctx.n('item'), '
|
|
68
|
+
class: _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')])),
|
|
69
69
|
onClick: $event => _ctx.clickItem(item, index)
|
|
70
70
|
}, [_createTextVNode(_toDisplayString(item), 1
|
|
71
71
|
/* TEXT */
|
|
@@ -77,7 +77,7 @@ export function render(_ctx, _cache) {
|
|
|
77
77
|
}), 128
|
|
78
78
|
/* KEYED_FRAGMENT */
|
|
79
79
|
)), _withDirectives((_openBlock(), _createElementBlock("li", {
|
|
80
|
-
class: _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'), '
|
|
80
|
+
class: _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')])),
|
|
81
81
|
onClick: _cache[4] || (_cache[4] = $event => _ctx.clickItem('next'))
|
|
82
82
|
}, [_renderSlot(_ctx.$slots, "next", {}, () => [_createVNode(_component_var_icon, {
|
|
83
83
|
name: "chevron-right"
|
package/es/picker/Picker.js
CHANGED
|
@@ -23,7 +23,7 @@ var _hoisted_2 = ["onTransitionend"];
|
|
|
23
23
|
export function render(_ctx, _cache) {
|
|
24
24
|
var _component_var_button = _resolveComponent("var-button");
|
|
25
25
|
|
|
26
|
-
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.dynamic ? '
|
|
26
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.dynamic ? _ctx.n('$-popup') : _ctx.Transition), _mergeProps(_ctx.dynamic ? {
|
|
27
27
|
onOpen: _ctx.onOpen,
|
|
28
28
|
onOpened: _ctx.onOpened,
|
|
29
29
|
onClose: _ctx.onClose,
|
package/es/popup/Popup.js
CHANGED
|
@@ -78,7 +78,7 @@ export default defineComponent({
|
|
|
78
78
|
|
|
79
79
|
var renderContent = () => {
|
|
80
80
|
return _createVNode("div", _mergeProps({
|
|
81
|
-
"class": classes(n('content'), '
|
|
81
|
+
"class": classes(n('content'), n('$-elevation--3'), n("--" + props.position)),
|
|
82
82
|
"style": {
|
|
83
83
|
zIndex: zIndex.value
|
|
84
84
|
}
|
|
@@ -95,17 +95,17 @@ export default defineComponent({
|
|
|
95
95
|
position
|
|
96
96
|
} = props;
|
|
97
97
|
return _createVNode(Transition, {
|
|
98
|
-
"name":
|
|
98
|
+
"name": n('$-fade'),
|
|
99
99
|
"onAfterEnter": onOpened,
|
|
100
100
|
"onAfterLeave": onClosed
|
|
101
101
|
}, {
|
|
102
102
|
default: () => [_withDirectives(_createVNode("div", {
|
|
103
|
-
"class": classes('
|
|
103
|
+
"class": classes(n('$--box'), n()),
|
|
104
104
|
"style": {
|
|
105
105
|
zIndex: zIndex.value - 2
|
|
106
106
|
}
|
|
107
107
|
}, [overlay && renderOverlay(), _createVNode(Transition, {
|
|
108
|
-
"name": transition || "
|
|
108
|
+
"name": transition || n("$-pop-" + position)
|
|
109
109
|
}, {
|
|
110
110
|
default: () => [show && renderContent()]
|
|
111
111
|
})]), [[_vShow, show]])]
|