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/info/index.less
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-info {
|
|
4
|
-
position: absolute;
|
|
5
|
-
top: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
min-width: @info-size;
|
|
9
|
-
padding: @info-padding;
|
|
10
|
-
color: @info-color;
|
|
11
|
-
font-weight: @info-font-weight;
|
|
12
|
-
font-size: @info-font-size;
|
|
13
|
-
font-family: @info-font-family;
|
|
14
|
-
line-height: 1.2;
|
|
15
|
-
text-align: center;
|
|
16
|
-
background-color: @info-background-color;
|
|
17
|
-
border: @info-border-width solid @white;
|
|
18
|
-
border-radius: @info-size;
|
|
19
|
-
transform: translate(50%, -50%);
|
|
20
|
-
transform-origin: 100%;
|
|
21
|
-
|
|
22
|
-
&--dot {
|
|
23
|
-
width: @info-dot-size;
|
|
24
|
-
min-width: 0;
|
|
25
|
-
height: @info-dot-size;
|
|
26
|
-
background-color: @info-dot-color;
|
|
27
|
-
border-radius: 100%;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-info {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
min-width: @info-size;
|
|
9
|
+
padding: @info-padding;
|
|
10
|
+
color: @info-color;
|
|
11
|
+
font-weight: @info-font-weight;
|
|
12
|
+
font-size: @info-font-size;
|
|
13
|
+
font-family: @info-font-family;
|
|
14
|
+
line-height: 1.2;
|
|
15
|
+
text-align: center;
|
|
16
|
+
background-color: @info-background-color;
|
|
17
|
+
border: @info-border-width solid @white;
|
|
18
|
+
border-radius: @info-size;
|
|
19
|
+
transform: translate(50%, -50%);
|
|
20
|
+
transform-origin: 100%;
|
|
21
|
+
|
|
22
|
+
&--dot {
|
|
23
|
+
width: @info-dot-size;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
height: @info-dot-size;
|
|
26
|
+
background-color: @info-dot-color;
|
|
27
|
+
border-radius: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/lib/loading/index.less
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-loading {
|
|
4
|
-
position: relative;
|
|
5
|
-
color: @loading-spinner-color;
|
|
6
|
-
font-size: 0;
|
|
7
|
-
vertical-align: middle;
|
|
8
|
-
|
|
9
|
-
&__spinner {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: inline-block;
|
|
12
|
-
width: @loading-spinner-size;
|
|
13
|
-
// compatible for 1.x, users may set width or height in root element
|
|
14
|
-
max-width: 100%;
|
|
15
|
-
height: @loading-spinner-size;
|
|
16
|
-
max-height: 100%;
|
|
17
|
-
vertical-align: middle;
|
|
18
|
-
animation: zt-rotate @loading-spinner-animation-duration linear infinite;
|
|
19
|
-
|
|
20
|
-
&--spinner {
|
|
21
|
-
animation-timing-function: steps(12);
|
|
22
|
-
|
|
23
|
-
i {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
|
|
30
|
-
&::before {
|
|
31
|
-
display: block;
|
|
32
|
-
width: 2px;
|
|
33
|
-
height: 25%;
|
|
34
|
-
margin: 0 auto;
|
|
35
|
-
background-color: currentColor;
|
|
36
|
-
border-radius: 40%;
|
|
37
|
-
content: ' ';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&--circular {
|
|
43
|
-
animation-duration: 2s;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__circular {
|
|
48
|
-
display: block;
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 100%;
|
|
51
|
-
|
|
52
|
-
circle {
|
|
53
|
-
animation: zt-circular 1.5s ease-in-out infinite;
|
|
54
|
-
stroke: currentColor;
|
|
55
|
-
stroke-width: 3;
|
|
56
|
-
stroke-linecap: round;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__text {
|
|
61
|
-
display: inline-block;
|
|
62
|
-
margin-left: @padding-xs;
|
|
63
|
-
color: @loading-text-color;
|
|
64
|
-
font-size: @loading-text-font-size;
|
|
65
|
-
vertical-align: middle;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&--vertical {
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
align-items: center;
|
|
72
|
-
|
|
73
|
-
.zt-loading__text {
|
|
74
|
-
margin: @padding-xs 0 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@keyframes zt-circular {
|
|
80
|
-
0% {
|
|
81
|
-
stroke-dasharray: 1, 200;
|
|
82
|
-
stroke-dashoffset: 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
50% {
|
|
86
|
-
stroke-dasharray: 90, 150;
|
|
87
|
-
stroke-dashoffset: -40;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
100% {
|
|
91
|
-
stroke-dasharray: 90, 150;
|
|
92
|
-
stroke-dashoffset: -120;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.generate-spinner(@n, @i: 1) when (@i =< @n) {
|
|
97
|
-
.zt-loading__spinner--spinner i:nth-of-type(@{i}) {
|
|
98
|
-
transform: rotate(@i * 30deg);
|
|
99
|
-
opacity: 1 - (0.75 / 12) * (@i - 1);
|
|
100
|
-
}
|
|
101
|
-
.generate-spinner(@n, (@i + 1));
|
|
102
|
-
}
|
|
103
|
-
.generate-spinner(12);
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-loading {
|
|
4
|
+
position: relative;
|
|
5
|
+
color: @loading-spinner-color;
|
|
6
|
+
font-size: 0;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
|
|
9
|
+
&__spinner {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
width: @loading-spinner-size;
|
|
13
|
+
// compatible for 1.x, users may set width or height in root element
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
height: @loading-spinner-size;
|
|
16
|
+
max-height: 100%;
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
animation: zt-rotate @loading-spinner-animation-duration linear infinite;
|
|
19
|
+
|
|
20
|
+
&--spinner {
|
|
21
|
+
animation-timing-function: steps(12);
|
|
22
|
+
|
|
23
|
+
i {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
|
|
30
|
+
&::before {
|
|
31
|
+
display: block;
|
|
32
|
+
width: 2px;
|
|
33
|
+
height: 25%;
|
|
34
|
+
margin: 0 auto;
|
|
35
|
+
background-color: currentColor;
|
|
36
|
+
border-radius: 40%;
|
|
37
|
+
content: ' ';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--circular {
|
|
43
|
+
animation-duration: 2s;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__circular {
|
|
48
|
+
display: block;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
|
|
52
|
+
circle {
|
|
53
|
+
animation: zt-circular 1.5s ease-in-out infinite;
|
|
54
|
+
stroke: currentColor;
|
|
55
|
+
stroke-width: 3;
|
|
56
|
+
stroke-linecap: round;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__text {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
margin-left: @padding-xs;
|
|
63
|
+
color: @loading-text-color;
|
|
64
|
+
font-size: @loading-text-font-size;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--vertical {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
align-items: center;
|
|
72
|
+
|
|
73
|
+
.zt-loading__text {
|
|
74
|
+
margin: @padding-xs 0 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes zt-circular {
|
|
80
|
+
0% {
|
|
81
|
+
stroke-dasharray: 1, 200;
|
|
82
|
+
stroke-dashoffset: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
50% {
|
|
86
|
+
stroke-dasharray: 90, 150;
|
|
87
|
+
stroke-dashoffset: -40;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
100% {
|
|
91
|
+
stroke-dasharray: 90, 150;
|
|
92
|
+
stroke-dashoffset: -120;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.generate-spinner(@n, @i: 1) when (@i =< @n) {
|
|
97
|
+
.zt-loading__spinner--spinner i:nth-of-type(@{i}) {
|
|
98
|
+
transform: rotate(@i * 30deg);
|
|
99
|
+
opacity: 1 - (0.75 / 12) * (@i - 1);
|
|
100
|
+
}
|
|
101
|
+
.generate-spinner(@n, (@i + 1));
|
|
102
|
+
}
|
|
103
|
+
.generate-spinner(12);
|
package/lib/locale/lang/zh-CN.js
CHANGED
|
@@ -98,6 +98,28 @@ var _default = {
|
|
|
98
98
|
},
|
|
99
99
|
vanAddressList: {
|
|
100
100
|
add: '新增地址'
|
|
101
|
+
},
|
|
102
|
+
ztAvatar: {
|
|
103
|
+
defaultSrc: "https://zartui.egova.com.cn/static/head_shot.png",
|
|
104
|
+
small: "small",
|
|
105
|
+
medium: "medium",
|
|
106
|
+
large: "large",
|
|
107
|
+
square: "square",
|
|
108
|
+
circle: "circle",
|
|
109
|
+
defaultText: "头像"
|
|
110
|
+
},
|
|
111
|
+
ztEmpty: {
|
|
112
|
+
notSearchResult: '没有搜索结果',
|
|
113
|
+
notFound: '页面无法访问',
|
|
114
|
+
developing: '项目建设中',
|
|
115
|
+
error: '通用错误',
|
|
116
|
+
notRight: '您暂未拥有访问权限'
|
|
117
|
+
},
|
|
118
|
+
ztSignature: {
|
|
119
|
+
hint: '请在此签名',
|
|
120
|
+
browserUnsupported: '对不起,当前浏览器不支持Canvas,无法使用本控件!',
|
|
121
|
+
orientationChangeTip: '旋转屏幕触发重新绘制',
|
|
122
|
+
reSign: '重签'
|
|
101
123
|
}
|
|
102
124
|
};
|
|
103
125
|
exports.default = _default;
|
package/lib/mixins/bind-event.js
CHANGED
package/lib/mixins/checkbox.js
CHANGED
|
@@ -13,8 +13,8 @@ var _relation = require("./relation");
|
|
|
13
13
|
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* Common part of Checkbox & Radio
|
|
16
|
+
/**
|
|
17
|
+
* Common part of Checkbox & Radio
|
|
18
18
|
*/
|
|
19
19
|
var CheckboxMixin = function CheckboxMixin(_ref) {
|
|
20
20
|
var parent = _ref.parent,
|
package/lib/mixins/slots.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.SlotsMixin = void 0;
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Use scopedSlots in Vue 2.6+
|
|
8
|
-
* downgrade to slots in lower version
|
|
6
|
+
/**
|
|
7
|
+
* Use scopedSlots in Vue 2.6+
|
|
8
|
+
* downgrade to slots in lower version
|
|
9
9
|
*/
|
|
10
10
|
var SlotsMixin = {
|
|
11
11
|
methods: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.TelemetryMixin = void 0;
|
|
5
|
+
|
|
6
|
+
var _telemetry = require("../telemetry");
|
|
7
|
+
|
|
8
|
+
var TelemetryMixin = {
|
|
9
|
+
mounted: function mounted() {
|
|
10
|
+
var event = new _telemetry.TelemetryEvent(this.$options.name, {});
|
|
11
|
+
|
|
12
|
+
_telemetry.Telemetry.sharedInstance.trackAppear(event);
|
|
13
|
+
},
|
|
14
|
+
unmountd: function unmountd() {
|
|
15
|
+
var event = new _telemetry.TelemetryEvent(this.$options.name, {});
|
|
16
|
+
|
|
17
|
+
_telemetry.Telemetry.sharedInstance.trackDisappear(event);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.TelemetryMixin = TelemetryMixin;
|
package/lib/nav-bar/index.less
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-nav-bar {
|
|
4
|
-
position: relative;
|
|
5
|
-
z-index: @nav-bar-z-index;
|
|
6
|
-
line-height: @line-height-lg;
|
|
7
|
-
text-align: center;
|
|
8
|
-
background-color: @nav-bar-background-color;
|
|
9
|
-
user-select: none;
|
|
10
|
-
|
|
11
|
-
&--fixed {
|
|
12
|
-
position: fixed;
|
|
13
|
-
top: 0;
|
|
14
|
-
left: 0;
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&--safe-area-inset-top {
|
|
19
|
-
padding-top: constant(safe-area-inset-top);
|
|
20
|
-
padding-top: env(safe-area-inset-top);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.zt-icon {
|
|
24
|
-
color: @nav-bar-icon-color;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__content {
|
|
28
|
-
position: relative;
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
height: @nav-bar-height;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__arrow {
|
|
35
|
-
margin-right: @padding-base;
|
|
36
|
-
font-size: @nav-bar-arrow-size;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__title {
|
|
40
|
-
max-width: 60%;
|
|
41
|
-
margin: 0 auto;
|
|
42
|
-
color: @nav-bar-title-text-color;
|
|
43
|
-
font-weight: @font-weight-bold;
|
|
44
|
-
font-size: @nav-bar-title-font-size;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__left,
|
|
48
|
-
&__right {
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 0;
|
|
51
|
-
bottom: 0;
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
padding: 0 @padding-md;
|
|
55
|
-
font-size: @font-size-md;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
|
|
58
|
-
&:active {
|
|
59
|
-
opacity: @active-opacity;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&__left {
|
|
64
|
-
left: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&__right {
|
|
68
|
-
right: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__text {
|
|
72
|
-
color: @nav-bar-text-color;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-nav-bar {
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: @nav-bar-z-index;
|
|
6
|
+
line-height: @line-height-lg;
|
|
7
|
+
text-align: center;
|
|
8
|
+
background-color: @nav-bar-background-color;
|
|
9
|
+
user-select: none;
|
|
10
|
+
|
|
11
|
+
&--fixed {
|
|
12
|
+
position: fixed;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--safe-area-inset-top {
|
|
19
|
+
padding-top: constant(safe-area-inset-top);
|
|
20
|
+
padding-top: env(safe-area-inset-top);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.zt-icon {
|
|
24
|
+
color: @nav-bar-icon-color;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__content {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
height: @nav-bar-height;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__arrow {
|
|
35
|
+
margin-right: @padding-base;
|
|
36
|
+
font-size: @nav-bar-arrow-size;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__title {
|
|
40
|
+
max-width: 60%;
|
|
41
|
+
margin: 0 auto;
|
|
42
|
+
color: @nav-bar-title-text-color;
|
|
43
|
+
font-weight: @font-weight-bold;
|
|
44
|
+
font-size: @nav-bar-title-font-size;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__left,
|
|
48
|
+
&__right {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
padding: 0 @padding-md;
|
|
55
|
+
font-size: @font-size-md;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
|
|
58
|
+
&:active {
|
|
59
|
+
opacity: @active-opacity;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__left {
|
|
64
|
+
left: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__right {
|
|
68
|
+
right: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__text {
|
|
72
|
+
color: @nav-bar-text-color;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-number-keyboard{position:fixed;bottom:0;left:0;z-index:100;width:100
|
|
1
|
+
.zt-number-keyboard{position:fixed;bottom:0;left:0;z-index:100;width:calc(100% - 24px);padding:16px 8px 8px 16px;background-color:#f2f3f5;-webkit-user-select:none;user-select:none}.zt-number-keyboard--with-title{border-radius:20px 20px 0 0}.zt-number-keyboard__header{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;height:34px;padding-top:6px;color:#646566;font-size:16px}.zt-number-keyboard__title{display:inline-block;font-weight:400}.zt-number-keyboard__title-left{position:absolute;left:0}.zt-number-keyboard__body{display:-webkit-box;display:-webkit-flex;display:flex}.zt-number-keyboard__keys{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:3;-webkit-flex:3;flex:3;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-number-keyboard__close{position:absolute;right:0;height:100%;padding:0 16px;color:#576b95;font-size:14px;background-color:transparent;border:none;cursor:pointer}.zt-number-keyboard__close:active{opacity:.7}.zt-number-keyboard__sidebar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.zt-number-keyboard--unfit{padding-bottom:0}.zt-key{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:44px;font-size:28px;line-height:1.5;background-color:#fff;border-radius:8px;cursor:pointer}.zt-key--large{position:absolute;top:0;right:6px;bottom:6px;left:0;height:auto}.zt-key--blue,.zt-key--delete{font-size:16px}.zt-key--active{background-color:#ebedf0}.zt-key--blue{color:#fff;background-color:#0091fa}.zt-key--blue.zt-key--active{background-color:#0073c7}.zt-key__wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-flex-basis:33%;flex-basis:33%;box-sizing:border-box;padding:0 8px 8px 0}.zt-key__wrapper--wider{-webkit-flex-basis:66%;flex-basis:66%}.zt-key__delete-icon{width:32px;height:22px}.zt-key__collapse-icon{width:30px;height:24px}.zt-key__loading-icon{color:#fff}.zt-cell .zt-field__label{color:rgba(0,0,0,.6)}
|