@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,16 +1,16 @@
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 { useSlots, ref, computed, onMounted, onUnmounted, onDeactivated, watch, reactive, useCssVars, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createTextVNode } from "vue";
6
+ import { useSlots, computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, useCssVars, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } 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
- var index_taro_vue_vue_type_style_index_0_lang = "";
10
+ var index_vue_vue_type_style_index_0_lang = "";
12
11
  const { componentName, create } = createComponent("barrage");
13
12
  const __default__ = create({
13
+ name: "barrage",
14
14
  props: {
15
15
  danmu: {
16
16
  type: Array,
@@ -18,11 +18,11 @@ const __default__ = create({
18
18
  },
19
19
  frequency: {
20
20
  type: Number,
21
- default: 200
21
+ default: 500
22
22
  },
23
23
  speeds: {
24
24
  type: Number,
25
- default: 800
25
+ default: 5e3
26
26
  },
27
27
  rows: {
28
28
  type: Number,
@@ -41,97 +41,126 @@ const __default__ = create({
41
41
  setup(props, { slots }) {
42
42
  const classTime = new Date().getTime();
43
43
  const slotDefault = !!useSlots().default;
44
- const timeId = ref(new Date().getTime());
45
- const danmuList = ref(props.danmu);
46
- const danmuListSlots = ref([]);
47
- const rows = ref(props.rows);
48
- const top = ref(props.top);
49
- const speeds = props.speeds;
50
44
  const classes = computed(() => {
51
45
  const prefixCls = componentName;
52
46
  return {
53
- [prefixCls]: true,
54
- ["dmBody" + timeId.value]: true
47
+ [prefixCls]: true
55
48
  };
56
49
  });
50
+ let dmBody = ref(document.createElement("div"));
51
+ let dmContainer = ref(document.createElement("div"));
52
+ let timer = 0;
53
+ const danmuList = ref(props.danmu);
54
+ const rows = ref(props.rows);
55
+ const top = ref(props.top);
56
+ const index2 = ref(0);
57
+ const speeds = props.speeds;
58
+ const danmuCWidth = ref(0);
57
59
  onMounted(() => {
58
60
  var _a;
61
+ danmuCWidth.value = dmBody.value.offsetWidth;
59
62
  if (slotDefault) {
60
- const list = document.getElementsByClassName("slotBody" + classTime)[0].getElementsByClassName("dmitem");
61
- console.log(list);
63
+ const list = document.getElementsByClassName("slotBody" + classTime);
62
64
  let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
63
- danmuList.value = childrens;
65
+ const dmList = [];
66
+ if (childrens) {
67
+ Array.from(childrens).forEach((item) => {
68
+ item.style.opacity = "0";
69
+ dmList.push(item);
70
+ });
71
+ }
72
+ danmuList.value = dmList;
64
73
  }
65
- runStep();
74
+ setTimeout(() => {
75
+ run();
76
+ }, 300);
66
77
  });
67
78
  onUnmounted(() => {
68
79
  danmuList.value = [];
80
+ clearInterval(timer);
81
+ timer = 0;
69
82
  });
70
83
  onDeactivated(() => {
71
84
  danmuList.value = [];
85
+ clearInterval(timer);
86
+ timer = 0;
72
87
  });
73
88
  watch(
74
89
  () => props.danmu,
75
90
  (newValue) => {
76
- danmuList.value = [...newValue];
91
+ if (props.danmu.length > 0) {
92
+ danmuList.value = [...newValue];
93
+ }
77
94
  }
78
95
  );
79
96
  const add = (word) => {
80
- danmuList.value = [...danmuList.value, word];
81
- runStep();
82
- };
83
- const getNode = (index) => {
84
- const query = Taro.createSelectorQuery();
85
- setTimeout(() => {
86
- let width = 100;
87
- query.select(".dmBody" + timeId.value).boundingClientRect((rec) => {
88
- width = rec.width || 300;
89
- });
90
- query.select(".dmitem" + index).boundingClientRect((recs) => {
91
- let height = recs.height;
92
- let nodeTop = index % rows.value * (height + top.value) + 20 + "px";
93
- styleInfo(index, nodeTop, width);
94
- }).exec();
95
- }, 500);
97
+ const _index = index2.value % danmuList.value.length;
98
+ if (!props.loop && index2.value === danmuList.value.length) {
99
+ danmuList.value.splice(danmuList.value.length, 0, word);
100
+ } else {
101
+ danmuList.value.splice(_index, 0, word);
102
+ }
96
103
  };
97
- const runStep = () => {
98
- danmuList.value.forEach((item, index) => {
99
- if (typeof danmuList.value[index] == "object") {
100
- getNode(index);
101
- } else {
102
- getNode(index);
103
- }
104
- });
104
+ const run = () => {
105
+ clearInterval(timer);
106
+ timer = 0;
107
+ timer = setInterval(() => {
108
+ play();
109
+ run();
110
+ }, props.frequency);
105
111
  };
106
112
  const distance = ref("0");
107
- let styleList = reactive([]);
108
- const styleInfo = (index, nodeTop, width) => {
109
- var _a;
110
- let timeIndex = index - rows.value > 0 ? index - rows.value : 0;
111
- let list = styleList;
112
- let time = list[timeIndex] ? Number(list[timeIndex]["--time"]) : 0;
113
- distance.value = "-" + speeds / 1e3 * 200 + "%";
114
- let obj = {
115
- top: nodeTop,
116
- "--time": `${props.frequency * index + time}`,
117
- animationDuration: `${speeds}ms`,
118
- animationIterationCount: `${props.loop ? "infinite" : 1}`,
119
- animationDelay: `${props.frequency * index + time}ms`,
120
- "--move-distance": `-${width}px`
121
- };
122
- if (slotDefault && ((_a = danmuList.value[index]) == null ? void 0 : _a.el)) {
123
- let orginalSty = danmuList.value[index].el.style;
124
- danmuList.value[index].el.style = Object.assign(orginalSty, obj);
113
+ const play = () => {
114
+ var _a, _b, _c;
115
+ if (!props.loop && index2.value >= danmuList.value.length) {
116
+ return;
117
+ }
118
+ const _index = props.loop ? index2.value % danmuList.value.length : index2.value;
119
+ let el = document.createElement(`view`);
120
+ if (slotDefault && typeof danmuList.value[_index] == "object") {
121
+ el = danmuList.value[_index];
122
+ if ((_a = el == null ? void 0 : el.classList) == null ? void 0 : _a.contains("dmitem")) {
123
+ el.classList.remove("dmitem");
124
+ }
125
+ if ((_b = el == null ? void 0 : el.classList) == null ? void 0 : _b.contains("move")) {
126
+ el.classList.remove("move");
127
+ }
128
+ (_c = el == null ? void 0 : el.classList) == null ? void 0 : _c.add("dmitem");
125
129
  } else {
126
- styleList.push(obj);
130
+ el.innerHTML = danmuList.value[_index];
131
+ el.classList.add("dmitem");
132
+ dmContainer.value.appendChild(el);
127
133
  }
134
+ nextTick(() => {
135
+ var _a2;
136
+ const height = el.offsetHeight;
137
+ (_a2 = el == null ? void 0 : el.classList) == null ? void 0 : _a2.add("move");
138
+ el.style.animationDuration = `${speeds}ms`;
139
+ el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
140
+ el.style.opacity = "1";
141
+ if (!slotDefault) {
142
+ const width = el.offsetWidth;
143
+ el.style.width = width + 20 + "px";
144
+ }
145
+ el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
146
+ distance.value = "-" + speeds / 1e3 * 150 + "%";
147
+ el.dataset.index = `${_index}`;
148
+ if (slotDefault) {
149
+ index2.value++;
150
+ } else {
151
+ el.addEventListener("animationend", () => {
152
+ dmContainer.value.removeChild(el);
153
+ });
154
+ index2.value++;
155
+ }
156
+ });
128
157
  };
129
- return { classTime, classes, danmuList, add, styleList, distance, danmuListSlots };
158
+ return { classTime, classes, danmuList, dmBody, dmContainer, add, distance };
130
159
  }
131
160
  });
132
161
  const __injectCSSVars__ = () => {
133
162
  useCssVars((_ctx) => ({
134
- "9732a304": _ctx.distance
163
+ "01d702ea": _ctx.distance
135
164
  }));
136
165
  };
137
166
  const __setup__ = __default__.setup;
@@ -141,27 +170,22 @@ __default__.setup = __setup__ ? (props, ctx) => {
141
170
  } : __injectCSSVars__;
142
171
  const _sfc_main = __default__;
143
172
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
144
- return openBlock(), createElementBlock("view", {
145
- class: normalizeClass(["dmBody", _ctx.classes])
173
+ return openBlock(), createElementBlock("div", {
174
+ ref: "dmBody",
175
+ class: normalizeClass(_ctx.classes)
146
176
  }, [
147
177
  createElementVNode("div", {
148
178
  ref: "dmContainer",
149
179
  class: normalizeClass(["dmContainer", _ctx.$slots.default && "slotContainer"])
150
180
  }, [
151
- createElementVNode("div", {
181
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
182
+ key: 0,
152
183
  class: normalizeClass(["slotBody", "slotBody" + _ctx.classTime])
153
184
  }, [
154
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.danmuList, (item, index) => {
155
- return openBlock(), createElementBlock("view", {
156
- key: "danmu" + index,
157
- class: normalizeClass(["dmitem", "dmitem" + index, "move"]),
158
- style: normalizeStyle(_ctx.styleList[index])
159
- }, toDisplayString(item.length > 8 ? item.substr(0, 8) + "..." : item), 7);
160
- }), 128))
161
- ], 2)
162
- ], 2),
163
- createTextVNode()
185
+ renderSlot(_ctx.$slots, "default")
186
+ ], 2)) : createCommentVNode("", true)
187
+ ], 2)
164
188
  ], 2);
165
189
  }
166
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
167
- export { index_taro as default };
190
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
191
+ export { index as default };
@@ -1,9 +1,9 @@
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, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, createTextVNode, mergeProps, renderSlot } from "vue";
6
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import _sfc_main$1 from "./Icon.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -105,7 +105,7 @@ const _sfc_main = create({
105
105
  const _hoisted_1 = { class: "nut-button__warp" };
106
106
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
107
107
  const _component_nut_icon = resolveComponent("nut-icon");
108
- return openBlock(), createElementBlock("button", {
108
+ return openBlock(), createElementBlock("view", {
109
109
  class: normalizeClass(_ctx.classes),
110
110
  style: normalizeStyle(_ctx.getStyle),
111
111
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
@@ -115,7 +115,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
115
  key: 0,
116
116
  class: "nut-icon-loading"
117
117
  })) : createCommentVNode("", true),
118
- createTextVNode(),
119
118
  _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
120
119
  key: 1,
121
120
  name: _ctx.icon
@@ -123,7 +122,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
122
  "class-prefix": _ctx.iconClassPrefix,
124
123
  "font-class-name": _ctx.iconFontClassName
125
124
  }), null, 16, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
126
- createTextVNode(),
127
125
  _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
128
126
  key: 2,
129
127
  class: normalizeClass({ text: _ctx.icon || _ctx.loading })
@@ -1,13 +1,12 @@
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, ref, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
6
+ import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { C as CalendarItem, U as Utils } from "./index.taro.js";
9
- import { u as useExpose } from "./index2.js";
10
- import Taro from "@tarojs/taro";
8
+ import { C as CalendarItem, U as Utils } from "./index5.js";
9
+ import { u as useExpose } from "./index3.js";
11
10
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
12
11
  import "../locale/lang";
13
12
  import "./raf.js";
@@ -79,10 +78,6 @@ const _sfc_main = create({
79
78
  },
80
79
  emits: ["choose", "close", "update:visible", "select"],
81
80
  setup(props, { emit, slots }) {
82
- const state = reactive({
83
- ENV: Taro.getEnv(),
84
- ENV_TYPE: Taro.ENV_TYPE
85
- });
86
81
  const showTopBtn = computed(() => {
87
82
  return slots.btn;
88
83
  });
@@ -95,7 +90,6 @@ const _sfc_main = create({
95
90
  const bottomInfo = computed(() => {
96
91
  return slots.bottomInfo;
97
92
  });
98
- let show = ref(props.visible);
99
93
  const calendarRef = ref(null);
100
94
  const scrollToDate = (date) => {
101
95
  var _a;
@@ -105,11 +99,9 @@ const _sfc_main = create({
105
99
  scrollToDate
106
100
  });
107
101
  const update = () => {
108
- show.value = false;
109
102
  emit("update:visible", false);
110
103
  };
111
104
  const close = () => {
112
- show.value = false;
113
105
  emit("close");
114
106
  emit("update:visible", false);
115
107
  };
@@ -117,26 +109,18 @@ const _sfc_main = create({
117
109
  close();
118
110
  emit("choose", param);
119
111
  };
120
- const closePopup = () => {
121
- close();
122
- };
123
112
  const select = (param) => {
124
113
  emit("select", param);
125
114
  };
126
- watch(
127
- () => props.visible,
128
- (value) => {
129
- show.value = value;
130
- }
131
- );
115
+ const closePopup = () => {
116
+ close();
117
+ };
132
118
  return {
133
- ...toRefs(state),
134
- show,
135
119
  closePopup,
136
120
  update,
137
121
  close,
138
- select,
139
122
  choose,
123
+ select,
140
124
  calendarRef,
141
125
  showTopBtn,
142
126
  topInfo,
@@ -150,23 +134,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
150
134
  const _component_nut_popup = resolveComponent("nut-popup");
151
135
  return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
152
136
  key: 0,
153
- visible: _ctx.show,
154
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
137
+ visible: _ctx.visible,
155
138
  position: "bottom",
156
139
  round: "",
157
- closeable: "",
140
+ closeable: true,
158
141
  onClickOverlay: _ctx.closePopup,
159
142
  onClickCloseIcon: _ctx.closePopup,
143
+ "destroy-on-close": true,
160
144
  style: { height: "85vh" }
161
145
  }, {
162
146
  default: withCtx(() => [
163
- _ctx.show ? (openBlock(), createBlock(_component_nut_calendar_item, {
147
+ _ctx.visible ? (openBlock(), createBlock(_component_nut_calendar_item, {
164
148
  key: 0,
149
+ props: "",
165
150
  ref: "calendarRef",
166
151
  type: _ctx.type,
167
152
  "is-auto-back-fill": _ctx.isAutoBackFill,
168
153
  poppable: _ctx.poppable,
169
154
  title: _ctx.title,
155
+ "confirm-text": _ctx.confirmText,
156
+ "start-text": _ctx.startText,
157
+ "end-text": _ctx.endText,
170
158
  "default-value": _ctx.defaultValue,
171
159
  "start-date": _ctx.startDate,
172
160
  "end-date": _ctx.endDate,
@@ -174,9 +162,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
174
162
  onClose: _ctx.close,
175
163
  onChoose: _ctx.choose,
176
164
  onSelect: _ctx.select,
177
- "confirm-text": _ctx.confirmText,
178
- "start-text": _ctx.startText,
179
- "end-text": _ctx.endText,
180
165
  "show-today": _ctx.showToday,
181
166
  "show-title": _ctx.showTitle,
182
167
  "show-sub-title": _ctx.showSubTitle,
@@ -216,7 +201,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
216
201
  ]),
217
202
  key: "3"
218
203
  } : void 0
219
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "confirm-text", "start-text", "end-text", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : createCommentVNode("", true)
204
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : createCommentVNode("", true)
220
205
  ]),
221
206
  _: 3
222
207
  }, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
@@ -231,13 +216,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
231
216
  "default-value": _ctx.defaultValue,
232
217
  "start-date": _ctx.startDate,
233
218
  "end-date": _ctx.endDate,
219
+ onUpdate: _ctx.update,
234
220
  onClose: _ctx.close,
235
221
  onChoose: _ctx.choose,
236
222
  onSelect: _ctx.select,
223
+ "show-today": _ctx.showToday,
237
224
  "show-title": _ctx.showTitle,
238
225
  "show-sub-title": _ctx.showSubTitle,
239
226
  "to-date-animation": _ctx.toDateAnimation,
240
- "show-today": _ctx.showToday
227
+ ref: "calendarRef"
241
228
  }, createSlots({ _: 2 }, [
242
229
  _ctx.showTopBtn ? {
243
230
  name: "btn",
@@ -273,7 +260,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
273
260
  ]),
274
261
  key: "3"
275
262
  } : void 0
276
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onClose", "onChoose", "onSelect", "show-title", "show-sub-title", "to-date-animation", "show-today"]));
263
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
277
264
  }
278
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
279
- export { index_taro as default };
265
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
266
+ export { index as default };
@@ -1,13 +1,12 @@
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
6
  import "vue";
7
7
  import "./component.js";
8
- import "@tarojs/taro";
9
- export { C as default } from "./index.taro.js";
10
- import "./index2.js";
8
+ export { C as default } from "./index5.js";
11
9
  import "./raf.js";
10
+ import "./index3.js";
12
11
  import "./plugin-vue_export-helper.js";
13
12
  import "../locale/lang";
@@ -1,10 +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
6
  import { c as createComponent } from "./component.js";
7
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode, Fragment, createVNode, withCtx } from "vue";
7
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createBlock, createCommentVNode, Fragment, createVNode, withCtx, createTextVNode } from "vue";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
10
  const { create } = createComponent("card");
@@ -74,27 +74,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
74
74
  alt: ""
75
75
  }, null, 8, _hoisted_3)
76
76
  ]),
77
- createTextVNode(),
78
77
  createElementVNode("div", _hoisted_4, [
79
78
  createElementVNode("div", _hoisted_5, toDisplayString(_ctx.title), 1),
80
- createTextVNode(),
81
79
  renderSlot(_ctx.$slots, "prolist"),
82
- createTextVNode(),
83
80
  _ctx.isNeedPrice ? (openBlock(), createElementBlock("div", _hoisted_6, [
84
81
  _ctx.isHaveSlot("price") ? renderSlot(_ctx.$slots, "price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
85
82
  key: 1,
86
83
  price: _ctx.price
87
84
  }, null, 8, ["price"])),
88
- createTextVNode(),
89
85
  _ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 2 }) : (openBlock(), createBlock(_component_nut_price, {
90
86
  key: 3,
91
87
  class: "nut-card__right__price__origin",
92
88
  price: _ctx.vipPrice
93
- }, null, 8, ["price"])),
94
- createTextVNode(),
95
- _ctx.isHaveSlot("tag") ? renderSlot(_ctx.$slots, "tag", { key: 4 }) : createCommentVNode("", true)
89
+ }, null, 8, ["price"]))
96
90
  ])) : createCommentVNode("", true),
97
- createTextVNode(),
98
91
  createElementVNode("div", _hoisted_7, [
99
92
  _ctx.isHaveSlot("shop-tag") ? renderSlot(_ctx.$slots, "shop-tag", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
100
93
  createVNode(_component_nut_tag, { type: "danger" }, {
@@ -103,7 +96,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
96
  ]),
104
97
  _: 1
105
98
  }),
106
- createTextVNode(),
107
99
  createVNode(_component_nut_tag, { plain: "" }, {
108
100
  default: withCtx(() => [
109
101
  createTextVNode(toDisplayString(_ctx.delivery), 1)
@@ -112,14 +104,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
112
104
  })
113
105
  ], 64))
114
106
  ]),
115
- createTextVNode(),
116
107
  createElementVNode("div", _hoisted_8, [
117
108
  createElementVNode("div", _hoisted_9, toDisplayString(_ctx.shopName), 1),
118
- createTextVNode(),
119
109
  renderSlot(_ctx.$slots, "footer")
120
110
  ])
121
111
  ])
122
112
  ]);
123
113
  }
124
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
125
- export { index_taro as default };
114
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
115
+ export { index as default };
@@ -1,14 +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 { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createTextVNode, createCommentVNode, createVNode } from "vue";
6
+ import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
7
+ import { popupProps } from "./Popup.js";
7
8
  import { c as createComponent } from "./component.js";
8
- import { p as popupProps } from "./index4.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
+ import "./OverLay.js";
10
11
  import "../locale/lang";
11
- import "./use-lock-scroll.js";
12
+ import "./Icon.js";
12
13
  import "./pxCheck.js";
13
14
  const formatTree = (tree, parent, config) => tree.map((node) => {
14
15
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
@@ -233,8 +234,8 @@ const _sfc_main$1 = create$1({
233
234
  }
234
235
  if (needToSync.length && currentValue === props.modelValue) {
235
236
  const pathNodes = tree.value.getPathNodesByValue(needToSync);
236
- pathNodes.map((node, index) => {
237
- tabsCursor.value = index;
237
+ pathNodes.map((node, index2) => {
238
+ tabsCursor.value = index2;
238
239
  methods.handleNode(node, true);
239
240
  });
240
241
  }
@@ -377,10 +378,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
377
378
  "title-scroll": ""
378
379
  }, {
379
380
  default: withCtx(() => [
380
- !_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane, index) => {
381
+ !_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane, index2) => {
381
382
  return openBlock(), createBlock(_component_nut_tabpane, {
382
383
  title: _ctx.formatTabTitle(pane),
383
- key: index
384
+ key: index2
384
385
  }, {
385
386
  default: withCtx(() => [
386
387
  createElementVNode("view", _hoisted_1$1, [
@@ -394,7 +395,6 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
394
395
  onClick: ($event) => _ctx.handleNode(node, false)
395
396
  }, [
396
397
  createElementVNode("view", _hoisted_3, toDisplayString(node.text), 1),
397
- createTextVNode(),
398
398
  node.loading ? (openBlock(), createBlock(_component_nut_icon, {
399
399
  key: 0,
400
400
  class: "nut-cascader-item__icon-loading",
@@ -516,7 +516,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
516
516
  class: "nut-cascader__bar",
517
517
  innerHTML: _ctx.title
518
518
  }, null, 8, _hoisted_1)) : createCommentVNode("", true),
519
- createTextVNode(),
520
519
  createVNode(_component_nut_cascader_item, {
521
520
  onChange: _ctx.onChange,
522
521
  onPathChange: _ctx.onPathChange,
@@ -547,5 +546,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
547
546
  visible: _ctx.innerVisible
548
547
  }, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"]));
549
548
  }
550
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
551
- export { index_taro as default };
549
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
550
+ export { index as default };
@@ -1,9 +1,9 @@
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, onMounted, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, createTextVNode, renderSlot } from "vue";
6
+ import { ref, onMounted, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
@@ -22,9 +22,9 @@ const _sfc_main = create({
22
22
  setup(props, { emit, slots }) {
23
23
  const checkIndex = ref(0);
24
24
  const categoryLeft = ref(false);
25
- const getChildList = (index) => {
26
- checkIndex.value = index;
27
- emit("change", index);
25
+ const getChildList = (index2) => {
26
+ checkIndex.value = index2;
27
+ emit("change", index2);
28
28
  };
29
29
  onMounted(() => {
30
30
  });
@@ -43,22 +43,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
43
43
  return openBlock(), createElementBlock("div", _hoisted_1, [
44
44
  createElementVNode("div", _hoisted_2, [
45
45
  _ctx.type == "classify" || _ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_3, [
46
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.category, (item, index) => {
46
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.category, (item, index2) => {
47
47
  return openBlock(), createElementBlock("div", {
48
48
  class: "nut-category__cateListLeft",
49
- key: index
49
+ key: index2
50
50
  }, [
51
51
  createElementVNode("div", {
52
- class: normalizeClass([_ctx.checkIndex == index ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
53
- onClick: ($event) => _ctx.getChildList(index)
54
- }, toDisplayString(item.catName), 11, _hoisted_4)
52
+ class: normalizeClass([_ctx.checkIndex == index2 ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
53
+ onClick: ($event) => _ctx.getChildList(index2)
54
+ }, toDisplayString(item == null ? void 0 : item.catName), 11, _hoisted_4)
55
55
  ]);
56
56
  }), 128))
57
57
  ])) : createCommentVNode("", true),
58
- createTextVNode(),
59
58
  renderSlot(_ctx.$slots, "default")
60
59
  ])
61
60
  ]);
62
61
  }
63
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
64
- export { index_taro as default };
62
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
63
+ export { index as default };