zartui 0.1.21 → 0.1.25
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/README.md +20 -20
- package/changelog.generated.md +15 -0
- package/es/area/style/index.js +4 -0
- package/es/area/style/less.js +4 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.js +54 -36
- package/es/avatar/index.less +39 -11
- package/es/avatar/local.less +1 -1
- package/es/button/index.js +4 -1
- package/es/button/index.less +206 -206
- package/es/calendar/index.less +250 -250
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/style/less.js +1 -1
- package/es/cell/index.less +103 -103
- package/es/cell-group/index.less +22 -22
- package/es/checkbox/index.less +89 -89
- package/es/checkbox-group/index.less +8 -8
- package/es/col/index.less +20 -20
- package/es/datetime-picker/style/index.js +4 -0
- package/es/datetime-picker/style/less.js +4 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +125 -125
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/style/less.js +1 -1
- package/es/empty/Developing.js +1643 -0
- package/es/empty/Error.js +484 -0
- package/es/empty/NotFound.js +645 -0
- package/es/empty/NotRight.js +395 -0
- package/es/empty/Search.js +336 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.js +105 -0
- package/es/empty/index.less +33 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/less.js +2 -0
- package/es/field/index.less +172 -172
- package/es/icon/index.less +10 -10
- package/es/icon/local.less +1 -1
- package/es/image/index.less +47 -47
- package/es/image-preview/index.less +103 -103
- package/es/image-preview/style/index.js +1 -1
- package/es/image-preview/style/less.js +1 -1
- package/es/index.js +6 -3
- package/es/info/index.less +29 -29
- package/es/loading/index.less +103 -103
- package/es/locale/lang/zh-CN.js +22 -0
- package/es/mixins/bind-event.js +2 -2
- package/es/mixins/checkbox.js +2 -2
- package/es/mixins/click-outside.js +2 -2
- package/es/mixins/slots.js +3 -3
- package/es/mixins/telemetry.js +11 -0
- package/es/nav-bar/index.less +74 -74
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.less +144 -142
- package/es/overlay/index.less +11 -11
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.js +80 -0
- package/es/password-input/index.less +83 -0
- package/es/password-input/style/index.js +2 -0
- package/es/password-input/style/less.js +2 -0
- package/es/pdf-viewer/style/index.js +1 -1
- package/es/pdf-viewer/style/less.js +1 -1
- package/es/picker/PickerColumn.js +5 -6
- package/es/picker/index.js +34 -5
- package/es/picker/index.less +151 -151
- package/es/picker/shared.js +4 -0
- package/es/picker/style/index.js +4 -0
- package/es/picker/style/less.js +4 -0
- package/es/popup/index.less +137 -137
- package/es/popup/style/index.js +1 -1
- package/es/popup/style/less.js +1 -1
- package/es/radio/index.less +86 -86
- package/es/radio-group/index.less +8 -8
- package/es/rate/index.css +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/index.less +47 -47
- package/es/row/index.less +42 -42
- package/es/signature/index.css +1 -0
- package/es/signature/index.js +230 -0
- package/es/signature/index.less +50 -0
- package/es/signature/style/index.js +9 -0
- package/es/signature/style/less.js +9 -0
- package/es/slider/index.less +94 -94
- package/es/step/index.less +139 -139
- package/es/stepper/index.less +130 -130
- package/es/steps/index.less +21 -21
- package/es/sticky/index.less +11 -11
- package/es/style/animation.less +139 -139
- package/es/style/base.less +11 -11
- package/es/style/clearfix.less +5 -5
- package/es/style/ellipsis.less +13 -13
- package/es/style/hairline.less +47 -47
- package/es/style/halfPxBorder.less +15 -15
- package/es/style/mixins/clearfix.less +7 -7
- package/es/style/mixins/ellipsis.less +15 -15
- package/es/style/mixins/hairline.less +39 -39
- package/es/style/normalize.less +38 -38
- package/es/style/reset.less +171 -171
- package/es/style/var.less +941 -919
- package/es/swipe/index.less +56 -56
- package/es/swipe-cell/index.less +29 -29
- package/es/swipe-item/index.less +8 -8
- package/es/switch/index.less +56 -56
- package/es/switch/shared.js +2 -2
- package/es/switch-cell/index.less +15 -15
- package/es/tab/index.less +17 -17
- package/es/tabs/index.less +153 -153
- package/es/tag/index.less +99 -99
- package/es/telemetry/index.js +72 -0
- package/es/toast/index.js +1 -1
- package/es/toast/index.less +75 -75
- package/es/toast/style/index.js +1 -1
- package/es/toast/style/less.js +1 -1
- package/es/uploader/index.less +163 -163
- package/es/uploader/style/index.js +1 -1
- package/es/uploader/style/less.js +1 -1
- package/es/utils/create/bem.js +7 -7
- package/es/utils/create/component.js +37 -7
- package/es/utils/dom/raf.js +2 -2
- package/es/utils/dom/reset-scroll.js +3 -3
- package/es/utils/index.js +29 -29
- package/es/utils/media/image-util.js +138 -0
- package/es/utils/router.js +2 -2
- package/lib/7893e51cf0a4877dac80.worker.js +10 -0
- package/lib/area/style/index.js +4 -0
- package/lib/area/style/less.js +4 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.js +55 -37
- package/lib/avatar/index.less +39 -11
- package/lib/avatar/local.less +1 -1
- package/lib/be09b519a460e229fd8d.worker.js +2527 -0
- package/lib/button/index.js +5 -0
- package/lib/button/index.less +206 -206
- package/lib/calendar/index.less +250 -250
- package/lib/calendar/style/index.js +1 -1
- package/lib/calendar/style/less.js +1 -1
- package/lib/cell/index.less +103 -103
- package/lib/cell-group/index.less +22 -22
- package/lib/checkbox/index.less +89 -89
- package/lib/checkbox-group/index.less +8 -8
- package/lib/col/index.less +20 -20
- package/lib/datetime-picker/style/index.js +4 -0
- package/lib/datetime-picker/style/less.js +4 -0
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +125 -125
- package/lib/dialog/style/index.js +1 -1
- package/lib/dialog/style/less.js +1 -1
- package/lib/empty/Developing.js +1648 -0
- package/lib/empty/Error.js +489 -0
- package/lib/empty/NotFound.js +650 -0
- package/lib/empty/NotRight.js +400 -0
- package/lib/empty/Search.js +341 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.js +119 -0
- package/lib/empty/index.less +33 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/style/less.js +2 -0
- package/lib/field/index.less +172 -172
- package/lib/icon/index.less +10 -10
- package/lib/icon/local.less +1 -1
- package/lib/image/index.less +47 -47
- package/lib/image-preview/index.less +103 -103
- package/lib/image-preview/style/index.js +1 -1
- package/lib/image-preview/style/less.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +14 -2
- package/lib/index.less +6 -3
- package/lib/info/index.less +29 -29
- package/lib/loading/index.less +103 -103
- package/lib/locale/lang/zh-CN.js +22 -0
- package/lib/mixins/bind-event.js +2 -2
- package/lib/mixins/checkbox.js +2 -2
- package/lib/mixins/click-outside.js +2 -2
- package/lib/mixins/slots.js +3 -3
- package/lib/mixins/telemetry.js +20 -0
- package/lib/nav-bar/index.less +74 -74
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.less +144 -142
- package/lib/overlay/index.less +11 -11
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.js +93 -0
- package/lib/password-input/index.less +83 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/style/less.js +2 -0
- package/lib/pdf-viewer/style/index.js +1 -1
- package/lib/pdf-viewer/style/less.js +1 -1
- package/lib/picker/PickerColumn.js +5 -6
- package/lib/picker/index.js +36 -6
- package/lib/picker/index.less +151 -151
- package/lib/picker/shared.js +4 -0
- package/lib/picker/style/index.js +4 -0
- package/lib/picker/style/less.js +4 -0
- package/lib/popup/index.less +137 -137
- package/lib/popup/style/index.js +1 -1
- package/lib/popup/style/less.js +1 -1
- package/lib/radio/index.less +86 -86
- package/lib/radio-group/index.less +8 -8
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/index.less +47 -47
- package/lib/row/index.less +42 -42
- package/lib/signature/index.css +1 -0
- package/lib/signature/index.js +242 -0
- package/lib/signature/index.less +50 -0
- package/lib/signature/style/index.js +9 -0
- package/lib/signature/style/less.js +9 -0
- package/lib/slider/index.less +94 -94
- package/lib/step/index.less +139 -139
- package/lib/stepper/index.less +130 -130
- package/lib/steps/index.less +21 -21
- package/lib/sticky/index.less +11 -11
- package/lib/style/animation.less +139 -139
- package/lib/style/base.less +11 -11
- package/lib/style/clearfix.less +5 -5
- package/lib/style/ellipsis.less +13 -13
- package/lib/style/hairline.less +47 -47
- package/lib/style/halfPxBorder.less +15 -15
- package/lib/style/mixins/clearfix.less +7 -7
- package/lib/style/mixins/ellipsis.less +15 -15
- package/lib/style/mixins/hairline.less +39 -39
- package/lib/style/normalize.less +38 -38
- package/lib/style/reset.less +171 -171
- package/lib/style/var.less +941 -919
- package/lib/swipe/index.less +56 -56
- package/lib/swipe-cell/index.less +29 -29
- package/lib/swipe-item/index.less +8 -8
- package/lib/switch/index.less +56 -56
- package/lib/switch/shared.js +2 -2
- package/lib/switch-cell/index.less +15 -15
- package/lib/tab/index.less +17 -17
- package/lib/tabs/index.less +153 -153
- package/lib/tag/index.less +99 -99
- package/lib/telemetry/index.js +82 -0
- package/lib/toast/index.js +1 -1
- package/lib/toast/index.less +75 -75
- package/lib/toast/style/index.js +1 -1
- package/lib/toast/style/less.js +1 -1
- package/lib/uploader/index.less +163 -163
- package/lib/uploader/style/index.js +1 -1
- package/lib/uploader/style/less.js +1 -1
- package/lib/utils/create/bem.js +7 -7
- package/lib/utils/create/component.js +41 -7
- package/lib/utils/dom/raf.js +2 -2
- package/lib/utils/dom/reset-scroll.js +3 -3
- package/lib/utils/index.js +29 -29
- package/lib/utils/media/image-util.js +153 -0
- package/lib/utils/router.js +2 -2
- package/lib/zart.js +27476 -55536
- package/lib/zart.min.js +5 -5
- package/package.json +74 -74
- package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
- package/lib/b7cf90b4775181215df7.worker.js +0 -10
package/lib/swipe/index.less
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-swipe {
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
cursor: grab;
|
|
7
|
-
user-select: none;
|
|
8
|
-
|
|
9
|
-
&__track {
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100%;
|
|
12
|
-
|
|
13
|
-
&--vertical {
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__indicators {
|
|
19
|
-
position: absolute;
|
|
20
|
-
bottom: @swipe-indicator-margin;
|
|
21
|
-
left: 50%;
|
|
22
|
-
display: flex;
|
|
23
|
-
transform: translateX(-50%);
|
|
24
|
-
|
|
25
|
-
&--vertical {
|
|
26
|
-
top: 50%;
|
|
27
|
-
bottom: auto;
|
|
28
|
-
left: @swipe-indicator-margin;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
transform: translateY(-50%);
|
|
31
|
-
|
|
32
|
-
.zt-swipe__indicator:not(:last-child) {
|
|
33
|
-
margin-bottom: @swipe-indicator-size;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__indicator {
|
|
39
|
-
width: @swipe-indicator-size;
|
|
40
|
-
height: @swipe-indicator-size;
|
|
41
|
-
background-color: @swipe-indicator-inactive-background-color;
|
|
42
|
-
border-radius: 100%;
|
|
43
|
-
opacity: @swipe-indicator-inactive-opacity;
|
|
44
|
-
transition: opacity @animation-duration-fast,
|
|
45
|
-
background-color @animation-duration-fast;
|
|
46
|
-
|
|
47
|
-
&:not(:last-child) {
|
|
48
|
-
margin-right: @swipe-indicator-size;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&--active {
|
|
52
|
-
background-color: @swipe-indicator-active-background-color;
|
|
53
|
-
opacity: @swipe-indicator-active-opacity;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-swipe {
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
cursor: grab;
|
|
7
|
+
user-select: none;
|
|
8
|
+
|
|
9
|
+
&__track {
|
|
10
|
+
display: flex;
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
&--vertical {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__indicators {
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: @swipe-indicator-margin;
|
|
21
|
+
left: 50%;
|
|
22
|
+
display: flex;
|
|
23
|
+
transform: translateX(-50%);
|
|
24
|
+
|
|
25
|
+
&--vertical {
|
|
26
|
+
top: 50%;
|
|
27
|
+
bottom: auto;
|
|
28
|
+
left: @swipe-indicator-margin;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
transform: translateY(-50%);
|
|
31
|
+
|
|
32
|
+
.zt-swipe__indicator:not(:last-child) {
|
|
33
|
+
margin-bottom: @swipe-indicator-size;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__indicator {
|
|
39
|
+
width: @swipe-indicator-size;
|
|
40
|
+
height: @swipe-indicator-size;
|
|
41
|
+
background-color: @swipe-indicator-inactive-background-color;
|
|
42
|
+
border-radius: 100%;
|
|
43
|
+
opacity: @swipe-indicator-inactive-opacity;
|
|
44
|
+
transition: opacity @animation-duration-fast,
|
|
45
|
+
background-color @animation-duration-fast;
|
|
46
|
+
|
|
47
|
+
&:not(:last-child) {
|
|
48
|
+
margin-right: @swipe-indicator-size;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&--active {
|
|
52
|
+
background-color: @swipe-indicator-active-background-color;
|
|
53
|
+
opacity: @swipe-indicator-active-opacity;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-swipe-cell {
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
cursor: grab;
|
|
7
|
-
|
|
8
|
-
&__wrapper {
|
|
9
|
-
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);
|
|
10
|
-
transition-property: transform;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&__left,
|
|
14
|
-
&__right {
|
|
15
|
-
position: absolute;
|
|
16
|
-
top: 0;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__left {
|
|
21
|
-
left: 0;
|
|
22
|
-
transform: translate3d(-100%, 0, 0);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__right {
|
|
26
|
-
right: 0;
|
|
27
|
-
transform: translate3d(100%, 0, 0);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-swipe-cell {
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
cursor: grab;
|
|
7
|
+
|
|
8
|
+
&__wrapper {
|
|
9
|
+
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);
|
|
10
|
+
transition-property: transform;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__left,
|
|
14
|
+
&__right {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__left {
|
|
21
|
+
left: 0;
|
|
22
|
+
transform: translate3d(-100%, 0, 0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__right {
|
|
26
|
+
right: 0;
|
|
27
|
+
transform: translate3d(100%, 0, 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-swipe-item {
|
|
4
|
-
position: relative;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-swipe-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
package/lib/switch/index.less
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-switch {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-block;
|
|
6
|
-
box-sizing: content-box;
|
|
7
|
-
width: @switch-width;
|
|
8
|
-
height: @switch-height;
|
|
9
|
-
font-size: @switch-size;
|
|
10
|
-
background-color: @switch-background-color;
|
|
11
|
-
border-radius: @switch-border-radius;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
transition: background-color @switch-transition-duration;
|
|
14
|
-
|
|
15
|
-
&__node {
|
|
16
|
-
position: absolute;
|
|
17
|
-
top: @switch-gap;
|
|
18
|
-
left: @switch-gap;
|
|
19
|
-
width: @switch-node-size;
|
|
20
|
-
height: @switch-node-size;
|
|
21
|
-
background-color: @switch-node-background-color;
|
|
22
|
-
border-radius: 100%;
|
|
23
|
-
box-shadow: @switch-node-box-shadow;
|
|
24
|
-
transition: transform @switch-transition-duration
|
|
25
|
-
cubic-bezier(0.3, 1.05, 0.4, 1.05);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&__loading {
|
|
29
|
-
top: 25%;
|
|
30
|
-
left: 25%;
|
|
31
|
-
width: 50%;
|
|
32
|
-
height: 50%;
|
|
33
|
-
line-height: 1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&--on {
|
|
37
|
-
background-color: @switch-on-background-color;
|
|
38
|
-
|
|
39
|
-
.zt-switch__node {
|
|
40
|
-
transform: translateX(@switch-width - @switch-node-size - 2*@switch-gap);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.zt-switch__loading {
|
|
44
|
-
color: @switch-on-background-color;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&--disabled {
|
|
49
|
-
cursor: not-allowed;
|
|
50
|
-
opacity: @switch-disabled-opacity;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--loading {
|
|
54
|
-
cursor: default;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-switch {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
box-sizing: content-box;
|
|
7
|
+
width: @switch-width;
|
|
8
|
+
height: @switch-height;
|
|
9
|
+
font-size: @switch-size;
|
|
10
|
+
background-color: @switch-background-color;
|
|
11
|
+
border-radius: @switch-border-radius;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition: background-color @switch-transition-duration;
|
|
14
|
+
|
|
15
|
+
&__node {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: @switch-gap;
|
|
18
|
+
left: @switch-gap;
|
|
19
|
+
width: @switch-node-size;
|
|
20
|
+
height: @switch-node-size;
|
|
21
|
+
background-color: @switch-node-background-color;
|
|
22
|
+
border-radius: 100%;
|
|
23
|
+
box-shadow: @switch-node-box-shadow;
|
|
24
|
+
transition: transform @switch-transition-duration
|
|
25
|
+
cubic-bezier(0.3, 1.05, 0.4, 1.05);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__loading {
|
|
29
|
+
top: 25%;
|
|
30
|
+
left: 25%;
|
|
31
|
+
width: 50%;
|
|
32
|
+
height: 50%;
|
|
33
|
+
line-height: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--on {
|
|
37
|
+
background-color: @switch-on-background-color;
|
|
38
|
+
|
|
39
|
+
.zt-switch__node {
|
|
40
|
+
transform: translateX(@switch-width - @switch-node-size - 2*@switch-gap);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.zt-switch__loading {
|
|
44
|
+
color: @switch-on-background-color;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&--disabled {
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
opacity: @switch-disabled-opacity;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--loading {
|
|
54
|
+
cursor: default;
|
|
55
|
+
}
|
|
56
|
+
}
|
package/lib/switch/shared.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-switch-cell {
|
|
4
|
-
padding-top: @switch-cell-padding-top;
|
|
5
|
-
padding-bottom: @switch-cell-padding-bottom;
|
|
6
|
-
|
|
7
|
-
&--large {
|
|
8
|
-
padding-top: @switch-cell-large-padding-top;
|
|
9
|
-
padding-bottom: @switch-cell-large-padding-bottom;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.zt-switch {
|
|
13
|
-
float: right;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-switch-cell {
|
|
4
|
+
padding-top: @switch-cell-padding-top;
|
|
5
|
+
padding-bottom: @switch-cell-padding-bottom;
|
|
6
|
+
|
|
7
|
+
&--large {
|
|
8
|
+
padding-top: @switch-cell-large-padding-top;
|
|
9
|
+
padding-bottom: @switch-cell-large-padding-bottom;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.zt-switch {
|
|
13
|
+
float: right;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/lib/tab/index.less
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-tab {
|
|
4
|
-
&__pane {
|
|
5
|
-
&,
|
|
6
|
-
&-wrapper {
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-wrapper--inactive {
|
|
13
|
-
height: 0;
|
|
14
|
-
overflow: visible;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-tab {
|
|
4
|
+
&__pane {
|
|
5
|
+
&,
|
|
6
|
+
&-wrapper {
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-wrapper--inactive {
|
|
13
|
+
height: 0;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/lib/tabs/index.less
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-tab {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex: 1;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
padding: 0 @padding-base;
|
|
11
|
-
color: @tab-text-color;
|
|
12
|
-
font-size: @tab-font-size;
|
|
13
|
-
line-height: @tab-line-height;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
|
|
16
|
-
&--active {
|
|
17
|
-
color: @tab-active-text-color;
|
|
18
|
-
font-weight: @font-weight-bold;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&--disabled {
|
|
22
|
-
color: @tab-disabled-text-color;
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&__text {
|
|
27
|
-
&--ellipsis {
|
|
28
|
-
display: -webkit-box;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
-webkit-line-clamp: 1;
|
|
31
|
-
-webkit-box-orient: vertical;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&__text-wrapper {
|
|
36
|
-
position: relative;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.zt-tabs {
|
|
41
|
-
position: relative;
|
|
42
|
-
|
|
43
|
-
&__wrap {
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
|
|
46
|
-
&--page-top {
|
|
47
|
-
position: fixed;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&--content-bottom {
|
|
51
|
-
top: auto;
|
|
52
|
-
bottom: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&--scrollable {
|
|
56
|
-
.zt-tab {
|
|
57
|
-
flex: 1 0 auto;
|
|
58
|
-
padding: 0 @padding-sm;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.zt-tabs__nav {
|
|
62
|
-
overflow-x: auto;
|
|
63
|
-
overflow-y: hidden;
|
|
64
|
-
-webkit-overflow-scrolling: touch;
|
|
65
|
-
|
|
66
|
-
&::-webkit-scrollbar {
|
|
67
|
-
display: none;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&__nav {
|
|
74
|
-
position: relative;
|
|
75
|
-
display: flex;
|
|
76
|
-
background-color: @tabs-nav-background-color;
|
|
77
|
-
user-select: none;
|
|
78
|
-
|
|
79
|
-
&--line {
|
|
80
|
-
box-sizing: content-box;
|
|
81
|
-
height: 100%;
|
|
82
|
-
padding-bottom: 15px; /* 15px padding to hide scrollbar in mobile safari */
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&--line&--complete {
|
|
86
|
-
padding-right: @padding-xs;
|
|
87
|
-
padding-left: @padding-xs;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&--card {
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
height: @tabs-card-height;
|
|
93
|
-
margin: 0 @padding-md;
|
|
94
|
-
border: @border-width-base solid @tabs-default-color;
|
|
95
|
-
border-radius: @border-radius-sm;
|
|
96
|
-
|
|
97
|
-
.zt-tab {
|
|
98
|
-
color: @tabs-default-color;
|
|
99
|
-
border-right: @border-width-base solid @tabs-default-color;
|
|
100
|
-
|
|
101
|
-
&:last-child {
|
|
102
|
-
border-right: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&.zt-tab--active {
|
|
106
|
-
color: @white;
|
|
107
|
-
background-color: @tabs-default-color;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&--disabled {
|
|
111
|
-
color: @tab-disabled-text-color;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&__line {
|
|
118
|
-
position: absolute;
|
|
119
|
-
bottom: 15px;
|
|
120
|
-
left: 0;
|
|
121
|
-
z-index: 1;
|
|
122
|
-
width: @tabs-bottom-bar-width;
|
|
123
|
-
height: @tabs-bottom-bar-height;
|
|
124
|
-
background-color: @tabs-bottom-bar-color;
|
|
125
|
-
border-radius: @tabs-bottom-bar-height;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&__track {
|
|
129
|
-
position: relative;
|
|
130
|
-
display: flex;
|
|
131
|
-
width: 100%;
|
|
132
|
-
height: 100%;
|
|
133
|
-
will-change: left;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&__content {
|
|
137
|
-
&--animated {
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&--line {
|
|
143
|
-
.zt-tabs__wrap {
|
|
144
|
-
height: @tabs-line-height;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&--card {
|
|
149
|
-
> .zt-tabs__wrap {
|
|
150
|
-
height: @tabs-card-height;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-tab {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex: 1;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
padding: 0 @padding-base;
|
|
11
|
+
color: @tab-text-color;
|
|
12
|
+
font-size: @tab-font-size;
|
|
13
|
+
line-height: @tab-line-height;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
&--active {
|
|
17
|
+
color: @tab-active-text-color;
|
|
18
|
+
font-weight: @font-weight-bold;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--disabled {
|
|
22
|
+
color: @tab-disabled-text-color;
|
|
23
|
+
cursor: not-allowed;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__text {
|
|
27
|
+
&--ellipsis {
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
-webkit-line-clamp: 1;
|
|
31
|
+
-webkit-box-orient: vertical;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__text-wrapper {
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.zt-tabs {
|
|
41
|
+
position: relative;
|
|
42
|
+
|
|
43
|
+
&__wrap {
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
|
|
46
|
+
&--page-top {
|
|
47
|
+
position: fixed;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--content-bottom {
|
|
51
|
+
top: auto;
|
|
52
|
+
bottom: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&--scrollable {
|
|
56
|
+
.zt-tab {
|
|
57
|
+
flex: 1 0 auto;
|
|
58
|
+
padding: 0 @padding-sm;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.zt-tabs__nav {
|
|
62
|
+
overflow-x: auto;
|
|
63
|
+
overflow-y: hidden;
|
|
64
|
+
-webkit-overflow-scrolling: touch;
|
|
65
|
+
|
|
66
|
+
&::-webkit-scrollbar {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__nav {
|
|
74
|
+
position: relative;
|
|
75
|
+
display: flex;
|
|
76
|
+
background-color: @tabs-nav-background-color;
|
|
77
|
+
user-select: none;
|
|
78
|
+
|
|
79
|
+
&--line {
|
|
80
|
+
box-sizing: content-box;
|
|
81
|
+
height: 100%;
|
|
82
|
+
padding-bottom: 15px; /* 15px padding to hide scrollbar in mobile safari */
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&--line&--complete {
|
|
86
|
+
padding-right: @padding-xs;
|
|
87
|
+
padding-left: @padding-xs;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&--card {
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
height: @tabs-card-height;
|
|
93
|
+
margin: 0 @padding-md;
|
|
94
|
+
border: @border-width-base solid @tabs-default-color;
|
|
95
|
+
border-radius: @border-radius-sm;
|
|
96
|
+
|
|
97
|
+
.zt-tab {
|
|
98
|
+
color: @tabs-default-color;
|
|
99
|
+
border-right: @border-width-base solid @tabs-default-color;
|
|
100
|
+
|
|
101
|
+
&:last-child {
|
|
102
|
+
border-right: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.zt-tab--active {
|
|
106
|
+
color: @white;
|
|
107
|
+
background-color: @tabs-default-color;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&--disabled {
|
|
111
|
+
color: @tab-disabled-text-color;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__line {
|
|
118
|
+
position: absolute;
|
|
119
|
+
bottom: 15px;
|
|
120
|
+
left: 0;
|
|
121
|
+
z-index: 1;
|
|
122
|
+
width: @tabs-bottom-bar-width;
|
|
123
|
+
height: @tabs-bottom-bar-height;
|
|
124
|
+
background-color: @tabs-bottom-bar-color;
|
|
125
|
+
border-radius: @tabs-bottom-bar-height;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__track {
|
|
129
|
+
position: relative;
|
|
130
|
+
display: flex;
|
|
131
|
+
width: 100%;
|
|
132
|
+
height: 100%;
|
|
133
|
+
will-change: left;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__content {
|
|
137
|
+
&--animated {
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&--line {
|
|
143
|
+
.zt-tabs__wrap {
|
|
144
|
+
height: @tabs-line-height;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--card {
|
|
149
|
+
> .zt-tabs__wrap {
|
|
150
|
+
height: @tabs-card-height;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|