@nutui/nutui-react-taro 3.0.12 → 3.0.13

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 (200) hide show
  1. package/CHANGELOG.md +25 -9
  2. package/dist/cjs/packages/address/style/address.scss +2 -2
  3. package/dist/cjs/packages/address/style/style.css +2 -2
  4. package/dist/cjs/packages/address/style/style.harmony.css +2 -2
  5. package/dist/cjs/packages/address/style-jmapp/address.scss +2 -2
  6. package/dist/cjs/packages/address/style-jmapp/style.css +2 -2
  7. package/dist/cjs/packages/address/style-jrkf/address.scss +2 -2
  8. package/dist/cjs/packages/address/style-jrkf/style.css +2 -2
  9. package/dist/cjs/packages/avatar/avatar.js +1 -1
  10. package/dist/cjs/packages/button/style/button.scss +3 -3
  11. package/dist/cjs/packages/button/style/style.css +3 -3
  12. package/dist/cjs/packages/button/style/style.harmony.css +3 -3
  13. package/dist/cjs/packages/button/style-jmapp/button.scss +3 -3
  14. package/dist/cjs/packages/button/style-jmapp/style.css +3 -3
  15. package/dist/cjs/packages/button/style-jrkf/button.scss +3 -3
  16. package/dist/cjs/packages/button/style-jrkf/style.css +3 -3
  17. package/dist/cjs/packages/collapseitem/style/collapseitem.scss +2 -2
  18. package/dist/cjs/packages/collapseitem/style/style.css +2 -2
  19. package/dist/cjs/packages/collapseitem/style/style.harmony.css +2 -2
  20. package/dist/cjs/packages/collapseitem/style-jmapp/collapseitem.scss +2 -2
  21. package/dist/cjs/packages/collapseitem/style-jmapp/style.css +2 -2
  22. package/dist/cjs/packages/collapseitem/style-jrkf/collapseitem.scss +2 -2
  23. package/dist/cjs/packages/collapseitem/style-jrkf/style.css +2 -2
  24. package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
  25. package/dist/cjs/packages/dialog/style/style.css +1 -1
  26. package/dist/cjs/packages/dialog/style/style.harmony.css +1 -1
  27. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
  28. package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
  29. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
  30. package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
  31. package/dist/cjs/packages/loading/loading.js +0 -4
  32. package/dist/cjs/packages/lottie/lottiemp.js +7 -6
  33. package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +2 -2
  34. package/dist/cjs/packages/numberkeyboard/style/style.css +2 -2
  35. package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +2 -2
  36. package/dist/cjs/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -2
  37. package/dist/cjs/packages/numberkeyboard/style-jmapp/style.css +2 -2
  38. package/dist/cjs/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -2
  39. package/dist/cjs/packages/numberkeyboard/style-jrkf/style.css +2 -2
  40. package/dist/cjs/packages/pagination/pagination.js +3 -3
  41. package/dist/cjs/packages/pickerview/pickerroller.js +3 -3
  42. package/dist/cjs/packages/price/style/price.scss +9 -0
  43. package/dist/cjs/packages/price/style/style.css +9 -0
  44. package/dist/cjs/packages/price/style/style.harmony.css +9 -0
  45. package/dist/cjs/packages/price/style-jmapp/price.scss +9 -0
  46. package/dist/cjs/packages/price/style-jmapp/style.css +9 -0
  47. package/dist/cjs/packages/price/style-jrkf/price.scss +9 -0
  48. package/dist/cjs/packages/price/style-jrkf/style.css +9 -0
  49. package/dist/cjs/packages/steps/style/steps.scss +1 -1
  50. package/dist/cjs/packages/steps/style/style.css +1 -1
  51. package/dist/cjs/packages/steps/style/style.harmony.css +1 -1
  52. package/dist/cjs/packages/steps/style-jmapp/steps.scss +1 -1
  53. package/dist/cjs/packages/steps/style-jmapp/style.css +1 -1
  54. package/dist/cjs/packages/steps/style-jrkf/steps.scss +1 -1
  55. package/dist/cjs/packages/steps/style-jrkf/style.css +1 -1
  56. package/dist/cjs/packages/swiper/swiper.js +22 -21
  57. package/dist/cjs/packages/tabbaritem/style/style.css +4 -4
  58. package/dist/cjs/packages/tabbaritem/style/style.harmony.css +6 -6
  59. package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +4 -4
  60. package/dist/cjs/packages/tabbaritem/style-jmapp/style.css +4 -4
  61. package/dist/cjs/packages/tabbaritem/style-jmapp/tabbaritem.scss +4 -4
  62. package/dist/cjs/packages/tabbaritem/style-jrkf/style.css +4 -4
  63. package/dist/cjs/packages/tabbaritem/style-jrkf/tabbaritem.scss +4 -4
  64. package/dist/cjs/packages/tabs/style/style.css +2 -2
  65. package/dist/cjs/packages/tabs/style/style.harmony.css +2 -2
  66. package/dist/cjs/packages/tabs/style/tabs.scss +2 -2
  67. package/dist/cjs/packages/tabs/style-jmapp/style.css +2 -2
  68. package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +2 -2
  69. package/dist/cjs/packages/tabs/style-jrkf/style.css +2 -2
  70. package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +2 -2
  71. package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
  72. package/dist/cjs/packages/textarea/textarea.js +27 -8
  73. package/dist/cjs/packages/toast/style/style.css +2 -2
  74. package/dist/cjs/packages/toast/style/style.harmony.css +2 -2
  75. package/dist/cjs/packages/toast/style/toast.scss +2 -2
  76. package/dist/cjs/packages/toast/style-jmapp/style.css +2 -2
  77. package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -2
  78. package/dist/cjs/packages/toast/style-jrkf/style.css +2 -2
  79. package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -2
  80. package/dist/cjs/packages/uploader/style/style.css +1 -0
  81. package/dist/cjs/packages/uploader/style/style.harmony.css +1 -0
  82. package/dist/cjs/packages/uploader/style/uploader.scss +1 -0
  83. package/dist/cjs/packages/uploader/style-jmapp/style.css +1 -0
  84. package/dist/cjs/packages/uploader/style-jmapp/uploader.scss +1 -0
  85. package/dist/cjs/packages/uploader/style-jrkf/style.css +1 -0
  86. package/dist/cjs/packages/uploader/style-jrkf/uploader.scss +1 -0
  87. package/dist/cjs/types/spec/lottie/taro.d.ts +1 -0
  88. package/dist/cjs/types/spec/swiper/base.d.ts +4 -0
  89. package/dist/cjs/types/spec/swiper/taro.d.ts +4 -0
  90. package/dist/cjs/utils/index.d.ts +0 -1
  91. package/dist/cjs/utils/index.js +0 -1
  92. package/dist/cjs/utils/taro/platform.d.ts +1 -0
  93. package/dist/cjs/utils/taro/platform.js +8 -0
  94. package/dist/cjs/utils/taro/px-transform.js +1 -1
  95. package/dist/es/packages/address/style/address.scss +2 -2
  96. package/dist/es/packages/address/style/style.css +2 -2
  97. package/dist/es/packages/address/style/style.harmony.css +2 -2
  98. package/dist/es/packages/address/style-jmapp/address.scss +2 -2
  99. package/dist/es/packages/address/style-jmapp/style.css +2 -2
  100. package/dist/es/packages/address/style-jrkf/address.scss +2 -2
  101. package/dist/es/packages/address/style-jrkf/style.css +2 -2
  102. package/dist/es/packages/avatar/avatar.js +2 -2
  103. package/dist/es/packages/button/style/button.scss +3 -3
  104. package/dist/es/packages/button/style/style.css +3 -3
  105. package/dist/es/packages/button/style/style.harmony.css +3 -3
  106. package/dist/es/packages/button/style-jmapp/button.scss +3 -3
  107. package/dist/es/packages/button/style-jmapp/style.css +3 -3
  108. package/dist/es/packages/button/style-jrkf/button.scss +3 -3
  109. package/dist/es/packages/button/style-jrkf/style.css +3 -3
  110. package/dist/es/packages/collapseitem/style/collapseitem.scss +2 -2
  111. package/dist/es/packages/collapseitem/style/style.css +2 -2
  112. package/dist/es/packages/collapseitem/style/style.harmony.css +2 -2
  113. package/dist/es/packages/collapseitem/style-jmapp/collapseitem.scss +2 -2
  114. package/dist/es/packages/collapseitem/style-jmapp/style.css +2 -2
  115. package/dist/es/packages/collapseitem/style-jrkf/collapseitem.scss +2 -2
  116. package/dist/es/packages/collapseitem/style-jrkf/style.css +2 -2
  117. package/dist/es/packages/dialog/style/dialog.scss +1 -1
  118. package/dist/es/packages/dialog/style/style.css +1 -1
  119. package/dist/es/packages/dialog/style/style.harmony.css +1 -1
  120. package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
  121. package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
  122. package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
  123. package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
  124. package/dist/es/packages/loading/loading.js +0 -4
  125. package/dist/es/packages/lottie/lottiemp.js +7 -6
  126. package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +2 -2
  127. package/dist/es/packages/numberkeyboard/style/style.css +2 -2
  128. package/dist/es/packages/numberkeyboard/style/style.harmony.css +2 -2
  129. package/dist/es/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -2
  130. package/dist/es/packages/numberkeyboard/style-jmapp/style.css +2 -2
  131. package/dist/es/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -2
  132. package/dist/es/packages/numberkeyboard/style-jrkf/style.css +2 -2
  133. package/dist/es/packages/pagination/pagination.js +4 -4
  134. package/dist/es/packages/pickerview/pickerroller.js +3 -3
  135. package/dist/es/packages/price/style/price.scss +9 -0
  136. package/dist/es/packages/price/style/style.css +9 -0
  137. package/dist/es/packages/price/style/style.harmony.css +9 -0
  138. package/dist/es/packages/price/style-jmapp/price.scss +9 -0
  139. package/dist/es/packages/price/style-jmapp/style.css +9 -0
  140. package/dist/es/packages/price/style-jrkf/price.scss +9 -0
  141. package/dist/es/packages/price/style-jrkf/style.css +9 -0
  142. package/dist/es/packages/steps/style/steps.scss +1 -1
  143. package/dist/es/packages/steps/style/style.css +1 -1
  144. package/dist/es/packages/steps/style/style.harmony.css +1 -1
  145. package/dist/es/packages/steps/style-jmapp/steps.scss +1 -1
  146. package/dist/es/packages/steps/style-jmapp/style.css +1 -1
  147. package/dist/es/packages/steps/style-jrkf/steps.scss +1 -1
  148. package/dist/es/packages/steps/style-jrkf/style.css +1 -1
  149. package/dist/es/packages/swiper/swiper.js +23 -22
  150. package/dist/es/packages/tabbaritem/style/style.css +4 -4
  151. package/dist/es/packages/tabbaritem/style/style.harmony.css +6 -6
  152. package/dist/es/packages/tabbaritem/style/tabbaritem.scss +4 -4
  153. package/dist/es/packages/tabbaritem/style-jmapp/style.css +4 -4
  154. package/dist/es/packages/tabbaritem/style-jmapp/tabbaritem.scss +4 -4
  155. package/dist/es/packages/tabbaritem/style-jrkf/style.css +4 -4
  156. package/dist/es/packages/tabbaritem/style-jrkf/tabbaritem.scss +4 -4
  157. package/dist/es/packages/tabs/style/style.css +2 -2
  158. package/dist/es/packages/tabs/style/style.harmony.css +2 -2
  159. package/dist/es/packages/tabs/style/tabs.scss +2 -2
  160. package/dist/es/packages/tabs/style-jmapp/style.css +2 -2
  161. package/dist/es/packages/tabs/style-jmapp/tabs.scss +2 -2
  162. package/dist/es/packages/tabs/style-jrkf/style.css +2 -2
  163. package/dist/es/packages/tabs/style-jrkf/tabs.scss +2 -2
  164. package/dist/es/packages/textarea/textarea.d.ts +2 -2
  165. package/dist/es/packages/textarea/textarea.js +28 -9
  166. package/dist/es/packages/toast/style/style.css +2 -2
  167. package/dist/es/packages/toast/style/style.harmony.css +2 -2
  168. package/dist/es/packages/toast/style/toast.scss +2 -2
  169. package/dist/es/packages/toast/style-jmapp/style.css +2 -2
  170. package/dist/es/packages/toast/style-jmapp/toast.scss +2 -2
  171. package/dist/es/packages/toast/style-jrkf/style.css +2 -2
  172. package/dist/es/packages/toast/style-jrkf/toast.scss +2 -2
  173. package/dist/es/packages/uploader/style/style.css +1 -0
  174. package/dist/es/packages/uploader/style/style.harmony.css +1 -0
  175. package/dist/es/packages/uploader/style/uploader.scss +1 -0
  176. package/dist/es/packages/uploader/style-jmapp/style.css +1 -0
  177. package/dist/es/packages/uploader/style-jmapp/uploader.scss +1 -0
  178. package/dist/es/packages/uploader/style-jrkf/style.css +1 -0
  179. package/dist/es/packages/uploader/style-jrkf/uploader.scss +1 -0
  180. package/dist/es/types/spec/input/base.d.ts +4 -1
  181. package/dist/es/types/spec/lottie/taro.d.ts +1 -0
  182. package/dist/es/types/spec/swiper/base.d.ts +5 -1
  183. package/dist/es/types/spec/swiper/taro.d.ts +4 -0
  184. package/dist/es/utils/index.d.ts +0 -1
  185. package/dist/es/utils/index.js +0 -1
  186. package/dist/es/utils/taro/platform.d.ts +1 -0
  187. package/dist/es/utils/taro/platform.js +5 -0
  188. package/dist/es/utils/taro/px-transform.js +3 -2
  189. package/dist/nutui.react.umd.js +72 -139
  190. package/dist/style-jmapp.css +1 -1
  191. package/dist/style-jmapp.scss +38 -38
  192. package/dist/style-jrkf.css +1 -1
  193. package/dist/style-jrkf.scss +35 -35
  194. package/dist/style.css +1 -1
  195. package/dist/style.scss +37 -37
  196. package/package.json +1 -1
  197. package/dist/cjs/utils/camel-case.d.ts +0 -1
  198. package/dist/cjs/utils/camel-case.js +0 -106
  199. package/dist/es/utils/camel-case.d.ts +0 -1
  200. package/dist/es/utils/camel-case.js +0 -96
@@ -38,10 +38,10 @@
38
38
  left: 16px;
39
39
  bottom: 0;
40
40
  border-bottom: $collapse-item-header-border-bottom;
41
- /* #ifdef harmony */
41
+ /* #ifdef harmony dynamic*/
42
42
  transform: scale(1, 1);
43
43
  /* #endif */
44
- /* #ifndef harmony */
44
+ /* #ifndef harmony dynamic*/
45
45
  transform: scale(1, 0.5);
46
46
  /* #endif */
47
47
  }
@@ -40,10 +40,10 @@
40
40
  left: 16px;
41
41
  bottom: 0;
42
42
  border-bottom: var(--nutui-collapse-item-header-border-bottom, none);
43
- /* #ifdef harmony */
43
+ /* #ifdef harmony dynamic*/
44
44
  transform: scale(1, 1);
45
45
  /* #endif */
46
- /* #ifndef harmony */
46
+ /* #ifndef harmony dynamic*/
47
47
  transform: scale(1, 0.5);
48
48
  /* #endif */
49
49
  }
@@ -38,10 +38,10 @@
38
38
  left: 16px;
39
39
  bottom: 0;
40
40
  border-bottom: $collapse-item-header-border-bottom;
41
- /* #ifdef harmony */
41
+ /* #ifdef harmony dynamic*/
42
42
  transform: scale(1, 1);
43
43
  /* #endif */
44
- /* #ifndef harmony */
44
+ /* #ifndef harmony dynamic*/
45
45
  transform: scale(1, 0.5);
46
46
  /* #endif */
47
47
  }
@@ -40,10 +40,10 @@
40
40
  left: 16px;
41
41
  bottom: 0;
42
42
  border-bottom: var(--nutui-collapse-item-header-border-bottom, none);
43
- /* #ifdef harmony */
43
+ /* #ifdef harmony dynamic*/
44
44
  transform: scale(1, 1);
45
45
  /* #endif */
46
- /* #ifndef harmony */
46
+ /* #ifndef harmony dynamic*/
47
47
  transform: scale(1, 0.5);
48
48
  /* #endif */
49
49
  }
@@ -6,7 +6,7 @@
6
6
  align-items: center;
7
7
  width: $dialog-width;
8
8
  min-width: $dialog-min-width;
9
- /* #ifndef harmony*/
9
+ /* #ifndef harmony dynamic*/
10
10
  max-height: 67%;
11
11
  /* #endif */
12
12
  min-height: $dialog-min-height;
@@ -8,7 +8,7 @@
8
8
  align-items: center;
9
9
  width: var(--nutui-dialog-width, 295px);
10
10
  min-width: var(--nutui-dialog-min-width, 240px);
11
- /* #ifndef harmony*/
11
+ /* #ifndef harmony dynamic*/
12
12
  max-height: 67%;
13
13
  /* #endif */
14
14
  min-height: var(--nutui-dialog-min-height, 124px);
@@ -8,7 +8,7 @@
8
8
  align-items: center;
9
9
  width: 295px;
10
10
  min-width: 240px;
11
- /* #ifndef harmony*/
11
+ /* #ifndef harmony dynamic*/
12
12
  max-height: 67%;
13
13
  /* #endif */
14
14
  min-height: 124px;
@@ -6,7 +6,7 @@
6
6
  align-items: center;
7
7
  width: $dialog-width;
8
8
  min-width: $dialog-min-width;
9
- /* #ifndef harmony*/
9
+ /* #ifndef harmony dynamic*/
10
10
  max-height: 67%;
11
11
  /* #endif */
12
12
  min-height: $dialog-min-height;
@@ -8,7 +8,7 @@
8
8
  align-items: center;
9
9
  width: var(--nutui-dialog-width, 295px);
10
10
  min-width: var(--nutui-dialog-min-width, 240px);
11
- /* #ifndef harmony*/
11
+ /* #ifndef harmony dynamic*/
12
12
  max-height: 67%;
13
13
  /* #endif */
14
14
  min-height: var(--nutui-dialog-min-height, 60px);
@@ -6,7 +6,7 @@
6
6
  align-items: center;
7
7
  width: $dialog-width;
8
8
  min-width: $dialog-min-width;
9
- /* #ifndef harmony*/
9
+ /* #ifndef harmony dynamic*/
10
10
  max-height: 67%;
11
11
  /* #endif */
12
12
  min-height: $dialog-min-height;
@@ -8,7 +8,7 @@
8
8
  align-items: center;
9
9
  width: var(--nutui-dialog-width, 295px);
10
10
  min-width: var(--nutui-dialog-min-width, 240px);
11
- /* #ifndef harmony*/
11
+ /* #ifndef harmony dynamic*/
12
12
  max-height: 67%;
13
13
  /* #endif */
14
14
  min-height: var(--nutui-dialog-min-height, 60px);
@@ -16,10 +16,6 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
16
16
  type: 'circular',
17
17
  direction: 'horizontal'
18
18
  });
19
- var defaultLottieProps = {
20
- loop: true,
21
- autoplay: true
22
- };
23
19
  export var Loading = /*#__PURE__*/ React.forwardRef(function(props, ref) {
24
20
  var _ref = _object_spread({}, defaultProps, props), className = _ref.className, style = _ref.style, children = _ref.children, direction = _ref.direction, icon = _ref.icon, rest = _object_without_properties(_ref, [
25
21
  "className",
@@ -8,7 +8,7 @@ export var Lottie = /*#__PURE__*/ React.forwardRef(function(props, ref) {
8
8
  var id = "nutLottie-".concat(uuid);
9
9
  var animation = useRef();
10
10
  var inited = useRef(false);
11
- var source = props.source, _props_loop = props.loop, loop = _props_loop === void 0 ? true : _props_loop, _props_autoPlay = props.autoPlay, autoPlay = _props_autoPlay === void 0 ? true : _props_autoPlay, onComplete = props.onComplete, style = props.style, _props_speed = props.speed, speed = _props_speed === void 0 ? 1 : _props_speed;
11
+ var source = props.source, _props_loop = props.loop, loop = _props_loop === void 0 ? true : _props_loop, _props_autoPlay = props.autoPlay, autoPlay = _props_autoPlay === void 0 ? true : _props_autoPlay, onComplete = props.onComplete, style = props.style, _props_speed = props.speed, speed = _props_speed === void 0 ? 1 : _props_speed, _props_dpr = props.dpr, dpr = _props_dpr === void 0 ? true : _props_dpr;
12
12
  var setSpeed = function() {
13
13
  if (animation.current) {
14
14
  animation.current.setSpeed(Math.abs(speed));
@@ -18,7 +18,7 @@ export var Lottie = /*#__PURE__*/ React.forwardRef(function(props, ref) {
18
18
  useImperativeHandle(ref, function() {
19
19
  return animation.current || {};
20
20
  });
21
- var dpr = useRef(getWindowInfo().pixelRatio);
21
+ var pixelRatio = useRef(getWindowInfo().pixelRatio);
22
22
  useReady(function() {
23
23
  createSelectorQuery().select("#".concat(id)).fields({
24
24
  node: true,
@@ -27,11 +27,12 @@ export var Lottie = /*#__PURE__*/ React.forwardRef(function(props, ref) {
27
27
  try {
28
28
  var canvas = res.node;
29
29
  var context = canvas.getContext('2d');
30
- // scale canvas to adapt dpr
30
+ // scale canvas to adapt pixelRatio
31
31
  if (style && style.width !== undefined && style.height !== undefined) {
32
- canvas.width = parseFloat(style.width.toString()) * dpr.current;
33
- canvas.height = parseFloat(style.height.toString()) * dpr.current;
34
- context.scale(dpr.current, dpr.current);
32
+ var finalDpr = dpr ? pixelRatio.current : 1;
33
+ canvas.width = parseFloat(style.width.toString()) * finalDpr;
34
+ canvas.height = parseFloat(style.height.toString()) * finalDpr;
35
+ context.scale(finalDpr, finalDpr);
35
36
  }
36
37
  lottie.setup(canvas);
37
38
  animation.current = lottie.loadAnimation({
@@ -48,10 +48,10 @@
48
48
  &-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -48,10 +48,10 @@
48
48
  .nut-numberkeyboard-body-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -48,10 +48,10 @@
48
48
  .nut-numberkeyboard-body-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -48,10 +48,10 @@
48
48
  &-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -48,10 +48,10 @@
48
48
  .nut-numberkeyboard-body-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -48,10 +48,10 @@
48
48
  &-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -48,10 +48,10 @@
48
48
  .nut-numberkeyboard-body-wrapper {
49
49
  position: relative;
50
50
  flex: 1;
51
- /* #ifdef harmony */
51
+ /* #ifdef harmony dynamic*/
52
52
  width: 33%;
53
53
  /* #endif */
54
- /* #ifndef harmony */
54
+ /* #ifndef harmony dynamic*/
55
55
  flex-basis: 33%;
56
56
  /* #endif */
57
57
  box-sizing: border-box;
@@ -5,7 +5,7 @@ import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_
5
5
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
6
6
  import React from "react";
7
7
  import classNames from "classnames";
8
- import { View } from "@tarojs/components";
8
+ import { View, Text } from "@tarojs/components";
9
9
  import { useConfig } from "../configprovider/index";
10
10
  import { usePropsValue } from "../../hooks/use-props-value";
11
11
  import { ComponentDefaults } from "../../utils/typings";
@@ -96,11 +96,11 @@ export var Pagination = function(props) {
96
96
  }
97
97
  }, addColorForHarmony(next || locale.pagination.next, current >= pageCount ? '#c2c4cc' : '#ff0f23'))), mode === 'lite' && /*#__PURE__*/ React.createElement(View, {
98
98
  className: "".concat(classPrefix, "-lite")
99
- }, /*#__PURE__*/ React.createElement(View, {
99
+ }, /*#__PURE__*/ React.createElement(Text, {
100
100
  className: "".concat(classPrefix, "-lite-active")
101
- }, current), /*#__PURE__*/ React.createElement(View, {
101
+ }, current), /*#__PURE__*/ React.createElement(Text, {
102
102
  className: "".concat(classPrefix, "-lite-spliterator")
103
- }, "/"), /*#__PURE__*/ React.createElement(View, {
103
+ }, "/"), /*#__PURE__*/ React.createElement(Text, {
104
104
  className: "".concat(classPrefix, "-lite-default")
105
105
  }, pageCount)));
106
106
  };
@@ -129,7 +129,7 @@ var InternalPickerRoller = function(props, ref) {
129
129
  ];
130
130
  case 1:
131
131
  placeholder = _state.sent();
132
- placeholderHeight = placeholder.height || 0;
132
+ placeholderHeight = placeholder.height || 36;
133
133
  return [
134
134
  2,
135
135
  placeholderHeight
@@ -139,7 +139,7 @@ var InternalPickerRoller = function(props, ref) {
139
139
  console.error('获取高度失败:', error);
140
140
  return [
141
141
  2,
142
- 0
142
+ 36
143
143
  ];
144
144
  case 3:
145
145
  return [
@@ -162,7 +162,7 @@ var InternalPickerRoller = function(props, ref) {
162
162
  if (currentLineSpacing) {
163
163
  lineSpacing.current = parseFloat(currentLineSpacing);
164
164
  }
165
- } else {
165
+ } else if (placeholderRef.current) {
166
166
  getReactHeight().then(function(height) {
167
167
  currentLineSpacing = height;
168
168
  if (currentLineSpacing) {
@@ -62,14 +62,23 @@
62
62
  &-integer {
63
63
  &-xlarge {
64
64
  font-size: $price-integer-xlarge-size;
65
+ /* #ifdef dynamic */
66
+ line-height: $price-integer-xlarge-size;
67
+ /* #endif */
65
68
  }
66
69
 
67
70
  &-large {
68
71
  font-size: $price-integer-large-size;
72
+ /* #ifdef dynamic */
73
+ line-height: $price-integer-large-size;
74
+ /* #endif */
69
75
  }
70
76
 
71
77
  &-normal {
72
78
  font-size: $price-integer-normal-size;
79
+ /* #ifdef dynamic */
80
+ line-height: $price-integer-normal-size;
81
+ /* #endif */
73
82
  }
74
83
 
75
84
  &-small {
@@ -43,12 +43,21 @@
43
43
  }
44
44
  .nut-price-integer-xlarge {
45
45
  font-size: var(--nutui-price-integer-xlarge-size, 24px);
46
+ /* #ifdef dynamic */
47
+ line-height: var(--nutui-price-integer-xlarge-size, 24px);
48
+ /* #endif */
46
49
  }
47
50
  .nut-price-integer-large {
48
51
  font-size: var(--nutui-price-integer-large-size, 18px);
52
+ /* #ifdef dynamic */
53
+ line-height: var(--nutui-price-integer-large-size, 18px);
54
+ /* #endif */
49
55
  }
50
56
  .nut-price-integer-normal {
51
57
  font-size: var(--nutui-price-integer-normal-size, 16px);
58
+ /* #ifdef dynamic */
59
+ line-height: var(--nutui-price-integer-normal-size, 16px);
60
+ /* #endif */
52
61
  }
53
62
  .nut-price-integer-small {
54
63
  font-size: var(--nutui-price-integer-small-size, 12px);
@@ -69,12 +69,21 @@
69
69
  }
70
70
  .nut-price-integer-xlarge {
71
71
  font-size: 24px;
72
+ /* #ifdef dynamic */
73
+ line-height: 24px;
74
+ /* #endif */
72
75
  }
73
76
  .nut-price-integer-large {
74
77
  font-size: 18px;
78
+ /* #ifdef dynamic */
79
+ line-height: 18px;
80
+ /* #endif */
75
81
  }
76
82
  .nut-price-integer-normal {
77
83
  font-size: 16px;
84
+ /* #ifdef dynamic */
85
+ line-height: 16px;
86
+ /* #endif */
78
87
  }
79
88
  .nut-price-integer-small {
80
89
  font-size: 12px;
@@ -62,14 +62,23 @@
62
62
  &-integer {
63
63
  &-xlarge {
64
64
  font-size: $price-integer-xlarge-size;
65
+ /* #ifdef dynamic */
66
+ line-height: $price-integer-xlarge-size;
67
+ /* #endif */
65
68
  }
66
69
 
67
70
  &-large {
68
71
  font-size: $price-integer-large-size;
72
+ /* #ifdef dynamic */
73
+ line-height: $price-integer-large-size;
74
+ /* #endif */
69
75
  }
70
76
 
71
77
  &-normal {
72
78
  font-size: $price-integer-normal-size;
79
+ /* #ifdef dynamic */
80
+ line-height: $price-integer-normal-size;
81
+ /* #endif */
73
82
  }
74
83
 
75
84
  &-small {
@@ -43,12 +43,21 @@
43
43
  }
44
44
  .nut-price-integer-xlarge {
45
45
  font-size: var(--nutui-price-integer-xlarge-size, 24px);
46
+ /* #ifdef dynamic */
47
+ line-height: var(--nutui-price-integer-xlarge-size, 24px);
48
+ /* #endif */
46
49
  }
47
50
  .nut-price-integer-large {
48
51
  font-size: var(--nutui-price-integer-large-size, 24px);
52
+ /* #ifdef dynamic */
53
+ line-height: var(--nutui-price-integer-large-size, 24px);
54
+ /* #endif */
49
55
  }
50
56
  .nut-price-integer-normal {
51
57
  font-size: var(--nutui-price-integer-normal-size, 16px);
58
+ /* #ifdef dynamic */
59
+ line-height: var(--nutui-price-integer-normal-size, 16px);
60
+ /* #endif */
52
61
  }
53
62
  .nut-price-integer-small {
54
63
  font-size: var(--nutui-price-integer-small-size, 12px);
@@ -62,14 +62,23 @@
62
62
  &-integer {
63
63
  &-xlarge {
64
64
  font-size: $price-integer-xlarge-size;
65
+ /* #ifdef dynamic */
66
+ line-height: $price-integer-xlarge-size;
67
+ /* #endif */
65
68
  }
66
69
 
67
70
  &-large {
68
71
  font-size: $price-integer-large-size;
72
+ /* #ifdef dynamic */
73
+ line-height: $price-integer-large-size;
74
+ /* #endif */
69
75
  }
70
76
 
71
77
  &-normal {
72
78
  font-size: $price-integer-normal-size;
79
+ /* #ifdef dynamic */
80
+ line-height: $price-integer-normal-size;
81
+ /* #endif */
73
82
  }
74
83
 
75
84
  &-small {
@@ -43,12 +43,21 @@
43
43
  }
44
44
  .nut-price-integer-xlarge {
45
45
  font-size: var(--nutui-price-integer-xlarge-size, 24px);
46
+ /* #ifdef dynamic */
47
+ line-height: var(--nutui-price-integer-xlarge-size, 24px);
48
+ /* #endif */
46
49
  }
47
50
  .nut-price-integer-large {
48
51
  font-size: var(--nutui-price-integer-large-size, 18px);
52
+ /* #ifdef dynamic */
53
+ line-height: var(--nutui-price-integer-large-size, 18px);
54
+ /* #endif */
49
55
  }
50
56
  .nut-price-integer-normal {
51
57
  font-size: var(--nutui-price-integer-normal-size, 16px);
58
+ /* #ifdef dynamic */
59
+ line-height: var(--nutui-price-integer-normal-size, 16px);
60
+ /* #endif */
52
61
  }
53
62
  .nut-price-integer-small {
54
63
  font-size: var(--nutui-price-integer-small-size, 12px);
@@ -179,7 +179,7 @@
179
179
 
180
180
  // 纵向滚动条
181
181
  &-vertical {
182
- /* #ifdef harmony*/
182
+ /* #ifdef harmony dynamic*/
183
183
  flex: 1;
184
184
  min-width: 0;
185
185
  /* #endif */
@@ -117,7 +117,7 @@
117
117
  height: var(--nutui-steps-base-head-text-size, 12px);
118
118
  }
119
119
  .nut-steps-vertical {
120
- /* #ifdef harmony*/
120
+ /* #ifdef harmony dynamic*/
121
121
  flex: 1;
122
122
  min-width: 0;
123
123
  /* #endif */
@@ -134,7 +134,7 @@
134
134
  height: 12px;
135
135
  }
136
136
  .nut-steps-vertical {
137
- /* #ifdef harmony*/
137
+ /* #ifdef harmony dynamic*/
138
138
  flex: 1;
139
139
  min-width: 0;
140
140
  /* #endif */
@@ -179,7 +179,7 @@
179
179
 
180
180
  // 纵向滚动条
181
181
  &-vertical {
182
- /* #ifdef harmony*/
182
+ /* #ifdef harmony dynamic*/
183
183
  flex: 1;
184
184
  min-width: 0;
185
185
  /* #endif */
@@ -117,7 +117,7 @@
117
117
  height: var(--nutui-steps-base-head-text-size, 12px);
118
118
  }
119
119
  .nut-steps-vertical {
120
- /* #ifdef harmony*/
120
+ /* #ifdef harmony dynamic*/
121
121
  flex: 1;
122
122
  min-width: 0;
123
123
  /* #endif */
@@ -179,7 +179,7 @@
179
179
 
180
180
  // 纵向滚动条
181
181
  &-vertical {
182
- /* #ifdef harmony*/
182
+ /* #ifdef harmony dynamic*/
183
183
  flex: 1;
184
184
  min-width: 0;
185
185
  /* #endif */
@@ -117,7 +117,7 @@
117
117
  height: var(--nutui-steps-base-head-text-size, 12px);
118
118
  }
119
119
  .nut-steps-vertical {
120
- /* #ifdef harmony*/
120
+ /* #ifdef harmony dynamic*/
121
121
  flex: 1;
122
122
  min-width: 0;
123
123
  /* #endif */