zartui 0.1.21 → 0.1.22
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 +29 -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 +41 -27
- package/es/avatar/index.less +40 -11
- package/es/avatar/local.less +1 -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.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 +5 -3
- package/es/info/index.less +29 -29
- package/es/loading/index.less +103 -103
- package/es/locale/lang/zh-CN.js +16 -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/nav-bar/index.less +74 -74
- package/es/number-keyboard/index.less +142 -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/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 +936 -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/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 +2 -2
- 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/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 +42 -28
- package/lib/avatar/index.less +40 -11
- package/lib/avatar/local.less +1 -1
- package/lib/be09b519a460e229fd8d.worker.js +2527 -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.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 +10 -2
- package/lib/index.less +5 -3
- package/lib/info/index.less +29 -29
- package/lib/loading/index.less +103 -103
- package/lib/locale/lang/zh-CN.js +16 -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/nav-bar/index.less +74 -74
- package/lib/number-keyboard/index.less +142 -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/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 +936 -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/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 +2 -2
- 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/router.js +2 -2
- package/lib/zart.js +26508 -55081
- 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/picker/index.less
CHANGED
|
@@ -1,151 +1,151 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
@import '../style/hairline';
|
|
3
|
-
|
|
4
|
-
.zt-picker {
|
|
5
|
-
position: relative;
|
|
6
|
-
background-color: @picker-background-color;
|
|
7
|
-
user-select: none;
|
|
8
|
-
|
|
9
|
-
&__toolbar {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
height: @picker-toolbar-height;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__border {
|
|
17
|
-
position: relative;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__border::after {
|
|
21
|
-
.hairline-bottom();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__cancel,
|
|
25
|
-
&__confirm {
|
|
26
|
-
height: 100%;
|
|
27
|
-
padding: @picker-action-padding;
|
|
28
|
-
font-size: @picker-action-font-size;
|
|
29
|
-
background-color: transparent;
|
|
30
|
-
border: none;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
|
|
33
|
-
&:active {
|
|
34
|
-
opacity: @active-opacity;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__confirm {
|
|
39
|
-
color: @picker-confirm-action-color;
|
|
40
|
-
font-weight: @picker-confirm-action-font-weight;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__cancel {
|
|
44
|
-
color: @picker-cancel-action-color;
|
|
45
|
-
font-weight: @picker-cancel-action-font-weight;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&__title {
|
|
49
|
-
max-width: 50%;
|
|
50
|
-
font-weight: @plain-font-weight;
|
|
51
|
-
font-size: @picker-title-font-size;
|
|
52
|
-
line-height: @picker-title-line-height;
|
|
53
|
-
text-align: center;
|
|
54
|
-
color: rgba(0, 0, 0, 0.4);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__header {
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 40px;
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
font-size: @picker-title-font-size;
|
|
63
|
-
font-weight: @plain-font-weight;
|
|
64
|
-
|
|
65
|
-
>li {
|
|
66
|
-
flex: auto;
|
|
67
|
-
text-align: center;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__columns {
|
|
72
|
-
position: relative;
|
|
73
|
-
display: flex;
|
|
74
|
-
cursor: grab;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__loading {
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: 0;
|
|
80
|
-
right: 0;
|
|
81
|
-
bottom: 0;
|
|
82
|
-
left: 0;
|
|
83
|
-
z-index: 3;
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
color: @picker-loading-icon-color;
|
|
88
|
-
background-color: @picker-loading-mask-color;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&__frame {
|
|
92
|
-
position: absolute;
|
|
93
|
-
top: 50%;
|
|
94
|
-
right: @padding-md;
|
|
95
|
-
left: @padding-md;
|
|
96
|
-
z-index: 2;
|
|
97
|
-
transform: translateY(-50%);
|
|
98
|
-
pointer-events: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&__background {
|
|
102
|
-
position: absolute;
|
|
103
|
-
width: 100%;
|
|
104
|
-
height: 100%;
|
|
105
|
-
opacity: 0.04;
|
|
106
|
-
background-color: #000;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&__mask {
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: 0;
|
|
112
|
-
left: 0;
|
|
113
|
-
z-index: 1;
|
|
114
|
-
width: 100%;
|
|
115
|
-
height: 100%;
|
|
116
|
-
background-image: linear-gradient(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
background-repeat: no-repeat;
|
|
123
|
-
background-position: top, bottom;
|
|
124
|
-
// fix rendering failure during animation on safari
|
|
125
|
-
transform: translateZ(0);
|
|
126
|
-
pointer-events: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&-column {
|
|
130
|
-
flex: 1;
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
font-size: @picker-option-font-size;
|
|
133
|
-
|
|
134
|
-
&__wrapper {
|
|
135
|
-
transition-timing-function: cubic-bezier(0.23, 1, 0.68, 1);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&__item {
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
padding: 0 @padding-base;
|
|
143
|
-
color: @picker-option-text-color;
|
|
144
|
-
|
|
145
|
-
&--disabled {
|
|
146
|
-
cursor: not-allowed;
|
|
147
|
-
opacity: @picker-option-disabled-opacity;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
@import '../style/hairline';
|
|
3
|
+
|
|
4
|
+
.zt-picker {
|
|
5
|
+
position: relative;
|
|
6
|
+
background-color: @picker-background-color;
|
|
7
|
+
user-select: none;
|
|
8
|
+
|
|
9
|
+
&__toolbar {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
height: @picker-toolbar-height;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__border {
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__border::after {
|
|
21
|
+
.hairline-bottom();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__cancel,
|
|
25
|
+
&__confirm {
|
|
26
|
+
height: 100%;
|
|
27
|
+
padding: @picker-action-padding;
|
|
28
|
+
font-size: @picker-action-font-size;
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
border: none;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
|
|
33
|
+
&:active {
|
|
34
|
+
opacity: @active-opacity;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__confirm {
|
|
39
|
+
color: @picker-confirm-action-color;
|
|
40
|
+
font-weight: @picker-confirm-action-font-weight;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__cancel {
|
|
44
|
+
color: @picker-cancel-action-color;
|
|
45
|
+
font-weight: @picker-cancel-action-font-weight;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__title {
|
|
49
|
+
max-width: 50%;
|
|
50
|
+
font-weight: @plain-font-weight;
|
|
51
|
+
font-size: @picker-title-font-size;
|
|
52
|
+
line-height: @picker-title-line-height;
|
|
53
|
+
text-align: center;
|
|
54
|
+
color: rgba(0, 0, 0, 0.4);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__header {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 40px;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
font-size: @picker-title-font-size;
|
|
63
|
+
font-weight: @plain-font-weight;
|
|
64
|
+
|
|
65
|
+
>li {
|
|
66
|
+
flex: auto;
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__columns {
|
|
72
|
+
position: relative;
|
|
73
|
+
display: flex;
|
|
74
|
+
cursor: grab;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__loading {
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: 0;
|
|
80
|
+
right: 0;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
left: 0;
|
|
83
|
+
z-index: 3;
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
color: @picker-loading-icon-color;
|
|
88
|
+
background-color: @picker-loading-mask-color;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&__frame {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 50%;
|
|
94
|
+
right: @padding-md;
|
|
95
|
+
left: @padding-md;
|
|
96
|
+
z-index: 2;
|
|
97
|
+
transform: translateY(-50%);
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__background {
|
|
102
|
+
position: absolute;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
opacity: 0.04;
|
|
106
|
+
background-color: #000;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&__mask {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
left: 0;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 100%;
|
|
116
|
+
background-image: linear-gradient(
|
|
117
|
+
180deg,
|
|
118
|
+
hsla(0, 0%, 100%, 0.9),
|
|
119
|
+
hsla(0, 0%, 100%, 0.4)
|
|
120
|
+
),
|
|
121
|
+
linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));
|
|
122
|
+
background-repeat: no-repeat;
|
|
123
|
+
background-position: top, bottom;
|
|
124
|
+
// fix rendering failure during animation on safari
|
|
125
|
+
transform: translateZ(0);
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-column {
|
|
130
|
+
flex: 1;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
font-size: @picker-option-font-size;
|
|
133
|
+
|
|
134
|
+
&__wrapper {
|
|
135
|
+
transition-timing-function: cubic-bezier(0.23, 1, 0.68, 1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__item {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
padding: 0 @padding-base;
|
|
143
|
+
color: @picker-option-text-color;
|
|
144
|
+
|
|
145
|
+
&--disabled {
|
|
146
|
+
cursor: not-allowed;
|
|
147
|
+
opacity: @picker-option-disabled-opacity;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
package/lib/picker/shared.js
CHANGED
package/lib/picker/style/less.js
CHANGED
package/lib/popup/index.less
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt {
|
|
4
|
-
&-overflow-hidden {
|
|
5
|
-
overflow: hidden !important;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-popup {
|
|
9
|
-
position: fixed;
|
|
10
|
-
max-height: 100%;
|
|
11
|
-
overflow-y: auto;
|
|
12
|
-
background-color: @popup-background-color;
|
|
13
|
-
transition: @popup-transition;
|
|
14
|
-
-webkit-overflow-scrolling: touch;
|
|
15
|
-
|
|
16
|
-
&--center {
|
|
17
|
-
top: 50%;
|
|
18
|
-
left: 50%;
|
|
19
|
-
transform: translate3d(-50%, -50%, 0);
|
|
20
|
-
|
|
21
|
-
&.zt-popup--round {
|
|
22
|
-
border-radius: @popup-round-border-radius;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&--top {
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
|
|
31
|
-
&.zt-popup--round {
|
|
32
|
-
border-radius: 0 0 @popup-round-border-radius @popup-round-border-radius;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&--right {
|
|
37
|
-
top: 50%;
|
|
38
|
-
right: 0;
|
|
39
|
-
transform: translate3d(0, -50%, 0);
|
|
40
|
-
|
|
41
|
-
&.zt-popup--round {
|
|
42
|
-
border-radius: @popup-round-border-radius 0 0 @popup-round-border-radius;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&--bottom {
|
|
47
|
-
bottom: 0;
|
|
48
|
-
left: 0;
|
|
49
|
-
width: 100%;
|
|
50
|
-
|
|
51
|
-
&.zt-popup--round {
|
|
52
|
-
border-radius: @popup-round-border-radius @popup-round-border-radius 0 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&--left {
|
|
57
|
-
top: 50%;
|
|
58
|
-
left: 0;
|
|
59
|
-
transform: translate3d(0, -50%, 0);
|
|
60
|
-
|
|
61
|
-
&.zt-popup--round {
|
|
62
|
-
border-radius: 0 @popup-round-border-radius @popup-round-border-radius 0;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&--safe-area-inset-bottom {
|
|
67
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
68
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-slide-top-enter-active,
|
|
72
|
-
&-slide-left-enter-active,
|
|
73
|
-
&-slide-right-enter-active,
|
|
74
|
-
&-slide-bottom-enter-active {
|
|
75
|
-
transition-timing-function: @animation-timing-function-enter;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&-slide-top-leave-active,
|
|
79
|
-
&-slide-left-leave-active,
|
|
80
|
-
&-slide-right-leave-active,
|
|
81
|
-
&-slide-bottom-leave-active {
|
|
82
|
-
transition-timing-function: @animation-timing-function-leave;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&-slide-top-enter,
|
|
86
|
-
&-slide-top-leave-active {
|
|
87
|
-
transform: translate3d(0, -100%, 0);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&-slide-right-enter,
|
|
91
|
-
&-slide-right-leave-active {
|
|
92
|
-
transform: translate3d(100%, -50%, 0);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&-slide-bottom-enter,
|
|
96
|
-
&-slide-bottom-leave-active {
|
|
97
|
-
transform: translate3d(0, 100%, 0);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&-slide-left-enter,
|
|
101
|
-
&-slide-left-leave-active {
|
|
102
|
-
transform: translate3d(-100%, -50%, 0);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&__close-icon {
|
|
106
|
-
position: absolute;
|
|
107
|
-
z-index: @popup-close-icon-z-index;
|
|
108
|
-
color: @popup-close-icon-color;
|
|
109
|
-
font-size: @popup-close-icon-size;
|
|
110
|
-
cursor: pointer;
|
|
111
|
-
|
|
112
|
-
&:active {
|
|
113
|
-
color: @popup-close-icon-active-color;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&--top-left {
|
|
117
|
-
top: @popup-close-icon-margin;
|
|
118
|
-
left: @popup-close-icon-margin;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&--top-right {
|
|
122
|
-
top: @popup-close-icon-margin;
|
|
123
|
-
right: @popup-close-icon-margin;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&--bottom-left {
|
|
127
|
-
bottom: @popup-close-icon-margin;
|
|
128
|
-
left: @popup-close-icon-margin;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&--bottom-right {
|
|
132
|
-
right: @popup-close-icon-margin;
|
|
133
|
-
bottom: @popup-close-icon-margin;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt {
|
|
4
|
+
&-overflow-hidden {
|
|
5
|
+
overflow: hidden !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-popup {
|
|
9
|
+
position: fixed;
|
|
10
|
+
max-height: 100%;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
background-color: @popup-background-color;
|
|
13
|
+
transition: @popup-transition;
|
|
14
|
+
-webkit-overflow-scrolling: touch;
|
|
15
|
+
|
|
16
|
+
&--center {
|
|
17
|
+
top: 50%;
|
|
18
|
+
left: 50%;
|
|
19
|
+
transform: translate3d(-50%, -50%, 0);
|
|
20
|
+
|
|
21
|
+
&.zt-popup--round {
|
|
22
|
+
border-radius: @popup-round-border-radius;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&--top {
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
|
|
31
|
+
&.zt-popup--round {
|
|
32
|
+
border-radius: 0 0 @popup-round-border-radius @popup-round-border-radius;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--right {
|
|
37
|
+
top: 50%;
|
|
38
|
+
right: 0;
|
|
39
|
+
transform: translate3d(0, -50%, 0);
|
|
40
|
+
|
|
41
|
+
&.zt-popup--round {
|
|
42
|
+
border-radius: @popup-round-border-radius 0 0 @popup-round-border-radius;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&--bottom {
|
|
47
|
+
bottom: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
width: 100%;
|
|
50
|
+
|
|
51
|
+
&.zt-popup--round {
|
|
52
|
+
border-radius: @popup-round-border-radius @popup-round-border-radius 0 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&--left {
|
|
57
|
+
top: 50%;
|
|
58
|
+
left: 0;
|
|
59
|
+
transform: translate3d(0, -50%, 0);
|
|
60
|
+
|
|
61
|
+
&.zt-popup--round {
|
|
62
|
+
border-radius: 0 @popup-round-border-radius @popup-round-border-radius 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--safe-area-inset-bottom {
|
|
67
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
68
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-slide-top-enter-active,
|
|
72
|
+
&-slide-left-enter-active,
|
|
73
|
+
&-slide-right-enter-active,
|
|
74
|
+
&-slide-bottom-enter-active {
|
|
75
|
+
transition-timing-function: @animation-timing-function-enter;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-slide-top-leave-active,
|
|
79
|
+
&-slide-left-leave-active,
|
|
80
|
+
&-slide-right-leave-active,
|
|
81
|
+
&-slide-bottom-leave-active {
|
|
82
|
+
transition-timing-function: @animation-timing-function-leave;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-slide-top-enter,
|
|
86
|
+
&-slide-top-leave-active {
|
|
87
|
+
transform: translate3d(0, -100%, 0);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-slide-right-enter,
|
|
91
|
+
&-slide-right-leave-active {
|
|
92
|
+
transform: translate3d(100%, -50%, 0);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&-slide-bottom-enter,
|
|
96
|
+
&-slide-bottom-leave-active {
|
|
97
|
+
transform: translate3d(0, 100%, 0);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-slide-left-enter,
|
|
101
|
+
&-slide-left-leave-active {
|
|
102
|
+
transform: translate3d(-100%, -50%, 0);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&__close-icon {
|
|
106
|
+
position: absolute;
|
|
107
|
+
z-index: @popup-close-icon-z-index;
|
|
108
|
+
color: @popup-close-icon-color;
|
|
109
|
+
font-size: @popup-close-icon-size;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
|
|
112
|
+
&:active {
|
|
113
|
+
color: @popup-close-icon-active-color;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&--top-left {
|
|
117
|
+
top: @popup-close-icon-margin;
|
|
118
|
+
left: @popup-close-icon-margin;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&--top-right {
|
|
122
|
+
top: @popup-close-icon-margin;
|
|
123
|
+
right: @popup-close-icon-margin;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--bottom-left {
|
|
127
|
+
bottom: @popup-close-icon-margin;
|
|
128
|
+
left: @popup-close-icon-margin;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--bottom-right {
|
|
132
|
+
right: @popup-close-icon-margin;
|
|
133
|
+
bottom: @popup-close-icon-margin;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
package/lib/popup/style/index.js
CHANGED