@nutui/nutui 4.3.13 → 4.3.14-beta.3

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 (147) hide show
  1. package/README.md +30 -30
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +2854 -2844
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/addresslist/AddressList.js +2 -2
  6. package/dist/packages/audio/Audio.js +9 -10
  7. package/dist/packages/audiooperate/AudioOperate.js +2 -2
  8. package/dist/packages/cascader/Cascader.js +3 -4
  9. package/dist/packages/comment/Comment.js +8 -11
  10. package/dist/packages/dialog/Dialog.js +4 -1
  11. package/dist/packages/elevator/Elevator.js +2 -2
  12. package/dist/packages/invoice/Invoice.js +2 -2
  13. package/dist/packages/locale/index.d.ts +1 -1
  14. package/dist/packages/numberkeyboard/NumberKeyboard.js +3 -5
  15. package/dist/packages/step/Step.js +13 -14
  16. package/dist/packages/swiper/Swiper.js +19 -1
  17. package/dist/packages/video/Video.js +11 -13
  18. package/dist/smartips/web-types.json +1 -1
  19. package/dist/types/__VUE/actionsheet/index.vue.d.ts +496 -8
  20. package/dist/types/__VUE/address/index.vue.d.ts +865 -56
  21. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +465 -7
  22. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +117 -6
  23. package/dist/types/__VUE/addresslist/index.vue.d.ts +713 -6
  24. package/dist/types/__VUE/animate/animate.vue.d.ts +5 -5
  25. package/dist/types/__VUE/audio/index.vue.d.ts +229 -28
  26. package/dist/types/__VUE/audiooperate/index.vue.d.ts +205 -15
  27. package/dist/types/__VUE/avatar/index.vue.d.ts +6 -6
  28. package/dist/types/__VUE/avatarcropper/index.vue.d.ts +319 -19
  29. package/dist/types/__VUE/avatargroup/index.vue.d.ts +55 -7
  30. package/dist/types/__VUE/backtop/backtop.vue.d.ts +6 -6
  31. package/dist/types/__VUE/badge/badge.vue.d.ts +5 -5
  32. package/dist/types/__VUE/barrage/index.vue.d.ts +7 -7
  33. package/dist/types/__VUE/button/button.vue.d.ts +5 -5
  34. package/dist/types/__VUE/calendar/index.vue.d.ts +647 -8
  35. package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +9 -24
  36. package/dist/types/__VUE/calendaritem/index.vue.d.ts +52 -52
  37. package/dist/types/__VUE/card/index.vue.d.ts +256 -4
  38. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +453 -10
  39. package/dist/types/__VUE/cascader/index.vue.d.ts +950 -10
  40. package/dist/types/__VUE/category/index.vue.d.ts +7 -7
  41. package/dist/types/__VUE/categorypane/index.vue.d.ts +5 -5
  42. package/dist/types/__VUE/cell/cell.vue.d.ts +5 -5
  43. package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +4 -4
  44. package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -6
  45. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +7 -7
  46. package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +5 -5
  47. package/dist/types/__VUE/col/col.vue.d.ts +4 -4
  48. package/dist/types/__VUE/collapse/collapse.vue.d.ts +5 -5
  49. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +4 -4
  50. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +174 -8
  51. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +218 -6
  52. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +73 -18
  53. package/dist/types/__VUE/comment/index.vue.d.ts +627 -16
  54. package/dist/types/__VUE/comment/type.d.ts +10 -0
  55. package/dist/types/__VUE/configprovider/index.vue.d.ts +6 -6
  56. package/dist/types/__VUE/countdown/countdown.vue.d.ts +8 -8
  57. package/dist/types/__VUE/countup/index.vue.d.ts +46 -46
  58. package/dist/types/__VUE/datepicker/index.vue.d.ts +265 -9
  59. package/dist/types/__VUE/dialog/index.vue.d.ts +631 -9
  60. package/dist/types/__VUE/divider/divider.vue.d.ts +4 -4
  61. package/dist/types/__VUE/drag/index.vue.d.ts +6 -6
  62. package/dist/types/__VUE/ecard/index.vue.d.ts +255 -10
  63. package/dist/types/__VUE/elevator/index.vue.d.ts +24 -17
  64. package/dist/types/__VUE/ellipsis/index.vue.d.ts +10 -10
  65. package/dist/types/__VUE/empty/empty.vue.d.ts +4 -4
  66. package/dist/types/__VUE/fixednav/index.vue.d.ts +231 -7
  67. package/dist/types/__VUE/form/form.vue.d.ts +6 -6
  68. package/dist/types/__VUE/formitem/form-item.vue.d.ts +4 -4
  69. package/dist/types/__VUE/grid/grid.vue.d.ts +4 -4
  70. package/dist/types/__VUE/griditem/grid-item.vue.d.ts +5 -5
  71. package/dist/types/__VUE/image/image.vue.d.ts +6 -6
  72. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +155 -14
  73. package/dist/types/__VUE/imagepreview/index.vue.d.ts +916 -11
  74. package/dist/types/__VUE/indicator/indicator.vue.d.ts +4 -4
  75. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +68 -12
  76. package/dist/types/__VUE/input/input.vue.d.ts +11 -11
  77. package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +10 -10
  78. package/dist/types/__VUE/invoice/invoice.vue.d.ts +5 -5
  79. package/dist/types/__VUE/layout/layout.vue.d.ts +1 -1
  80. package/dist/types/__VUE/list/index.vue.d.ts +19 -13
  81. package/dist/types/__VUE/menu/index.vue.d.ts +117 -6
  82. package/dist/types/__VUE/menuitem/index.vue.d.ts +494 -6
  83. package/dist/types/__VUE/navbar/navbar.vue.d.ts +5 -5
  84. package/dist/types/__VUE/noticebar/index.vue.d.ts +136 -20
  85. package/dist/types/__VUE/notify/index.vue.d.ts +441 -8
  86. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +442 -9
  87. package/dist/types/__VUE/overlay/overlay.vue.d.ts +6 -6
  88. package/dist/types/__VUE/pagination/index.vue.d.ts +9 -9
  89. package/dist/types/__VUE/picker/Column.vue.d.ts +29 -22
  90. package/dist/types/__VUE/picker/index.vue.d.ts +138 -8
  91. package/dist/types/__VUE/picker/usePicker.d.ts +3 -3
  92. package/dist/types/__VUE/popover/index.vue.d.ts +443 -10
  93. package/dist/types/__VUE/popup/index.vue.d.ts +234 -10
  94. package/dist/types/__VUE/price/price.vue.d.ts +4 -4
  95. package/dist/types/__VUE/progress/progress.vue.d.ts +4 -4
  96. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +76 -8
  97. package/dist/types/__VUE/radio/radio.vue.d.ts +4 -4
  98. package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +5 -5
  99. package/dist/types/__VUE/range/index.vue.d.ts +25 -25
  100. package/dist/types/__VUE/rate/rate.vue.d.ts +5 -5
  101. package/dist/types/__VUE/row/row.vue.d.ts +4 -4
  102. package/dist/types/__VUE/searchbar/index.vue.d.ts +9 -9
  103. package/dist/types/__VUE/shortpassword/index.vue.d.ts +496 -8
  104. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +11 -7
  105. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +4 -4
  106. package/dist/types/__VUE/signature/index.vue.d.ts +201 -11
  107. package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +4 -4
  108. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +82 -5
  109. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +6 -6
  110. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +13 -6
  111. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +252 -7
  112. package/dist/types/__VUE/sku/index.vue.d.ts +921 -7
  113. package/dist/types/__VUE/sku/type.d.ts +7 -0
  114. package/dist/types/__VUE/space/index.vue.d.ts +5 -5
  115. package/dist/types/__VUE/step/step.vue.d.ts +4 -4
  116. package/dist/types/__VUE/steps/steps.vue.d.ts +5 -5
  117. package/dist/types/__VUE/sticky/index.vue.d.ts +8 -8
  118. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +118 -7
  119. package/dist/types/__VUE/swipe/swipe.vue.d.ts +7 -7
  120. package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +4 -4
  121. package/dist/types/__VUE/swiper/index.vue.d.ts +7 -7
  122. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  123. package/dist/types/__VUE/switch/switch.vue.d.ts +5 -5
  124. package/dist/types/__VUE/tabbar/tabbar.vue.d.ts +5 -5
  125. package/dist/types/__VUE/tabbaritem/tabbar-item.vue.d.ts +4 -4
  126. package/dist/types/__VUE/table/index.vue.d.ts +87 -7
  127. package/dist/types/__VUE/table/renderColumn.d.ts +5 -5
  128. package/dist/types/__VUE/tabpane/index.vue.d.ts +5 -5
  129. package/dist/types/__VUE/tabs/hooks.d.ts +1 -1
  130. package/dist/types/__VUE/tabs/index.vue.d.ts +122 -10
  131. package/dist/types/__VUE/tag/tag.vue.d.ts +5 -5
  132. package/dist/types/__VUE/textarea/textarea.vue.d.ts +6 -6
  133. package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -8
  134. package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -7
  135. package/dist/types/__VUE/timeselect/index.vue.d.ts +439 -6
  136. package/dist/types/__VUE/toast/index.vue.d.ts +7 -7
  137. package/dist/types/__VUE/tour/index.vue.d.ts +671 -9
  138. package/dist/types/__VUE/trendarrow/trend-arrow.vue.d.ts +4 -4
  139. package/dist/types/__VUE/uploader/index.vue.d.ts +480 -7
  140. package/dist/types/__VUE/video/index.vue.d.ts +43 -19
  141. package/dist/types/__VUE/watermark/watermark.vue.d.ts +4 -4
  142. package/dist/types/index.d.ts +1 -1
  143. package/dist/types/locale/index.d.ts +1 -1
  144. package/dist/types/utils/useRelation/useInject.d.ts +1 -1
  145. package/dist/types/utils/useScrollParent/index.d.ts +1 -1
  146. package/dist/types/utils/useTouch/index.d.ts +9 -9
  147. package/package.json +2 -2
@@ -267,9 +267,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
267
267
  type: "danger",
268
268
  onClick: _ctx.swipeDelClick
269
269
  }, {
270
- default: withCtx(() => [
270
+ default: withCtx(() => _cache[5] || (_cache[5] = [
271
271
  createTextVNode("删除")
272
- ]),
272
+ ])),
273
273
  _: 1
274
274
  }, 8, ["onClick"])
275
275
  ])
@@ -203,13 +203,12 @@ const _hoisted_2 = {
203
203
  };
204
204
  const _hoisted_3 = { class: "nut-audio__time" };
205
205
  const _hoisted_4 = { class: "nut-audio__bar" };
206
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "nut-audio__button--custom" }, null, -1);
207
- const _hoisted_6 = { class: "nut-audio__time" };
208
- const _hoisted_7 = {
206
+ const _hoisted_5 = { class: "nut-audio__time" };
207
+ const _hoisted_6 = {
209
208
  key: 1,
210
209
  class: "nut-audio__icon"
211
210
  };
212
- const _hoisted_8 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
211
+ const _hoisted_7 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
213
212
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
214
213
  const _component_nut_range = resolveComponent("nut-range");
215
214
  const _component_Service = resolveComponent("Service");
@@ -225,15 +224,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
225
224
  "active-color": "#fa2c19",
226
225
  onChange: _ctx.progressChange
227
226
  }, {
228
- button: withCtx(() => [
229
- _hoisted_5
230
- ]),
227
+ button: withCtx(() => _cache[6] || (_cache[6] = [
228
+ createElementVNode("div", { class: "nut-audio__button--custom" }, null, -1)
229
+ ])),
231
230
  _: 1
232
231
  }, 8, ["modelValue", "onChange"])
233
232
  ]),
234
- createElementVNode("div", _hoisted_6, toDisplayString(_ctx.duration), 1)
233
+ createElementVNode("div", _hoisted_5, toDisplayString(_ctx.duration), 1)
235
234
  ])) : createCommentVNode("", true),
236
- _ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_7, [
235
+ _ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_6, [
237
236
  createElementVNode("div", {
238
237
  class: normalizeClass(["nut-audio__icon--box", _ctx.playing ? "nut-audio__icon--play" : "nut-audio__icon--stop"]),
239
238
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
@@ -263,7 +262,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
263
262
  onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
264
263
  onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
265
264
  onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args))
266
- }, null, 40, _hoisted_8)
265
+ }, null, 40, _hoisted_7)
267
266
  ]);
268
267
  }
269
268
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -93,9 +93,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
93
93
  type: "primary",
94
94
  size: "small"
95
95
  }, {
96
- default: withCtx(() => [
96
+ default: withCtx(() => _cache[4] || (_cache[4] = [
97
97
  createTextVNode("快进")
98
- ]),
98
+ ])),
99
99
  _: 1
100
100
  })) : createCommentVNode("", true),
101
101
  renderSlot(_ctx.$slots, "default")
@@ -422,7 +422,6 @@ const _hoisted_1$1 = {
422
422
  };
423
423
  const _hoisted_2 = ["aria-checked", "aria-disabled", "onClick"];
424
424
  const _hoisted_3 = { class: "nut-cascader-item__title" };
425
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
426
425
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
427
426
  const _component_Loading = resolveComponent("Loading");
428
427
  const _component_Checklist = resolveComponent("Checklist");
@@ -472,9 +471,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
472
471
  key: 1,
473
472
  title: "Loading..."
474
473
  }, {
475
- default: withCtx(() => [
476
- _hoisted_4
477
- ]),
474
+ default: withCtx(() => _cache[1] || (_cache[1] = [
475
+ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1)
476
+ ])),
478
477
  _: 1
479
478
  }))
480
479
  ]),
@@ -166,10 +166,9 @@ const _sfc_main$2 = create$2({
166
166
  });
167
167
  const _hoisted_1$2 = ["onClick"];
168
168
  const _hoisted_2$2 = ["src"];
169
- const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("view", { class: "nut-comment-images__play" }, null, -1);
170
- const _hoisted_4$2 = ["onClick"];
171
- const _hoisted_5 = ["src"];
172
- const _hoisted_6 = {
169
+ const _hoisted_3$2 = ["onClick"];
170
+ const _hoisted_4$2 = ["src"];
171
+ const _hoisted_5 = {
173
172
  key: 0,
174
173
  class: "nut-comment-images__mask"
175
174
  };
@@ -187,13 +186,11 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
187
186
  createElementVNode("img", {
188
187
  src: itV.mainUrl
189
188
  }, null, 8, _hoisted_2$2),
190
- _hoisted_3$2
189
+ _cache[0] || (_cache[0] = createElementVNode("view", { class: "nut-comment-images__play" }, null, -1))
191
190
  ], 8, _hoisted_1$2);
192
191
  }), 128)),
193
192
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.images, (itI, index2) => {
194
- return openBlock(), createElementBlock(Fragment, {
195
- key: itI.id
196
- }, [
193
+ return openBlock(), createElementBlock(Fragment, { key: index2 }, [
197
194
  _ctx.type == "multi" && _ctx.videos.length + index2 < 9 || _ctx.type != "multi" ? (openBlock(), createElementBlock("view", {
198
195
  key: 0,
199
196
  class: "nut-comment-images__item nut-comment-images__item--imgbox",
@@ -201,12 +198,12 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
201
198
  }, [
202
199
  createElementVNode("img", {
203
200
  src: itI.smallImgUrl ? itI.smallImgUrl : itI.imgUrl
204
- }, null, 8, _hoisted_5),
205
- _ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index2 > 7 ? (openBlock(), createElementBlock("view", _hoisted_6, [
201
+ }, null, 8, _hoisted_4$2),
202
+ _ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index2 > 7 ? (openBlock(), createElementBlock("view", _hoisted_5, [
206
203
  createElementVNode("span", null, "共 " + toDisplayString(_ctx.totalImages.length) + " 张", 1),
207
204
  createVNode(_component_Right, { style: { "width": "12px" } })
208
205
  ])) : createCommentVNode("", true)
209
- ], 8, _hoisted_4$2)) : createCommentVNode("", true)
206
+ ], 8, _hoisted_3$2)) : createCommentVNode("", true)
210
207
  ], 64);
211
208
  }), 128))
212
209
  ], 2);
@@ -38,7 +38,7 @@ const _sfc_main = create({
38
38
  props: __spreadProps(__spreadValues({}, popupProps), {
39
39
  closeOnClickOverlay: {
40
40
  type: Boolean,
41
- default: true
41
+ default: false
42
42
  },
43
43
  title: {
44
44
  type: String,
@@ -146,7 +146,10 @@ const _sfc_main = create({
146
146
  }
147
147
  };
148
148
  const onClickOverlay = () => {
149
+ console.log(1);
150
+ console.log(props.closeOnClickOverlay);
149
151
  if (props.closeOnClickOverlay) {
152
+ console.log(2);
150
153
  closed("");
151
154
  }
152
155
  };
@@ -197,7 +197,7 @@ const _hoisted_6 = { class: "nut-elevator__list__fixed-title" };
197
197
  const _hoisted_7 = { class: "nut-elevator__bars__inner" };
198
198
  const _hoisted_8 = ["data-index", "onClick"];
199
199
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
200
- var _a, _b;
200
+ var _a, _b, _c, _d;
201
201
  return openBlock(), createElementBlock("view", _hoisted_1, [
202
202
  createElementVNode("view", {
203
203
  ref: "listview",
@@ -240,7 +240,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
240
240
  _ctx.indexList.length ? withDirectives((openBlock(), createElementBlock("view", {
241
241
  key: 0,
242
242
  class: "nut-elevator__code--current"
243
- }, toDisplayString(_ctx.indexList[_ctx.codeIndex][_ctx.acceptKey]), 513)), [
243
+ }, toDisplayString((_d = (_c = _ctx.indexList) == null ? void 0 : _c[_ctx.codeIndex]) == null ? void 0 : _d[_ctx.acceptKey]), 513)), [
244
244
  [vShow, _ctx.scrollStart]
245
245
  ]) : createCommentVNode("", true),
246
246
  createElementVNode("view", {
@@ -107,9 +107,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
107
107
  block: "",
108
108
  onClick: submitFun
109
109
  }, {
110
- default: withCtx(() => [
110
+ default: withCtx(() => _cache[0] || (_cache[0] = [
111
111
  createTextVNode("提交审批")
112
- ]),
112
+ ])),
113
113
  _: 1
114
114
  })
115
115
  ])) : createCommentVNode("", true)
@@ -1,6 +1,6 @@
1
1
  export type Lang = Record<string, any>;
2
2
  export declare class Locale {
3
- static currentLang: import("vue").Ref<string>;
3
+ static currentLang: import("vue").Ref<string, string>;
4
4
  static languages(): Lang;
5
5
  static use(lang: string, newLanguages?: any): void;
6
6
  static merge(lang: string, newLanguages: any): void;
@@ -207,10 +207,6 @@ const _hoisted_10 = {
207
207
  class: "nut-number-keyboard__sidebar"
208
208
  };
209
209
  const _hoisted_11 = { class: "nut-key__wrapper" };
210
- const _hoisted_12 = /* @__PURE__ */ createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1);
211
- const _hoisted_13 = [
212
- _hoisted_12
213
- ];
214
210
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
215
211
  const _component_nut_popup = resolveComponent("nut-popup");
216
212
  return openBlock(), createElementBlock("div", _hoisted_1, [
@@ -272,7 +268,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
272
268
  onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
273
269
  onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove(event)),
274
270
  onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
275
- }, _hoisted_13, 34)
271
+ }, _cache[8] || (_cache[8] = [
272
+ createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1)
273
+ ]), 34)
276
274
  ]),
277
275
  createElementVNode("div", {
278
276
  class: "nut-key__wrapper nut-key__wrapper--finish",
@@ -22,19 +22,18 @@ import { u as useParent } from "../useParent-D6DiuxZZ.js";
22
22
  import { S as STEPS_KEY } from "../types-1HzUV14W.js";
23
23
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
24
24
  const _hoisted_1 = { class: "nut-step-head" };
25
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
26
- const _hoisted_3 = { class: "nut-step-icon-inner" };
27
- const _hoisted_4 = {
25
+ const _hoisted_2 = { class: "nut-step-icon-inner" };
26
+ const _hoisted_3 = {
28
27
  key: 0,
29
28
  class: "nut-step-inner"
30
29
  };
31
- const _hoisted_5 = { class: "nut-step-main" };
32
- const _hoisted_6 = { class: "nut-step-title" };
33
- const _hoisted_7 = {
30
+ const _hoisted_4 = { class: "nut-step-main" };
31
+ const _hoisted_5 = { class: "nut-step-title" };
32
+ const _hoisted_6 = {
34
33
  key: 0,
35
34
  class: "nut-step-content"
36
35
  };
37
- const _hoisted_8 = ["innerHTML"];
36
+ const _hoisted_7 = ["innerHTML"];
38
37
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
39
38
  name: "NutStep"
40
39
  }), {
@@ -67,26 +66,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
67
66
  onClick: handleClickStep
68
67
  }, [
69
68
  createElementVNode("view", _hoisted_1, [
70
- _hoisted_2,
69
+ _cache[0] || (_cache[0] = createElementVNode("view", { class: "nut-step-line" }, null, -1)),
71
70
  createElementVNode("view", {
72
71
  class: normalizeClass(["nut-step-icon", [!dot.value ? "is-icon" : ""]])
73
72
  }, [
74
- createElementVNode("view", _hoisted_3, [
73
+ createElementVNode("view", _hoisted_2, [
75
74
  renderSlot(_ctx.$slots, "icon", {}, () => [
76
- !dot.value ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(unref(index) + 1), 1)) : createCommentVNode("", true)
75
+ !dot.value ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(unref(index) + 1), 1)) : createCommentVNode("", true)
77
76
  ])
78
77
  ])
79
78
  ], 2)
80
79
  ]),
81
- createElementVNode("view", _hoisted_5, [
82
- createElementVNode("view", _hoisted_6, [
80
+ createElementVNode("view", _hoisted_4, [
81
+ createElementVNode("view", _hoisted_5, [
83
82
  renderSlot(_ctx.$slots, "title", {}, () => [
84
83
  createElementVNode("span", null, toDisplayString(_ctx.title), 1)
85
84
  ])
86
85
  ]),
87
- _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7, [
86
+ _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_6, [
88
87
  renderSlot(_ctx.$slots, "content", {}, () => [
89
- createElementVNode("span", { innerHTML: _ctx.content }, null, 8, _hoisted_8)
88
+ createElementVNode("span", { innerHTML: _ctx.content }, null, 8, _hoisted_7)
90
89
  ])
91
90
  ])) : createCommentVNode("", true)
92
91
  ])
@@ -1,4 +1,4 @@
1
- import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
1
+ import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
2
2
  import { c as createComponent } from "../component-DQf3CENX.js";
3
3
  import { e as clamp } from "../util-D1pvnUYu.js";
4
4
  import { u as useTouch } from "../index-I8tfW3Kf.js";
@@ -354,6 +354,24 @@ const _sfc_main = create({
354
354
  +val > 0 ? autoplay() : stopAutoPlay();
355
355
  }
356
356
  );
357
+ const width = ref(window.innerWidth);
358
+ const height = ref(window.innerHeight);
359
+ const updateDimensions = () => {
360
+ width.value = window.innerWidth;
361
+ height.value = window.innerHeight;
362
+ };
363
+ watch([width, height], () => {
364
+ nextTick(() => {
365
+ init();
366
+ });
367
+ });
368
+ onMounted(() => {
369
+ window.addEventListener("resize", updateDimensions);
370
+ updateDimensions();
371
+ });
372
+ onUnmounted(() => {
373
+ window.removeEventListener("resize", updateDimensions);
374
+ });
357
375
  return {
358
376
  state,
359
377
  classesInner,
@@ -353,17 +353,13 @@ const _hoisted_6 = {
353
353
  ref: "progressBar",
354
354
  class: "nut-video-controller__progress-value"
355
355
  };
356
- const _hoisted_7 = /* @__PURE__ */ createElementVNode("div", { class: "nut-video-controller__ball-move" }, null, -1);
357
- const _hoisted_8 = [
358
- _hoisted_7
359
- ];
360
- const _hoisted_9 = {
356
+ const _hoisted_7 = {
361
357
  ref: "playedBar",
362
358
  class: "nut-video-controller__played"
363
359
  };
364
- const _hoisted_10 = { class: "nut-video-controller__total" };
365
- const _hoisted_11 = { class: "nut-video-error" };
366
- const _hoisted_12 = { class: "nut-video-error-tip" };
360
+ const _hoisted_8 = { class: "nut-video-controller__total" };
361
+ const _hoisted_9 = { class: "nut-video-error" };
362
+ const _hoisted_10 = { class: "nut-video-error-tip" };
367
363
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
368
364
  return openBlock(), createElementBlock("div", _hoisted_1, [
369
365
  createElementVNode("video", {
@@ -418,11 +414,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
418
414
  onTouchmove: _cache[4] || (_cache[4] = withModifiers(($event) => _ctx.touchSlidMove($event), ["stop", "prevent"])),
419
415
  onTouchstart: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.touchSlidSrart(), ["stop"])),
420
416
  onTouchend: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.touchSlidEnd($event), ["stop"]))
421
- }, _hoisted_8, 36),
422
- createElementVNode("div", _hoisted_9, null, 512)
417
+ }, _cache[10] || (_cache[10] = [
418
+ createElementVNode("div", { class: "nut-video-controller__ball-move" }, null, -1)
419
+ ]), 36),
420
+ createElementVNode("div", _hoisted_7, null, 512)
423
421
  ], 512)
424
422
  ]),
425
- createElementVNode("div", _hoisted_10, toDisplayString(_ctx.videoSet.totalTime), 1),
423
+ createElementVNode("div", _hoisted_8, toDisplayString(_ctx.videoSet.totalTime), 1),
426
424
  createElementVNode("div", {
427
425
  class: normalizeClass(["nut-video-controller__volume", { muted: _ctx.state.isMuted }]),
428
426
  onClick: _cache[7] || (_cache[7] = (...args) => _ctx.handleMuted && _ctx.handleMuted(...args))
@@ -434,8 +432,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
434
432
  ], 2), [
435
433
  [vShow, _ctx.showToolbox && !_ctx.isDisabled]
436
434
  ]),
437
- withDirectives(createElementVNode("div", _hoisted_11, [
438
- createElementVNode("p", _hoisted_12, toDisplayString(_ctx.translate("errorTip")), 1),
435
+ withDirectives(createElementVNode("div", _hoisted_9, [
436
+ createElementVNode("p", _hoisted_10, toDisplayString(_ctx.translate("errorTip")), 1),
439
437
  createElementVNode("p", {
440
438
  class: "nut-video-error-retry",
441
439
  onClick: _cache[9] || (_cache[9] = (...args) => _ctx.retry && _ctx.retry(...args))
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "NutUI",
5
- "version": "4.3.13",
5
+ "version": "4.3.14-beta.3",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [