@nutui/nutui-react-taro 3.0.0 → 3.0.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 (247) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/hooks/use-client-rect.js +1 -0
  3. package/dist/cjs/packages/actionsheet/style/style.css +12 -0
  4. package/dist/cjs/packages/address/style/style.css +12 -0
  5. package/dist/cjs/packages/calendar/style/style.css +12 -0
  6. package/dist/cjs/packages/cascader/style/style.css +12 -0
  7. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  8. package/dist/cjs/packages/datepicker/datepicker.js +8 -6
  9. package/dist/cjs/packages/datepicker/style/style.css +82 -0
  10. package/dist/cjs/packages/datepickerview/datepickerview.d.ts +3 -0
  11. package/dist/cjs/packages/datepickerview/datepickerview.js +119 -0
  12. package/dist/cjs/packages/datepickerview/index.d.ts +3 -0
  13. package/dist/cjs/packages/{subsidenavbar → datepickerview}/index.js +2 -2
  14. package/dist/cjs/packages/datepickerview/style/datepickerview.scss +4 -0
  15. package/dist/cjs/packages/datepickerview/style/index.js +2 -0
  16. package/dist/cjs/packages/datepickerview/style/style.css +78 -0
  17. package/dist/cjs/packages/datepickerview/style/style.harmony.css +8 -0
  18. package/dist/cjs/packages/datepickerview/types.d.ts +15 -0
  19. package/dist/cjs/packages/datepickerview/types.js +4 -0
  20. package/dist/cjs/packages/dialog/dialog.js +8 -3
  21. package/dist/cjs/packages/dialog/style/dialog.scss +0 -1
  22. package/dist/cjs/packages/dialog/style/style.css +0 -1
  23. package/dist/cjs/packages/dialog/style/style.harmony.css +0 -1
  24. package/dist/cjs/packages/drag/drag.js +33 -39
  25. package/dist/cjs/packages/drag/style/drag.scss +1 -0
  26. package/dist/cjs/packages/drag/style/style.css +1 -0
  27. package/dist/cjs/packages/drag/style/style.harmony.css +1 -0
  28. package/dist/cjs/packages/fixednav/fixednav.js +20 -14
  29. package/dist/cjs/packages/fixednav/style/fixednav.scss +0 -15
  30. package/dist/cjs/packages/fixednav/style/style.css +0 -14
  31. package/dist/cjs/packages/fixednav/style/style.harmony.css +0 -14
  32. package/dist/cjs/packages/form/form.d.ts +2 -0
  33. package/dist/cjs/packages/form/form.js +11 -2
  34. package/dist/cjs/packages/form/index.d.ts +2 -1
  35. package/dist/cjs/packages/form/index.js +1 -0
  36. package/dist/cjs/packages/form/style/form.scss +0 -66
  37. package/dist/cjs/packages/form/style/style.css +31 -21
  38. package/dist/cjs/packages/form/style/style.harmony.css +1 -67
  39. package/dist/cjs/packages/form/types.d.ts +2 -1
  40. package/dist/cjs/packages/form/useform.d.ts +2 -1
  41. package/dist/cjs/packages/form/useform.js +338 -247
  42. package/dist/cjs/packages/formitem/formitem.d.ts +1 -0
  43. package/dist/cjs/packages/formitem/formitem.js +57 -45
  44. package/dist/cjs/packages/formitem/style/formitem.scss +101 -21
  45. package/dist/cjs/packages/formitem/style/style.css +89 -12
  46. package/dist/cjs/packages/formitem/style/style.harmony.css +89 -12
  47. package/dist/cjs/packages/imagepreview/style/style.css +12 -0
  48. package/dist/cjs/packages/input/input.js +5 -2
  49. package/dist/cjs/packages/input/style/input.scss +6 -4
  50. package/dist/cjs/packages/input/style/style.css +4 -0
  51. package/dist/cjs/packages/input/style/style.harmony.css +8 -0
  52. package/dist/cjs/packages/numberkeyboard/style/style.css +12 -0
  53. package/dist/cjs/packages/nutui.react.build.d.ts +11 -15
  54. package/dist/cjs/packages/nutui.react.build.js +172 -180
  55. package/dist/cjs/packages/nutui.react.d.ts +16 -22
  56. package/dist/cjs/packages/nutui.react.js +177 -187
  57. package/dist/cjs/packages/nutui.react.scss.d.ts +5 -7
  58. package/dist/cjs/packages/nutui.react.scss.js +5 -7
  59. package/dist/cjs/packages/overlay/overlay.js +4 -5
  60. package/dist/cjs/packages/overlay/style/overlay.scss +0 -4
  61. package/dist/cjs/packages/picker/style/index.js +1 -0
  62. package/dist/cjs/packages/picker/style/style.css +82 -0
  63. package/dist/cjs/packages/popover/style/style.css +12 -0
  64. package/dist/cjs/packages/popup/popup.js +17 -11
  65. package/dist/cjs/packages/popup/style/popup.scss +12 -4
  66. package/dist/cjs/packages/popup/style/style.css +12 -0
  67. package/dist/cjs/packages/popup/style/style.harmony.css +12 -0
  68. package/dist/cjs/packages/shortpassword/shortpassword.js +5 -7
  69. package/dist/cjs/packages/shortpassword/style/shortpassword.scss +10 -0
  70. package/dist/cjs/packages/shortpassword/style/style.css +21 -0
  71. package/dist/cjs/packages/shortpassword/style/style.harmony.css +9 -0
  72. package/dist/cjs/packages/signature/signature.js +1 -1
  73. package/dist/cjs/packages/swipe/style/style.css +3 -3
  74. package/dist/cjs/packages/swipe/style/style.harmony.css +3 -3
  75. package/dist/cjs/packages/swipe/style/swipe.scss +7 -3
  76. package/dist/cjs/packages/swipe/swipe.js +14 -15
  77. package/dist/cjs/packages/tabbar/style/style.css +6 -0
  78. package/dist/cjs/packages/tabbaritem/style/style.css +6 -0
  79. package/dist/cjs/packages/tabbaritem/style/style.harmony.css +6 -0
  80. package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +6 -0
  81. package/dist/cjs/packages/tabs/tabs.js +6 -13
  82. package/dist/cjs/packages/textarea/textarea.js +1 -1
  83. package/dist/cjs/packages/timeselect/style/style.css +12 -0
  84. package/dist/cjs/packages/tour/style/style.css +12 -0
  85. package/dist/cjs/utils/get-rect-by-taro.d.ts +1 -1
  86. package/dist/cjs/utils/get-rect-by-taro.js +4 -1
  87. package/dist/cjs/utils/get-system-info.js +4 -5
  88. package/dist/cjs/utils/merge.d.ts +14 -0
  89. package/dist/cjs/utils/merge.js +98 -0
  90. package/dist/cjs/utils/platform-taro.js +4 -5
  91. package/dist/cjs/utils/to-array.d.ts +1 -0
  92. package/dist/cjs/utils/to-array.js +18 -0
  93. package/dist/es/hooks/use-client-rect.js +1 -0
  94. package/dist/es/packages/actionsheet/style/style.css +12 -0
  95. package/dist/es/packages/address/style/style.css +12 -0
  96. package/dist/es/packages/calendar/style/style.css +12 -0
  97. package/dist/es/packages/cascader/style/style.css +12 -0
  98. package/dist/es/packages/configprovider/types.d.ts +1 -1
  99. package/dist/es/packages/datepicker/datepicker.js +8 -6
  100. package/dist/es/packages/datepicker/style/style.css +82 -0
  101. package/dist/es/packages/datepickerview/datepickerview.d.ts +3 -0
  102. package/dist/es/packages/datepickerview/datepickerview.js +107 -0
  103. package/dist/es/packages/datepickerview/index.d.ts +3 -0
  104. package/dist/es/packages/datepickerview/index.js +2 -0
  105. package/dist/es/packages/datepickerview/style/datepickerview.scss +4 -0
  106. package/dist/es/packages/datepickerview/style/index.js +2 -0
  107. package/dist/es/packages/datepickerview/style/style.css +78 -0
  108. package/dist/es/packages/datepickerview/style/style.harmony.css +8 -0
  109. package/dist/es/packages/datepickerview/types.d.ts +15 -0
  110. package/dist/es/packages/datepickerview/types.js +1 -0
  111. package/dist/es/packages/dialog/dialog.js +8 -3
  112. package/dist/es/packages/dialog/style/dialog.scss +0 -1
  113. package/dist/es/packages/dialog/style/style.css +0 -1
  114. package/dist/es/packages/dialog/style/style.harmony.css +0 -1
  115. package/dist/es/packages/drag/drag.js +33 -39
  116. package/dist/es/packages/drag/style/drag.scss +1 -0
  117. package/dist/es/packages/drag/style/style.css +1 -0
  118. package/dist/es/packages/drag/style/style.harmony.css +1 -0
  119. package/dist/es/packages/fixednav/fixednav.js +20 -14
  120. package/dist/es/packages/fixednav/style/fixednav.scss +0 -15
  121. package/dist/es/packages/fixednav/style/style.css +0 -14
  122. package/dist/es/packages/fixednav/style/style.harmony.css +0 -14
  123. package/dist/es/packages/form/form.d.ts +10 -0
  124. package/dist/es/packages/form/form.js +11 -2
  125. package/dist/es/packages/form/index.d.ts +2 -1
  126. package/dist/es/packages/form/index.js +2 -1
  127. package/dist/es/packages/form/style/form.scss +0 -66
  128. package/dist/es/packages/form/style/style.css +31 -21
  129. package/dist/es/packages/form/style/style.harmony.css +1 -67
  130. package/dist/es/packages/form/types.d.ts +2 -1
  131. package/dist/es/packages/form/useform.d.ts +2 -1
  132. package/dist/es/packages/form/useform.js +336 -248
  133. package/dist/es/packages/formitem/formitem.d.ts +1 -0
  134. package/dist/es/packages/formitem/formitem.js +58 -46
  135. package/dist/es/packages/formitem/style/formitem.scss +101 -21
  136. package/dist/es/packages/formitem/style/style.css +89 -12
  137. package/dist/es/packages/formitem/style/style.harmony.css +89 -12
  138. package/dist/es/packages/imagepreview/style/style.css +12 -0
  139. package/dist/es/packages/input/input.js +5 -2
  140. package/dist/es/packages/input/style/input.scss +6 -4
  141. package/dist/es/packages/input/style/style.css +4 -0
  142. package/dist/es/packages/input/style/style.harmony.css +8 -0
  143. package/dist/es/packages/numberkeyboard/style/style.css +12 -0
  144. package/dist/es/packages/nutui.react.build.d.ts +11 -15
  145. package/dist/es/packages/nutui.react.build.js +11 -15
  146. package/dist/es/packages/overlay/overlay.js +4 -5
  147. package/dist/es/packages/overlay/style/overlay.scss +0 -4
  148. package/dist/es/packages/picker/style/index.js +1 -0
  149. package/dist/es/packages/picker/style/style.css +82 -0
  150. package/dist/es/packages/popover/style/style.css +12 -0
  151. package/dist/es/packages/popup/popup.js +17 -11
  152. package/dist/es/packages/popup/style/popup.scss +12 -4
  153. package/dist/es/packages/popup/style/style.css +12 -0
  154. package/dist/es/packages/popup/style/style.harmony.css +12 -0
  155. package/dist/es/packages/shortpassword/shortpassword.js +5 -7
  156. package/dist/es/packages/shortpassword/style/shortpassword.scss +10 -0
  157. package/dist/es/packages/shortpassword/style/style.css +21 -0
  158. package/dist/es/packages/shortpassword/style/style.harmony.css +9 -0
  159. package/dist/es/packages/signature/signature.js +2 -2
  160. package/dist/es/packages/swipe/style/style.css +3 -3
  161. package/dist/es/packages/swipe/style/style.harmony.css +3 -3
  162. package/dist/es/packages/swipe/style/swipe.scss +7 -3
  163. package/dist/es/packages/swipe/swipe.js +14 -15
  164. package/dist/es/packages/tabbar/style/style.css +6 -0
  165. package/dist/es/packages/tabbaritem/style/style.css +6 -0
  166. package/dist/es/packages/tabbaritem/style/style.harmony.css +6 -0
  167. package/dist/es/packages/tabbaritem/style/tabbaritem.scss +6 -0
  168. package/dist/es/packages/tabs/tabs.js +6 -13
  169. package/dist/es/packages/textarea/textarea.js +2 -2
  170. package/dist/es/packages/timeselect/style/style.css +12 -0
  171. package/dist/es/packages/tour/style/style.css +12 -0
  172. package/dist/es/utils/get-rect-by-taro.d.ts +1 -1
  173. package/dist/es/utils/get-rect-by-taro.js +4 -1
  174. package/dist/es/utils/get-system-info.js +4 -4
  175. package/dist/es/utils/merge.d.ts +14 -0
  176. package/dist/es/utils/merge.js +68 -0
  177. package/dist/es/utils/platform-taro.js +4 -4
  178. package/dist/es/utils/to-array.d.ts +1 -0
  179. package/dist/es/utils/to-array.js +8 -0
  180. package/dist/nutui.react.umd.js +5593 -5442
  181. package/dist/style.css +1 -1
  182. package/dist/style.scss +34 -36
  183. package/dist/styles/variables-jmapp.scss +0 -50
  184. package/dist/styles/variables-jrkf.scss +0 -50
  185. package/dist/styles/variables.scss +0 -49
  186. package/package.json +1 -1
  187. package/dist/cjs/packages/sidenavbar/context.d.ts +0 -1
  188. package/dist/cjs/packages/sidenavbar/context.js +0 -12
  189. package/dist/cjs/packages/sidenavbar/index.d.ts +0 -3
  190. package/dist/cjs/packages/sidenavbar/index.js +0 -12
  191. package/dist/cjs/packages/sidenavbar/sidenavbar.d.ts +0 -14
  192. package/dist/cjs/packages/sidenavbar/sidenavbar.js +0 -75
  193. package/dist/cjs/packages/sidenavbar/style/index.js +0 -2
  194. package/dist/cjs/packages/sidenavbar/style/sidenavbar.scss +0 -89
  195. package/dist/cjs/packages/sidenavbar/style/style.css +0 -443
  196. package/dist/cjs/packages/sidenavbar/style/style.harmony.css +0 -74
  197. package/dist/cjs/packages/sidenavbar/utils.d.ts +0 -3
  198. package/dist/cjs/packages/sidenavbar/utils.js +0 -23
  199. package/dist/cjs/packages/sidenavbaritem/index.d.ts +0 -3
  200. package/dist/cjs/packages/sidenavbaritem/index.js +0 -12
  201. package/dist/cjs/packages/sidenavbaritem/sidenavbaritem.d.ts +0 -11
  202. package/dist/cjs/packages/sidenavbaritem/sidenavbaritem.js +0 -34
  203. package/dist/cjs/packages/sidenavbaritem/style/index.js +0 -1
  204. package/dist/cjs/packages/sidenavbaritem/style/sidenavbaritem.scss +0 -13
  205. package/dist/cjs/packages/sidenavbaritem/style/style.css +0 -14
  206. package/dist/cjs/packages/sidenavbaritem/style/style.harmony.css +0 -14
  207. package/dist/cjs/packages/subsidenavbar/index.d.ts +0 -3
  208. package/dist/cjs/packages/subsidenavbar/style/css.js +0 -1
  209. package/dist/cjs/packages/subsidenavbar/style/index.js +0 -1
  210. package/dist/cjs/packages/subsidenavbar/style/style.css +0 -20
  211. package/dist/cjs/packages/subsidenavbar/style/style.harmony.css +0 -20
  212. package/dist/cjs/packages/subsidenavbar/style/subsidenavbar.scss +0 -26
  213. package/dist/cjs/packages/subsidenavbar/subsidenavbar.d.ts +0 -13
  214. package/dist/cjs/packages/subsidenavbar/subsidenavbar.js +0 -90
  215. package/dist/es/packages/sidenavbar/context.d.ts +0 -1
  216. package/dist/es/packages/sidenavbar/context.js +0 -2
  217. package/dist/es/packages/sidenavbar/index.d.ts +0 -3
  218. package/dist/es/packages/sidenavbar/index.js +0 -2
  219. package/dist/es/packages/sidenavbar/sidenavbar.d.ts +0 -38
  220. package/dist/es/packages/sidenavbar/sidenavbar.js +0 -63
  221. package/dist/es/packages/sidenavbar/style/css.js +0 -1
  222. package/dist/es/packages/sidenavbar/style/index.js +0 -2
  223. package/dist/es/packages/sidenavbar/style/sidenavbar.scss +0 -89
  224. package/dist/es/packages/sidenavbar/style/style.css +0 -443
  225. package/dist/es/packages/sidenavbar/style/style.harmony.css +0 -74
  226. package/dist/es/packages/sidenavbar/utils.d.ts +0 -3
  227. package/dist/es/packages/sidenavbar/utils.js +0 -14
  228. package/dist/es/packages/sidenavbaritem/index.d.ts +0 -3
  229. package/dist/es/packages/sidenavbaritem/index.js +0 -2
  230. package/dist/es/packages/sidenavbaritem/sidenavbaritem.d.ts +0 -11
  231. package/dist/es/packages/sidenavbaritem/sidenavbaritem.js +0 -23
  232. package/dist/es/packages/sidenavbaritem/style/css.js +0 -1
  233. package/dist/es/packages/sidenavbaritem/style/index.js +0 -1
  234. package/dist/es/packages/sidenavbaritem/style/sidenavbaritem.scss +0 -13
  235. package/dist/es/packages/sidenavbaritem/style/style.css +0 -14
  236. package/dist/es/packages/sidenavbaritem/style/style.harmony.css +0 -14
  237. package/dist/es/packages/subsidenavbar/index.d.ts +0 -3
  238. package/dist/es/packages/subsidenavbar/index.js +0 -2
  239. package/dist/es/packages/subsidenavbar/style/css.js +0 -1
  240. package/dist/es/packages/subsidenavbar/style/index.js +0 -1
  241. package/dist/es/packages/subsidenavbar/style/style.css +0 -20
  242. package/dist/es/packages/subsidenavbar/style/style.harmony.css +0 -20
  243. package/dist/es/packages/subsidenavbar/style/subsidenavbar.scss +0 -26
  244. package/dist/es/packages/subsidenavbar/subsidenavbar.d.ts +0 -13
  245. package/dist/es/packages/subsidenavbar/subsidenavbar.js +0 -79
  246. /package/dist/cjs/packages/{sidenavbar → datepickerview}/style/css.js +0 -0
  247. /package/dist/{cjs/packages/sidenavbaritem → es/packages/datepickerview}/style/css.js +0 -0
@@ -238,6 +238,9 @@
238
238
  from {
239
239
  transform: translate3d(0, -100%, 0);
240
240
  }
241
+ to {
242
+ transform: translate3d(0, 0%, 0);
243
+ }
241
244
  }
242
245
  @keyframes popup-slide-top-exit {
243
246
  to {
@@ -259,6 +262,9 @@
259
262
  from {
260
263
  transform: translate3d(100%, 0, 0);
261
264
  }
265
+ to {
266
+ transform: translate3d(0%, 0, 0);
267
+ }
262
268
  }
263
269
  @keyframes popup-slide-right-exit {
264
270
  to {
@@ -280,6 +286,9 @@
280
286
  from {
281
287
  transform: translate3d(0, 100%, 0);
282
288
  }
289
+ to {
290
+ transform: translate3d(0, 0%, 0);
291
+ }
283
292
  }
284
293
  @keyframes slide-bottom-exit {
285
294
  to {
@@ -301,6 +310,9 @@
301
310
  from {
302
311
  transform: translate3d(-100%, 0, 0);
303
312
  }
313
+ to {
314
+ transform: translate3d(0%, 0, 0);
315
+ }
304
316
  }
305
317
  @keyframes popup-slide-left-exit {
306
318
  to {
@@ -27,6 +27,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
27
27
  plain: false
28
28
  });
29
29
  export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
30
+ var classPrefix = 'nut-input';
30
31
  var rtl = useRtl();
31
32
  var locale = useConfig().locale;
32
33
  var _ref = _object_spread({}, defaultProps, props), type = _ref.type, name = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, plain = _ref.plain, onChange = _ref.onChange, onFocus = _ref.onFocus, onBlur = _ref.onBlur, onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, defaultValue = _ref.defaultValue, _value = _ref.value, rest = _object_without_properties(_ref, [
@@ -81,7 +82,6 @@ export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
81
82
  };
82
83
  });
83
84
  var inputClass = useCallback(function() {
84
- var classPrefix = 'nut-input';
85
85
  return [
86
86
  classPrefix,
87
87
  "".concat(disabled ? "".concat(classPrefix, "-disabled") : ''),
@@ -154,11 +154,14 @@ export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
154
154
  name: name,
155
155
  className: "nut-input-native",
156
156
  ref: inputRef,
157
- style: getTextAlign(),
157
+ style: {
158
+ textAlign: getTextAlign()
159
+ },
158
160
  type: inputType(type),
159
161
  password: type === 'password',
160
162
  maxlength: maxLength,
161
163
  placeholder: placeholder === undefined ? locale.placeholder : placeholder,
164
+ placeholderClass: "".concat(classPrefix, "-placeholder"),
162
165
  disabled: disabled || readOnly,
163
166
  value: value,
164
167
  focus: autoFocus,
@@ -8,6 +8,12 @@
8
8
  font-size: $input-font-size;
9
9
  box-sizing: border-box;
10
10
 
11
+ .nut-input-native .weui-input::placeholder,
12
+ &-placeholder {
13
+ color: rgb(117, 117, 117);
14
+ font-size: $input-font-size;
15
+ }
16
+
11
17
  .nut-icon {
12
18
  color: $color-text-disabled;
13
19
  width: 14px;
@@ -52,7 +58,3 @@
52
58
  -webkit-text-fill-color: $color-text-disabled;
53
59
  }
54
60
  }
55
-
56
- .nut-input-clear {
57
- // flex: 0;
58
- }
@@ -12,6 +12,10 @@
12
12
  font-size: var(--nutui-input-font-size, var(--nutui-font-size-base, 14px));
13
13
  box-sizing: border-box;
14
14
  }
15
+ .nut-input .nut-input-native .weui-input::placeholder, .nut-input-placeholder {
16
+ color: rgb(117, 117, 117);
17
+ font-size: var(--nutui-input-font-size, var(--nutui-font-size-base, 14px));
18
+ }
15
19
  .nut-input .nut-icon {
16
20
  color: var(--nutui-color-text-disabled, #c2c4cc);
17
21
  width: 14px;
@@ -12,6 +12,14 @@
12
12
  font-size: 14px;
13
13
  box-sizing: border-box;
14
14
  }
15
+ .nut-input .nut-input-native .weui-input::placeholder {
16
+ color: rgb(117, 117, 117);
17
+ font-size: 14px;
18
+ }
19
+ .nut-input-placeholder {
20
+ color: rgb(117, 117, 117);
21
+ font-size: 14px;
22
+ }
15
23
  .nut-input .nut-icon {
16
24
  color: #c2c4cc;
17
25
  width: 14px;
@@ -238,6 +238,9 @@
238
238
  from {
239
239
  transform: translate3d(0, -100%, 0);
240
240
  }
241
+ to {
242
+ transform: translate3d(0, 0%, 0);
243
+ }
241
244
  }
242
245
  @keyframes popup-slide-top-exit {
243
246
  to {
@@ -259,6 +262,9 @@
259
262
  from {
260
263
  transform: translate3d(100%, 0, 0);
261
264
  }
265
+ to {
266
+ transform: translate3d(0%, 0, 0);
267
+ }
262
268
  }
263
269
  @keyframes popup-slide-right-exit {
264
270
  to {
@@ -280,6 +286,9 @@
280
286
  from {
281
287
  transform: translate3d(0, 100%, 0);
282
288
  }
289
+ to {
290
+ transform: translate3d(0, 0%, 0);
291
+ }
283
292
  }
284
293
  @keyframes slide-bottom-exit {
285
294
  to {
@@ -301,6 +310,9 @@
301
310
  from {
302
311
  transform: translate3d(-100%, 0, 0);
303
312
  }
313
+ to {
314
+ transform: translate3d(0%, 0, 0);
315
+ }
304
316
  }
305
317
  @keyframes popup-slide-left-exit {
306
318
  to {
@@ -22,12 +22,12 @@ import Col from "./col/index";
22
22
  export * from "./col/index";
23
23
  import Row from "./row/index";
24
24
  export * from "./row/index";
25
+ import SafeArea from "./safearea/index";
26
+ export * from "./safearea/index";
25
27
  import Space from "./space/index";
26
28
  export * from "./space/index";
27
29
  import Sticky from "./sticky/index";
28
30
  export * from "./sticky/index";
29
- import SafeArea from "./safearea/index";
30
- export * from "./safearea/index";
31
31
  import BackTop from "./backtop/index";
32
32
  export * from "./backtop/index";
33
33
  import Elevator from "./elevator/index";
@@ -40,16 +40,10 @@ import HoverButtonItem from "./hoverbuttonitem/index";
40
40
  export * from "./hoverbuttonitem/index";
41
41
  import NavBar from "./navbar/index";
42
42
  export * from "./navbar/index";
43
- import SideNavBar from "./sidenavbar/index";
44
- export * from "./sidenavbar/index";
45
43
  import SideBar from "./sidebar/index";
46
44
  export * from "./sidebar/index";
47
45
  import SideBarItem from "./sidebaritem/index";
48
46
  export * from "./sidebaritem/index";
49
- import SideNavBarItem from "./sidenavbaritem/index";
50
- export * from "./sidenavbaritem/index";
51
- import SubSideNavBar from "./subsidenavbar/index";
52
- export * from "./subsidenavbar/index";
53
47
  import Tabbar from "./tabbar/index";
54
48
  export * from "./tabbar/index";
55
49
  import TabbarItem from "./tabbaritem/index";
@@ -74,6 +68,8 @@ import CheckboxGroup from "./checkboxgroup/index";
74
68
  export * from "./checkboxgroup/index";
75
69
  import DatePicker from "./datepicker/index";
76
70
  export * from "./datepicker/index";
71
+ import DatePickerView from "./datepickerview/index";
72
+ export * from "./datepickerview/index";
77
73
  import Form from "./form/index";
78
74
  export * from "./form/index";
79
75
  import FormItem from "./formitem/index";
@@ -122,8 +118,6 @@ import Drag from "./drag/index";
122
118
  export * from "./drag/index";
123
119
  import Empty from "./empty/index";
124
120
  export * from "./empty/index";
125
- import ResultPage from "./resultpage/index";
126
- export * from "./resultpage/index";
127
121
  import InfiniteLoading from "./infiniteloading/index";
128
122
  export * from "./infiniteloading/index";
129
123
  import Loading from "./loading/index";
@@ -138,6 +132,8 @@ import Popup from "./popup/index";
138
132
  export * from "./popup/index";
139
133
  import PullToRefresh from "./pulltorefresh/index";
140
134
  export * from "./pulltorefresh/index";
135
+ import ResultPage from "./resultpage/index";
136
+ export * from "./resultpage/index";
141
137
  import Skeleton from "./skeleton/index";
142
138
  export * from "./skeleton/index";
143
139
  import Swipe from "./swipe/index";
@@ -172,12 +168,12 @@ import Lottie from "./lottie/index";
172
168
  export * from "./lottie/index";
173
169
  import Pagination from "./pagination/index";
174
170
  export * from "./pagination/index";
175
- import Segmented from "./segmented/index";
176
- export * from "./segmented/index";
177
171
  import Price from "./price/index";
178
172
  export * from "./price/index";
179
173
  import Progress from "./progress/index";
180
174
  export * from "./progress/index";
175
+ import Segmented from "./segmented/index";
176
+ export * from "./segmented/index";
181
177
  import Step from "./step/index";
182
178
  export * from "./step/index";
183
179
  import Steps from "./steps/index";
@@ -196,6 +192,8 @@ import Video from "./video/index";
196
192
  export * from "./video/index";
197
193
  import VirtualList from "./virtuallist/index";
198
194
  export * from "./virtuallist/index";
195
+ import AvatarCropper from "./avatarcropper/index";
196
+ export * from "./avatarcropper/index";
199
197
  import Barrage from "./barrage/index";
200
198
  export * from "./barrage/index";
201
199
  import Card from "./card/index";
@@ -208,6 +206,4 @@ import TrendArrow from "./trendarrow/index";
208
206
  export * from "./trendarrow/index";
209
207
  import WaterMark from "./watermark/index";
210
208
  export * from "./watermark/index";
211
- import AvatarCropper from "./avatarcropper/index";
212
- export * from "./avatarcropper/index";
213
- export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Divider, Grid, GridItem, Layout, Col, Row, Space, Sticky, SafeArea, BackTop, Elevator, FixedNav, HoverButton, HoverButtonItem, NavBar, SideNavBar, SideBar, SideBarItem, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, CalendarCard, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, PickerView, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, ResultPage, InfiniteLoading, Loading, NoticeBar, Notify, Popover, Popup, PullToRefresh, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Lottie, Pagination, Segmented, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Tour, Video, VirtualList, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark, AvatarCropper };
209
+ export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Divider, Grid, GridItem, Layout, Col, Row, SafeArea, Space, Sticky, BackTop, Elevator, FixedNav, HoverButton, HoverButtonItem, NavBar, SideBar, SideBarItem, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, CalendarCard, Cascader, Checkbox, CheckboxGroup, DatePicker, DatePickerView, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, PickerView, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, Loading, NoticeBar, Notify, Popover, Popup, PullToRefresh, ResultPage, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Lottie, Pagination, Price, Progress, Segmented, Step, Steps, Swiper, SwiperItem, Table, Tag, Tour, Video, VirtualList, AvatarCropper, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
@@ -22,12 +22,12 @@ import Col from "./col/index";
22
22
  export * from "./col/index";
23
23
  import Row from "./row/index";
24
24
  export * from "./row/index";
25
+ import SafeArea from "./safearea/index";
26
+ export * from "./safearea/index";
25
27
  import Space from "./space/index";
26
28
  export * from "./space/index";
27
29
  import Sticky from "./sticky/index";
28
30
  export * from "./sticky/index";
29
- import SafeArea from "./safearea/index";
30
- export * from "./safearea/index";
31
31
  import BackTop from "./backtop/index";
32
32
  export * from "./backtop/index";
33
33
  import Elevator from "./elevator/index";
@@ -40,16 +40,10 @@ import HoverButtonItem from "./hoverbuttonitem/index";
40
40
  export * from "./hoverbuttonitem/index";
41
41
  import NavBar from "./navbar/index";
42
42
  export * from "./navbar/index";
43
- import SideNavBar from "./sidenavbar/index";
44
- export * from "./sidenavbar/index";
45
43
  import SideBar from "./sidebar/index";
46
44
  export * from "./sidebar/index";
47
45
  import SideBarItem from "./sidebaritem/index";
48
46
  export * from "./sidebaritem/index";
49
- import SideNavBarItem from "./sidenavbaritem/index";
50
- export * from "./sidenavbaritem/index";
51
- import SubSideNavBar from "./subsidenavbar/index";
52
- export * from "./subsidenavbar/index";
53
47
  import Tabbar from "./tabbar/index";
54
48
  export * from "./tabbar/index";
55
49
  import TabbarItem from "./tabbaritem/index";
@@ -74,6 +68,8 @@ import CheckboxGroup from "./checkboxgroup/index";
74
68
  export * from "./checkboxgroup/index";
75
69
  import DatePicker from "./datepicker/index";
76
70
  export * from "./datepicker/index";
71
+ import DatePickerView from "./datepickerview/index";
72
+ export * from "./datepickerview/index";
77
73
  import Form from "./form/index";
78
74
  export * from "./form/index";
79
75
  import FormItem from "./formitem/index";
@@ -122,8 +118,6 @@ import Drag from "./drag/index";
122
118
  export * from "./drag/index";
123
119
  import Empty from "./empty/index";
124
120
  export * from "./empty/index";
125
- import ResultPage from "./resultpage/index";
126
- export * from "./resultpage/index";
127
121
  import InfiniteLoading from "./infiniteloading/index";
128
122
  export * from "./infiniteloading/index";
129
123
  import Loading from "./loading/index";
@@ -138,6 +132,8 @@ import Popup from "./popup/index";
138
132
  export * from "./popup/index";
139
133
  import PullToRefresh from "./pulltorefresh/index";
140
134
  export * from "./pulltorefresh/index";
135
+ import ResultPage from "./resultpage/index";
136
+ export * from "./resultpage/index";
141
137
  import Skeleton from "./skeleton/index";
142
138
  export * from "./skeleton/index";
143
139
  import Swipe from "./swipe/index";
@@ -172,12 +168,12 @@ import Lottie from "./lottie/index";
172
168
  export * from "./lottie/index";
173
169
  import Pagination from "./pagination/index";
174
170
  export * from "./pagination/index";
175
- import Segmented from "./segmented/index";
176
- export * from "./segmented/index";
177
171
  import Price from "./price/index";
178
172
  export * from "./price/index";
179
173
  import Progress from "./progress/index";
180
174
  export * from "./progress/index";
175
+ import Segmented from "./segmented/index";
176
+ export * from "./segmented/index";
181
177
  import Step from "./step/index";
182
178
  export * from "./step/index";
183
179
  import Steps from "./steps/index";
@@ -196,6 +192,8 @@ import Video from "./video/index";
196
192
  export * from "./video/index";
197
193
  import VirtualList from "./virtuallist/index";
198
194
  export * from "./virtuallist/index";
195
+ import AvatarCropper from "./avatarcropper/index";
196
+ export * from "./avatarcropper/index";
199
197
  import Barrage from "./barrage/index";
200
198
  export * from "./barrage/index";
201
199
  import Card from "./card/index";
@@ -208,6 +206,4 @@ import TrendArrow from "./trendarrow/index";
208
206
  export * from "./trendarrow/index";
209
207
  import WaterMark from "./watermark/index";
210
208
  export * from "./watermark/index";
211
- import AvatarCropper from "./avatarcropper/index";
212
- export * from "./avatarcropper/index";
213
- export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Divider, Grid, GridItem, Layout, Col, Row, Space, Sticky, SafeArea, BackTop, Elevator, FixedNav, HoverButton, HoverButtonItem, NavBar, SideNavBar, SideBar, SideBarItem, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, CalendarCard, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, PickerView, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, ResultPage, InfiniteLoading, Loading, NoticeBar, Notify, Popover, Popup, PullToRefresh, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Lottie, Pagination, Segmented, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Tour, Video, VirtualList, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark, AvatarCropper };
209
+ export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Divider, Grid, GridItem, Layout, Col, Row, SafeArea, Space, Sticky, BackTop, Elevator, FixedNav, HoverButton, HoverButtonItem, NavBar, SideBar, SideBarItem, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, CalendarCard, Cascader, Checkbox, CheckboxGroup, DatePicker, DatePickerView, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, PickerView, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, Loading, NoticeBar, Notify, Popover, Popup, PullToRefresh, ResultPage, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Lottie, Pagination, Price, Progress, Segmented, Step, Steps, Swiper, SwiperItem, Table, Tag, Tour, Video, VirtualList, AvatarCropper, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
@@ -8,7 +8,6 @@ import classNames from "classnames";
8
8
  import { View } from "@tarojs/components";
9
9
  import { ComponentDefaults } from "../../utils/typings";
10
10
  import { useLockScrollTaro } from "../../hooks/use-lock-scoll-taro";
11
- import { harmony } from "../../utils/platform-taro";
12
11
  export var defaultOverlayProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
13
12
  zIndex: 1000,
14
13
  duration: 300,
@@ -42,9 +41,9 @@ export var Overlay = function(props) {
42
41
  visible
43
42
  ]);
44
43
  var classes = classNames(classPrefix, className);
45
- var styles = _object_spread_props(_object_spread({}, style), {
44
+ var styles = _object_spread({
46
45
  zIndex: zIndex
47
- });
46
+ }, style);
48
47
  var handleClick = function(e) {
49
48
  if (closeOnOverlayClick) {
50
49
  onClick && onClick(e);
@@ -60,7 +59,7 @@ export var Overlay = function(props) {
60
59
  onClick: handleClick
61
60
  }), children);
62
61
  };
63
- return /*#__PURE__*/ React.createElement(React.Fragment, null, !harmony() ? /*#__PURE__*/ React.createElement(CSSTransition, {
62
+ return /*#__PURE__*/ React.createElement(CSSTransition, {
64
63
  nodeRef: nodeRef,
65
64
  classNames: "".concat(classPrefix, "-slide"),
66
65
  unmountOnExit: true,
@@ -68,6 +67,6 @@ export var Overlay = function(props) {
68
67
  in: innerVisible,
69
68
  onEntered: afterShow,
70
69
  onExited: afterClose
71
- }, renderOverlay()) : innerVisible && renderOverlay());
70
+ }, renderOverlay());
72
71
  };
73
72
  Overlay.displayName = 'NutOverlay';
@@ -19,11 +19,9 @@
19
19
  0% {
20
20
  opacity: 0;
21
21
  }
22
-
23
22
  1% {
24
23
  opacity: 0;
25
24
  }
26
-
27
25
  100% {
28
26
  opacity: 1;
29
27
  }
@@ -33,11 +31,9 @@
33
31
  0% {
34
32
  opacity: 1;
35
33
  }
36
-
37
34
  1% {
38
35
  opacity: 1;
39
36
  }
40
-
41
37
  100% {
42
38
  opacity: 0;
43
39
  }
@@ -1,2 +1,3 @@
1
1
  import '../../popup/style';
2
+ import '../../pickerview/style';
2
3
  import './picker.scss';
@@ -238,6 +238,9 @@
238
238
  from {
239
239
  transform: translate3d(0, -100%, 0);
240
240
  }
241
+ to {
242
+ transform: translate3d(0, 0%, 0);
243
+ }
241
244
  }
242
245
  @keyframes popup-slide-top-exit {
243
246
  to {
@@ -259,6 +262,9 @@
259
262
  from {
260
263
  transform: translate3d(100%, 0, 0);
261
264
  }
265
+ to {
266
+ transform: translate3d(0%, 0, 0);
267
+ }
262
268
  }
263
269
  @keyframes popup-slide-right-exit {
264
270
  to {
@@ -280,6 +286,9 @@
280
286
  from {
281
287
  transform: translate3d(0, 100%, 0);
282
288
  }
289
+ to {
290
+ transform: translate3d(0, 0%, 0);
291
+ }
283
292
  }
284
293
  @keyframes slide-bottom-exit {
285
294
  to {
@@ -301,6 +310,9 @@
301
310
  from {
302
311
  transform: translate3d(-100%, 0, 0);
303
312
  }
313
+ to {
314
+ transform: translate3d(0%, 0, 0);
315
+ }
304
316
  }
305
317
  @keyframes popup-slide-left-exit {
306
318
  to {
@@ -371,6 +383,76 @@
371
383
  right: 0;
372
384
  }
373
385
 
386
+ .nut-pickerview {
387
+ --nutui-picker-item-height: 36px;
388
+ position: relative;
389
+ display: flex;
390
+ width: 100%;
391
+ height: calc(var(--nutui-picker-item-height, 36px) * 7);
392
+ overflow: hidden;
393
+ }
394
+ .nut-pickerview-mask, .nut-pickerview-indicator {
395
+ position: absolute;
396
+ left: 0;
397
+ right: 0;
398
+ z-index: 3;
399
+ pointer-events: none;
400
+ }
401
+ .nut-pickerview-mask {
402
+ top: 0;
403
+ bottom: 0;
404
+ background-image: var(--picker-mask-background, linear-gradient(180deg, var(--nutui-white-12), var(--nutui-white-7)), linear-gradient(0deg, var(--nutui-white-12), var(--nutui-white-7)));
405
+ background-position: top, bottom;
406
+ background-size: 100% calc((var(--nutui-picker-item-height, 36px) * 7 - var(--nutui-picker-item-height, 36px)) / 2);
407
+ background-repeat: no-repeat;
408
+ transform: translateZ(0);
409
+ }
410
+ .nut-pickerview-indicator {
411
+ top: calc((var(--nutui-picker-item-height, 36px) * 7 - var(--nutui-picker-item-height, 36px)) / 2);
412
+ height: var(--nutui-picker-item-height, 36px);
413
+ border: var(--nutui-picker-item-active-line-border, 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
414
+ border-left: 0;
415
+ border-right: 0;
416
+ box-sizing: border-box;
417
+ }
418
+ .nut-pickerview-list {
419
+ position: relative;
420
+ flex: 1;
421
+ height: calc(var(--nutui-picker-item-height, 36px) * 7);
422
+ overflow: hidden;
423
+ touch-action: none;
424
+ }
425
+ .nut-pickerview-roller {
426
+ position: absolute;
427
+ top: calc((var(--nutui-picker-item-height, 36px) * 7 - var(--nutui-picker-item-height, 36px)) / 2);
428
+ width: 100%;
429
+ height: var(--nutui-picker-item-height, 36px);
430
+ z-index: 1;
431
+ transform-style: preserve-3d;
432
+ }
433
+ .nut-pickerview-roller-item {
434
+ position: absolute;
435
+ top: 0;
436
+ backface-visibility: hidden;
437
+ -moz-backface-visibility: hidden;
438
+ -webkit-backface-visibility: hidden;
439
+ }
440
+ .nut-pickerview-roller-item-hidden {
441
+ visibility: hidden;
442
+ opacity: 0;
443
+ }
444
+ .nut-pickerview-roller-item, .nut-pickerview-roller-item-tiled {
445
+ width: 100%;
446
+ height: var(--nutui-picker-item-height, 36px);
447
+ line-height: var(--nutui-picker-item-height, 36px);
448
+ color: var(--nutui-picker-item-text-color, var(--nutui-color-title, #1a1a1a));
449
+ font-size: var(--nutui-picker-item-text-font-size, var(--nutui-font-size-base, 14px));
450
+ text-align: center;
451
+ overflow: hidden;
452
+ text-overflow: ellipsis;
453
+ white-space: nowrap;
454
+ }
455
+
374
456
  .nut-picker {
375
457
  background-color: var(--nutui-color-background-overlay, #ffffff);
376
458
  width: 100%;
@@ -238,6 +238,9 @@
238
238
  from {
239
239
  transform: translate3d(0, -100%, 0);
240
240
  }
241
+ to {
242
+ transform: translate3d(0, 0%, 0);
243
+ }
241
244
  }
242
245
  @keyframes popup-slide-top-exit {
243
246
  to {
@@ -259,6 +262,9 @@
259
262
  from {
260
263
  transform: translate3d(100%, 0, 0);
261
264
  }
265
+ to {
266
+ transform: translate3d(0%, 0, 0);
267
+ }
262
268
  }
263
269
  @keyframes popup-slide-right-exit {
264
270
  to {
@@ -280,6 +286,9 @@
280
286
  from {
281
287
  transform: translate3d(0, 100%, 0);
282
288
  }
289
+ to {
290
+ transform: translate3d(0, 0%, 0);
291
+ }
283
292
  }
284
293
  @keyframes slide-bottom-exit {
285
294
  to {
@@ -301,6 +310,9 @@
301
310
  from {
302
311
  transform: translate3d(-100%, 0, 0);
303
312
  }
313
+ to {
314
+ transform: translate3d(0%, 0, 0);
315
+ }
304
316
  }
305
317
  @keyframes popup-slide-left-exit {
306
318
  to {
@@ -11,6 +11,7 @@ import { View } from "@tarojs/components";
11
11
  import { defaultOverlayProps } from "../overlay/overlay";
12
12
  import Overlay from "../overlay/index";
13
13
  import { useLockScrollTaro } from "../../hooks/use-lock-scoll-taro";
14
+ import { harmony } from "../../utils/platform-taro";
14
15
  var defaultProps = _object_spread_props(_object_spread({}, defaultOverlayProps), {
15
16
  position: 'center',
16
17
  transition: '',
@@ -44,9 +45,11 @@ export var Popup = function(props) {
44
45
  var refObject = useLockScrollTaro(innerVisible && lockScroll);
45
46
  var classPrefix = 'nut-popup';
46
47
  var overlayStyles = _object_spread({}, overlayStyle);
47
- var popStyles = _object_spread_props(_object_spread({}, style), {
48
- zIndex: index
49
- });
48
+ var contentZIndex = harmony() ? index + 1 : index // 解决harmony层级问题
49
+ ;
50
+ var popStyles = _object_spread({
51
+ zIndex: contentZIndex
52
+ }, style);
50
53
  var _obj;
51
54
  var popClassName = classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-round"), round || position === 'bottom'), _define_property(_obj, "".concat(classPrefix, "-").concat(position), true), _obj), className);
52
55
  var open = function() {
@@ -104,6 +107,15 @@ export var Popup = function(props) {
104
107
  return renderCloseIcon();
105
108
  }
106
109
  };
110
+ var renderContent = function() {
111
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(View, {
112
+ ref: refObject,
113
+ style: popStyles,
114
+ className: popClassName,
115
+ onClick: onClick,
116
+ catchMove: lockScroll
117
+ }, renderTitle(), showChildren ? children : null));
118
+ };
107
119
  var renderPop = function() {
108
120
  return /*#__PURE__*/ React.createElement(CSSTransition, {
109
121
  nodeRef: refObject,
@@ -114,13 +126,7 @@ export var Popup = function(props) {
114
126
  in: innerVisible,
115
127
  onEntered: afterShow,
116
128
  onExited: afterClose
117
- }, /*#__PURE__*/ React.createElement(View, {
118
- ref: refObject,
119
- style: popStyles,
120
- className: popClassName,
121
- onClick: onClick,
122
- catchMove: lockScroll
123
- }, renderTitle(), showChildren ? children : null));
129
+ }, renderContent());
124
130
  };
125
131
  var renderNode = function() {
126
132
  return /*#__PURE__*/ React.createElement(React.Fragment, null, overlay ? /*#__PURE__*/ React.createElement(Overlay, {
@@ -132,7 +138,7 @@ export var Popup = function(props) {
132
138
  lockScroll: lockScroll,
133
139
  duration: duration,
134
140
  onClick: handleOverlayClick
135
- }, renderPop()) : renderPop());
141
+ }) : null, renderPop());
136
142
  };
137
143
  useEffect(function() {
138
144
  visible ? open() : close();