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.
Files changed (227) hide show
  1. package/README.md +20 -20
  2. package/changelog.generated.md +29 -0
  3. package/es/area/style/index.js +4 -0
  4. package/es/area/style/less.js +4 -0
  5. package/es/avatar/index.css +1 -1
  6. package/es/avatar/index.js +41 -27
  7. package/es/avatar/index.less +40 -11
  8. package/es/avatar/local.less +1 -1
  9. package/es/button/index.less +206 -206
  10. package/es/calendar/index.less +250 -250
  11. package/es/calendar/style/index.js +1 -1
  12. package/es/calendar/style/less.js +1 -1
  13. package/es/cell/index.less +103 -103
  14. package/es/cell-group/index.less +22 -22
  15. package/es/checkbox/index.less +89 -89
  16. package/es/checkbox-group/index.less +8 -8
  17. package/es/col/index.less +20 -20
  18. package/es/datetime-picker/style/index.js +4 -0
  19. package/es/datetime-picker/style/less.js +4 -0
  20. package/es/dialog/index.less +125 -125
  21. package/es/dialog/style/index.js +1 -1
  22. package/es/dialog/style/less.js +1 -1
  23. package/es/empty/Developing.js +1643 -0
  24. package/es/empty/Error.js +484 -0
  25. package/es/empty/NotFound.js +645 -0
  26. package/es/empty/NotRight.js +395 -0
  27. package/es/empty/Search.js +336 -0
  28. package/es/empty/index.css +1 -0
  29. package/es/empty/index.js +105 -0
  30. package/es/empty/index.less +33 -0
  31. package/es/empty/style/index.js +2 -0
  32. package/es/empty/style/less.js +2 -0
  33. package/es/field/index.less +172 -172
  34. package/es/icon/index.less +10 -10
  35. package/es/icon/local.less +1 -1
  36. package/es/image/index.less +47 -47
  37. package/es/image-preview/index.less +103 -103
  38. package/es/image-preview/style/index.js +1 -1
  39. package/es/image-preview/style/less.js +1 -1
  40. package/es/index.js +5 -3
  41. package/es/info/index.less +29 -29
  42. package/es/loading/index.less +103 -103
  43. package/es/locale/lang/zh-CN.js +16 -0
  44. package/es/mixins/bind-event.js +2 -2
  45. package/es/mixins/checkbox.js +2 -2
  46. package/es/mixins/click-outside.js +2 -2
  47. package/es/mixins/slots.js +3 -3
  48. package/es/nav-bar/index.less +74 -74
  49. package/es/number-keyboard/index.less +142 -142
  50. package/es/overlay/index.less +11 -11
  51. package/es/password-input/index.css +1 -0
  52. package/es/password-input/index.js +80 -0
  53. package/es/password-input/index.less +83 -0
  54. package/es/password-input/style/index.js +2 -0
  55. package/es/password-input/style/less.js +2 -0
  56. package/es/pdf-viewer/style/index.js +1 -1
  57. package/es/pdf-viewer/style/less.js +1 -1
  58. package/es/picker/PickerColumn.js +5 -6
  59. package/es/picker/index.js +34 -5
  60. package/es/picker/index.less +151 -151
  61. package/es/picker/shared.js +4 -0
  62. package/es/picker/style/index.js +4 -0
  63. package/es/picker/style/less.js +4 -0
  64. package/es/popup/index.less +137 -137
  65. package/es/popup/style/index.js +1 -1
  66. package/es/popup/style/less.js +1 -1
  67. package/es/radio/index.less +86 -86
  68. package/es/radio-group/index.less +8 -8
  69. package/es/rate/index.css +1 -1
  70. package/es/rate/index.js +1 -1
  71. package/es/rate/index.less +47 -47
  72. package/es/row/index.less +42 -42
  73. package/es/slider/index.less +94 -94
  74. package/es/step/index.less +139 -139
  75. package/es/stepper/index.less +130 -130
  76. package/es/steps/index.less +21 -21
  77. package/es/sticky/index.less +11 -11
  78. package/es/style/animation.less +139 -139
  79. package/es/style/base.less +11 -11
  80. package/es/style/clearfix.less +5 -5
  81. package/es/style/ellipsis.less +13 -13
  82. package/es/style/hairline.less +47 -47
  83. package/es/style/halfPxBorder.less +15 -15
  84. package/es/style/mixins/clearfix.less +7 -7
  85. package/es/style/mixins/ellipsis.less +15 -15
  86. package/es/style/mixins/hairline.less +39 -39
  87. package/es/style/normalize.less +38 -38
  88. package/es/style/reset.less +171 -171
  89. package/es/style/var.less +936 -919
  90. package/es/swipe/index.less +56 -56
  91. package/es/swipe-cell/index.less +29 -29
  92. package/es/swipe-item/index.less +8 -8
  93. package/es/switch/index.less +56 -56
  94. package/es/switch/shared.js +2 -2
  95. package/es/switch-cell/index.less +15 -15
  96. package/es/tab/index.less +17 -17
  97. package/es/tabs/index.less +153 -153
  98. package/es/tag/index.less +99 -99
  99. package/es/toast/index.less +75 -75
  100. package/es/toast/style/index.js +1 -1
  101. package/es/toast/style/less.js +1 -1
  102. package/es/uploader/index.less +163 -163
  103. package/es/uploader/style/index.js +1 -1
  104. package/es/uploader/style/less.js +1 -1
  105. package/es/utils/create/bem.js +7 -7
  106. package/es/utils/create/component.js +2 -2
  107. package/es/utils/dom/raf.js +2 -2
  108. package/es/utils/dom/reset-scroll.js +3 -3
  109. package/es/utils/index.js +29 -29
  110. package/es/utils/router.js +2 -2
  111. package/lib/7893e51cf0a4877dac80.worker.js +10 -0
  112. package/lib/area/style/index.js +4 -0
  113. package/lib/area/style/less.js +4 -0
  114. package/lib/avatar/index.css +1 -1
  115. package/lib/avatar/index.js +42 -28
  116. package/lib/avatar/index.less +40 -11
  117. package/lib/avatar/local.less +1 -1
  118. package/lib/be09b519a460e229fd8d.worker.js +2527 -0
  119. package/lib/button/index.less +206 -206
  120. package/lib/calendar/index.less +250 -250
  121. package/lib/calendar/style/index.js +1 -1
  122. package/lib/calendar/style/less.js +1 -1
  123. package/lib/cell/index.less +103 -103
  124. package/lib/cell-group/index.less +22 -22
  125. package/lib/checkbox/index.less +89 -89
  126. package/lib/checkbox-group/index.less +8 -8
  127. package/lib/col/index.less +20 -20
  128. package/lib/datetime-picker/style/index.js +4 -0
  129. package/lib/datetime-picker/style/less.js +4 -0
  130. package/lib/dialog/index.less +125 -125
  131. package/lib/dialog/style/index.js +1 -1
  132. package/lib/dialog/style/less.js +1 -1
  133. package/lib/empty/Developing.js +1648 -0
  134. package/lib/empty/Error.js +489 -0
  135. package/lib/empty/NotFound.js +650 -0
  136. package/lib/empty/NotRight.js +400 -0
  137. package/lib/empty/Search.js +341 -0
  138. package/lib/empty/index.css +1 -0
  139. package/lib/empty/index.js +119 -0
  140. package/lib/empty/index.less +33 -0
  141. package/lib/empty/style/index.js +2 -0
  142. package/lib/empty/style/less.js +2 -0
  143. package/lib/field/index.less +172 -172
  144. package/lib/icon/index.less +10 -10
  145. package/lib/icon/local.less +1 -1
  146. package/lib/image/index.less +47 -47
  147. package/lib/image-preview/index.less +103 -103
  148. package/lib/image-preview/style/index.js +1 -1
  149. package/lib/image-preview/style/less.js +1 -1
  150. package/lib/index.css +1 -1
  151. package/lib/index.js +10 -2
  152. package/lib/index.less +5 -3
  153. package/lib/info/index.less +29 -29
  154. package/lib/loading/index.less +103 -103
  155. package/lib/locale/lang/zh-CN.js +16 -0
  156. package/lib/mixins/bind-event.js +2 -2
  157. package/lib/mixins/checkbox.js +2 -2
  158. package/lib/mixins/click-outside.js +2 -2
  159. package/lib/mixins/slots.js +3 -3
  160. package/lib/nav-bar/index.less +74 -74
  161. package/lib/number-keyboard/index.less +142 -142
  162. package/lib/overlay/index.less +11 -11
  163. package/lib/password-input/index.css +1 -0
  164. package/lib/password-input/index.js +93 -0
  165. package/lib/password-input/index.less +83 -0
  166. package/lib/password-input/style/index.js +2 -0
  167. package/lib/password-input/style/less.js +2 -0
  168. package/lib/pdf-viewer/style/index.js +1 -1
  169. package/lib/pdf-viewer/style/less.js +1 -1
  170. package/lib/picker/PickerColumn.js +5 -6
  171. package/lib/picker/index.js +36 -6
  172. package/lib/picker/index.less +151 -151
  173. package/lib/picker/shared.js +4 -0
  174. package/lib/picker/style/index.js +4 -0
  175. package/lib/picker/style/less.js +4 -0
  176. package/lib/popup/index.less +137 -137
  177. package/lib/popup/style/index.js +1 -1
  178. package/lib/popup/style/less.js +1 -1
  179. package/lib/radio/index.less +86 -86
  180. package/lib/radio-group/index.less +8 -8
  181. package/lib/rate/index.css +1 -1
  182. package/lib/rate/index.js +1 -1
  183. package/lib/rate/index.less +47 -47
  184. package/lib/row/index.less +42 -42
  185. package/lib/slider/index.less +94 -94
  186. package/lib/step/index.less +139 -139
  187. package/lib/stepper/index.less +130 -130
  188. package/lib/steps/index.less +21 -21
  189. package/lib/sticky/index.less +11 -11
  190. package/lib/style/animation.less +139 -139
  191. package/lib/style/base.less +11 -11
  192. package/lib/style/clearfix.less +5 -5
  193. package/lib/style/ellipsis.less +13 -13
  194. package/lib/style/hairline.less +47 -47
  195. package/lib/style/halfPxBorder.less +15 -15
  196. package/lib/style/mixins/clearfix.less +7 -7
  197. package/lib/style/mixins/ellipsis.less +15 -15
  198. package/lib/style/mixins/hairline.less +39 -39
  199. package/lib/style/normalize.less +38 -38
  200. package/lib/style/reset.less +171 -171
  201. package/lib/style/var.less +936 -919
  202. package/lib/swipe/index.less +56 -56
  203. package/lib/swipe-cell/index.less +29 -29
  204. package/lib/swipe-item/index.less +8 -8
  205. package/lib/switch/index.less +56 -56
  206. package/lib/switch/shared.js +2 -2
  207. package/lib/switch-cell/index.less +15 -15
  208. package/lib/tab/index.less +17 -17
  209. package/lib/tabs/index.less +153 -153
  210. package/lib/tag/index.less +99 -99
  211. package/lib/toast/index.less +75 -75
  212. package/lib/toast/style/index.js +1 -1
  213. package/lib/toast/style/less.js +1 -1
  214. package/lib/uploader/index.less +163 -163
  215. package/lib/uploader/style/index.js +1 -1
  216. package/lib/uploader/style/less.js +1 -1
  217. package/lib/utils/create/bem.js +7 -7
  218. package/lib/utils/create/component.js +2 -2
  219. package/lib/utils/dom/raf.js +2 -2
  220. package/lib/utils/dom/reset-scroll.js +3 -3
  221. package/lib/utils/index.js +29 -29
  222. package/lib/utils/router.js +2 -2
  223. package/lib/zart.js +26508 -55081
  224. package/lib/zart.min.js +5 -5
  225. package/package.json +74 -74
  226. package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
  227. package/lib/b7cf90b4775181215df7.worker.js +0 -10
package/es/index.js CHANGED
@@ -9,6 +9,7 @@ import CheckboxGroup from './checkbox-group';
9
9
  import Col from './col';
10
10
  import DatetimePicker from './datetime-picker';
11
11
  import Dialog from './dialog';
12
+ import Empty from './empty';
12
13
  import Field from './field';
13
14
  import Form from './form';
14
15
  import Icon from './icon';
@@ -21,6 +22,7 @@ import Locale from './locale';
21
22
  import NavBar from './nav-bar';
22
23
  import NumberKeyboard from './number-keyboard';
23
24
  import Overlay from './overlay';
25
+ import PasswordInput from './password-input';
24
26
  import PdfViewer from './pdf-viewer';
25
27
  import Picker from './picker';
26
28
  import Popup from './popup';
@@ -43,10 +45,10 @@ import Tabs from './tabs';
43
45
  import Tag from './tag';
44
46
  import Toast from './toast';
45
47
  import Uploader from './uploader';
46
- var version = '0.1.21';
48
+ var version = '0.1.22';
47
49
 
48
50
  function install(Vue) {
49
- var components = [Area, Avatar, Button, Calendar, Cell, CellGroup, Checkbox, CheckboxGroup, Col, DatetimePicker, Dialog, Field, Form, Icon, Image, ImagePreview, Info, Lazyload, Loading, Locale, NavBar, NumberKeyboard, Overlay, PdfViewer, Picker, Popup, Radio, RadioGroup, Rate, Row, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabs, Tag, Toast, Uploader];
51
+ var components = [Area, Avatar, Button, Calendar, Cell, CellGroup, Checkbox, CheckboxGroup, Col, DatetimePicker, Dialog, Empty, Field, Form, Icon, Image, ImagePreview, Info, Lazyload, Loading, Locale, NavBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, Picker, Popup, Radio, RadioGroup, Rate, Row, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabs, Tag, Toast, Uploader];
50
52
  components.forEach(function (item) {
51
53
  if (item.install) {
52
54
  Vue.use(item);
@@ -60,7 +62,7 @@ if (typeof window !== 'undefined' && window.Vue) {
60
62
  install(window.Vue);
61
63
  }
62
64
 
63
- export { install, version, Area, Avatar, Button, Calendar, Cell, CellGroup, Checkbox, CheckboxGroup, Col, DatetimePicker, Dialog, Field, Form, Icon, Image, ImagePreview, Info, Lazyload, Loading, Locale, NavBar, NumberKeyboard, Overlay, PdfViewer, Picker, Popup, Radio, RadioGroup, Rate, Row, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabs, Tag, Toast, Uploader };
65
+ export { install, version, Area, Avatar, Button, Calendar, Cell, CellGroup, Checkbox, CheckboxGroup, Col, DatetimePicker, Dialog, Empty, Field, Form, Icon, Image, ImagePreview, Info, Lazyload, Loading, Locale, NavBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, Picker, Popup, Radio, RadioGroup, Rate, Row, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabs, Tag, Toast, Uploader };
64
66
  export default {
65
67
  install: install,
66
68
  version: version
@@ -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
+ }
@@ -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);
@@ -94,5 +94,21 @@ export default {
94
94
  },
95
95
  vanAddressList: {
96
96
  add: '新增地址'
97
+ },
98
+ ztAvatar: {
99
+ defaultSrc: "https://zartui.egova.com.cn/static/head_shot.png",
100
+ small: "small",
101
+ medium: "medium",
102
+ large: "large",
103
+ square: "square",
104
+ circle: "circle",
105
+ defaultText: "头像"
106
+ },
107
+ ztEmpty: {
108
+ notSearchResult: '没有搜索结果',
109
+ notFound: '页面无法访问',
110
+ developing: '项目建设中',
111
+ error: '通用错误',
112
+ notRight: '您暂未拥有访问权限'
97
113
  }
98
114
  };
@@ -1,5 +1,5 @@
1
- /**
2
- * Bind event when mounted or activated
1
+ /**
2
+ * Bind event when mounted or activated
3
3
  */
4
4
  import { on, off } from '../utils/dom/event';
5
5
  var uid = 0;
@@ -1,5 +1,5 @@
1
- /**
2
- * Common part of Checkbox & Radio
1
+ /**
2
+ * Common part of Checkbox & Radio
3
3
  */
4
4
  import Icon from '../icon';
5
5
  import { FieldMixin } from './field';
@@ -1,5 +1,5 @@
1
- /**
2
- * Listen to click outside event
1
+ /**
2
+ * Listen to click outside event
3
3
  */
4
4
  import { on, off } from '../utils/dom/event';
5
5
  export var ClickOutsideMixin = function ClickOutsideMixin(config) {
@@ -1,6 +1,6 @@
1
- /**
2
- * Use scopedSlots in Vue 2.6+
3
- * downgrade to slots in lower version
1
+ /**
2
+ * Use scopedSlots in Vue 2.6+
3
+ * downgrade to slots in lower version
4
4
  */
5
5
  export var SlotsMixin = {
6
6
  methods: {
@@ -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
+ }