@nutui/nutui 3.2.5 → 3.2.6-beta.1

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