@nutui/nutui 3.3.2 → 3.3.3-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 (285) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +2 -6
  3. package/dist/packages/_es/ActionSheet.js +1 -1
  4. package/dist/packages/_es/Address.js +1 -1
  5. package/dist/packages/_es/AddressList.js +126 -178
  6. package/dist/packages/_es/Animate.js +1 -1
  7. package/dist/packages/_es/Audio.js +1 -1
  8. package/dist/packages/_es/AudioOperate.js +1 -1
  9. package/dist/packages/_es/Avatar.js +1 -1
  10. package/dist/packages/_es/AvatarGroup.js +1 -1
  11. package/dist/packages/_es/BackTop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +61 -43
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +1 -1
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +1 -1
  21. package/dist/packages/_es/Cell.js +1 -1
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +2 -2
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +1 -1
  28. package/dist/packages/_es/CollapseItem.js +1 -1
  29. package/dist/packages/_es/Comment.js +6 -8
  30. package/dist/packages/_es/ConfigProvider.js +38 -4
  31. package/dist/packages/_es/CountDown.js +1 -1
  32. package/dist/packages/_es/CountUp.js +1 -1
  33. package/dist/packages/_es/DatePicker.js +2 -2
  34. package/dist/packages/_es/Dialog.js +1 -1
  35. package/dist/packages/_es/Divider.js +1 -1
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +1 -1
  39. package/dist/packages/_es/Ellipsis.js +2 -4
  40. package/dist/packages/_es/Empty.js +1 -1
  41. package/dist/packages/_es/FixedNav.js +1 -1
  42. package/dist/packages/_es/Form.js +2 -2
  43. package/dist/packages/_es/FormItem.js +1 -1
  44. package/dist/packages/_es/Grid.js +1 -1
  45. package/dist/packages/_es/GridItem.js +1 -1
  46. package/dist/packages/_es/Icon.js +1 -1
  47. package/dist/packages/_es/Image.js +1 -1
  48. package/dist/packages/_es/ImagePreview.js +2 -2
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +1 -1
  51. package/dist/packages/_es/Input.js +1 -1
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Invoice.js +1 -1
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +1 -1
  56. package/dist/packages/_es/Menu.js +1 -1
  57. package/dist/packages/_es/MenuItem.js +1 -1
  58. package/dist/packages/_es/Navbar.js +1 -1
  59. package/dist/packages/_es/NoticeBar.js +9 -7
  60. package/dist/packages/_es/Notify.js +1 -1
  61. package/dist/packages/_es/NumberKeyboard.js +2 -2
  62. package/dist/packages/_es/OverLay.js +11 -5
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +3 -2
  65. package/dist/packages/_es/Popover.js +1 -1
  66. package/dist/packages/_es/Popup.js +1 -1
  67. package/dist/packages/_es/Price.js +1 -1
  68. package/dist/packages/_es/Progress.js +12 -8
  69. package/dist/packages/_es/Radio.js +1 -1
  70. package/dist/packages/_es/RadioGroup.js +1 -1
  71. package/dist/packages/_es/Range.js +1 -1
  72. package/dist/packages/_es/Rate.js +2 -2
  73. package/dist/packages/_es/Row.js +1 -1
  74. package/dist/packages/_es/SearchBar.js +1 -1
  75. package/dist/packages/_es/ShortPassword.js +1 -1
  76. package/dist/packages/_es/SideNavBar.js +1 -1
  77. package/dist/packages/_es/SideNavBarItem.js +1 -1
  78. package/dist/packages/_es/Signature.js +13 -2
  79. package/dist/packages/_es/Skeleton.js +1 -1
  80. package/dist/packages/_es/Sku.js +1 -1
  81. package/dist/packages/_es/Step.js +1 -1
  82. package/dist/packages/_es/Steps.js +1 -1
  83. package/dist/packages/_es/Sticky.js +1 -1
  84. package/dist/packages/_es/SubSideNavBar.js +1 -1
  85. package/dist/packages/_es/Swipe.js +1 -1
  86. package/dist/packages/_es/Swiper.js +2 -2
  87. package/dist/packages/_es/SwiperItem.js +1 -1
  88. package/dist/packages/_es/Switch.js +1 -1
  89. package/dist/packages/_es/TabPane.js +1 -1
  90. package/dist/packages/_es/Tabbar.js +1 -1
  91. package/dist/packages/_es/TabbarItem.js +1 -1
  92. package/dist/packages/_es/Table.js +1 -1
  93. package/dist/packages/_es/Tabs.js +1 -1
  94. package/dist/packages/_es/Tag.js +1 -1
  95. package/dist/packages/_es/TextArea.js +1 -1
  96. package/dist/packages/_es/TimeDetail.js +1 -1
  97. package/dist/packages/_es/TimePannel.js +1 -1
  98. package/dist/packages/_es/TimeSelect.js +1 -1
  99. package/dist/packages/_es/Toast.js +1 -1
  100. package/dist/packages/_es/TrendArrow.js +1 -1
  101. package/dist/packages/_es/Uploader.js +5 -4
  102. package/dist/packages/_es/Video.js +1 -1
  103. package/dist/packages/_es/WaterMark.js +1 -1
  104. package/dist/packages/_es/common.js +1 -1
  105. package/dist/packages/_es/component.js +2 -2
  106. package/dist/packages/_es/index.js +1 -1
  107. package/dist/packages/_es/index2.js +1 -1
  108. package/dist/packages/_es/index3.js +1 -1
  109. package/dist/packages/_es/index4.js +1 -1
  110. package/dist/packages/_es/index5.js +1 -1
  111. package/dist/packages/_es/interceptor.js +2 -2
  112. package/dist/packages/_es/mountComponent.js +1 -1
  113. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  114. package/dist/packages/_es/props.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/actionsheet/index.mjs +1 -0
  118. package/dist/packages/address/index.mjs +1 -0
  119. package/dist/packages/addresslist/index.mjs +1 -0
  120. package/dist/packages/animate/index.mjs +1 -0
  121. package/dist/packages/audio/index.mjs +1 -0
  122. package/dist/packages/audiooperate/index.mjs +1 -0
  123. package/dist/packages/avatar/index.mjs +1 -0
  124. package/dist/packages/avatargroup/index.mjs +1 -0
  125. package/dist/packages/backtop/index.mjs +1 -0
  126. package/dist/packages/badge/index.mjs +1 -0
  127. package/dist/packages/barrage/index.mjs +1 -0
  128. package/dist/packages/button/index.mjs +1 -0
  129. package/dist/packages/calendar/index.mjs +1 -0
  130. package/dist/packages/calendaritem/index.mjs +1 -0
  131. package/dist/packages/card/index.mjs +1 -0
  132. package/dist/packages/cascader/index.mjs +1 -0
  133. package/dist/packages/category/index.mjs +1 -0
  134. package/dist/packages/categorypane/index.mjs +1 -0
  135. package/dist/packages/cell/index.mjs +1 -0
  136. package/dist/packages/cell/index.scss +1 -0
  137. package/dist/packages/cellgroup/index.mjs +1 -0
  138. package/dist/packages/checkbox/index.mjs +1 -0
  139. package/dist/packages/checkboxgroup/index.mjs +1 -0
  140. package/dist/packages/circleprogress/index.mjs +1 -0
  141. package/dist/packages/col/index.mjs +1 -0
  142. package/dist/packages/collapse/index.mjs +1 -0
  143. package/dist/packages/collapseitem/index.mjs +1 -0
  144. package/dist/packages/comment/index.mjs +1 -0
  145. package/dist/packages/configprovider/index.mjs +1 -0
  146. package/dist/packages/countdown/index.mjs +1 -0
  147. package/dist/packages/countup/index.mjs +1 -0
  148. package/dist/packages/datepicker/index.mjs +1 -0
  149. package/dist/packages/dialog/index.mjs +1 -0
  150. package/dist/packages/divider/index.mjs +1 -0
  151. package/dist/packages/drag/index.mjs +1 -0
  152. package/dist/packages/ecard/index.mjs +1 -0
  153. package/dist/packages/elevator/index.mjs +1 -0
  154. package/dist/packages/ellipsis/index.mjs +1 -0
  155. package/dist/packages/empty/index.mjs +1 -0
  156. package/dist/packages/fixednav/index.mjs +1 -0
  157. package/dist/packages/form/index.mjs +1 -0
  158. package/dist/packages/formitem/index.mjs +1 -0
  159. package/dist/packages/grid/index.mjs +1 -0
  160. package/dist/packages/griditem/index.mjs +1 -0
  161. package/dist/packages/icon/index.mjs +1 -0
  162. package/dist/packages/image/index.mjs +1 -0
  163. package/dist/packages/imagepreview/index.mjs +1 -0
  164. package/dist/packages/indicator/index.mjs +1 -0
  165. package/dist/packages/infiniteloading/index.mjs +1 -0
  166. package/dist/packages/input/index.mjs +1 -0
  167. package/dist/packages/inputnumber/index.mjs +1 -0
  168. package/dist/packages/invoice/index.mjs +1 -0
  169. package/dist/packages/layout/index.mjs +1 -0
  170. package/dist/packages/list/index.mjs +1 -0
  171. package/dist/packages/locale/lang/baseLang.js +1 -1
  172. package/dist/packages/locale/lang/en-US.js +1 -1
  173. package/dist/packages/locale/lang/id-ID.js +1 -1
  174. package/dist/packages/locale/lang/index.js +1 -1
  175. package/dist/packages/locale/lang/zh-CN.js +1 -1
  176. package/dist/packages/locale/lang/zh-TW.js +1 -1
  177. package/dist/packages/menu/index.mjs +1 -0
  178. package/dist/packages/menuitem/index.mjs +1 -0
  179. package/dist/packages/navbar/index.mjs +1 -0
  180. package/dist/packages/noticebar/index.mjs +1 -0
  181. package/dist/packages/noticebar/index.scss +1 -0
  182. package/dist/packages/notify/index.mjs +1 -0
  183. package/dist/packages/numberkeyboard/index.mjs +1 -0
  184. package/dist/packages/overlay/index.mjs +1 -0
  185. package/dist/packages/pagination/index.mjs +1 -0
  186. package/dist/packages/picker/index.mjs +1 -0
  187. package/dist/packages/popover/index.mjs +1 -0
  188. package/dist/packages/popup/index.mjs +1 -0
  189. package/dist/packages/price/index.mjs +1 -0
  190. package/dist/packages/progress/index.mjs +1 -0
  191. package/dist/packages/progress/index.scss +2 -0
  192. package/dist/packages/radio/index.mjs +1 -0
  193. package/dist/packages/radiogroup/index.mjs +1 -0
  194. package/dist/packages/range/index.mjs +1 -0
  195. package/dist/packages/rate/index.mjs +1 -0
  196. package/dist/packages/row/index.mjs +1 -0
  197. package/dist/packages/searchbar/index.mjs +1 -0
  198. package/dist/packages/shortpassword/index.mjs +1 -0
  199. package/dist/packages/sidenavbar/index.mjs +1 -0
  200. package/dist/packages/sidenavbaritem/index.mjs +1 -0
  201. package/dist/packages/signature/index.mjs +1 -0
  202. package/dist/packages/skeleton/index.mjs +1 -0
  203. package/dist/packages/sku/index.mjs +1 -0
  204. package/dist/packages/sku/index.scss +1 -1
  205. package/dist/packages/step/index.mjs +1 -0
  206. package/dist/packages/steps/index.mjs +1 -0
  207. package/dist/packages/sticky/index.mjs +1 -0
  208. package/dist/packages/subsidenavbar/index.mjs +1 -0
  209. package/dist/packages/swipe/index.mjs +1 -0
  210. package/dist/packages/swiper/index.mjs +1 -0
  211. package/dist/packages/swiperitem/index.mjs +1 -0
  212. package/dist/packages/switch/index.mjs +1 -0
  213. package/dist/packages/tabbar/index.mjs +1 -0
  214. package/dist/packages/tabbaritem/index.mjs +1 -0
  215. package/dist/packages/table/index.mjs +1 -0
  216. package/dist/packages/tabpane/index.mjs +1 -0
  217. package/dist/packages/tabs/index.mjs +1 -0
  218. package/dist/packages/tabs/index.scss +9 -4
  219. package/dist/packages/tag/index.mjs +1 -0
  220. package/dist/packages/textarea/index.mjs +1 -0
  221. package/dist/packages/timedetail/index.mjs +1 -0
  222. package/dist/packages/timepannel/index.mjs +1 -0
  223. package/dist/packages/timeselect/index.mjs +1 -0
  224. package/dist/packages/toast/index.mjs +1 -0
  225. package/dist/packages/trendarrow/index.mjs +1 -0
  226. package/dist/packages/uploader/index.mjs +1 -0
  227. package/dist/packages/video/index.mjs +1 -0
  228. package/dist/packages/watermark/index.mjs +1 -0
  229. package/dist/smartips/attributes.json +11 -3
  230. package/dist/smartips/tags.json +3 -1
  231. package/dist/smartips/web-types.json +22 -4
  232. package/dist/style.css +1 -1
  233. package/dist/styles/reset.css +3 -0
  234. package/dist/styles/themes/default.scss +45 -45
  235. package/dist/styles/themes/jdb.scss +45 -45
  236. package/dist/styles/themes/jddkh.scss +45 -45
  237. package/dist/styles/themes/jdt.scss +45 -45
  238. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  239. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  240. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +22 -6
  241. package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
  242. package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
  243. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  244. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  245. package/dist/types/__VUE/badge/index.vue.d.ts +3 -3
  246. package/dist/types/__VUE/barrage/index.vue.d.ts +2 -4
  247. package/dist/types/__VUE/button/index.vue.d.ts +3 -3
  248. package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
  249. package/dist/types/__VUE/cell/index.vue.d.ts +4 -4
  250. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  251. package/dist/types/__VUE/comment/index.vue.d.ts +1 -10
  252. package/dist/types/__VUE/configprovider/common.d.ts +10 -2
  253. package/dist/types/__VUE/configprovider/index.vue.d.ts +18 -0
  254. package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
  255. package/dist/types/__VUE/dialog/index.vue.d.ts +3 -3
  256. package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
  257. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  258. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  259. package/dist/types/__VUE/image/index.vue.d.ts +1 -1
  260. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  261. package/dist/types/__VUE/imagepreview/index.vue.d.ts +2 -2
  262. package/dist/types/__VUE/input/index.vue.d.ts +3 -3
  263. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  264. package/dist/types/__VUE/notify/index.vue.d.ts +1 -1
  265. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +6 -6
  266. package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
  267. package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
  268. package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
  269. package/dist/types/__VUE/radio/index.vue.d.ts +1 -1
  270. package/dist/types/__VUE/range/index.vue.d.ts +2 -2
  271. package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
  272. package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
  273. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  274. package/dist/types/__VUE/sticky/index.vue.d.ts +1 -1
  275. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  276. package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
  277. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  278. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  279. package/dist/types/__VUE/toast/index.vue.d.ts +3 -3
  280. package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
  281. package/dist/types/__VUE/video/index.vue.d.ts +2 -2
  282. package/dist/types/__VUE/watermark/index.vue.d.ts +2 -2
  283. package/dist/types/index.d.ts +1 -1
  284. package/package.json +3 -2
  285. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -37
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,15 +1,15 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, createBlock, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
6
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
7
7
  import { c as createComponent, n as floatData } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
- const { create: create$3 } = createComponent("addresslist-item");
10
+ const { create: create$2 } = createComponent("addresslist-item");
11
11
  const { translate: translate$1 } = createComponent("addresslist");
12
- const _sfc_main$3 = create$3({
12
+ const _sfc_main$2 = create$2({
13
13
  props: {
14
14
  item: {
15
15
  type: Object,
@@ -38,7 +38,7 @@ const _sfc_main$3 = create$3({
38
38
  };
39
39
  }
40
40
  });
41
- const _hoisted_1$2 = { class: "nut-addresslist-item__info" };
41
+ const _hoisted_1$1 = { class: "nut-addresslist-item__info" };
42
42
  const _hoisted_2$1 = { class: "nut-addresslist-item__info-contact" };
43
43
  const _hoisted_3$1 = { class: "nut-addresslist-item__info-contact-name" };
44
44
  const _hoisted_4$1 = { class: "nut-addresslist-item__info-contact-tel" };
@@ -48,13 +48,13 @@ const _hoisted_5$1 = {
48
48
  };
49
49
  const _hoisted_6$1 = { class: "nut-addresslist-item__info-handle" };
50
50
  const _hoisted_7$1 = { class: "nut-addresslist-item__addr" };
51
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
51
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
52
52
  const _component_nut_icon = resolveComponent("nut-icon");
53
53
  return openBlock(), createElementBlock("div", {
54
54
  class: "nut-addresslist-item",
55
55
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
56
56
  }, [
57
- createElementVNode("div", _hoisted_1$2, [
57
+ createElementVNode("div", _hoisted_1$1, [
58
58
  createElementVNode("div", _hoisted_2$1, [
59
59
  renderSlot(_ctx.$slots, "contentTop", {}, () => [
60
60
  createElementVNode("div", _hoisted_3$1, toDisplayString(_ctx.item.addressName), 1),
@@ -84,103 +84,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
84
84
  ])
85
85
  ]);
86
86
  }
87
- var ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
88
- const { create: create$2 } = createComponent("addresslist-swipe");
89
- const _sfc_main$2 = create$2({
90
- props: {
91
- item: {
92
- type: Object,
93
- default: {}
94
- }
95
- },
96
- emits: ["delIcon", "editIcon", "itemClick", "swipeDel"],
97
- components: {
98
- ItemContents
99
- },
100
- setup(props, { emit }) {
101
- const moveRef = ref(false);
102
- const delClick = (event) => {
103
- emit("delIcon", event, props.item);
104
- event.stopPropagation();
105
- };
106
- const editClick = (event) => {
107
- emit("editIcon", event, props.item);
108
- event.stopPropagation();
109
- };
110
- const itemClick = (event) => {
111
- if (moveRef.value)
112
- return;
113
- emit("itemClick", event, props.item);
114
- event.stopPropagation();
115
- };
116
- const swipeDelClick = (event) => {
117
- emit("swipeDel", event, props.item);
118
- event.stopPropagation();
119
- };
120
- const swipestart = () => {
121
- moveRef.value = false;
122
- };
123
- const swipemove = () => {
124
- moveRef.value = true;
125
- };
126
- return {
127
- delClick,
128
- editClick,
129
- itemClick,
130
- swipeDelClick,
131
- swipestart,
132
- swipemove
133
- };
134
- }
135
- });
136
- const _hoisted_1$1 = { class: "nut-addresslist-swipe" };
137
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
138
- const _component_item_contents = resolveComponent("item-contents");
139
- const _component_nut_button = resolveComponent("nut-button");
140
- const _component_nut_swipe = resolveComponent("nut-swipe");
141
- return openBlock(), createBlock(_component_nut_swipe, null, {
142
- right: withCtx(() => [
143
- renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
144
- createVNode(_component_nut_button, {
145
- shape: "square",
146
- style: { "height": "100%" },
147
- type: "danger",
148
- onClick: _ctx.swipeDelClick
149
- }, {
150
- default: withCtx(() => [
151
- createTextVNode("\u5220\u9664")
152
- ]),
153
- _: 1
154
- }, 8, ["onClick"])
155
- ])
156
- ]),
157
- default: withCtx(() => [
158
- createElementVNode("div", _hoisted_1$1, [
159
- createVNode(_component_item_contents, {
160
- item: _ctx.item,
161
- onDelIcon: _ctx.delClick,
162
- onEditIcon: _ctx.editClick,
163
- onItemClick: _ctx.itemClick,
164
- onTouchmove: _ctx.swipemove,
165
- onTouchstart: _ctx.swipestart
166
- }, {
167
- contentTop: withCtx(() => [
168
- renderSlot(_ctx.$slots, "contentInfo")
169
- ]),
170
- contentIcon: withCtx(() => [
171
- renderSlot(_ctx.$slots, "contentIcons")
172
- ]),
173
- contentAddr: withCtx(() => [
174
- renderSlot(_ctx.$slots, "contentAddrs")
175
- ]),
176
- _: 3
177
- }, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchmove", "onTouchstart"])
178
- ])
179
- ]),
180
- _: 3
181
- });
182
- }
183
- var SwipeShell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
87
+ var ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
184
88
  const { create: create$1 } = createComponent("addresslist-general");
185
89
  const _sfc_main$1 = create$1({
186
90
  props: {
@@ -191,27 +95,52 @@ const _sfc_main$1 = create$1({
191
95
  longPress: {
192
96
  type: Boolean,
193
97
  default: false
98
+ },
99
+ swipeEdition: {
100
+ type: Boolean,
101
+ default: false
194
102
  }
195
103
  },
196
- emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel"],
104
+ emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
197
105
  components: {
198
106
  ItemContents
199
107
  },
200
108
  setup(props, { emit }) {
109
+ const renderCompontent = () => {
110
+ return h(ItemContents, {
111
+ item: props.item,
112
+ onDelIcon(event) {
113
+ delClick(event);
114
+ },
115
+ onEditIcon(event) {
116
+ editClick(event);
117
+ },
118
+ onItemClick(event) {
119
+ itemClick(event);
120
+ }
121
+ });
122
+ };
201
123
  let loop = null;
124
+ const moveRef = ref(false);
202
125
  const showMaskRef = ref(false);
203
- const delShellClick = (event) => {
126
+ const delClick = (event) => {
204
127
  emit("delIcon", event, props.item);
205
128
  event.stopPropagation();
206
129
  };
207
- const editShellClick = (event) => {
130
+ const editClick = (event) => {
208
131
  emit("editIcon", event, props.item);
209
132
  event.stopPropagation();
210
133
  };
211
- const itemShellClick = (event) => {
134
+ const itemClick = (event) => {
135
+ if (moveRef.value)
136
+ return;
212
137
  emit("itemClick", event, props.item);
213
138
  event.stopPropagation();
214
139
  };
140
+ const delLongClick = (event) => {
141
+ emit("longDel", event, props.item);
142
+ event.stopPropagation();
143
+ };
215
144
  const holdingFunc = (event) => {
216
145
  loop = 0;
217
146
  showMaskRef.value = true;
@@ -239,10 +168,6 @@ const _sfc_main$1 = create$1({
239
168
  emit("longSet", event, props.item);
240
169
  event.stopPropagation();
241
170
  };
242
- const delClick = (event) => {
243
- emit("longDel", event, props.item);
244
- event.stopPropagation();
245
- };
246
171
  const maskClick = (event) => {
247
172
  if (loop != 0) {
248
173
  showMaskRef.value = false;
@@ -250,23 +175,40 @@ const _sfc_main$1 = create$1({
250
175
  event.stopPropagation();
251
176
  event.preventDefault();
252
177
  };
178
+ const swipeDelClick = (event) => {
179
+ emit("swipeDel", event, props.item);
180
+ event.stopPropagation();
181
+ };
182
+ const swipestart = () => {
183
+ moveRef.value = false;
184
+ };
185
+ const swipemove = () => {
186
+ moveRef.value = true;
187
+ };
253
188
  return {
254
- delShellClick,
255
- editShellClick,
256
- itemShellClick,
189
+ renderCompontent,
190
+ showMaskRef,
191
+ itemClick,
192
+ editClick,
193
+ delClick,
194
+ delLongClick,
257
195
  holddownstart,
258
196
  holddownmove,
259
197
  holddownend,
260
- showMaskRef,
261
- delClick,
262
198
  copyCLick,
263
199
  hideMaskClick,
264
200
  setDefault,
265
- maskClick
201
+ maskClick,
202
+ swipeDelClick,
203
+ swipestart,
204
+ swipemove
266
205
  };
267
206
  }
268
207
  });
269
- const _hoisted_1 = { class: "nut-addresslist-general" };
208
+ const _hoisted_1 = {
209
+ key: 0,
210
+ class: "nut-addresslist-general"
211
+ };
270
212
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "nut-addresslist-mask-contain" }, [
271
213
  /* @__PURE__ */ createTextVNode(" \u590D\u5236"),
272
214
  /* @__PURE__ */ createElementVNode("br"),
@@ -291,14 +233,12 @@ const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "nut-addre
291
233
  const _hoisted_7 = [
292
234
  _hoisted_6
293
235
  ];
236
+ const _hoisted_8 = { class: "nut-addresslist-swipe" };
294
237
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
295
- const _component_item_contents = resolveComponent("item-contents");
296
- return openBlock(), createElementBlock("div", _hoisted_1, [
297
- createVNode(_component_item_contents, {
298
- item: _ctx.item,
299
- onDelIcon: _ctx.delShellClick,
300
- onEditIcon: _ctx.editShellClick,
301
- onItemClick: _ctx.itemShellClick,
238
+ const _component_nut_button = resolveComponent("nut-button");
239
+ const _component_nut_swipe = resolveComponent("nut-swipe");
240
+ return !_ctx.swipeEdition ? (openBlock(), createElementBlock("div", _hoisted_1, [
241
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
302
242
  onTouchstart: _ctx.holddownstart,
303
243
  onTouchend: _ctx.holddownend,
304
244
  onTouchmove: _ctx.holddownmove
@@ -313,7 +253,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
313
253
  renderSlot(_ctx.$slots, "contentAddrs")
314
254
  ]),
315
255
  _: 3
316
- }, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchstart", "onTouchend", "onTouchmove"]),
256
+ }, 40, ["onTouchstart", "onTouchend", "onTouchmove"])),
317
257
  _ctx.longPress && _ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
318
258
  key: 0,
319
259
  class: "nut-addresslist-general__mask",
@@ -330,7 +270,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
330
270
  }, _hoisted_5),
331
271
  createElementVNode("div", {
332
272
  class: "nut-addresslist-general__mask-del",
333
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delClick && _ctx.delClick(...args))
273
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delLongClick && _ctx.delLongClick(...args))
334
274
  }, _hoisted_7)
335
275
  ])
336
276
  ])) : createCommentVNode("", true),
@@ -339,7 +279,43 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
339
279
  class: "nut-addresslist__mask-bottom",
340
280
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.hideMaskClick && _ctx.hideMaskClick(...args))
341
281
  })) : createCommentVNode("", true)
342
- ]);
282
+ ])) : (openBlock(), createBlock(_component_nut_swipe, { key: 1 }, {
283
+ right: withCtx(() => [
284
+ renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
285
+ createVNode(_component_nut_button, {
286
+ shape: "square",
287
+ style: { "height": "100%" },
288
+ type: "danger",
289
+ onClick: _ctx.swipeDelClick
290
+ }, {
291
+ default: withCtx(() => [
292
+ createTextVNode("\u5220\u9664")
293
+ ]),
294
+ _: 1
295
+ }, 8, ["onClick"])
296
+ ])
297
+ ]),
298
+ default: withCtx(() => [
299
+ createElementVNode("div", _hoisted_8, [
300
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
301
+ onTouchmove: _ctx.swipemove,
302
+ onTouchstart: _ctx.swipestart
303
+ }, {
304
+ contentTop: withCtx(() => [
305
+ renderSlot(_ctx.$slots, "contentInfo")
306
+ ]),
307
+ contentIcon: withCtx(() => [
308
+ renderSlot(_ctx.$slots, "contentIcons")
309
+ ]),
310
+ contentAddr: withCtx(() => [
311
+ renderSlot(_ctx.$slots, "contentAddrs")
312
+ ]),
313
+ _: 3
314
+ }, 40, ["onTouchmove", "onTouchstart"]))
315
+ ])
316
+ ]),
317
+ _: 3
318
+ }));
343
319
  }
344
320
  var GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
345
321
  const { componentName, create, translate } = createComponent("addresslist");
@@ -367,7 +343,6 @@ const _sfc_main = create({
367
343
  }
368
344
  },
369
345
  components: {
370
- SwipeShell,
371
346
  GeneralShell
372
347
  },
373
348
  emits: ["delIcon", "editIcon", "itemClick", "longCopy", "longSet", "longDel", "swipeDel", "add"],
@@ -450,16 +425,16 @@ const _sfc_main = create({
450
425
  });
451
426
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
452
427
  const _component_general_shell = resolveComponent("general-shell");
453
- const _component_swipe_shell = resolveComponent("swipe-shell");
454
428
  const _component_nut_button = resolveComponent("nut-button");
455
429
  return openBlock(), createElementBlock("div", {
456
430
  class: normalizeClass(_ctx.classes)
457
431
  }, [
458
- !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.dataArray, (item, index2) => {
432
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataArray, (item, index2) => {
459
433
  return openBlock(), createBlock(_component_general_shell, {
460
434
  key: index2,
461
435
  item,
462
436
  longPress: _ctx.longPress,
437
+ swipeEdition: _ctx.swipeEdition,
463
438
  onDelIcon: _ctx.clickDelIcon,
464
439
  onEditIcon: _ctx.clickEditIcon,
465
440
  onItemClick: _ctx.clickContentItem,
@@ -467,46 +442,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
467
442
  onLongCopy: _ctx.clickLongCopy,
468
443
  onLongSet: _ctx.clickLongSet,
469
444
  onLongDel: _ctx.clickLongDel
470
- }, createSlots({ _: 2 }, [
471
- _ctx.longPress ? {
472
- name: "contentInfo",
473
- fn: withCtx(() => [
474
- renderSlot(_ctx.$slots, "iteminfos")
475
- ]),
476
- key: "0"
477
- } : void 0,
478
- _ctx.longPress ? {
479
- name: "contentIcons",
480
- fn: withCtx(() => [
481
- renderSlot(_ctx.$slots, "itemicon")
482
- ]),
483
- key: "1"
484
- } : void 0,
485
- _ctx.longPress ? {
486
- name: "contentAddrs",
487
- fn: withCtx(() => [
488
- renderSlot(_ctx.$slots, "itemaddr")
489
- ]),
490
- key: "2"
491
- } : void 0,
492
- _ctx.longPress ? {
493
- name: "longpressAll",
494
- fn: withCtx(() => [
495
- renderSlot(_ctx.$slots, "longpressbtns")
496
- ]),
497
- key: "3"
498
- } : void 0
499
- ]), 1032, ["item", "longPress", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
500
- }), 128)) : createCommentVNode("", true),
501
- _ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index2) => {
502
- return openBlock(), createBlock(_component_swipe_shell, {
503
- key: index2,
504
- item,
505
- onDelIcon: _ctx.clickDelIcon,
506
- onEditIcon: _ctx.clickEditIcon,
507
- onItemClick: _ctx.clickContentItem,
508
- onSwipeDel: _ctx.clickSwipeDel
509
- }, {
445
+ }, createSlots({
510
446
  contentInfo: withCtx(() => [
511
447
  renderSlot(_ctx.$slots, "iteminfos")
512
448
  ]),
@@ -516,14 +452,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
516
452
  contentAddrs: withCtx(() => [
517
453
  renderSlot(_ctx.$slots, "itemaddr")
518
454
  ]),
519
- swiperightbtn: withCtx(() => [
520
- renderSlot(_ctx.$slots, "swiperight")
521
- ]),
522
455
  _: 2
523
- }, 1032, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel"]);
524
- }), 128)) : createCommentVNode("", true),
456
+ }, [
457
+ _ctx.longPress ? {
458
+ name: "longpressAll",
459
+ fn: withCtx(() => [
460
+ renderSlot(_ctx.$slots, "longpressbtns")
461
+ ]),
462
+ key: "0"
463
+ } : void 0,
464
+ _ctx.swipeEdition ? {
465
+ name: "swiperightbtn",
466
+ fn: withCtx(() => [
467
+ renderSlot(_ctx.$slots, "swiperight")
468
+ ]),
469
+ key: "1"
470
+ } : void 0
471
+ ]), 1032, ["item", "longPress", "swipeEdition", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
472
+ }), 128)),
525
473
  _ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
526
- key: 2,
474
+ key: 0,
527
475
  class: "nut-addresslist__bottom",
528
476
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.addAddress && _ctx.addAddress(...args))
529
477
  }, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.2 Wed Jan 04 2023 16:22:42 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.3.3-beta.1 Wed Jan 18 2023 09:13:06 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { useSlots, computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
6
+ import { useSlots, computed, ref, onMounted, onUnmounted, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } 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";
@@ -36,8 +36,7 @@ const _sfc_main = create({
36
36
  default: true
37
37
  }
38
38
  },
39
- emits: ["click"],
40
- setup(props, { slots }) {
39
+ setup(props) {
41
40
  const classTime = new Date().getTime();
42
41
  const slotDefault = !!useSlots().default;
43
42
  const classes = computed(() => {
@@ -56,36 +55,58 @@ const _sfc_main = create({
56
55
  const speeds = props.speeds;
57
56
  const danmuCWidth = ref(0);
58
57
  onMounted(() => {
59
- var _a;
60
- danmuCWidth.value = dmBody.value.offsetWidth;
58
+ init();
61
59
  if (slotDefault) {
62
- const list = document.getElementsByClassName("slotBody" + classTime);
63
- let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
64
- const dmList = [];
65
- if (childrens) {
66
- Array.from(childrens).forEach((item) => {
67
- item.style.opacity = "0";
68
- dmList.push(item);
69
- });
70
- }
71
- danmuList.value = dmList;
60
+ document.addEventListener("visibilitychange", function() {
61
+ if (document.visibilityState === "hidden") {
62
+ clearTime();
63
+ index2.value = 0;
64
+ eleSlot("hidden");
65
+ } else if (document.visibilityState === "visible") {
66
+ init();
67
+ }
68
+ });
72
69
  }
73
- setTimeout(() => {
74
- var _a2;
75
- (_a2 = dmBody.value) == null ? void 0 : _a2.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
76
- run();
77
- }, 300);
78
70
  });
79
71
  onUnmounted(() => {
80
72
  danmuList.value = [];
81
- clearInterval(timer);
82
- timer = 0;
73
+ clearTime();
83
74
  });
84
- onDeactivated(() => {
85
- danmuList.value = [];
86
- clearInterval(timer);
75
+ const init = () => {
76
+ danmuCWidth.value = dmBody.value.offsetWidth;
77
+ if (slotDefault) {
78
+ eleSlot("init");
79
+ }
80
+ setTimeout(() => {
81
+ var _a;
82
+ (_a = dmBody.value) == null ? void 0 : _a.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
83
+ run();
84
+ }, 300);
85
+ };
86
+ const eleSlot = (flag) => {
87
+ var _a;
88
+ const list = document.getElementsByClassName("slotBody" + classTime);
89
+ let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
90
+ const dmList = [];
91
+ if (childrens) {
92
+ Array.from(childrens).forEach((item) => {
93
+ if (flag == "init") {
94
+ item.style.opacity = "0";
95
+ dmList.push(item);
96
+ } else {
97
+ item.classList = "";
98
+ item.style = {};
99
+ }
100
+ });
101
+ }
102
+ if (flag == "init") {
103
+ danmuList.value = dmList;
104
+ }
105
+ };
106
+ const clearTime = () => {
107
+ clearTimeout(timer);
87
108
  timer = 0;
88
- });
109
+ };
89
110
  watch(
90
111
  () => props.danmu,
91
112
  (newValue) => {
@@ -103,11 +124,9 @@ const _sfc_main = create({
103
124
  }
104
125
  };
105
126
  const run = () => {
106
- clearInterval(timer);
107
- timer = 0;
127
+ clearTime();
108
128
  timer = setTimeout(() => {
109
129
  play();
110
- run();
111
130
  }, props.frequency);
112
131
  };
113
132
  const play = () => {
@@ -136,21 +155,20 @@ const _sfc_main = create({
136
155
  const width = el.offsetWidth;
137
156
  el.style.width = width + 20 + "px";
138
157
  }
139
- el.dataset.index = `${_index}`;
140
- if (slotDefault) {
141
- index2.value++;
142
- el.addEventListener("animationend", () => {
143
- var _a3;
144
- if ((_a3 = el == null ? void 0 : el.classList) == null ? void 0 : _a3.contains("move")) {
145
- el.classList.remove("move");
146
- }
147
- });
148
- } else {
149
- el.addEventListener("animationend", () => {
158
+ el.addEventListener("animationend", () => {
159
+ if (slotDefault) {
160
+ el.classList.remove("move");
161
+ } else {
150
162
  dmContainer.value.removeChild(el);
151
- });
152
- index2.value++;
163
+ }
164
+ });
165
+ index2.value++;
166
+ if (index2.value >= danmuList.value.length) {
167
+ index2.value = 0;
153
168
  }
169
+ el.removeEventListener("animationend", () => {
170
+ });
171
+ run();
154
172
  });
155
173
  };
156
174
  return { classTime, classes, danmuList, dmBody, dmContainer, add };