@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
@@ -17,15 +17,15 @@
17
17
  right: -50%;
18
18
  display: inline-block;
19
19
  height: 1px;
20
- background: #909ca4;
20
+ background: $steps-base-line-color;
21
21
  }
22
22
  &-icon {
23
23
  position: relative;
24
24
  display: flex;
25
- width: 25px;
26
- height: 25px;
27
- line-height: 25px;
28
- font-size: 13px;
25
+ width: $steps-base-icon-width;
26
+ height: $steps-base-icon-height;
27
+ line-height: $steps-base-icon-line-height;
28
+ font-size: $steps-base-icon-font-size;
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  z-index: 1;
@@ -53,14 +53,14 @@
53
53
  }
54
54
  &-title {
55
55
  display: block;
56
- margin-bottom: 10px;
57
- font-size: 14px;
58
- color: #909ca4;
56
+ margin-bottom: $steps-base-title-margin-bottom;
57
+ font-size: $steps-base-title-font-size;
58
+ color: $steps-base-title-color;
59
59
  }
60
60
  &-content {
61
61
  display: block;
62
- font-size: 14px;
63
- color: #666;
62
+ font-size: $steps-base-content-font-size;
63
+ color: $steps-base-content-color;
64
64
  }
65
65
  &:last-child {
66
66
  .nut-step-line {
@@ -69,53 +69,53 @@
69
69
  }
70
70
  &.nut-step-finish {
71
71
  .nut-step-head {
72
- color: $primary-color;
73
- border-color: $primary-color;
72
+ color: $steps-finish-head-color;
73
+ border-color: $steps-finish-head-border-color;
74
74
  }
75
75
  .nut-step-icon.is-text {
76
- background-color: $white;
76
+ background-color: $steps-finish-icon-text-color;
77
77
  }
78
78
  .nut-step-icon.is-icon {
79
- background-color: $white;
79
+ background-color: $steps-finish-icon-text-color;
80
80
  }
81
81
  .nut-step-line {
82
- background: $primary-color;
82
+ background: $steps-finish-line-background;
83
83
  }
84
84
  .nut-step-title {
85
- color: $primary-color;
85
+ color: $steps-finish-title-color;
86
86
  }
87
87
  }
88
88
  &.nut-step-process {
89
89
  .nut-step-head {
90
- color: $white;
91
- border-color: $primary-color;
90
+ color: $steps-process-head-color;
91
+ border-color: $steps-process-head-border-color;
92
92
  }
93
93
  .nut-step-icon.is-text {
94
- background-color: $primary-color;
94
+ background-color: $steps-process-icon-text-color;
95
95
  }
96
96
  .nut-step-icon.is-icon {
97
- background-color: $primary-color;
97
+ background-color: $steps-process-icon-text-color;
98
98
  }
99
99
  .nut-step-title {
100
- color: $primary-color;
100
+ color: $steps-process-title-color;
101
101
  }
102
102
  }
103
103
  &.nut-step-wait {
104
104
  .nut-step-head {
105
- color: #909ca4;
106
- border-color: #909ca4;
105
+ color: $steps-wait-head-color;
106
+ border-color: $steps-wait-head-border-color;
107
107
  }
108
108
  .nut-step-icon.is-text {
109
- background-color: $white;
109
+ background-color: $steps-wait-icon-bg-color;
110
110
  }
111
111
  .nut-step-icon.is-icon {
112
- background-color: $step-wait-bg-color;
112
+ background-color: $steps-wait-icon-bg-color;
113
113
  .nut-icon {
114
- color: $white;
114
+ color: $steps-wait-icon-color;
115
115
  }
116
116
  }
117
117
  .nut-step-content {
118
- color: #909ca4;
118
+ color: $steps-wait-content-color;
119
119
  }
120
120
  }
121
121
  }
@@ -155,10 +155,10 @@
155
155
  }
156
156
  .nut-step-wait {
157
157
  .nut-step-icon {
158
- background-color: #959fb1;
158
+ background-color: $steps-wait-icon-bg-color;
159
159
  }
160
160
  .nut-step-content {
161
- color: #909ca4;
161
+ color: $steps-wait-content-color;
162
162
  }
163
163
  }
164
164
  .nut-step-finish {
@@ -5,20 +5,22 @@
5
5
  position: relative;
6
6
  &__title {
7
7
  display: block;
8
- width: 100%;
9
- height: 40px;
8
+ width: $sidenavbar-sub-title-width;
9
+ height: $sidenavbar-sub-title-height;
10
10
  position: relative;
11
11
  overflow: hidden;
12
12
  text-overflow: ellipsis;
13
13
  white-space: nowrap;
14
14
  box-sizing: border-box;
15
- border-bottom: 1px solid $subsidenavbar-title-border-color;
16
- color: $title-color;
17
- font-size: $font-size-large;
18
- background-color: $subsidenavbar-title-bg-color;
15
+ border-bottom: 1px solid $sidenavbar-sub-title-border-color;
16
+ color: $sidenavbar-sub-title-text-color;
17
+ font-size: $sidenavbar-sub-title-font-size;
18
+ background-color: $sidenavbar-sub-title-bg-color;
19
+ border-radius: $sidenavbar-sub-title-radius;
20
+ border: $sidenavbar-sub-title-border;
19
21
  &__text {
20
- line-height: 40px;
21
- color: $title-color;
22
+ line-height: $sidenavbar-sub-title-text-line-height;
23
+ color: $sidenavbar-sub-title-text-color;
22
24
  }
23
25
  &__icon {
24
26
  position: absolute;
@@ -21,10 +21,10 @@
21
21
  bottom: 12px;
22
22
  transform: translateX(-50%);
23
23
  i {
24
- width: 8px;
25
- height: 3px;
26
- margin-right: 7px;
27
- border-radius: 2px;
24
+ width: $swiper-pagination-item-width;
25
+ height: $swiper-pagination-item-height;
26
+ margin-right: $swiper-pagination-item-margin-right;
27
+ border-radius: $swiper-pagination-item-border-radius;
28
28
  &:last-child {
29
29
  margin-right: 0;
30
30
  }
@@ -3,7 +3,7 @@
3
3
  display: inline-flex;
4
4
  align-items: center;
5
5
  background-color: $primary-color;
6
- border-radius: 21px;
6
+ border-radius: $switch-border-radius;
7
7
  background-size: 100% 100%;
8
8
  background-repeat: no-repeat;
9
9
  background-position: center center;
@@ -37,17 +37,17 @@
37
37
  opacity: 0.6;
38
38
  }
39
39
  &.nut-switch-base {
40
- width: 36px;
41
- height: 21px;
42
- line-height: 21px;
40
+ width: $switch-width;
41
+ height: $switch-height;
42
+ line-height: $switch-line-height;
43
43
  .switch-button {
44
- height: 13px;
45
- width: 13px;
46
- transform: translateX(30%);
44
+ height: $switch-inside-width;
45
+ width: $switch-inside-height;
46
+ transform: $switch-inside-close-transform;
47
47
  }
48
48
  &.switch-open {
49
49
  .switch-button {
50
- transform: translateX(146%);
50
+ transform: $switch-inside-open-transform;
51
51
  }
52
52
  }
53
53
  &.switch-close {
@@ -1,7 +1,8 @@
1
1
  .nut-tabbar {
2
2
  border: 0px;
3
- border-bottom: 1px solid $tabbar-border-color;
4
- border-top: 1px solid $tabbar-border-color;
3
+ box-shadow: $tabbar-box-shadow;
4
+ border-bottom: $tabbar-border-bottom;
5
+ border-top: $tabbar-border-top;
5
6
  width: 100%;
6
7
  display: flex;
7
8
  padding: 7px 0;
@@ -32,17 +32,32 @@
32
32
  color: $white;
33
33
  z-index: 1;
34
34
  }
35
+ &_dot {
36
+ position: absolute;
37
+ width: 7px;
38
+ height: 7px;
39
+ border-radius: 7px;
40
+ padding: 0px;
41
+ background: $tabbar-active-color;
42
+ text-align: center;
43
+ font-size: 12px;
44
+ font-weight: normal;
45
+ color: #fff;
46
+ top: 0;
47
+ right: 0;
48
+ transform: translate(50%, -50%);
49
+ }
35
50
 
36
51
  &_num {
37
52
  line-height: 1;
38
- font-size: $font-size-0;
53
+ font-size: $tabbar-item-text-font-size;
39
54
  color: $white;
40
55
  padding: 1px 2px 2px 3px;
41
56
  }
42
57
 
43
58
  &_nums {
44
59
  line-height: 1;
45
- font-size: $font-size-0;
60
+ font-size: $tabbar-item-text-font-size;
46
61
  color: $white;
47
62
  padding: 2px 1px 2px 2px;
48
63
  }
@@ -52,7 +67,8 @@
52
67
  background-position: center center;
53
68
  }
54
69
  &_nav-word {
55
- font-size: $font-size-0;
70
+ font-size: $tabbar-item-text-font-size;
71
+ line-height: $tabbar-item-text-line-height;
56
72
  display: block;
57
73
  }
58
74
  &_big-word {
@@ -149,6 +149,7 @@
149
149
  }
150
150
  &.active {
151
151
  font-weight: 600;
152
+ color: $tabs-titles-item-active-color;
152
153
  .nut-tabs__titles-item__line {
153
154
  content: ' ';
154
155
  width: $tabs-horizontal-titles-item-active-line-width;
@@ -1,35 +1,35 @@
1
1
  .nut-timedetail {
2
2
  display: flex;
3
3
  width: 100%;
4
- padding: 0 5px 50px 13px;
4
+ padding: $timeselect-timedetail-padding;
5
5
  &__detail {
6
6
  width: 100%;
7
7
  &__list {
8
8
  &__item {
9
9
  display: inline-block;
10
- width: 100px;
11
- height: 50px;
12
- line-height: 50px;
10
+ width: $timeselect-timedetail-item-width;
11
+ height: $timeselect-timedetail-item-height;
12
+ line-height: $timeselect-timedetail-item-line-height;
13
13
  text-align: center;
14
14
  margin-right: 10px;
15
15
  margin-bottom: 10px;
16
- background-color: $timedetail-item-bg-color;
17
- border-radius: $timedetail-item-border-radius;
18
- color: $timedetail-item-text-color;
19
- font-size: $timedetail-item-text-font-size;
16
+ background-color: $timeselect-timedetail-item-bg-color;
17
+ border-radius: $timeselect-timedetail-item-border-radius;
18
+ color: $timeselect-timedetail-item-text-color;
19
+ font-size: $timeselect-timedetail-item-text-font-size;
20
20
  border: 1px solid transparent;
21
21
  font-weight: bold;
22
22
  &--curr {
23
- background-color: $timedetail-item-cur-bg-color;
24
- border: 1px solid $timedetail-item-cur-border;
25
- color: $timedetail-item-cur-text-color;
23
+ background-color: $timeselect-timedetail-item-cur-bg-color;
24
+ border: 1px solid $timeselect-timedetail-item-cur-border;
25
+ color: $timeselect-timedetail-item-cur-text-color;
26
26
  }
27
27
  }
28
28
  }
29
29
  &__time {
30
30
  margin-bottom: 10px;
31
- color: $timedetail-time-text-color;
32
- font-size: $timedetail-time-font-size;
31
+ color: $timeselect-timedetail-time-text-color;
32
+ font-size: $timeselect-timedetail-time-font-size;
33
33
  }
34
34
  }
35
35
  &__detail--afternoon {
@@ -1,16 +1,16 @@
1
1
  .nut-timepannel {
2
2
  display: flex;
3
- width: 140px;
4
- height: 40px;
5
- padding: 15px;
3
+ width: $timeselect-timepannel-width;
4
+ height: $timeselect-timepannel-height;
5
+ padding: $timeselect-timepannel-padding;
6
6
  align-items: center;
7
7
  justify-content: center;
8
- color: $timepannel-text-color;
9
- font-size: $timepannel-font-size;
8
+ color: $timeselect-timepannel-text-color;
9
+ font-size: $timeselect-timepannel-font-size;
10
10
  box-sizing: border-box;
11
11
  &--curr {
12
- background-color: $timepannel-cur-bg-color;
13
- color: $timepannel-cur-text-color;
12
+ background-color: $timeselect-timepannel-cur-bg-color;
13
+ color: $timeselect-timepannel-cur-text-color;
14
14
  font-weight: bold;
15
15
  }
16
16
  }
@@ -5,9 +5,9 @@
5
5
  overflow: hidden;
6
6
  &__title {
7
7
  display: flex;
8
- width: 100%;
9
- height: 50px;
10
- line-height: 50px;
8
+ width: $timeselect-title-width;
9
+ height: $timeselect-title-height;
10
+ line-height: $timeselect-title-line-height;
11
11
  margin-bottom: 10px;
12
12
  font-size: $timeselect-title-font-size;
13
13
  color: $timeselect-title-color;
@@ -32,27 +32,28 @@
32
32
  justify-content: center;
33
33
  pointer-events: auto;
34
34
  height: 100%;
35
+ background: $toast-cover-bg-color;
35
36
  }
36
37
  &-inner {
37
38
  display: inline-block;
38
- font-size: $font-size-base;
39
+ font-size: $toast-text-font-size;
39
40
  min-width: 40%;
40
41
  max-width: 65%;
41
42
  text-align: center;
42
- padding: 24px 30px;
43
+ padding: $toast-inner-padding;
43
44
  word-break: break-all;
44
- background: rgba(0, 0, 0, 0);
45
- border-radius: 12px;
46
- color: $white;
45
+ background: $toast-inner-bg-color;
46
+ border-radius: $toast-inner-border-radius;
47
+ color: $toast-font-color;
47
48
  }
48
49
  &-text {
49
- font-size: 14px;
50
+ font-size: $toast-text-font-size;
50
51
  &:empty {
51
52
  margin-bottom: -8px;
52
53
  }
53
54
  }
54
55
  &-title {
55
- font-size: 16px;
56
+ font-size: $toast-title-font-size;
56
57
  &:empty {
57
58
  margin-bottom: -8px;
58
59
  }
@@ -21,13 +21,13 @@
21
21
  }
22
22
 
23
23
  &__input {
24
- position: absolute;
24
+ position: absolute !important;
25
25
  top: 0;
26
26
  left: 0;
27
- width: 100%;
28
- height: 100%;
27
+ width: 100% !important;
28
+ height: 100% !important;
29
29
  overflow: hidden;
30
- cursor: pointer;
30
+ cursor: pointer !important;
31
31
  opacity: 0;
32
32
  &:disabled {
33
33
  cursor: not-allowed;