mdui 2.0.3 → 2.0.5
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/components/avatar/index.d.ts +13 -13
- package/components/avatar/index.js +11 -6
- package/components/avatar/style.js +31 -1
- package/components/badge/index.d.ts +7 -6
- package/components/badge/index.js +6 -5
- package/components/badge/style.js +25 -1
- package/components/bottom-app-bar/index.d.ts +4 -3
- package/components/bottom-app-bar/index.js +3 -3
- package/components/bottom-app-bar/style.js +92 -1
- package/components/button/button-base-style.js +28 -1
- package/components/button/button-base.d.ts +43 -44
- package/components/button/button-base.js +28 -21
- package/components/button/index.d.ts +13 -13
- package/components/button/index.js +30 -20
- package/components/button/style.js +111 -2
- package/components/button-icon/index.d.ts +8 -8
- package/components/button-icon/index.js +29 -12
- package/components/button-icon/style.js +103 -2
- package/components/card/index.d.ts +8 -8
- package/components/card/index.js +12 -8
- package/components/card/style.js +72 -1
- package/components/checkbox/index.d.ts +20 -20
- package/components/checkbox/index.js +68 -25
- package/components/checkbox/style.js +131 -1
- package/components/chip/index.d.ts +19 -19
- package/components/chip/index.js +49 -25
- package/components/chip/style.js +205 -2
- package/components/circular-progress/index.d.ts +2 -2
- package/components/circular-progress/index.js +40 -6
- package/components/circular-progress/style.js +136 -1
- package/components/collapse/collapse-item-style.js +21 -1
- package/components/collapse/collapse-item.d.ts +4 -4
- package/components/collapse/collapse-item.js +12 -4
- package/components/collapse/collapse-style.js +5 -1
- package/components/collapse/collapse.d.ts +6 -9
- package/components/collapse/collapse.js +8 -5
- package/components/dialog/index.d.ts +13 -13
- package/components/dialog/index.js +48 -20
- package/components/dialog/style.js +116 -1
- package/components/divider/index.d.ts +3 -3
- package/components/divider/index.js +3 -3
- package/components/divider/style.js +18 -1
- package/components/dropdown/index.d.ts +35 -35
- package/components/dropdown/index.js +41 -34
- package/components/dropdown/style.js +11 -1
- package/components/fab/index.d.ts +6 -6
- package/components/fab/index.js +19 -11
- package/components/fab/style.js +153 -4
- package/components/icon/index.js +5 -1
- package/components/icon/style.js +29 -1
- package/components/layout/layout-item-style.js +6 -1
- package/components/layout/layout-item.d.ts +7 -7
- package/components/layout/layout-item.js +6 -6
- package/components/layout/layout-main-style.js +7 -1
- package/components/layout/layout-main.d.ts +2 -2
- package/components/layout/layout-main.js +2 -2
- package/components/layout/layout-style.js +11 -1
- package/components/layout/layout.d.ts +2 -2
- package/components/layout/layout.js +2 -2
- package/components/linear-progress/index.d.ts +4 -4
- package/components/linear-progress/index.js +9 -5
- package/components/linear-progress/style.js +73 -1
- package/components/list/list-item-style.js +153 -2
- package/components/list/list-item.d.ts +17 -17
- package/components/list/list-item.js +34 -15
- package/components/list/list-style.js +10 -1
- package/components/list/list-subheader-style.js +19 -1
- package/components/list/list-subheader.d.ts +2 -2
- package/components/list/list-subheader.js +2 -2
- package/components/list/list.d.ts +1 -1
- package/components/list/list.js +1 -1
- package/components/menu/menu-item-style.js +125 -1
- package/components/menu/menu-item.d.ts +4 -4
- package/components/menu/menu-item.js +57 -15
- package/components/menu/menu-style.js +19 -1
- package/components/menu/menu.d.ts +15 -18
- package/components/menu/menu.js +13 -9
- package/components/navigation-bar/navigation-bar-item-style.js +132 -1
- package/components/navigation-bar/navigation-bar-item.d.ts +5 -5
- package/components/navigation-bar/navigation-bar-item.js +27 -11
- package/components/navigation-bar/navigation-bar-style.js +28 -1
- package/components/navigation-bar/navigation-bar.d.ts +9 -8
- package/components/navigation-bar/navigation-bar.js +10 -7
- package/components/navigation-drawer/index.d.ts +19 -20
- package/components/navigation-drawer/index.js +56 -31
- package/components/navigation-drawer/style.js +66 -1
- package/components/navigation-rail/navigation-rail-item-style.js +122 -1
- package/components/navigation-rail/navigation-rail-item.d.ts +6 -6
- package/components/navigation-rail/navigation-rail-item.js +30 -11
- package/components/navigation-rail/navigation-rail-style.js +79 -1
- package/components/navigation-rail/navigation-rail.d.ts +10 -11
- package/components/navigation-rail/navigation-rail.js +19 -11
- package/components/radio/radio-group-style.js +20 -1
- package/components/radio/radio-group.d.ts +13 -13
- package/components/radio/radio-group.js +30 -12
- package/components/radio/radio-style.js +107 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +26 -8
- package/components/range-slider/index.d.ts +5 -6
- package/components/range-slider/index.js +57 -10
- package/components/ripple/index.js +5 -2
- package/components/ripple/style.js +96 -1
- package/components/segmented-button/segmented-button-group-style.js +28 -1
- package/components/segmented-button/segmented-button-group.d.ts +17 -20
- package/components/segmented-button/segmented-button-group.js +32 -15
- package/components/segmented-button/segmented-button-style.js +81 -2
- package/components/segmented-button/segmented-button.d.ts +3 -3
- package/components/segmented-button/segmented-button.js +30 -14
- package/components/select/index.d.ts +31 -32
- package/components/select/index.js +106 -26
- package/components/select/style.js +27 -1
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +34 -3
- package/components/slider/slider-base-style.js +173 -1
- package/components/slider/slider-base.d.ts +15 -15
- package/components/slider/slider-base.js +19 -14
- package/components/slider/style.js +7 -1
- package/components/snackbar/index.d.ts +21 -21
- package/components/snackbar/index.js +47 -20
- package/components/snackbar/style.js +100 -1
- package/components/switch/index.d.ts +14 -14
- package/components/switch/index.js +51 -17
- package/components/switch/style.js +202 -1
- package/components/tabs/tab-panel-style.js +10 -1
- package/components/tabs/tab-panel.d.ts +3 -3
- package/components/tabs/tab-panel.js +2 -2
- package/components/tabs/tab-style.js +85 -1
- package/components/tabs/tab.d.ts +6 -6
- package/components/tabs/tab.js +29 -9
- package/components/tabs/tabs-style.js +138 -1
- package/components/tabs/tabs.d.ts +19 -19
- package/components/tabs/tabs.js +26 -18
- package/components/text-field/index.d.ts +51 -51
- package/components/text-field/index.js +185 -57
- package/components/text-field/style.js +362 -1
- package/components/tooltip/index.d.ts +31 -31
- package/components/tooltip/index.js +38 -29
- package/components/tooltip/style.js +57 -1
- package/components/top-app-bar/top-app-bar-style.js +78 -1
- package/components/top-app-bar/top-app-bar-title-style.js +81 -1
- package/components/top-app-bar/top-app-bar-title.d.ts +4 -4
- package/components/top-app-bar/top-app-bar-title.js +21 -7
- package/components/top-app-bar/top-app-bar.d.ts +5 -5
- package/components/top-app-bar/top-app-bar.js +4 -4
- package/css-data.en.json +2826 -0
- package/css-data.zh-cn.json +374 -367
- package/custom-elements.json +2049 -2049
- package/html-data.en.json +6560 -0
- package/html-data.zh-cn.json +1427 -1433
- package/jsx.en.d.ts +3303 -0
- package/jsx.zh-cn.d.ts +3351 -0
- package/package.json +6 -5
- package/web-types.en.json +11734 -0
- package/web-types.zh-cn.json +3227 -3221
- package/mdui.esm.js +0 -22
- package/mdui.global.js +0 -22
|
@@ -1,2 +1,79 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const topAppBarStyle = css
|
|
2
|
+
export const topAppBarStyle = css `
|
|
3
|
+
:host {
|
|
4
|
+
--shape-corner: var(--mdui-shape-corner-none);
|
|
5
|
+
--z-index: 2000;
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex: 0 0 auto;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
border-bottom-left-radius: var(--shape-corner);
|
|
15
|
+
border-bottom-right-radius: var(--shape-corner);
|
|
16
|
+
z-index: var(--z-index);
|
|
17
|
+
transition:
|
|
18
|
+
top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),
|
|
19
|
+
height var(--mdui-motion-duration-long2)
|
|
20
|
+
var(--mdui-motion-easing-standard),
|
|
21
|
+
box-shadow var(--mdui-motion-duration-short4)
|
|
22
|
+
var(--mdui-motion-easing-linear),
|
|
23
|
+
background-color var(--mdui-motion-duration-short4)
|
|
24
|
+
var(--mdui-motion-easing-linear);
|
|
25
|
+
padding: 0.75rem 0.5rem;
|
|
26
|
+
height: 4rem;
|
|
27
|
+
background-color: rgb(var(--mdui-color-surface));
|
|
28
|
+
}
|
|
29
|
+
:host([scroll-target]:not([scroll-target=''])) {
|
|
30
|
+
position: absolute;
|
|
31
|
+
}
|
|
32
|
+
:host([scroll-behavior~='shrink']) {
|
|
33
|
+
transition-duration: var(--mdui-motion-duration-short4);
|
|
34
|
+
}
|
|
35
|
+
:host([scrolling]) {
|
|
36
|
+
background-color: rgb(var(--mdui-color-surface-container));
|
|
37
|
+
box-shadow: var(--mdui-elevation-level2);
|
|
38
|
+
}
|
|
39
|
+
::slotted(mdui-button-icon) {
|
|
40
|
+
color: rgb(var(--mdui-color-on-surface-variant));
|
|
41
|
+
font-size: 1.5rem;
|
|
42
|
+
}
|
|
43
|
+
::slotted(mdui-button-icon:first-child) {
|
|
44
|
+
color: rgb(var(--mdui-color-on-surface));
|
|
45
|
+
}
|
|
46
|
+
::slotted(mdui-avatar) {
|
|
47
|
+
width: 1.875rem;
|
|
48
|
+
height: 1.875rem;
|
|
49
|
+
margin-top: 0.3125rem;
|
|
50
|
+
margin-bottom: 0.3125rem;
|
|
51
|
+
}
|
|
52
|
+
::slotted(*) {
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
::slotted(:not(:last-child)) {
|
|
56
|
+
margin-right: 0.5rem;
|
|
57
|
+
}
|
|
58
|
+
:host([variant='medium']) {
|
|
59
|
+
height: 7rem;
|
|
60
|
+
}
|
|
61
|
+
:host([variant='large']) {
|
|
62
|
+
height: 9.5rem;
|
|
63
|
+
}
|
|
64
|
+
:host([hide]) {
|
|
65
|
+
transition-duration: var(--mdui-motion-duration-short4);
|
|
66
|
+
top: -4.625rem;
|
|
67
|
+
}
|
|
68
|
+
:host([hide][variant='medium']) {
|
|
69
|
+
top: -7.625rem;
|
|
70
|
+
}
|
|
71
|
+
:host([hide][variant='large']) {
|
|
72
|
+
top: -10.125rem;
|
|
73
|
+
}
|
|
74
|
+
:host([shrink][variant='medium']),
|
|
75
|
+
:host([shrink][variant='large']) {
|
|
76
|
+
transition-duration: var(--mdui-motion-duration-short4);
|
|
77
|
+
height: 4rem;
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
@@ -1,2 +1,82 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const topAppBarTitleStyle = css
|
|
2
|
+
export const topAppBarTitleStyle = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
flex-shrink: initial !important;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
color: rgb(var(--mdui-color-on-surface));
|
|
9
|
+
font-size: var(--mdui-typescale-title-large-size);
|
|
10
|
+
font-weight: var(--mdui-typescale-title-large-weight);
|
|
11
|
+
letter-spacing: var(--mdui-typescale-title-large-tracking);
|
|
12
|
+
line-height: var(--mdui-typescale-title-large-line-height);
|
|
13
|
+
line-height: 2.5rem;
|
|
14
|
+
}
|
|
15
|
+
.label {
|
|
16
|
+
display: block;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
opacity: 1;
|
|
21
|
+
transition: opacity var(--mdui-motion-duration-short2)
|
|
22
|
+
var(--mdui-motion-easing-linear);
|
|
23
|
+
}
|
|
24
|
+
.label.variant-center-aligned {
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
.label.variant-medium:not(.shrink),
|
|
28
|
+
.label.variant-large:not(.shrink) {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
.label.variant-medium.shrink,
|
|
32
|
+
.label.variant-large.shrink {
|
|
33
|
+
transition-delay: var(--mdui-motion-duration-short2);
|
|
34
|
+
}
|
|
35
|
+
.label-large {
|
|
36
|
+
display: none;
|
|
37
|
+
position: absolute;
|
|
38
|
+
width: 100%;
|
|
39
|
+
left: 0;
|
|
40
|
+
margin-right: 0;
|
|
41
|
+
padding: 0rem 1rem;
|
|
42
|
+
transition: opacity var(--mdui-motion-duration-short2)
|
|
43
|
+
var(--mdui-motion-easing-linear);
|
|
44
|
+
}
|
|
45
|
+
.label-large.variant-medium,
|
|
46
|
+
.label-large.variant-large {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
.label-large.variant-medium {
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
bottom: 0.75rem;
|
|
54
|
+
font-size: var(--mdui-typescale-headline-small-size);
|
|
55
|
+
font-weight: var(--mdui-typescale-headline-small-weight);
|
|
56
|
+
letter-spacing: var(--mdui-typescale-headline-small-tracking);
|
|
57
|
+
line-height: var(--mdui-typescale-headline-small-line-height);
|
|
58
|
+
}
|
|
59
|
+
.label-large.variant-large {
|
|
60
|
+
display: -webkit-box;
|
|
61
|
+
/* stylelint-disable-line value-no-vendor-prefix */
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
white-space: normal;
|
|
64
|
+
-webkit-box-orient: vertical;
|
|
65
|
+
-webkit-line-clamp: 2;
|
|
66
|
+
bottom: 1.25rem;
|
|
67
|
+
font-size: var(--mdui-typescale-headline-medium-size);
|
|
68
|
+
font-weight: var(--mdui-typescale-headline-medium-weight);
|
|
69
|
+
letter-spacing: var(--mdui-typescale-headline-medium-tracking);
|
|
70
|
+
line-height: var(--mdui-typescale-headline-medium-line-height);
|
|
71
|
+
}
|
|
72
|
+
.label-large.variant-medium:not(.shrink),
|
|
73
|
+
.label-large.variant-large:not(.shrink) {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
transition-delay: var(--mdui-motion-duration-short2);
|
|
76
|
+
}
|
|
77
|
+
.label-large.variant-medium.shrink,
|
|
78
|
+
.label-large.variant-large.shrink {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
z-index: -1;
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MduiElement } from '@mdui/shared/base/mdui-element.js';
|
|
2
2
|
import type { CSSResultGroup, TemplateResult } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary
|
|
4
|
+
* @summary 顶部应用栏标题组件。需配合 `<mdui-top-app-bar>` 组件使用
|
|
5
5
|
*
|
|
6
6
|
* ```html
|
|
7
7
|
* <mdui-top-app-bar>
|
|
@@ -13,10 +13,10 @@ import type { CSSResultGroup, TemplateResult } from 'lit';
|
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* @slot - 顶部应用栏的标题文本
|
|
16
|
-
* @slot label-large -
|
|
16
|
+
* @slot label-large - 展开状态下的标题文本
|
|
17
17
|
*
|
|
18
|
-
* @csspart label
|
|
19
|
-
* @csspart label-large
|
|
18
|
+
* @csspart label 标题文本
|
|
19
|
+
* @csspart label-large 展开状态下的标题文本
|
|
20
20
|
*/
|
|
21
21
|
export declare class TopAppBarTitle extends MduiElement<TopAppBarTitleEventMap> {
|
|
22
22
|
static styles: CSSResultGroup;
|
|
@@ -9,7 +9,7 @@ import { getInnerHtmlFromSlot } from '@mdui/shared/helpers/slot.js';
|
|
|
9
9
|
import { componentStyle } from '@mdui/shared/lit-styles/component-style.js';
|
|
10
10
|
import { topAppBarTitleStyle } from './top-app-bar-title-style.js';
|
|
11
11
|
/**
|
|
12
|
-
* @summary
|
|
12
|
+
* @summary 顶部应用栏标题组件。需配合 `<mdui-top-app-bar>` 组件使用
|
|
13
13
|
*
|
|
14
14
|
* ```html
|
|
15
15
|
* <mdui-top-app-bar>
|
|
@@ -21,10 +21,10 @@ import { topAppBarTitleStyle } from './top-app-bar-title-style.js';
|
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* @slot - 顶部应用栏的标题文本
|
|
24
|
-
* @slot label-large -
|
|
24
|
+
* @slot label-large - 展开状态下的标题文本
|
|
25
25
|
*
|
|
26
|
-
* @csspart label
|
|
27
|
-
* @csspart label-large
|
|
26
|
+
* @csspart label 标题文本
|
|
27
|
+
* @csspart label-large 展开状态下的标题文本
|
|
28
28
|
*/
|
|
29
29
|
let TopAppBarTitle = class TopAppBarTitle extends MduiElement {
|
|
30
30
|
constructor() {
|
|
@@ -50,9 +50,23 @@ let TopAppBarTitle = class TopAppBarTitle extends MduiElement {
|
|
|
50
50
|
'variant-medium': this.variant === 'medium',
|
|
51
51
|
'variant-large': this.variant === 'large',
|
|
52
52
|
});
|
|
53
|
-
return html `<slot
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
return html `<slot
|
|
54
|
+
part="label"
|
|
55
|
+
class="label ${className}"
|
|
56
|
+
${ref(this.defaultSlotRef)}
|
|
57
|
+
@slotchange="${() => this.onSlotChange(hasLabelLargeSlot)}"
|
|
58
|
+
></slot>
|
|
59
|
+
${hasLabelLargeSlot
|
|
60
|
+
? html `<slot
|
|
61
|
+
name="label-large"
|
|
62
|
+
part="label-large"
|
|
63
|
+
class="label-large ${className}"
|
|
64
|
+
></slot>`
|
|
65
|
+
: html `<div
|
|
66
|
+
${ref(this.labelLargeRef)}
|
|
67
|
+
part="label-large"
|
|
68
|
+
class="label-large ${className}"
|
|
69
|
+
></div>`}`;
|
|
56
70
|
}
|
|
57
71
|
/**
|
|
58
72
|
* default slot 变化时,同步到 label-large 中
|
|
@@ -22,13 +22,13 @@ declare const TopAppBar_base: import("@open-wc/dedupe-mixin").Constructor<import
|
|
|
22
22
|
*
|
|
23
23
|
* @slot - 顶部应用栏内部的元素
|
|
24
24
|
*
|
|
25
|
-
* @cssprop --shape-corner -
|
|
26
|
-
* @cssprop --z-index - 组件的 CSS
|
|
25
|
+
* @cssprop --shape-corner - 组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](/docs/2/styles/design-tokens#shape-corner)
|
|
26
|
+
* @cssprop --z-index - 组件的 CSS `z-index` 值
|
|
27
27
|
*/
|
|
28
28
|
export declare class TopAppBar extends TopAppBar_base<TopAppBarEventMap> {
|
|
29
29
|
static styles: CSSResultGroup;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 顶部应用栏的形状。默认为 `small`。可选值包括:
|
|
32
32
|
*
|
|
33
33
|
* * `center-aligned`:小型应用栏,标题居中
|
|
34
34
|
* * `small`:小型应用栏
|
|
@@ -41,11 +41,11 @@ export declare class TopAppBar extends TopAppBar_base<TopAppBarEventMap> {
|
|
|
41
41
|
*/
|
|
42
42
|
hide: boolean;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* 是否缩小为 `variant="small"` 的样式,仅在 `variant="medium"` 或 `variant="large"` 时生效
|
|
45
45
|
*/
|
|
46
46
|
shrink: boolean;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* 滚动行为。可同时使用多个值,用空格分隔。可选值包括:
|
|
49
49
|
*
|
|
50
50
|
* * `hide`:滚动时隐藏
|
|
51
51
|
* * `shrink`:在中型、大型应用栏中可使用,滚动时缩小成小型应用栏的样式
|
|
@@ -26,14 +26,14 @@ import { topAppBarStyle } from './top-app-bar-style.js';
|
|
|
26
26
|
*
|
|
27
27
|
* @slot - 顶部应用栏内部的元素
|
|
28
28
|
*
|
|
29
|
-
* @cssprop --shape-corner -
|
|
30
|
-
* @cssprop --z-index - 组件的 CSS
|
|
29
|
+
* @cssprop --shape-corner - 组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](/docs/2/styles/design-tokens#shape-corner)
|
|
30
|
+
* @cssprop --z-index - 组件的 CSS `z-index` 值
|
|
31
31
|
*/
|
|
32
32
|
let TopAppBar = class TopAppBar extends ScrollBehaviorMixin(LayoutItemBase) {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* 顶部应用栏的形状。默认为 `small`。可选值包括:
|
|
37
37
|
*
|
|
38
38
|
* * `center-aligned`:小型应用栏,标题居中
|
|
39
39
|
* * `small`:小型应用栏
|
|
@@ -46,7 +46,7 @@ let TopAppBar = class TopAppBar extends ScrollBehaviorMixin(LayoutItemBase) {
|
|
|
46
46
|
*/
|
|
47
47
|
this.hide = false;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 是否缩小为 `variant="small"` 的样式,仅在 `variant="medium"` 或 `variant="large"` 时生效
|
|
50
50
|
*/
|
|
51
51
|
this.shrink = false;
|
|
52
52
|
/**
|