@nutui/nutui 3.1.17-beta.0 → 3.1.18

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 (150) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/LICENSE +1 -1
  3. package/README.md +7 -1
  4. package/dist/nutui.d.ts +3 -1
  5. package/dist/nutui.es.js +2335 -1280
  6. package/dist/nutui.umd.js +2350 -1293
  7. package/dist/packages/_es/ActionSheet.js +8 -3
  8. package/dist/packages/_es/Address.js +17 -11
  9. package/dist/packages/_es/Audio.js +2 -2
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/BackTop.js +7 -4
  12. package/dist/packages/_es/Badge.js +2 -2
  13. package/dist/packages/_es/Barrage.js +2 -2
  14. package/dist/packages/_es/Button.js +2 -2
  15. package/dist/packages/_es/Calendar.js +15 -16
  16. package/dist/packages/_es/Card.js +2 -2
  17. package/dist/packages/_es/Cascader.js +2 -2
  18. package/dist/packages/_es/Cell.js +25 -18
  19. package/dist/packages/_es/CellGroup.js +2 -2
  20. package/dist/packages/_es/Checkbox.js +4 -4
  21. package/dist/packages/_es/CheckboxGroup.js +4 -4
  22. package/dist/packages/_es/CircleProgress.js +2 -2
  23. package/dist/packages/_es/Col.js +2 -2
  24. package/dist/packages/_es/Collapse.js +2 -2
  25. package/dist/packages/_es/CollapseItem.js +31 -19
  26. package/dist/packages/_es/CountDown.js +4 -2
  27. package/dist/packages/_es/CountUp.js +25 -16
  28. package/dist/packages/_es/DatePicker.js +83 -47
  29. package/dist/packages/_es/Dialog.js +5 -3
  30. package/dist/packages/_es/Divider.js +2 -2
  31. package/dist/packages/_es/Drag.js +4 -4
  32. package/dist/packages/_es/Elevator.js +3 -3
  33. package/dist/packages/_es/Empty.js +2 -2
  34. package/dist/packages/_es/FixedNav.js +2 -2
  35. package/dist/packages/_es/Form.js +8 -6
  36. package/dist/packages/_es/FormItem.js +9 -6
  37. package/dist/packages/_es/Grid.js +2 -2
  38. package/dist/packages/_es/GridItem.js +3 -3
  39. package/dist/packages/_es/Icon.js +2 -2
  40. package/dist/packages/_es/ImagePreview.js +9 -4
  41. package/dist/packages/_es/Indicator.js +2 -2
  42. package/dist/packages/_es/InfiniteLoading.js +2 -2
  43. package/dist/packages/_es/Input.js +290 -66
  44. package/dist/packages/_es/InputNumber.js +2 -2
  45. package/dist/packages/_es/Layout.js +2 -2
  46. package/dist/packages/_es/List.js +124 -0
  47. package/dist/packages/_es/Menu.js +3 -3
  48. package/dist/packages/_es/MenuItem.js +2 -2
  49. package/dist/packages/_es/Navbar.js +31 -66
  50. package/dist/packages/_es/NoticeBar.js +41 -22
  51. package/dist/packages/_es/Notify.js +7 -3
  52. package/dist/packages/_es/NumberKeyboard.js +9 -4
  53. package/dist/packages/_es/OverLay.js +2 -2
  54. package/dist/packages/_es/Pagination.js +2 -2
  55. package/dist/packages/_es/Picker.js +163 -156
  56. package/dist/packages/_es/Popover.js +5 -2
  57. package/dist/packages/_es/Popup.js +2 -2
  58. package/dist/packages/_es/Price.js +2 -2
  59. package/dist/packages/_es/Progress.js +14 -22
  60. package/dist/packages/_es/Radio.js +3 -3
  61. package/dist/packages/_es/RadioGroup.js +2 -2
  62. package/dist/packages/_es/Range.js +131 -21
  63. package/dist/packages/_es/Rate.js +2 -2
  64. package/dist/packages/_es/Row.js +2 -2
  65. package/dist/packages/_es/SearchBar.js +2 -2
  66. package/dist/packages/_es/ShortPassword.js +9 -4
  67. package/dist/packages/_es/SideNavBar.js +2 -2
  68. package/dist/packages/_es/SideNavBarItem.js +2 -2
  69. package/dist/packages/_es/Signature.js +25 -6
  70. package/dist/packages/_es/Skeleton.js +2 -2
  71. package/dist/packages/_es/Sku.js +31 -13
  72. package/dist/packages/_es/Step.js +28 -12
  73. package/dist/packages/_es/Steps.js +8 -3
  74. package/dist/packages/_es/Sticky.js +3 -3
  75. package/dist/packages/_es/SubSideNavBar.js +2 -2
  76. package/dist/packages/_es/Swipe.js +3 -3
  77. package/dist/packages/_es/Swiper.js +3 -3
  78. package/dist/packages/_es/SwiperItem.js +3 -3
  79. package/dist/packages/_es/Switch.js +2 -2
  80. package/dist/packages/_es/TabPane.js +2 -2
  81. package/dist/packages/_es/Tabbar.js +2 -2
  82. package/dist/packages/_es/TabbarItem.js +23 -8
  83. package/dist/packages/_es/Table.js +2 -2
  84. package/dist/packages/_es/Tabs.js +8 -5
  85. package/dist/packages/_es/Tag.js +11 -5
  86. package/dist/packages/_es/TextArea.js +38 -6
  87. package/dist/packages/_es/TimeDetail.js +2 -2
  88. package/dist/packages/_es/TimePannel.js +2 -2
  89. package/dist/packages/_es/TimeSelect.js +8 -3
  90. package/dist/packages/_es/Toast.js +16 -9
  91. package/dist/packages/_es/Uploader.js +2 -4
  92. package/dist/packages/_es/Video.js +12 -8
  93. package/dist/packages/_es/common.js +2 -2
  94. package/dist/packages/_es/component.js +2 -2
  95. package/dist/packages/_es/index.js +6 -8
  96. package/dist/packages/_es/index2.js +9 -32
  97. package/dist/packages/_es/index3.js +29 -57
  98. package/dist/packages/_es/index4.js +64 -0
  99. package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
  100. package/dist/packages/_es/pxCheck.js +2 -2
  101. package/dist/packages/_es/raf.js +2 -2
  102. package/dist/packages/_es/util.js +2 -2
  103. package/dist/packages/actionsheet/index.scss +7 -6
  104. package/dist/packages/badge/index.scss +11 -13
  105. package/dist/packages/button/index.scss +6 -5
  106. package/dist/packages/calendar/index.scss +9 -4
  107. package/dist/packages/calendaritem/index.scss +0 -207
  108. package/dist/packages/cell/index.scss +9 -9
  109. package/dist/packages/cellgroup/index.scss +1 -1
  110. package/dist/packages/checkbox/index.scss +4 -3
  111. package/dist/packages/collapseitem/index.scss +21 -11
  112. package/dist/packages/countdown/index.scss +3 -1
  113. package/dist/packages/divider/index.scss +8 -8
  114. package/dist/packages/elevator/index.scss +36 -36
  115. package/dist/packages/formitem/index.scss +15 -8
  116. package/dist/packages/indicator/index.scss +1 -1
  117. package/dist/packages/input/index.scss +70 -24
  118. package/dist/packages/inputnumber/index.scss +4 -2
  119. package/dist/packages/list/index.scss +24 -0
  120. package/dist/packages/menu/index.scss +3 -3
  121. package/dist/packages/navbar/index.scss +30 -8
  122. package/dist/packages/noticebar/index.scss +10 -5
  123. package/dist/packages/notify/index.scss +10 -0
  124. package/dist/packages/numberkeyboard/index.scss +22 -21
  125. package/dist/packages/oldpicker/index.scss +131 -0
  126. package/dist/packages/picker/index.scss +38 -32
  127. package/dist/packages/progress/index.scss +24 -19
  128. package/dist/packages/radio/index.scss +7 -6
  129. package/dist/packages/range/index.scss +113 -6
  130. package/dist/packages/searchbar/index.scss +7 -7
  131. package/dist/packages/sidenavbaritem/index.scss +5 -5
  132. package/dist/packages/step/index.scss +29 -29
  133. package/dist/packages/subsidenavbar/index.scss +10 -8
  134. package/dist/packages/swiper/index.scss +4 -4
  135. package/dist/packages/switch/index.scss +8 -8
  136. package/dist/packages/tabbar/index.scss +3 -2
  137. package/dist/packages/tabbaritem/index.scss +19 -3
  138. package/dist/packages/tabs/index.scss +1 -0
  139. package/dist/packages/timedetail/index.scss +13 -13
  140. package/dist/packages/timepannel/index.scss +7 -7
  141. package/dist/packages/timeselect/index.scss +3 -3
  142. package/dist/packages/toast/index.scss +8 -7
  143. package/dist/packages/uploader/index.scss +4 -4
  144. package/dist/style.css +1 -1
  145. package/dist/styles/themes/default.scss +43 -41
  146. package/dist/styles/themes/jdt.scss +91 -0
  147. package/dist/styles/variables-jdt.scss +727 -0
  148. package/dist/styles/variables.scss +322 -38
  149. package/package.json +3 -2
  150. package/dist/styles/themes/jdd.scss +0 -2
@@ -1,64 +1,36 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 17:05:36 GMT+0800 (GMT+08:00)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref } from "vue";
7
- const MIN_DISTANCE = 10;
8
- function getDirection(x, y) {
9
- if (x > y && x > MIN_DISTANCE) {
10
- return "horizontal";
6
+ import { unref } from "vue";
7
+ function isWindow(val) {
8
+ return val === window;
9
+ }
10
+ const useRect = (elementRef) => {
11
+ const element = unref(elementRef);
12
+ if (isWindow(element)) {
13
+ const width = element.innerWidth;
14
+ const height = element.innerHeight;
15
+ return {
16
+ top: 0,
17
+ left: 0,
18
+ right: width,
19
+ bottom: height,
20
+ width,
21
+ height
22
+ };
11
23
  }
12
- if (y > x && y > MIN_DISTANCE) {
13
- return "vertical";
24
+ if (element && element.getBoundingClientRect) {
25
+ return element.getBoundingClientRect();
14
26
  }
15
- return "";
16
- }
17
- function useTouch() {
18
- const startX = ref(0);
19
- const startY = ref(0);
20
- const deltaX = ref(0);
21
- const deltaY = ref(0);
22
- const offsetX = ref(0);
23
- const offsetY = ref(0);
24
- const direction = ref("");
25
- const isVertical = () => direction.value === "vertical";
26
- const isHorizontal = () => direction.value === "horizontal";
27
- const reset = () => {
28
- deltaX.value = 0;
29
- deltaY.value = 0;
30
- offsetX.value = 0;
31
- offsetY.value = 0;
32
- direction.value = "";
33
- };
34
- const start = (event) => {
35
- reset();
36
- startX.value = event.touches[0].clientX;
37
- startY.value = event.touches[0].clientY;
38
- };
39
- const move = (event) => {
40
- const touch = event.touches[0];
41
- deltaX.value = touch.clientX - startX.value;
42
- deltaY.value = touch.clientY - startY.value;
43
- offsetX.value = Math.abs(deltaX.value);
44
- offsetY.value = Math.abs(deltaY.value);
45
- if (!direction.value) {
46
- direction.value = getDirection(offsetX.value, offsetY.value);
47
- }
48
- };
49
27
  return {
50
- move,
51
- start,
52
- reset,
53
- startX,
54
- startY,
55
- deltaX,
56
- deltaY,
57
- offsetX,
58
- offsetY,
59
- direction,
60
- isVertical,
61
- isHorizontal
28
+ top: 0,
29
+ left: 0,
30
+ right: 0,
31
+ bottom: 0,
32
+ width: 0,
33
+ height: 0
62
34
  };
63
- }
64
- export { useTouch as u };
35
+ };
36
+ export { useRect as u };
@@ -0,0 +1,64 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { ref } from "vue";
7
+ const MIN_DISTANCE = 10;
8
+ function getDirection(x, y) {
9
+ if (x > y && x > MIN_DISTANCE) {
10
+ return "horizontal";
11
+ }
12
+ if (y > x && y > MIN_DISTANCE) {
13
+ return "vertical";
14
+ }
15
+ return "";
16
+ }
17
+ function useTouch() {
18
+ const startX = ref(0);
19
+ const startY = ref(0);
20
+ const deltaX = ref(0);
21
+ const deltaY = ref(0);
22
+ const offsetX = ref(0);
23
+ const offsetY = ref(0);
24
+ const direction = ref("");
25
+ const isVertical = () => direction.value === "vertical";
26
+ const isHorizontal = () => direction.value === "horizontal";
27
+ const reset = () => {
28
+ deltaX.value = 0;
29
+ deltaY.value = 0;
30
+ offsetX.value = 0;
31
+ offsetY.value = 0;
32
+ direction.value = "";
33
+ };
34
+ const start = (event) => {
35
+ reset();
36
+ startX.value = event.touches[0].clientX;
37
+ startY.value = event.touches[0].clientY;
38
+ };
39
+ const move = (event) => {
40
+ const touch = event.touches[0];
41
+ deltaX.value = touch.clientX - startX.value;
42
+ deltaY.value = touch.clientY - startY.value;
43
+ offsetX.value = Math.abs(deltaX.value);
44
+ offsetY.value = Math.abs(deltaY.value);
45
+ if (!direction.value) {
46
+ direction.value = getDirection(offsetX.value, offsetY.value);
47
+ }
48
+ };
49
+ return {
50
+ move,
51
+ start,
52
+ reset,
53
+ startX,
54
+ startY,
55
+ deltaX,
56
+ deltaY,
57
+ offsetX,
58
+ offsetY,
59
+ direction,
60
+ isVertical,
61
+ isHorizontal
62
+ };
63
+ }
64
+ export { useTouch as u };
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 17:05:36 GMT+0800 (GMT+08:00)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  var _export_sfc = (sfc, props) => {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 17:05:36 GMT+0800 (GMT+08:00)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  const pxCheck = (value) => {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 17:05:36 GMT+0800 (GMT+08:00)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  const _window = window;
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 17:05:36 GMT+0800 (GMT+08:00)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  const TypeOfFun = (value) => {
@@ -37,22 +37,23 @@
37
37
  display: block;
38
38
  // height: 24px;
39
39
  padding: 10px;
40
- line-height: 24px;
41
- font-size: $font-size-base;
42
- color: $title-color;
40
+ line-height: $actionsheet-item-line-height;
41
+ font-size: $actionsheet-item-font-size;
42
+ color: $actionsheet-item-font-color;
43
43
  text-align: center;
44
44
  background-color: #fff;
45
+ border-bottom: $actionsheet-item-border-bottom;
45
46
  cursor: pointer;
46
47
  }
47
48
 
48
49
  .desc {
49
- font-size: $font-size-2;
50
+ font-size: $actionsheet-item-font-size;
50
51
  color: #999;
51
52
  }
52
53
 
53
54
  .subdesc {
54
55
  display: block;
55
- font-size: $font-size-small;
56
+ font-size: $actionsheet-item-subdesc-font-size;
56
57
  color: #999;
57
58
  }
58
59
 
@@ -63,6 +64,6 @@
63
64
 
64
65
  .nut-actionsheet-cancel {
65
66
  margin-top: 5px;
66
- border-top: 1px solid $actionsheet-light-color;
67
+ border-top: $actionsheet-item-cancel-border-top;
67
68
  }
68
69
  }
@@ -4,32 +4,30 @@
4
4
  .slot-icons {
5
5
  position: absolute;
6
6
  background: $badge-background-color;
7
- border-radius: 7px;
8
7
  top: -20%;
9
8
  right: -20%;
10
- padding: 0 5px;
9
+ padding: $badge-padding;
11
10
  text-align: center;
12
- border-radius: 14px;
13
- z-index: 1;
11
+ border-radius: $badge-border-radius;
12
+ z-index: $badge-z-index;
14
13
  }
15
14
  .sup {
16
15
  position: absolute;
17
16
  background: $badge-background-color;
18
- border-radius: 7px;
19
- padding: 0 5px;
17
+ padding: $badge-padding;
20
18
  text-align: center;
21
- border-radius: 14px;
19
+ border-radius: $badge-border-radius;
22
20
  font-size: $badge-font-size;
23
21
  font-weight: normal;
24
- color: $badge-default-background-color;
22
+ color: $badge-color;
25
23
  }
26
24
  .nut-badge__content {
27
- transform: translateY(-50%) translateX(100%);
25
+ transform: $badge-content-transform;
28
26
  }
29
27
  .is-dot {
30
- width: 7px;
31
- height: 7px;
32
- border-radius: 7px;
33
- padding: 0;
28
+ width: $badge-dot-width;
29
+ height: $badge-dot-height;
30
+ border-radius: $badge-dot-border-radius;
31
+ padding: $badge-dot-padding;
34
32
  }
35
33
  }
@@ -1,6 +1,7 @@
1
1
  .nut-button {
2
2
  position: relative;
3
3
  display: inline-block;
4
+ width: auto;
4
5
  flex-shrink: 0;
5
6
  height: $button-default-height;
6
7
  box-sizing: border-box;
@@ -126,21 +127,21 @@
126
127
  }
127
128
 
128
129
  &--normal {
129
- padding: 0 18px;
130
+ padding: $button-default-padding;
130
131
  font-size: $button-default-font-size;
131
132
  }
132
133
 
133
134
  &--small {
134
135
  height: $button-small-height;
135
136
  line-height: $button-small-line-height;
136
- padding: 0 $padding-xs;
137
- font-size: $font-size-1;
137
+ padding: $button-small-padding;
138
+ font-size: $button-small-font-size;
138
139
  }
139
140
  &--mini {
140
141
  height: $button-mini-height;
141
142
  line-height: 1.2;
142
- padding: 0 $padding-xs;
143
- font-size: $font-size-1;
143
+ padding: $button-mini-padding;
144
+ font-size: $button-mini-font-size;
144
145
  }
145
146
 
146
147
  &--block {
@@ -38,6 +38,7 @@
38
38
 
39
39
  .calendar-title {
40
40
  font-size: $calendar-title-font;
41
+ font-weight: $calendar-title-font-weight;
41
42
  line-height: 44px;
42
43
  }
43
44
  .calendar-top-slot {
@@ -46,6 +47,7 @@
46
47
  .calendar-curr-month {
47
48
  padding: 7px 0;
48
49
  line-height: 22px;
50
+ font-size: $calendar-sub-title-font;
49
51
  }
50
52
 
51
53
  .calendar-weeks {
@@ -59,7 +61,7 @@
59
61
  .calendar-week-item {
60
62
  &:first-of-type,
61
63
  &:last-of-type {
62
- color: $calendar-primary-color;
64
+ color: $calendar-day67-font-color;
63
65
  }
64
66
  }
65
67
  }
@@ -114,13 +116,14 @@
114
116
  .calendar-month-item {
115
117
  .calendar-month-day:nth-child(7n + 0),
116
118
  .calendar-month-day:nth-child(7n + 1) {
117
- color: $calendar-primary-color;
119
+ color: $calendar-day67-font-color;
118
120
  }
119
121
  }
120
122
  .calendar-month-day {
121
123
  float: left;
122
- width: 14.28%;
123
- height: 64px;
124
+ width: $calendar-day-width;
125
+ height: $calendar-day-height;
126
+ font-weight: $calendar-day-font-weight;
124
127
  display: flex;
125
128
  align-items: center;
126
129
  justify-content: center;
@@ -156,6 +159,7 @@
156
159
  &-active {
157
160
  background-color: $calendar-primary-color;
158
161
  color: $white !important;
162
+ border-radius: $calendar-day-active-border-radius;
159
163
 
160
164
  .calendar-curr-tips {
161
165
  // color: $white !important;
@@ -175,6 +179,7 @@
175
179
 
176
180
  &-choose {
177
181
  background-color: $calendar-choose-color;
182
+ color: $calendar-choose-font-color;
178
183
  }
179
184
 
180
185
  .calendar-day {
@@ -1,207 +0,0 @@
1
- .nut-calendar {
2
- position: relative;
3
- display: flex;
4
- flex: 1;
5
- color: #333333;
6
- font-size: 16px;
7
- background-color: #fff;
8
- overflow: hidden;
9
- height: 100%;
10
- flex-direction: column;
11
- &.nut-calendar-tile {
12
- .nut-calendar-header {
13
- .calendar-title {
14
- font-size: $calendar-base-font;
15
- }
16
- }
17
- }
18
- .nut-calendar-taro {
19
- height: 60vh;
20
- }
21
- .popup-box {
22
- height: 100%;
23
- }
24
- .nut-calendar-content {
25
- overflow-y: auto;
26
- }
27
- ::-webkit-scrollbar {
28
- display: none;
29
- }
30
-
31
- // 头部导航
32
- .nut-calendar-header {
33
- display: flex;
34
- flex-direction: column;
35
- text-align: center;
36
- padding-top: 1px;
37
- background-color: $white;
38
-
39
- .calendar-title {
40
- font-size: $calendar-title-font;
41
- line-height: 44px;
42
- }
43
- .calendar-top-slot {
44
- height: 24px;
45
- }
46
- .calendar-curr-month {
47
- padding: 7px 0;
48
- line-height: 22px;
49
- }
50
-
51
- .calendar-weeks {
52
- display: flex;
53
- align-items: center;
54
- justify-content: space-around;
55
- height: 36px;
56
- border-radius: 0px 0px 12px 12px;
57
- box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
58
-
59
- .calendar-week-item {
60
- &:first-of-type,
61
- &:last-of-type {
62
- color: $calendar-primary-color;
63
- }
64
- }
65
- }
66
- }
67
-
68
- // 月份
69
- .nut-calendar-content {
70
- flex: 1;
71
- width: 100%;
72
- display: block;
73
- .calendar-months-panel {
74
- position: relative;
75
- width: 100%;
76
- height: auto;
77
- display: block;
78
- box-sizing: border-box;
79
- .viewArea {
80
- display: block;
81
- }
82
- .calendar-month {
83
- display: flex;
84
- flex-direction: column;
85
- text-align: center;
86
- }
87
-
88
- div:nth-of-type(2) {
89
- .calendar-month-title {
90
- padding-top: 0;
91
- }
92
- }
93
-
94
- .calendar-loading-tip {
95
- height: 50px;
96
- line-height: 50px;
97
- text-align: center;
98
- position: absolute;
99
- top: -50px;
100
- left: 0;
101
- right: 0;
102
- font-size: $calendar-text-font;
103
- color: $text-color;
104
- }
105
-
106
- .calendar-month-title {
107
- height: 23px;
108
- line-height: 23px;
109
- margin: 8px 0;
110
- }
111
-
112
- .calendar-month-con {
113
- overflow: hidden;
114
- .calendar-month-item {
115
- .calendar-month-day:nth-child(7n + 0),
116
- .calendar-month-day:nth-child(7n + 1) {
117
- color: $calendar-primary-color;
118
- }
119
- }
120
- .calendar-month-day {
121
- float: left;
122
- width: 14.28%;
123
- height: 64px;
124
- display: flex;
125
- align-items: center;
126
- justify-content: center;
127
- flex-direction: column;
128
- position: relative;
129
-
130
- .calendar-curr-tips {
131
- position: absolute;
132
- width: 100%;
133
- }
134
-
135
- .calendar-curr-tip-curr {
136
- position: absolute;
137
- bottom: 6px;
138
- width: 100%;
139
- font-size: 12px;
140
- line-height: 14px;
141
- }
142
- .calendar-day-tip {
143
- position: absolute;
144
- bottom: 6px;
145
- width: 100%;
146
- font-size: 12px;
147
- line-height: 14px;
148
- color: $calendar-primary-color;
149
- }
150
- .calendar-curr-tips-top {
151
- top: 6px;
152
- }
153
- .calendar-curr-tips-bottom {
154
- bottom: 6px;
155
- }
156
- &-active {
157
- background-color: $calendar-primary-color;
158
- color: $white !important;
159
-
160
- .calendar-curr-tips {
161
- // color: $white !important;
162
- visibility: hidden;
163
- }
164
- .calendar-curr-tip-curr {
165
- visibility: hidden;
166
- }
167
- .calendar-day-tip {
168
- color: $white;
169
- }
170
- }
171
-
172
- &-disabled {
173
- color: $calendar-disable-color !important;
174
- }
175
-
176
- &-choose {
177
- background-color: $calendar-choose-color;
178
- }
179
-
180
- .calendar-day {
181
- padding: 2px 0;
182
- font-size: $calendar-day-font;
183
- }
184
- }
185
- }
186
- }
187
- }
188
-
189
- // 底部导航
190
- .nut-calendar-footer {
191
- display: flex;
192
- height: 62px;
193
- width: 100%;
194
- background-color: $white;
195
-
196
- .calendar-confirm-btn {
197
- height: 44px;
198
- width: 100%;
199
- margin: 10px 18px;
200
- border-radius: 22px;
201
- background: $button-primary-background-color;
202
- color: $white;
203
- text-align: center;
204
- line-height: 44px;
205
- }
206
- }
207
- }
@@ -2,8 +2,8 @@
2
2
  position: relative;
3
3
  display: flex;
4
4
  width: 100%;
5
- line-height: 20px;
6
- padding: 13px 16px;
5
+ line-height: $cell-line-height;
6
+ padding: $cell-padding;
7
7
  background: $white;
8
8
  border-radius: $cell-border-radius;
9
9
  box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
@@ -23,7 +23,7 @@
23
23
  box-sizing: border-box;
24
24
  content: ' ';
25
25
  pointer-events: none;
26
- right: 16px;
26
+ right: $cell-after-right;
27
27
  bottom: 0;
28
28
  left: 16px;
29
29
  transform: scaleY(0.5);
@@ -50,16 +50,16 @@
50
50
  }
51
51
  }
52
52
 
53
+ &__icon {
54
+ display: flex;
55
+ flex-direction: row;
56
+ margin-right: $cell-default-icon-margin;
57
+ }
58
+
53
59
  &__title {
54
60
  display: flex;
55
61
  flex-direction: column;
56
62
  flex: 1;
57
- &.icon {
58
- flex-direction: row;
59
- .icon {
60
- margin-right: 10px;
61
- }
62
- }
63
63
  &-desc {
64
64
  font-size: $cell-title-desc-font;
65
65
  }
@@ -32,7 +32,7 @@
32
32
  }
33
33
  .nut-cell {
34
34
  &::after {
35
- border-bottom: 2px solid #f5f6f7;
35
+ border-bottom: $cell-after-border-bottom;
36
36
  }
37
37
  }
38
38
  }
@@ -4,13 +4,13 @@
4
4
  &--reverse {
5
5
  flex-direction: row-reverse;
6
6
  .nut-checkbox__label {
7
- margin-right: 15px;
7
+ margin-right: $checkbox-label-margin-left;
8
8
  margin-left: 0;
9
9
  }
10
10
  }
11
11
  &__label {
12
- margin-left: 15px;
13
- font-size: 14px;
12
+ margin-left: $checkbox-label-margin-left;
13
+ font-size: $checkbox-label-font-size;
14
14
  color: $checkbox-label-color;
15
15
  &--disabled {
16
16
  color: $checkbox-label-disable-color;
@@ -18,6 +18,7 @@
18
18
  }
19
19
  &__icon {
20
20
  color: $primary-color;
21
+ font-size: $checkbox-icon-font-size;
21
22
  transition-duration: 0.3s;
22
23
  transition-property: color, border-color, background-color;
23
24
  }