@nutui/nutui 3.2.6-beta.1 → 3.2.6

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 (241) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +18 -4
  3. package/dist/nutui.es.js +4461 -4135
  4. package/dist/nutui.umd.js +4559 -4133
  5. package/dist/packages/_es/ActionSheet.js +19 -18
  6. package/dist/packages/_es/Address.js +85 -94
  7. package/dist/packages/_es/AddressList.js +12 -25
  8. package/dist/packages/_es/Animate.js +3 -3
  9. package/dist/packages/_es/Audio.js +2 -9
  10. package/dist/packages/_es/AudioOperate.js +1 -5
  11. package/dist/packages/_es/Avatar.js +10 -10
  12. package/dist/packages/_es/AvatarGroup.js +5 -5
  13. package/dist/packages/_es/BackTop.js +108 -55
  14. package/dist/packages/_es/Badge.js +12 -10
  15. package/dist/packages/_es/Barrage.js +103 -79
  16. package/dist/packages/_es/Button.js +3 -5
  17. package/dist/packages/_es/Calendar.js +23 -36
  18. package/dist/packages/_es/CalendarItem.js +3 -4
  19. package/dist/packages/_es/Card.js +5 -15
  20. package/dist/packages/_es/Cascader.js +11 -12
  21. package/dist/packages/_es/Category.js +12 -13
  22. package/dist/packages/_es/CategoryPane.js +13 -17
  23. package/dist/packages/_es/Cell.js +12 -9
  24. package/dist/packages/_es/CellGroup.js +2 -4
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +2 -2
  27. package/dist/packages/_es/CircleProgress.js +82 -98
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +34 -65
  30. package/dist/packages/_es/CollapseItem.js +60 -93
  31. package/dist/packages/_es/Comment.js +19 -43
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/CountDown.js +3 -3
  34. package/dist/packages/_es/CountUp.js +52 -47
  35. package/dist/packages/_es/DatePicker.js +54 -37
  36. package/dist/packages/_es/Dialog.js +88 -9
  37. package/dist/packages/_es/Divider.js +3 -3
  38. package/dist/packages/_es/Drag.js +49 -75
  39. package/dist/packages/_es/Ecard.js +18 -20
  40. package/dist/packages/_es/Elevator.js +76 -101
  41. package/dist/packages/_es/Ellipsis.js +100 -140
  42. package/dist/packages/_es/Empty.js +4 -6
  43. package/dist/packages/_es/FixedNav.js +6 -11
  44. package/dist/packages/_es/Form.js +4 -4
  45. package/dist/packages/_es/FormItem.js +1 -3
  46. package/dist/packages/_es/Grid.js +1 -1
  47. package/dist/packages/_es/GridItem.js +27 -10
  48. package/dist/packages/_es/Icon.js +1 -1
  49. package/dist/packages/_es/Image.js +114 -13
  50. package/dist/packages/_es/ImagePreview.js +411 -149
  51. package/dist/packages/_es/Indicator.js +3 -3
  52. package/dist/packages/_es/InfiniteLoading.js +115 -103
  53. package/dist/packages/_es/Input.js +32 -56
  54. package/dist/packages/_es/InputNumber.js +16 -25
  55. package/dist/packages/_es/Invoice.js +5 -6
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +34 -47
  58. package/dist/packages/_es/Menu.js +35 -35
  59. package/dist/packages/_es/MenuItem.js +29 -56
  60. package/dist/packages/_es/Navbar.js +39 -49
  61. package/dist/packages/_es/NoticeBar.js +45 -54
  62. package/dist/packages/_es/Notify.js +162 -44
  63. package/dist/packages/_es/NumberKeyboard.js +20 -15
  64. package/dist/packages/_es/OldPicker.js +116 -130
  65. package/dist/packages/_es/OverLay.js +28 -5
  66. package/dist/packages/_es/Pagination.js +5 -8
  67. package/dist/packages/_es/Picker.js +74 -198
  68. package/dist/packages/_es/Popover.js +881 -201
  69. package/dist/packages/_es/Popup.js +84 -28
  70. package/dist/packages/_es/Price.js +6 -22
  71. package/dist/packages/_es/Progress.js +11 -18
  72. package/dist/packages/_es/PullRefresh.js +2 -4
  73. package/dist/packages/_es/Radio.js +3 -3
  74. package/dist/packages/_es/RadioGroup.js +1 -1
  75. package/dist/packages/_es/Range.js +34 -48
  76. package/dist/packages/_es/Rate.js +14 -15
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +36 -39
  79. package/dist/packages/_es/ShortPassword.js +66 -97
  80. package/dist/packages/_es/SideNavBar.js +18 -7
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +80 -113
  83. package/dist/packages/_es/Skeleton.js +11 -12
  84. package/dist/packages/_es/Sku.js +38 -63
  85. package/dist/packages/_es/Step.js +2 -7
  86. package/dist/packages/_es/Steps.js +1 -1
  87. package/dist/packages/_es/Sticky.js +23 -33
  88. package/dist/packages/_es/SubSideNavBar.js +2 -4
  89. package/dist/packages/_es/Swipe.js +26 -41
  90. package/dist/packages/_es/Swiper.js +21 -38
  91. package/dist/packages/_es/SwiperItem.js +2 -2
  92. package/dist/packages/_es/Switch.js +8 -8
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +13 -15
  95. package/dist/packages/_es/TabbarItem.js +30 -24
  96. package/dist/packages/_es/Table.js +17 -22
  97. package/dist/packages/_es/Tabs.js +16 -49
  98. package/dist/packages/_es/Tag.js +5 -6
  99. package/dist/packages/_es/TextArea.js +49 -114
  100. package/dist/packages/_es/TimeDetail.js +3 -4
  101. package/dist/packages/_es/TimePannel.js +3 -3
  102. package/dist/packages/_es/TimeSelect.js +10 -12
  103. package/dist/packages/_es/Toast.js +164 -53
  104. package/dist/packages/_es/TrendArrow.js +4 -6
  105. package/dist/packages/_es/Uploader.js +140 -141
  106. package/dist/packages/_es/Video.js +18 -39
  107. package/dist/packages/_es/WaterMark.js +14 -22
  108. package/dist/packages/_es/common.js +1 -1
  109. package/dist/packages/_es/component.js +1 -1
  110. package/dist/packages/_es/index.js +6 -44
  111. package/dist/packages/_es/index2.js +31 -8
  112. package/dist/packages/_es/index3.js +7 -64
  113. package/dist/packages/_es/index4.js +62 -424
  114. package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/pxCheck.js +1 -1
  117. package/dist/packages/_es/raf.js +1 -1
  118. package/dist/packages/_es/style.css +3 -21
  119. package/dist/packages/checkbox/index.scss +1 -0
  120. package/dist/packages/locale/lang/baseLang.js +1 -1
  121. package/dist/packages/locale/lang/en-US.js +1 -1
  122. package/dist/packages/locale/lang/id-ID.js +1 -1
  123. package/dist/packages/locale/lang/index.js +1 -1
  124. package/dist/packages/locale/lang/zh-CN.js +1 -1
  125. package/dist/packages/locale/lang/zh-TW.js +1 -1
  126. package/dist/packages/menuitem/index.scss +12 -3
  127. package/dist/smartips/attributes.json +5 -1
  128. package/dist/smartips/tags.json +1 -0
  129. package/dist/smartips/web-types.json +11 -2
  130. package/dist/style.css +1 -1
  131. package/dist/styles/themes/default.scss +49 -49
  132. package/dist/styles/themes/jdb.scss +49 -49
  133. package/dist/styles/themes/jddkh.scss +49 -49
  134. package/dist/styles/themes/jdt.scss +49 -49
  135. package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
  136. package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +32 -72
  137. package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  138. package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  139. package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
  140. package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  141. package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
  142. package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  143. package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
  144. package/dist/types/__VUE/button/index.vue.d.ts +1 -1
  145. package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
  146. package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
  147. package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  148. package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  149. package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  150. package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  151. package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +6 -13
  152. package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  153. package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
  154. package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  155. package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
  156. package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
  157. package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  158. package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  159. package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
  160. package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
  161. package/dist/types/__VUE/dialog/index.d.ts +48 -0
  162. package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
  163. package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  164. package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
  165. package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
  166. package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
  167. package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
  168. package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  169. package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  170. package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  171. package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  172. package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
  173. package/dist/types/__VUE/image/index.vue.d.ts +117 -0
  174. package/dist/types/__VUE/image/type.d.ts +6 -0
  175. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
  176. package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
  177. package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
  178. package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  179. package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +8 -15
  180. package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
  181. package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
  182. package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  183. package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  184. package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
  185. package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
  186. package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  187. package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
  188. package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
  189. package/dist/types/__VUE/notify/index.d.ts +26 -0
  190. package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
  191. package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
  192. package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
  193. package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
  194. package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  195. package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
  196. package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
  197. package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +12 -14
  198. package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
  199. package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
  200. package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  201. package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  202. package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +6 -7
  203. package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  204. package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
  205. package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
  206. package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
  207. package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
  208. package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  209. package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
  210. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  212. package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  213. package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
  214. package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
  215. package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  216. package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  217. package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
  218. package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
  219. package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  220. package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  221. package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
  222. package/dist/types/__VUE/tag/type.d.ts +5 -0
  223. package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
  224. package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  225. package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  226. package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
  227. package/dist/types/__VUE/toast/index.d.ts +16 -0
  228. package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
  229. package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  230. package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +11 -20
  231. package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  232. package/dist/types/index.d.ts +1 -1
  233. package/dist/types/nutui.d.ts +89 -89
  234. package/package.json +3 -2
  235. package/dist/packages/_es/use-lock-scroll.js +0 -23
  236. package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
  237. package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
  238. package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
  239. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
  240. package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
  241. package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -78,9 +78,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
78
78
  ref: "formRef"
79
79
  }, {
80
80
  default: withCtx(() => [
81
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
81
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
82
82
  return openBlock(), createBlock(_component_nut_form_item, {
83
- key: index,
83
+ key: index2,
84
84
  label: item.label,
85
85
  required: item.required,
86
86
  rules: item.rules,
@@ -123,7 +123,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
123
  ]),
124
124
  _: 1
125
125
  }, 8, ["model-value"]),
126
- createTextVNode(),
127
126
  _ctx.submit ? (openBlock(), createElementBlock("div", _hoisted_2, [
128
127
  createVNode(_component_nut_button, {
129
128
  type: "primary",
@@ -138,5 +137,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
137
  ])) : createCommentVNode("", true)
139
138
  ], 2);
140
139
  }
141
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
142
- export { index_taro as default };
140
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
141
+ export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,20 +1,19 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementVNode, createTextVNode, createElementBlock, Fragment, renderList, renderSlot } from "vue";
6
+ import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import Taro from "@tarojs/taro";
9
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
9
  import "../locale/lang";
11
10
  const { componentName, create } = createComponent("list");
12
- const clientHeight = Taro.getSystemInfoSync().windowHeight || 667;
11
+ const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
13
12
  const _sfc_main = create({
14
13
  props: {
15
14
  height: {
16
15
  type: [Number],
17
- default: 0
16
+ default: 50
18
17
  },
19
18
  listData: {
20
19
  type: Array,
@@ -59,8 +58,9 @@ const _sfc_main = create({
59
58
  const visibleData = computed(() => {
60
59
  return state.list.slice(state.start, Math.min(end.value, state.list.length));
61
60
  });
62
- const handleScrollEvent = async (e) => {
63
- const scrollTop = e.detail ? e.detail.scrollTop : e.target.scrollTop;
61
+ const handleScrollEvent = () => {
62
+ var _a;
63
+ const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
64
64
  state.start = Math.floor(scrollTop / props.height);
65
65
  if (end.value > state.list.length) {
66
66
  emit("scroll");
@@ -87,47 +87,34 @@ const _sfc_main = create({
87
87
  }
88
88
  });
89
89
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
90
- const _component_scroll_view = resolveComponent(function() {
91
- if (process.env.TARO_ENV === "h5") {
92
- return "taro-scroll-view";
93
- } else {
94
- return "scroll-view";
95
- }
96
- }());
97
- return openBlock(), createBlock(_component_scroll_view, {
90
+ return openBlock(), createElementBlock("div", {
98
91
  class: normalizeClass(_ctx.classes),
99
- "scroll-y": true,
100
92
  style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
101
- "scroll-top": "0",
102
- onScroll: _ctx.handleScrollEvent,
93
+ onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args)),
103
94
  ref: "list"
104
- }, {
105
- default: withCtx(() => [
106
- createElementVNode("div", {
107
- class: "nut-list-phantom",
108
- style: normalizeStyle({ height: _ctx.listHeight + "px" })
109
- }, null, 4),
110
- createTextVNode(),
111
- createElementVNode("div", {
112
- class: "nut-list-container",
113
- style: normalizeStyle({ transform: _ctx.getTransform })
114
- }, [
115
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.visibleData, (item, index) => {
116
- return openBlock(), createElementBlock("div", {
117
- class: "nut-list-item",
118
- style: normalizeStyle({ height: _ctx.height + "px" }),
119
- key: item
120
- }, [
121
- renderSlot(_ctx.$slots, "default", {
122
- item,
123
- index
124
- })
125
- ], 4);
126
- }), 128))
127
- ], 4)
128
- ]),
129
- _: 3
130
- }, 8, ["class", "style", "onScroll"]);
95
+ }, [
96
+ createElementVNode("div", {
97
+ class: "nut-list-phantom",
98
+ style: normalizeStyle({ height: _ctx.listHeight + "px" })
99
+ }, null, 4),
100
+ createElementVNode("div", {
101
+ class: "nut-list-container",
102
+ style: normalizeStyle({ transform: _ctx.getTransform })
103
+ }, [
104
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.visibleData, (item, index2) => {
105
+ return openBlock(), createElementBlock("div", {
106
+ class: "nut-list-item",
107
+ style: normalizeStyle({ height: _ctx.height + "px" }),
108
+ key: item
109
+ }, [
110
+ renderSlot(_ctx.$slots, "default", {
111
+ item,
112
+ index: index2
113
+ })
114
+ ], 4);
115
+ }), 128))
116
+ ], 4)
117
+ ], 38);
131
118
  }
132
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
133
- export { index_taro as default };
119
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
120
+ export { index as default };
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createTextVNode, createVNode, mergeProps, renderSlot, provide } from "vue";
6
+ import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import Taro, { usePageScroll } from "@tarojs/taro";
8
+ import { u as useRect } from "./index2.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  import "../locale/lang";
11
11
  const { componentName, create } = createComponent("menu");
@@ -25,7 +25,7 @@ const _sfc_main = create({
25
25
  },
26
26
  duration: {
27
27
  type: [Number, String],
28
- default: 0.3
28
+ default: 0
29
29
  },
30
30
  titleIcon: String,
31
31
  closeOnClickOverlay: {
@@ -42,7 +42,7 @@ const _sfc_main = create({
42
42
  },
43
43
  titleClass: [String]
44
44
  },
45
- setup(props) {
45
+ setup(props, { emit, slots }) {
46
46
  const barRef = ref();
47
47
  const offset = ref(0);
48
48
  const isScrollFixed = ref(false);
@@ -82,36 +82,33 @@ const _sfc_main = create({
82
82
  "scroll-fixed": isScrollFixed.value
83
83
  };
84
84
  });
85
- const offsetSignal = ref(false);
86
- const updateOffset = (item) => {
85
+ const updateOffset = () => {
87
86
  if (barRef.value) {
88
- offsetSignal.value = true;
89
- setTimeout(() => {
90
- Taro.createSelectorQuery().select(".nut-menu__bar.offset-signal").boundingClientRect((rect) => {
91
- if (props.direction === "down") {
92
- offset.value = rect.bottom;
93
- } else {
94
- offset.value = Taro.getSystemInfoSync().windowHeight - rect.top;
95
- }
96
- offsetSignal.value = false;
97
- item.toggle();
98
- }).exec();
99
- }, 100);
87
+ const rect = useRect(barRef);
88
+ if (props.direction === "down") {
89
+ offset.value = rect.bottom;
90
+ } else {
91
+ offset.value = window.innerHeight - rect.top;
92
+ }
100
93
  }
101
94
  };
102
95
  linkChildren({ props, offset });
103
96
  const toggleItem = (active) => {
104
- children.forEach((item, index) => {
105
- if (index === active) {
106
- updateOffset(item);
97
+ children.forEach((item, index2) => {
98
+ if (index2 === active) {
99
+ updateOffset();
100
+ item.toggle();
107
101
  } else if (item.state.showPopup) {
108
102
  item.toggle(false, { immediate: true });
109
103
  }
110
104
  });
111
105
  };
112
- const onScroll = (res) => {
106
+ const getScrollTop = (el) => {
107
+ return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
108
+ };
109
+ const onScroll = () => {
113
110
  const { scrollFixed } = props;
114
- const scrollTop = res.scrollTop;
111
+ const scrollTop = getScrollTop(window);
115
112
  isScrollFixed.value = scrollTop > (typeof scrollFixed === "boolean" ? 30 : Number(scrollFixed));
116
113
  };
117
114
  const getClasses = (showPopup) => {
@@ -125,17 +122,22 @@ const _sfc_main = create({
125
122
  }
126
123
  return str;
127
124
  };
128
- usePageScroll((res) => {
125
+ onMounted(() => {
126
+ const { scrollFixed } = props;
127
+ if (scrollFixed) {
128
+ window.addEventListener("scroll", onScroll);
129
+ }
130
+ });
131
+ onUnmounted(() => {
129
132
  const { scrollFixed } = props;
130
133
  if (scrollFixed) {
131
- onScroll(res);
134
+ window.removeEventListener("scroll", onScroll);
132
135
  }
133
136
  });
134
137
  return {
135
138
  toggleItem,
136
139
  children,
137
140
  opened,
138
- offsetSignal,
139
141
  classes,
140
142
  barRef,
141
143
  getClasses
@@ -150,21 +152,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
150
152
  class: normalizeClass(_ctx.classes)
151
153
  }, [
152
154
  createElementVNode("view", {
153
- class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened, "offset-signal": _ctx.offsetSignal }]),
155
+ class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened }]),
154
156
  ref: "barRef"
155
157
  }, [
156
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index) => {
158
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index2) => {
157
159
  return openBlock(), createElementBlock("view", {
158
- key: index,
160
+ key: index2,
159
161
  class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
160
- onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
162
+ onClick: ($event) => !item.disabled && _ctx.toggleItem(index2),
161
163
  style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
162
164
  }, [
163
165
  createElementVNode("view", {
164
166
  class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
165
167
  }, [
166
168
  createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
167
- createTextVNode(),
168
169
  createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
169
170
  name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
170
171
  size: "10",
@@ -174,9 +175,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
174
175
  ], 14, _hoisted_1);
175
176
  }), 128))
176
177
  ], 2),
177
- createTextVNode(),
178
178
  renderSlot(_ctx.$slots, "default")
179
179
  ], 2);
180
180
  }
181
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
182
- export { index_taro as default };
181
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
182
+ export { index as default };
@@ -1,16 +1,15 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, computed, inject, getCurrentInstance, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createTextVNode, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
6
+ import { reactive, computed, inject, getCurrentInstance, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import _sfc_main$1 from "./Icon.js";
9
9
  import Popup from "./Popup.js";
10
10
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
11
11
  import "../locale/lang";
12
12
  import "./pxCheck.js";
13
- import "./use-lock-scroll.js";
14
13
  import "./OverLay.js";
15
14
  const { componentName, create } = createComponent("menu-item");
16
15
  const _sfc_main = create({
@@ -120,17 +119,10 @@ const _sfc_main = create({
120
119
  };
121
120
  }
122
121
  });
123
- const _hoisted_1 = { class: "nut-menu-item__content" };
122
+ const _hoisted_1 = { class: "nut-menu-item__content nut-menu-item__overflow" };
124
123
  const _hoisted_2 = ["onClick"];
125
124
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
126
125
  const _component_nut_icon = resolveComponent("nut-icon");
127
- const _component_scroll_view = resolveComponent(function() {
128
- if (process.env.TARO_ENV === "h5") {
129
- return "taro-scroll-view";
130
- } else {
131
- return "scroll-view";
132
- }
133
- }());
134
126
  const _component_nut_popup = resolveComponent("nut-popup");
135
127
  return withDirectives((openBlock(), createElementBlock("view", {
136
128
  class: normalizeClass(_ctx.classes)
@@ -142,7 +134,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
142
134
  }, null, 6), [
143
135
  [vShow, _ctx.state.isShowPlaceholderElement]
144
136
  ]),
145
- createTextVNode(),
146
137
  createVNode(_component_nut_popup, mergeProps({
147
138
  style: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" },
148
139
  overlayStyle: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" }
@@ -152,59 +143,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
152
143
  position: _ctx.parent.props.direction === "down" ? "top" : "bottom",
153
144
  duration: _ctx.parent.props.duration,
154
145
  "pop-class": "nut-menu__pop",
155
- transition: "transition-none",
156
146
  overlayClass: "nut-menu__overlay",
157
147
  overlay: _ctx.parent.props.overlay,
158
- lockScroll: _ctx.parent.props.lockScroll,
159
148
  onClosed: _ctx.handleClose,
149
+ lockScroll: _ctx.parent.props.lockScroll,
150
+ isWrapTeleport: false,
160
151
  "close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
161
152
  }), {
162
153
  default: withCtx(() => [
163
- createVNode(_component_scroll_view, {
164
- "scroll-y": true,
165
- style: { "height": "100%" }
166
- }, {
167
- default: withCtx(() => [
168
- createElementVNode("view", _hoisted_1, [
169
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
170
- return openBlock(), createElementBlock("view", {
171
- key: index,
172
- class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
173
- style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
174
- onClick: ($event) => _ctx.onClick(option)
175
- }, [
176
- option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
177
- key: 0,
178
- class: {
179
- activeTitleClass: option.value === _ctx.modelValue,
180
- inactiveTitleClass: option.value !== _ctx.modelValue
181
- },
182
- name: _ctx.optionIcon
183
- }, _ctx.$attrs, {
184
- color: _ctx.parent.props.activeColor
185
- }), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
186
- createTextVNode(),
187
- createElementVNode("view", {
188
- class: normalizeClass({
189
- activeTitleClass: option.value === _ctx.modelValue,
190
- inactiveTitleClass: option.value !== _ctx.modelValue
191
- }),
192
- style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
193
- }, toDisplayString(option.text), 7)
194
- ], 14, _hoisted_2);
195
- }), 128)),
196
- createTextVNode(),
197
- renderSlot(_ctx.$slots, "default")
198
- ])
199
- ]),
200
- _: 3
201
- })
154
+ createElementVNode("view", _hoisted_1, [
155
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index2) => {
156
+ return openBlock(), createElementBlock("view", {
157
+ key: index2,
158
+ class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
159
+ style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
160
+ onClick: ($event) => _ctx.onClick(option)
161
+ }, [
162
+ option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
163
+ class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
164
+ name: _ctx.optionIcon,
165
+ color: _ctx.parent.props.activeColor
166
+ }), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
167
+ createElementVNode("view", {
168
+ class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
169
+ style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
170
+ }, toDisplayString(option.text), 7)
171
+ ], 14, _hoisted_2);
172
+ }), 128)),
173
+ renderSlot(_ctx.$slots, "default")
174
+ ])
202
175
  ]),
203
176
  _: 3
204
- }, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "lockScroll", "onClosed", "close-on-click-overlay"])
177
+ }, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "onClosed", "lockScroll", "close-on-click-overlay"])
205
178
  ], 2)), [
206
179
  [vShow, _ctx.state.showWrapper]
207
180
  ]);
208
181
  }
209
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
210
- export { index_taro as default };
182
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
183
+ export { index as default };
@@ -1,11 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { toRefs, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, createBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot, mergeProps } from "vue";
6
+ import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot, mergeProps } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import Taro from "@tarojs/taro";
9
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
9
  import "../locale/lang";
11
10
  const { componentName, create } = createComponent("navbar");
@@ -40,6 +39,8 @@ const _sfc_main = create({
40
39
  emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
41
40
  setup(props, { emit }) {
42
41
  const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = toRefs(props);
42
+ const navBarWrap = ref(null);
43
+ const navBarHtml = ref(null);
43
44
  let navHeight = ref(0);
44
45
  const classes = computed(() => {
45
46
  const prefixCls = componentName;
@@ -57,13 +58,11 @@ const _sfc_main = create({
57
58
  });
58
59
  onMounted(() => {
59
60
  if (fixed.value && placeholder.value) {
60
- setTimeout(() => {
61
- const query = Taro.createSelectorQuery();
62
- query.select(".navBarHtml").boundingClientRect();
63
- query.exec((res) => {
64
- navHeight.value = res[0].height;
65
- });
66
- }, 500);
61
+ nextTick(() => {
62
+ var _a;
63
+ navHeight = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
64
+ navBarWrap.value.style.height = navHeight + "px";
65
+ });
67
66
  }
68
67
  });
69
68
  function handleLeft() {
@@ -79,7 +78,8 @@ const _sfc_main = create({
79
78
  emit("on-click-right");
80
79
  }
81
80
  return {
82
- navHeight,
81
+ navBarWrap,
82
+ navBarHtml,
83
83
  classes,
84
84
  styles,
85
85
  handleLeft,
@@ -90,33 +90,35 @@ const _sfc_main = create({
90
90
  }
91
91
  });
92
92
  const _hoisted_1 = {
93
+ key: 0,
94
+ class: "nut-navbar--placeholder",
95
+ ref: "navBarWrap"
96
+ };
97
+ const _hoisted_2 = {
93
98
  key: 1,
94
99
  class: "nut-navbar__text"
95
100
  };
96
- const _hoisted_2 = { class: "nut-navbar__title" };
97
- const _hoisted_3 = {
101
+ const _hoisted_3 = { class: "nut-navbar__title" };
102
+ const _hoisted_4 = {
98
103
  key: 0,
99
104
  class: "nut-navbar__text"
100
105
  };
101
- const _hoisted_4 = {
106
+ const _hoisted_5 = {
102
107
  key: 1,
103
108
  class: "nut-navbar__text"
104
109
  };
105
- const _hoisted_5 = { class: "nut-navbar__title" };
106
- const _hoisted_6 = {
110
+ const _hoisted_6 = { class: "nut-navbar__title" };
111
+ const _hoisted_7 = {
107
112
  key: 0,
108
113
  class: "nut-navbar__text"
109
114
  };
110
115
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
111
116
  const _component_nut_icon = resolveComponent("nut-icon");
112
- return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", {
113
- key: 0,
114
- class: "nut-navbar--placeholder",
115
- style: normalizeStyle({ height: _ctx.navHeight + "px" })
116
- }, [
117
+ return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1, [
117
118
  createElementVNode("view", {
118
- class: normalizeClass([_ctx.classes, "navBarHtml"]),
119
- style: normalizeStyle(_ctx.styles)
119
+ class: normalizeClass(_ctx.classes),
120
+ style: normalizeStyle(_ctx.styles),
121
+ ref: "navBarHtml"
120
122
  }, [
121
123
  createElementVNode("view", {
122
124
  class: "nut-navbar__left",
@@ -127,19 +129,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
127
129
  color: "#979797",
128
130
  name: "left"
129
131
  })) : createCommentVNode("", true),
130
- createTextVNode(),
131
- _ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
132
- createTextVNode(),
132
+ _ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
133
133
  renderSlot(_ctx.$slots, "left")
134
134
  ]),
135
- createTextVNode(),
136
- createElementVNode("view", _hoisted_2, [
135
+ createElementVNode("view", _hoisted_3, [
137
136
  _ctx.title ? (openBlock(), createElementBlock("view", {
138
137
  key: 0,
139
138
  class: "title",
140
139
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
141
140
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
142
- createTextVNode(),
143
141
  _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
144
142
  key: 1,
145
143
  class: "icon"
@@ -147,20 +145,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
147
145
  name: _ctx.titIcon,
148
146
  onClick: _ctx.handleCenterIcon
149
147
  }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
150
- createTextVNode(),
151
148
  renderSlot(_ctx.$slots, "content")
152
149
  ]),
153
- createTextVNode(),
154
150
  createElementVNode("view", {
155
151
  class: "nut-navbar__right",
156
152
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
157
153
  }, [
158
- _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
159
- createTextVNode(),
154
+ _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
160
155
  renderSlot(_ctx.$slots, "right")
161
156
  ])
162
157
  ], 6)
163
- ], 4)) : (openBlock(), createElementBlock("view", {
158
+ ], 512)) : (openBlock(), createElementBlock("view", {
164
159
  key: 1,
165
160
  class: normalizeClass(_ctx.classes),
166
161
  style: normalizeStyle(_ctx.styles)
@@ -174,37 +169,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
174
169
  color: "#979797",
175
170
  name: "left"
176
171
  })) : createCommentVNode("", true),
177
- createTextVNode(),
178
- _ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
179
- createTextVNode(),
172
+ _ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
180
173
  renderSlot(_ctx.$slots, "left")
181
174
  ]),
182
- createTextVNode(),
183
- createElementVNode("view", _hoisted_5, [
175
+ createElementVNode("view", _hoisted_6, [
184
176
  _ctx.title ? (openBlock(), createElementBlock("view", {
185
177
  key: 0,
186
178
  class: "title",
187
179
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
188
180
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
189
- createTextVNode(),
190
181
  _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
191
182
  key: 1,
192
- class: "icon",
193
- name: _ctx.titIcon
194
- }, _ctx.$attrs, { onClick: _ctx.handleCenterIcon }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
195
- createTextVNode(),
183
+ class: "icon"
184
+ }, _ctx.$attrs, {
185
+ name: _ctx.titIcon,
186
+ onClick: _ctx.handleCenterIcon
187
+ }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
196
188
  renderSlot(_ctx.$slots, "content")
197
189
  ]),
198
- createTextVNode(),
199
190
  createElementVNode("view", {
200
191
  class: "nut-navbar__right",
201
192
  onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
202
193
  }, [
203
- _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
204
- createTextVNode(),
194
+ _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
205
195
  renderSlot(_ctx.$slots, "right")
206
196
  ])
207
197
  ], 6));
208
198
  }
209
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
210
- export { index_taro as default };
199
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
200
+ export { index as default };