@nutui/nutui-react 0.1.0-beta.1 → 0.1.0-beta.2

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 (131) hide show
  1. package/README.md +50 -135
  2. package/dist/esm/ActionSheet/style/index.js +1 -0
  3. package/dist/esm/Address/style/index.js +1 -0
  4. package/dist/esm/AnimatingNumbers/style/index.js +1 -0
  5. package/dist/esm/Avatar/style/index.js +1 -0
  6. package/dist/esm/BackTop/style/index.js +1 -0
  7. package/dist/esm/BackTop.js +1 -3
  8. package/dist/esm/Badge/style/index.js +1 -0
  9. package/dist/esm/Barrage/style/index.js +1 -0
  10. package/dist/esm/Button/style/index.js +1 -0
  11. package/dist/esm/Calendar/style/index.js +1 -0
  12. package/dist/esm/Calendar.js +86 -0
  13. package/dist/esm/CalendarItem/style/index.js +1 -0
  14. package/dist/esm/CalendarItem.js +554 -0
  15. package/dist/esm/Cell/style/index.js +1 -0
  16. package/dist/esm/CellGroup/style/index.js +1 -0
  17. package/dist/esm/CellGroup.js +33 -0
  18. package/dist/esm/Checkbox/style/index.js +1 -0
  19. package/dist/esm/CheckboxGroup/style/index.js +1 -0
  20. package/dist/esm/CircleProgress/style/index.js +1 -0
  21. package/dist/esm/Col/style/index.js +1 -0
  22. package/dist/esm/Col.js +60 -0
  23. package/dist/esm/Collapse/style/index.js +1 -0
  24. package/dist/esm/CollapseItem/style/index.js +1 -0
  25. package/dist/esm/CollapseItem.js +142 -0
  26. package/dist/esm/Dialog/style/index.js +1 -0
  27. package/dist/esm/Dialog.js +327 -0
  28. package/dist/esm/Divider/style/index.js +1 -0
  29. package/dist/esm/Drag/style/index.js +1 -0
  30. package/dist/esm/Drag.js +101 -139
  31. package/dist/esm/Elevator/style/index.js +1 -0
  32. package/dist/esm/Elevator.js +3 -6
  33. package/dist/esm/FixedNav/style/index.js +1 -0
  34. package/dist/esm/Icon/style/index.js +1 -0
  35. package/dist/esm/Infiniteloading/style/index.js +1 -0
  36. package/dist/esm/Input/style/index.js +1 -0
  37. package/dist/esm/Input.js +1 -1
  38. package/dist/esm/InputNumber/style/index.js +1 -0
  39. package/dist/esm/Layout/style/index.js +1 -0
  40. package/dist/esm/NavBar/style/index.js +1 -0
  41. package/dist/esm/NoticeBar/style/index.js +1 -0
  42. package/dist/esm/Notify/style/index.js +1 -0
  43. package/dist/esm/Overlay/style/index.js +1 -0
  44. package/dist/esm/Pagination/style/index.js +1 -0
  45. package/dist/esm/Picker/style/index.js +1 -0
  46. package/dist/esm/Picker.js +397 -0
  47. package/dist/esm/Popover/style/index.js +1 -0
  48. package/dist/esm/Popover.js +299 -0
  49. package/dist/esm/Popup/style/index.js +1 -0
  50. package/dist/esm/Popup.js +0 -3
  51. package/dist/esm/Price/style/index.js +1 -0
  52. package/dist/esm/Radio/style/index.js +1 -0
  53. package/dist/esm/RadioGroup/style/index.js +1 -0
  54. package/dist/esm/Range/style/index.js +1 -0
  55. package/dist/esm/Rate/style/index.js +1 -0
  56. package/dist/esm/Row/style/index.js +1 -0
  57. package/dist/esm/Row.js +48 -0
  58. package/dist/esm/ShortPassword/style/index.js +1 -0
  59. package/dist/esm/ShortPassword.js +203 -0
  60. package/dist/esm/Signature/style/index.js +1 -0
  61. package/dist/esm/Step/style/index.js +1 -0
  62. package/dist/esm/Steps/style/index.js +1 -0
  63. package/dist/esm/Swiper/style/index.js +1 -0
  64. package/dist/esm/Swiper.js +517 -0
  65. package/dist/esm/SwiperItem/style/index.js +1 -0
  66. package/dist/esm/SwiperItem.js +64 -0
  67. package/dist/esm/Switch/style/index.js +1 -0
  68. package/dist/esm/Switch.js +85 -0
  69. package/dist/esm/Tabbar/style/index.js +1 -0
  70. package/dist/esm/TabbarItem/style/index.js +1 -0
  71. package/dist/esm/Tag/style/index.js +1 -0
  72. package/dist/esm/TextArea/style/index.js +1 -0
  73. package/dist/esm/Toast/style/index.js +1 -0
  74. package/dist/esm/Uploader/style/index.js +1 -0
  75. package/dist/esm/UserContext-b4181162.js +3 -0
  76. package/dist/esm/UserContext-be8097d2.js +3 -0
  77. package/dist/esm/date-649fe493.js +112 -0
  78. package/dist/esm/nutui-react.es.js +13 -0
  79. package/dist/esm/types/src/packages/calendar/calendar.d.ts +14 -0
  80. package/dist/esm/types/src/packages/calendar/index.d.ts +2 -0
  81. package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +17 -0
  82. package/dist/esm/types/src/packages/calendaritem/index.d.ts +2 -0
  83. package/dist/esm/types/src/packages/dialog/Confirm.d.ts +7 -0
  84. package/dist/esm/types/src/packages/dialog/Content.d.ts +10 -0
  85. package/dist/esm/types/src/packages/dialog/DialogWrap.d.ts +11 -0
  86. package/dist/esm/types/src/packages/dialog/DialogWrapper.d.ts +8 -0
  87. package/dist/esm/types/src/packages/dialog/Mask.d.ts +3 -0
  88. package/dist/esm/types/src/packages/dialog/config.d.ts +46 -0
  89. package/dist/esm/types/src/packages/dialog/dialog.d.ts +2 -0
  90. package/dist/esm/types/src/packages/dialog/index.d.ts +2 -0
  91. package/dist/esm/types/src/packages/drag/drag.d.ts +1 -1
  92. package/dist/esm/types/src/packages/nutui.react.build.d.ts +14 -1
  93. package/dist/esm/types/src/packages/nutui.react.d.ts +14 -1
  94. package/dist/esm/types/src/packages/picker/index.d.ts +2 -0
  95. package/dist/esm/types/src/packages/picker/picker.d.ts +19 -0
  96. package/dist/esm/types/src/packages/picker/pickerSlot.d.ts +10 -0
  97. package/dist/esm/types/src/packages/popover/Trigger.d.ts +21 -0
  98. package/dist/esm/types/src/packages/popover/index.d.ts +2 -0
  99. package/dist/esm/types/src/packages/popover/popover.d.ts +13 -0
  100. package/dist/esm/types/src/packages/row/UserContext.d.ts +1 -0
  101. package/dist/esm/types/src/packages/shortpassword/index.d.ts +2 -0
  102. package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +21 -0
  103. package/dist/esm/types/src/packages/steps/UserContext.d.ts +1 -0
  104. package/dist/esm/types/src/packages/swiper/UserContext.d.ts +2 -0
  105. package/dist/esm/types/src/packages/swiper/index.d.ts +2 -0
  106. package/dist/esm/types/src/packages/swiper/swiper.d.ts +26 -0
  107. package/dist/esm/types/src/packages/swiperitem/index.d.ts +2 -0
  108. package/dist/esm/types/src/packages/swiperitem/swiperitem.d.ts +7 -0
  109. package/dist/nutui.react.es.js +7931 -1574
  110. package/dist/nutui.react.umd.js +26 -17
  111. package/dist/packages/actionsheet/actionsheet.scss +1 -0
  112. package/dist/packages/address/address.scss +3 -0
  113. package/dist/packages/backtop/backtop.scss +1 -0
  114. package/dist/packages/button/button.scss +1 -1
  115. package/dist/packages/calendar/calendar.scss +199 -0
  116. package/dist/packages/calendaritem/calendaritem.scss +191 -0
  117. package/dist/packages/dialog/dialog.scss +128 -0
  118. package/dist/packages/drag/drag.scss +2 -1
  119. package/dist/packages/fixednav/fixednav.scss +3 -0
  120. package/dist/packages/icon/icon.scss +1 -1
  121. package/dist/packages/picker/picker.scss +104 -0
  122. package/dist/packages/popover/popover.scss +142 -0
  123. package/dist/packages/popup/popup.scss +2 -0
  124. package/dist/packages/shortpassword/shortpassword.scss +115 -0
  125. package/dist/packages/swiper/swiper.scss +45 -0
  126. package/dist/packages/swiperitem/swiperitem.scss +3 -0
  127. package/dist/style.css +1 -1
  128. package/dist/style.es.js +1 -1
  129. package/dist/styles/themes/default.scss +10 -0
  130. package/dist/styles/variables.scss +25 -0
  131. package/package.json +8 -3
@@ -1,3 +1,4 @@
1
+ @import '../popup/popup.scss';
1
2
  .nut-actionsheet {
2
3
  display: block;
3
4
  .nut-actionsheet__title {
@@ -1,3 +1,6 @@
1
+ @import '../icon/icon.scss';
2
+ @import '../popup/popup.scss';
3
+ @import '../elevator/elevator.scss';
1
4
  .nut-address {
2
5
  display: block;
3
6
  &__header {
@@ -1,3 +1,4 @@
1
+ @import '../icon/icon.scss';
1
2
  .nut-backtop {
2
3
  display: none;
3
4
  position: fixed;
@@ -1,4 +1,4 @@
1
- @import '@nutui/nutui-react/dist/packages/icon/icon.scss';
1
+ @import '../icon/icon.scss';
2
2
  .nut-button {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -0,0 +1,199 @@
1
+ .nut-calendar {
2
+ position: relative;
3
+ display: flex;
4
+ flex: 1;
5
+ height: 728px;
6
+ padding-top: 132px;
7
+ padding-bottom: 78px;
8
+ color: $calendar-base-color;
9
+ font-size: $calendar-base-font;
10
+ background-color: $white;
11
+ overflow: hidden;
12
+
13
+ &.nut-calendar-tile {
14
+ padding-top: 46px;
15
+ padding-bottom: 0;
16
+
17
+ .nut-calendar-header {
18
+ .calendar-title {
19
+ font-size: $calendar-base-font;
20
+ }
21
+ }
22
+ }
23
+
24
+ .nut-calendar-taro {
25
+ height: 60vh;
26
+ }
27
+ .nut-calendar-content {
28
+ overflow-y: auto;
29
+ }
30
+ ::-webkit-scrollbar {
31
+ display: none;
32
+ }
33
+
34
+ // 头部导航
35
+ .nut-calendar-header {
36
+ position: absolute;
37
+ top: -1px;
38
+ left: 0;
39
+ right: 0;
40
+ display: flex;
41
+ flex-direction: column;
42
+ text-align: center;
43
+ padding-top: 1px;
44
+ background-color: $white;
45
+ z-index: 1;
46
+
47
+ .calendar-title {
48
+ padding-top: 22px;
49
+ font-size: $calendar-title-font;
50
+ line-height: 25px;
51
+ border-radius: 12px 12px 0 0;
52
+ }
53
+
54
+ .calendar-curr-month {
55
+ padding: 10px 0 7px;
56
+ line-height: 22px;
57
+ }
58
+
59
+ .calendar-weeks {
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: space-around;
63
+ height: 46px;
64
+ border-radius: 0px 0px 12px 12px;
65
+ box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
66
+
67
+ .calendar-week-item {
68
+ &:first-of-type,
69
+ &:last-of-type {
70
+ color: $calendar-primary-color;
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ // 月份
77
+ .nut-calendar-content {
78
+ flex: 1;
79
+
80
+ .calendar-months-panel {
81
+ position: relative;
82
+ width: 100%;
83
+ height: auto;
84
+ display: block;
85
+
86
+ .calendar-month {
87
+ display: flex;
88
+ flex-direction: column;
89
+ text-align: center;
90
+ }
91
+
92
+ div:nth-of-type(2) {
93
+ .calendar-month-title {
94
+ padding-top: 0;
95
+ }
96
+ }
97
+
98
+ .calendar-loading-tip {
99
+ height: 50px;
100
+ line-height: 50px;
101
+ text-align: center;
102
+ position: absolute;
103
+ top: -50px;
104
+ left: 0;
105
+ right: 0;
106
+ font-size: $calendar-text-font;
107
+ color: $text-color;
108
+ }
109
+
110
+ .calendar-month-title {
111
+ height: 23px;
112
+ line-height: 23px;
113
+ margin: 8px 0;
114
+ }
115
+
116
+ .calendar-month-con {
117
+ overflow: hidden;
118
+
119
+ .calendar-month-item {
120
+ .calendar-month-day:nth-child(7n + 0),
121
+ .calendar-month-day:nth-child(7n + 1) {
122
+ color: $calendar-primary-color;
123
+ }
124
+ }
125
+
126
+ .calendar-month-day {
127
+ float: left;
128
+ width: 14.28%;
129
+ height: 64px;
130
+ display: flex;
131
+ align-items: center;
132
+ justify-content: center;
133
+ flex-direction: column;
134
+ position: relative;
135
+
136
+ .curr-tips,
137
+ .calendar-day-tip {
138
+ position: absolute;
139
+ top: 10px;
140
+ width: 100%;
141
+ font-size: 11px;
142
+ line-height: 12px;
143
+ color: $calendar-primary-color;
144
+ }
145
+
146
+ &-active {
147
+ background-color: $calendar-primary-color;
148
+ color: $white !important;
149
+
150
+ .curr-tips {
151
+ visibility: hidden;
152
+ }
153
+
154
+ .calendar-day-tip {
155
+ color: $white;
156
+ }
157
+ }
158
+
159
+ &-disabled {
160
+ color: $calendar-disable-color !important;
161
+ }
162
+
163
+ &-choose {
164
+ background-color: $calendar-choose-color;
165
+ }
166
+
167
+ .calendar-day {
168
+ padding: 4px 0;
169
+ font-size: $calendar-day-font;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+
176
+ // 底部导航
177
+ .nut-calendar-footer {
178
+ position: absolute;
179
+ left: 0;
180
+ right: 0;
181
+ bottom: -1px;
182
+ display: flex;
183
+ height: 78px;
184
+ width: 100%;
185
+ background-color: $white;
186
+
187
+ .calendar-confirm-btn {
188
+ height: 44px;
189
+ width: 100%;
190
+ margin: 14px 18px;
191
+ border-radius: 22px;
192
+ background: $button-primary-background-color;
193
+ color: $white;
194
+ text-align: center;
195
+ line-height: 44px;
196
+ }
197
+ }
198
+ }
199
+ @import '@nutui/nutui-react/dist/packages/calendaritem/calendaritem.scss';
@@ -0,0 +1,191 @@
1
+ .nut-calendar {
2
+ position: relative;
3
+ display: flex;
4
+ flex: 1;
5
+ height: 518px;
6
+ padding-top: 132px;
7
+ padding-bottom: 78px;
8
+ color: $calendar-base-color;
9
+ font-size: $calendar-base-font;
10
+ background-color: $white;
11
+ overflow: hidden;
12
+
13
+ &.nut-calendar-tile {
14
+ height: 100%;
15
+ padding-top: 46px;
16
+ padding-bottom: 0;
17
+
18
+ .nut-calendar-header {
19
+ .calendar-title {
20
+ font-size: $calendar-base-font;
21
+ }
22
+ }
23
+ }
24
+
25
+ &.nut-calendar-nofooter {
26
+ padding-bottom: 0;
27
+ }
28
+
29
+ // 头部导航
30
+ .nut-calendar-header {
31
+ position: absolute;
32
+ top: -1px;
33
+ left: 0;
34
+ right: 0;
35
+ display: flex;
36
+ flex-direction: column;
37
+ text-align: center;
38
+ padding-top: 1px;
39
+ background-color: $white;
40
+ z-index: 1;
41
+
42
+ .calendar-title {
43
+ padding-top: 22px;
44
+ font-size: $calendar-title-font;
45
+ line-height: 25px;
46
+ border-radius: 12px 12px 0 0;
47
+ }
48
+
49
+ .calendar-curr-month {
50
+ padding: 10px 0 7px;
51
+ line-height: 22px;
52
+ }
53
+
54
+ .calendar-weeks {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: space-around;
58
+ height: 46px;
59
+ box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
60
+
61
+ .calendar-week-item {
62
+ &:first-of-type,
63
+ &:last-of-type {
64
+ color: $calendar-primary-color;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ // 月份
71
+ .nut-calendar-content {
72
+ flex: 1;
73
+
74
+ .calendar-months-panel {
75
+ position: relative;
76
+ width: 100%;
77
+ height: auto;
78
+ display: block;
79
+
80
+ .calendar-month {
81
+ display: flex;
82
+ flex-direction: column;
83
+ text-align: center;
84
+ }
85
+
86
+ div:nth-of-type(2) {
87
+ .calendar-month-title {
88
+ padding-top: 0;
89
+ }
90
+ }
91
+
92
+ .calendar-loading-tip {
93
+ height: 50px;
94
+ line-height: 50px;
95
+ text-align: center;
96
+ position: absolute;
97
+ top: -50px;
98
+ left: 0;
99
+ right: 0;
100
+ font-size: $calendar-text-font;
101
+ color: $text-color;
102
+ }
103
+
104
+ .calendar-month-title {
105
+ height: 23px;
106
+ line-height: 23px;
107
+ margin: 8px 0;
108
+ }
109
+
110
+ .calendar-month-con {
111
+ overflow: hidden;
112
+
113
+ .calendar-month-item {
114
+ .calendar-month-day:nth-child(7n + 0),
115
+ .calendar-month-day:nth-child(7n + 1) {
116
+ color: $calendar-primary-color;
117
+ }
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-day-tip {
131
+ position: absolute;
132
+ top: 10px;
133
+ width: 100%;
134
+ font-size: 16px;
135
+ line-height: 12px;
136
+ color: $calendar-primary-color;
137
+ }
138
+
139
+ &-active {
140
+ background-color: $calendar-primary-color;
141
+ color: $white !important;
142
+
143
+ .calendar-curr-tips {
144
+ // visibility: hidden;
145
+ }
146
+
147
+ .calendar-day-tip {
148
+ color: $white;
149
+ }
150
+ }
151
+
152
+ &-disabled {
153
+ color: $calendar-disable-color !important;
154
+ }
155
+
156
+ &-choose {
157
+ background-color: $calendar-choose-color;
158
+ }
159
+
160
+ .calendar-day {
161
+ padding: 4px 0;
162
+ font-size: $calendar-day-font;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ // 底部导航
170
+ .nut-calendar-footer {
171
+ position: absolute;
172
+ left: 0;
173
+ right: 0;
174
+ bottom: -1px;
175
+ display: flex;
176
+ height: 78px;
177
+ width: 100%;
178
+ background-color: $white;
179
+
180
+ .calendar-confirm-btn {
181
+ height: 44px;
182
+ width: 100%;
183
+ margin: 14px 18px;
184
+ border-radius: 22px;
185
+ background: $button-primary-background-color;
186
+ color: $white;
187
+ text-align: center;
188
+ line-height: 44px;
189
+ }
190
+ }
191
+ }
@@ -0,0 +1,128 @@
1
+ .nut-dialog {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ width: $dialog-width;
6
+ min-height: $dialog-min-height;
7
+ padding: $dialog-padding;
8
+ box-sizing: border-box;
9
+
10
+ &__header {
11
+ display: block;
12
+ text-align: center;
13
+ height: $dialog-header-height;
14
+ font-size: $font-size-3;
15
+ color: $dialog-header-color;
16
+ @include oneline-ellipsis();
17
+ }
18
+ &__content {
19
+ width: 100%;
20
+ overflow: auto;
21
+ flex: 1;
22
+ margin: $dialog-content-margin;
23
+ max-height: $dialog-content-max-height;
24
+ line-height: $dialog-content-line-height;
25
+ font-size: $font-size-1;
26
+ color: $text-color;
27
+ word-wrap: break-word;
28
+ word-break: break-all;
29
+ white-space: pre-wrap;
30
+ }
31
+ &__footer {
32
+ display: flex;
33
+ align-items: center;
34
+ width: 100%;
35
+ justify-content: space-around;
36
+
37
+ &.vertical {
38
+ flex-direction: column;
39
+
40
+ .nut-button {
41
+ min-width: 100%;
42
+ margin: 0;
43
+ &.nut-dialog__footer-cancel {
44
+ border: 0;
45
+ }
46
+ &.nut-dialog__footer-ok {
47
+ margin-top: $dialog-vertical-footer-ok-margin-top;
48
+ }
49
+ }
50
+ }
51
+
52
+ .nut-button {
53
+ min-width: $dialog-footer-button-min-width;
54
+ }
55
+
56
+ &-cancel.nut-dialog__footer-cancel {
57
+ margin-right: $dialog-footer-cancel-margin-right;
58
+ }
59
+ &-ok {
60
+ max-width: $dialog-footer-ok-max-width;
61
+ }
62
+ }
63
+ }
64
+
65
+ .nut-dialog__mask {
66
+ position: fixed;
67
+ top: 0;
68
+ right: 0;
69
+ left: 0;
70
+ bottom: 0;
71
+ background-color: $dialog-mask-background-color;
72
+ z-index: $dialog-mask-z-index;
73
+ }
74
+
75
+ .nut-dialog__wrap {
76
+ position: fixed;
77
+ overflow: auto;
78
+ top: 0;
79
+ right: 0;
80
+ bottom: 0;
81
+ left: 0;
82
+ z-index: $dialog-mask-z-index;
83
+ -webkit-overflow-scrolling: touch;
84
+ outline: 0;
85
+ }
86
+
87
+ .nut-dialog__outer {
88
+ position: fixed;
89
+ max-height: 100%;
90
+ overflow-y: auto;
91
+ background-color: $white;
92
+ -webkit-transition: -webkit-transform 0.2s;
93
+ transition: -webkit-transform 0.2s;
94
+ transition: transform 0.2s;
95
+ transition: transform 0.2s, -webkit-transform 0.2s;
96
+ -webkit-overflow-scrolling: touch;
97
+ top: 50%;
98
+ left: 50%;
99
+ -webkit-transform: translate(-50%, -50%);
100
+ transform: translate(-50%, -50%);
101
+ border-radius: $dialog-outer-bordder-radius;
102
+ z-index: $dialog-outer-z-index;
103
+ animation-duration: 0.3s;
104
+ }
105
+
106
+ .fadeDialog-enter,
107
+ .fadeDialog-appear {
108
+ opacity: 0;
109
+ }
110
+
111
+ .fadeDialog-enter-active,
112
+ .fadeDialog-appear-active {
113
+ opacity: 1;
114
+ transition: opacity 1s cubic-bezier(0.3, 1.3, 0.3, 1);
115
+ }
116
+
117
+ .fadeDialog-exit {
118
+ opacity: 1;
119
+ }
120
+
121
+ .fadeDialog-exit-active {
122
+ opacity: 0;
123
+ transition: opacity 1s cubic-bezier(0.3, 1.3, 0.3, 1);
124
+ }
125
+
126
+ .nut-overflow-hidden {
127
+ overflow: hidden !important;
128
+ }
@@ -1,8 +1,9 @@
1
1
  .nut-drag {
2
2
  position: fixed;
3
- display: inline-block;
3
+ display: inline-flex;
4
4
  z-index: 9997 !important;
5
5
  width: fit-content;
6
6
  height: fit-content;
7
7
  touch-action: none;
8
+ user-select: none;
8
9
  }
@@ -127,3 +127,6 @@
127
127
  }
128
128
  }
129
129
  }
130
+ .nut-drag .nut-fixednav {
131
+ position: inherit;
132
+ }
@@ -1,4 +1,4 @@
1
- @import '@nutui/nutui-react/dist/styles/font/iconfont.css';
1
+ @import '../../styles/font/iconfont.css';
2
2
  .nut-icon {
3
3
  display: inline-block;
4
4
  position: relative;
@@ -0,0 +1,104 @@
1
+ @import '../popup/popup.scss';
2
+ .nut-picker {
3
+ background-color: #fff;
4
+ width: 100%;
5
+ }
6
+ .nut-picker__control {
7
+ display: flex;
8
+ height: 56px;
9
+ font-size: 16px;
10
+ align-items: center;
11
+ justify-content: space-between;
12
+ padding: 15px;
13
+
14
+ .nut-picker__cancel-btn {
15
+ color: #fa2c19;
16
+ }
17
+ .nut-picker__title {
18
+ flex: 1;
19
+ overflow: hidden;
20
+ text-overflow: ellipsis;
21
+ white-space: nowrap;
22
+ }
23
+ }
24
+ .nut-picker__panel {
25
+ height: 178px;
26
+ display: flex;
27
+ }
28
+ .nut-picker-list {
29
+ flex: 1;
30
+ position: relative;
31
+ height: 178px;
32
+ overflow: hidden;
33
+ text-align: center;
34
+ .nut-picker-list-panel {
35
+ transform-style: preserve-3d;
36
+ }
37
+ .nut-picker-mask {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ bottom: 0;
43
+ //background-image: linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.6));
44
+ background-position: top, bottom;
45
+ background-size: 100% 78px;
46
+ background-repeat: no-repeat;
47
+ z-index: 3;
48
+ }
49
+ .nut-picker-indicator {
50
+ position: absolute;
51
+ top: 78px;
52
+ width: 100%;
53
+ height: 34px;
54
+ border-top: 1px solid #ececec;
55
+ border-bottom: 1px solid #ececec;
56
+ z-index: 3;
57
+ }
58
+
59
+ .nut-picker-content,
60
+ .nut-picker-roller {
61
+ position: absolute;
62
+ top: 78px;
63
+ width: 100%;
64
+ height: 36px;
65
+ }
66
+ .nut-picker-content {
67
+ background: #fff;
68
+ z-index: 2;
69
+ overflow: hidden;
70
+ }
71
+ .nut-picker-item,
72
+ .nut-picker-roller-item {
73
+ white-space: nowrap;
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ height: 36px;
77
+ line-height: 36px;
78
+ color: #262626;
79
+ font-size: 12px;
80
+ text-align: center;
81
+ }
82
+ .nut-picker-item {
83
+ font-size: 15px;
84
+ background: #fff;
85
+ }
86
+ .nut-picker-roller {
87
+ z-index: 1;
88
+ transform-style: preserve-3d;
89
+ .nut-picker-roller-item {
90
+ backface-visibility: hidden;
91
+ position: absolute;
92
+ top: 0;
93
+ width: 100%;
94
+ color: #262626;
95
+ }
96
+ .nut-picker-roller-item-hidden {
97
+ visibility: hidden;
98
+ opacity: 0;
99
+ }
100
+ }
101
+ }
102
+ .nut-picker-placeholder {
103
+ height: 1px;
104
+ }