@nutui/nutui 3.1.15-beta.0 → 3.1.16

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 (131) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +3 -3
  3. package/dist/nutui.d.ts +8 -5
  4. package/dist/nutui.es.js +826 -644
  5. package/dist/nutui.umd.js +832 -647
  6. package/dist/packages/_es/ActionSheet.js +1 -1
  7. package/dist/packages/_es/Address.js +2 -4
  8. package/dist/packages/_es/Avatar.js +1 -1
  9. package/dist/packages/_es/BackTop.js +1 -1
  10. package/dist/packages/_es/Badge.js +1 -1
  11. package/dist/packages/_es/Barrage.js +1 -1
  12. package/dist/packages/_es/Button.js +1 -1
  13. package/dist/packages/_es/Calendar.js +1 -1
  14. package/dist/packages/_es/Card.js +1 -1
  15. package/dist/packages/_es/Cascader.js +1 -1
  16. package/dist/packages/_es/Cell.js +1 -1
  17. package/dist/packages/_es/CellGroup.js +1 -1
  18. package/dist/packages/_es/Checkbox.js +1 -1
  19. package/dist/packages/_es/CheckboxGroup.js +1 -1
  20. package/dist/packages/_es/CircleProgress.js +1 -1
  21. package/dist/packages/_es/Col.js +1 -1
  22. package/dist/packages/_es/Collapse.js +1 -1
  23. package/dist/packages/_es/CollapseItem.js +11 -3
  24. package/dist/packages/_es/CountDown.js +1 -1
  25. package/dist/packages/_es/CountUp.js +1 -1
  26. package/dist/packages/_es/DatePicker.js +2 -4
  27. package/dist/packages/_es/Dialog.js +1 -1
  28. package/dist/packages/_es/Divider.js +1 -1
  29. package/dist/packages/_es/Drag.js +1 -1
  30. package/dist/packages/_es/Elevator.js +1 -1
  31. package/dist/packages/_es/Empty.js +1 -1
  32. package/dist/packages/_es/FixedNav.js +1 -1
  33. package/dist/packages/_es/Form.js +9 -6
  34. package/dist/packages/_es/FormItem.js +1 -1
  35. package/dist/packages/_es/Grid.js +1 -1
  36. package/dist/packages/_es/GridItem.js +1 -1
  37. package/dist/packages/_es/Icon.js +1 -1
  38. package/dist/packages/_es/ImagePreview.js +1 -1
  39. package/dist/packages/_es/Indicator.js +1 -1
  40. package/dist/packages/_es/InfiniteLoading.js +1 -1
  41. package/dist/packages/_es/Input.js +15 -10
  42. package/dist/packages/_es/InputNumber.js +2 -2
  43. package/dist/packages/_es/Layout.js +1 -1
  44. package/dist/packages/_es/Menu.js +3 -3
  45. package/dist/packages/_es/MenuItem.js +1 -1
  46. package/dist/packages/_es/Navbar.js +6 -32
  47. package/dist/packages/_es/NoticeBar.js +2 -2
  48. package/dist/packages/_es/Notify.js +1 -1
  49. package/dist/packages/_es/NumberKeyboard.js +1 -1
  50. package/dist/packages/_es/OverLay.js +1 -1
  51. package/dist/packages/_es/Pagination.js +1 -1
  52. package/dist/packages/_es/Picker.js +170 -189
  53. package/dist/packages/_es/Popover.js +1 -1
  54. package/dist/packages/_es/Popup.js +8 -4
  55. package/dist/packages/_es/Price.js +2 -2
  56. package/dist/packages/_es/Progress.js +1 -1
  57. package/dist/packages/_es/Radio.js +1 -1
  58. package/dist/packages/_es/RadioGroup.js +1 -1
  59. package/dist/packages/_es/Range.js +2 -2
  60. package/dist/packages/_es/Rate.js +1 -1
  61. package/dist/packages/_es/Row.js +1 -1
  62. package/dist/packages/_es/SearchBar.js +1 -1
  63. package/dist/packages/_es/ShortPassword.js +1 -1
  64. package/dist/packages/_es/SideNavBar.js +104 -0
  65. package/dist/packages/_es/SideNavBarItem.js +50 -0
  66. package/dist/packages/_es/Signature.js +1 -1
  67. package/dist/packages/_es/Skeleton.js +1 -1
  68. package/dist/packages/_es/Sku.js +1 -2
  69. package/dist/packages/_es/Step.js +1 -1
  70. package/dist/packages/_es/Steps.js +1 -1
  71. package/dist/packages/_es/SubSideNavBar.js +104 -0
  72. package/dist/packages/_es/Swipe.js +1 -1
  73. package/dist/packages/_es/Swiper.js +1 -1
  74. package/dist/packages/_es/SwiperItem.js +1 -1
  75. package/dist/packages/_es/Switch.js +1 -1
  76. package/dist/packages/_es/TabPane.js +1 -1
  77. package/dist/packages/_es/Tabbar.js +6 -2
  78. package/dist/packages/_es/TabbarItem.js +1 -1
  79. package/dist/packages/_es/Table.js +9 -3
  80. package/dist/packages/_es/Tabs.js +1 -1
  81. package/dist/packages/_es/Tag.js +1 -1
  82. package/dist/packages/_es/TextArea.js +9 -4
  83. package/dist/packages/_es/TimeDetail.js +1 -1
  84. package/dist/packages/_es/TimePannel.js +1 -1
  85. package/dist/packages/_es/TimeSelect.js +1 -1
  86. package/dist/packages/_es/Toast.js +1 -1
  87. package/dist/packages/_es/Uploader.js +6 -4
  88. package/dist/packages/_es/Video.js +1 -1
  89. package/dist/packages/_es/common.js +1 -1
  90. package/dist/packages/_es/component.js +1 -1
  91. package/dist/packages/_es/index.js +1 -1
  92. package/dist/packages/_es/index2.js +1 -1
  93. package/dist/packages/_es/index3.js +1 -1
  94. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  95. package/dist/packages/_es/pxCheck.js +1 -1
  96. package/dist/packages/_es/raf.js +1 -1
  97. package/dist/packages/_es/util.js +1 -1
  98. package/dist/packages/actionsheet/index.scss +2 -2
  99. package/dist/packages/address/index.scss +2 -0
  100. package/dist/packages/button/index.scss +3 -0
  101. package/dist/packages/cascader/index.scss +13 -13
  102. package/dist/packages/icon/index.scss +101 -11
  103. package/dist/packages/input/index.scss +4 -1
  104. package/dist/packages/menu/index.scss +10 -6
  105. package/dist/packages/menuitem/index.scss +9 -8
  106. package/dist/packages/navbar/index.scss +8 -34
  107. package/dist/packages/noticebar/index.scss +11 -11
  108. package/dist/packages/picker/index.scss +74 -22
  109. package/dist/packages/progress/index.scss +2 -8
  110. package/dist/packages/shortpassword/index.scss +6 -6
  111. package/dist/packages/sidenavbar/index.scss +14 -0
  112. package/dist/packages/sidenavbaritem/index.scss +10 -0
  113. package/dist/packages/sku/index.scss +1 -1
  114. package/dist/packages/subsidenavbar/index.scss +39 -0
  115. package/dist/packages/tabbar/index.scss +5 -1
  116. package/dist/packages/textarea/index.scss +1 -1
  117. package/dist/style.css +1 -1
  118. package/dist/styles/animation/icon.scss +245 -0
  119. package/dist/styles/animation/index.scss +1 -0
  120. package/dist/styles/font/config.json +36 -0
  121. package/dist/styles/font/demo_index.html +26 -3
  122. package/dist/styles/font/iconfont.css +7 -3
  123. package/dist/styles/font/iconfont.js +1 -1
  124. package/dist/styles/font/iconfont.json +7 -0
  125. package/dist/styles/font/iconfont.ttf +0 -0
  126. package/dist/styles/font/iconfont.woff +0 -0
  127. package/dist/styles/font/iconfont.woff2 +0 -0
  128. package/dist/styles/themes/default.scss +41 -38
  129. package/dist/styles/themes/jdd.scss +2 -0
  130. package/dist/styles/variables.scss +72 -68
  131. package/package.json +7 -3
package/dist/nutui.umd.js CHANGED
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:06 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:05 GMT+0800 (中国标准时间)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -69,8 +69,8 @@ var __publicField = (obj, key, value) => {
69
69
  }
70
70
  return target;
71
71
  };
72
- const { componentName: componentName$11, create: create$1m } = createComponent("avatar");
73
- const _sfc_main$1m = create$1m({
72
+ const { componentName: componentName$14, create: create$1p } = createComponent("avatar");
73
+ const _sfc_main$1p = create$1p({
74
74
  props: {
75
75
  size: {
76
76
  type: String,
@@ -94,7 +94,7 @@ var __publicField = (obj, key, value) => {
94
94
  const { size, shape, bgColor, icon } = vue.toRefs(props);
95
95
  const sizeValue = ["large", "normal", "small"];
96
96
  const classes = vue.computed(() => {
97
- const prefixCls = componentName$11;
97
+ const prefixCls = componentName$14;
98
98
  return {
99
99
  [prefixCls]: true,
100
100
  ["avatar-" + size.value]: true,
@@ -126,11 +126,11 @@ var __publicField = (obj, key, value) => {
126
126
  };
127
127
  }
128
128
  });
129
- const _hoisted_1$X = {
129
+ const _hoisted_1$$ = {
130
130
  key: 0,
131
131
  class: "text"
132
132
  };
133
- function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
133
+ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
134
134
  const _component_nut_icon = vue.resolveComponent("nut-icon");
135
135
  return vue.openBlock(), vue.createElementBlock("view", {
136
136
  style: vue.normalizeStyle(_ctx.styles),
@@ -141,17 +141,17 @@ var __publicField = (obj, key, value) => {
141
141
  class: "icon",
142
142
  name: _ctx.iconStyles
143
143
  }, null, 8, ["name"]),
144
- _ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$X, [
144
+ _ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$$, [
145
145
  vue.renderSlot(_ctx.$slots, "default")
146
146
  ])) : vue.createCommentVNode("", true)
147
147
  ], 6);
148
148
  }
149
- var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1e]]);
149
+ var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1h]]);
150
150
  const pxCheck = (value) => {
151
151
  return isNaN(Number(value)) ? String(value) : `${value}px`;
152
152
  };
153
- const { componentName: componentName$10, create: create$1l } = createComponent("icon");
154
- const _sfc_main$1l = create$1l({
153
+ const { componentName: componentName$13, create: create$1o } = createComponent("icon");
154
+ const _sfc_main$1o = create$1o({
155
155
  props: {
156
156
  name: { type: String, default: "" },
157
157
  size: { type: [String, Number], default: "" },
@@ -172,7 +172,7 @@ var __publicField = (obj, key, value) => {
172
172
  var _a;
173
173
  const _isImage = isImage();
174
174
  return vue.h(_isImage ? "img" : props.tag, {
175
- class: _isImage ? `${componentName$10}__img` : `${props.fontClassName} ${componentName$10} ${props.classPrefix}-${props.name}`,
175
+ class: _isImage ? `${componentName$13}__img` : `${props.fontClassName} ${componentName$13} ${props.classPrefix}-${props.name}`,
176
176
  style: {
177
177
  color: props.color,
178
178
  fontSize: pxCheck(props.size),
@@ -185,10 +185,10 @@ var __publicField = (obj, key, value) => {
185
185
  };
186
186
  }
187
187
  });
188
- const { componentName: componentName$$, create: create$1k } = createComponent("button");
189
- const _sfc_main$1k = create$1k({
188
+ const { componentName: componentName$12, create: create$1n } = createComponent("button");
189
+ const _sfc_main$1n = create$1n({
190
190
  components: {
191
- [_sfc_main$1l.name]: _sfc_main$1l
191
+ [_sfc_main$1o.name]: _sfc_main$1o
192
192
  },
193
193
  props: {
194
194
  color: String,
@@ -234,7 +234,7 @@ var __publicField = (obj, key, value) => {
234
234
  }
235
235
  };
236
236
  const classes = vue.computed(() => {
237
- const prefixCls = componentName$$;
237
+ const prefixCls = componentName$12;
238
238
  return {
239
239
  [prefixCls]: true,
240
240
  [`${prefixCls}--${type.value}`]: type.value,
@@ -270,15 +270,15 @@ var __publicField = (obj, key, value) => {
270
270
  };
271
271
  }
272
272
  });
273
- const _hoisted_1$W = { class: "nut-button__warp" };
274
- function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
273
+ const _hoisted_1$_ = { class: "nut-button__warp" };
274
+ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
275
275
  const _component_nut_icon = vue.resolveComponent("nut-icon");
276
276
  return vue.openBlock(), vue.createElementBlock("view", {
277
277
  class: vue.normalizeClass(_ctx.classes),
278
278
  style: vue.normalizeStyle(_ctx.getStyle),
279
279
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
280
280
  }, [
281
- vue.createElementVNode("view", _hoisted_1$W, [
281
+ vue.createElementVNode("view", _hoisted_1$_, [
282
282
  _ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
283
283
  key: 0,
284
284
  class: "nut-icon-loading"
@@ -297,9 +297,9 @@ var __publicField = (obj, key, value) => {
297
297
  ])
298
298
  ], 6);
299
299
  }
300
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1d]]);
301
- const { componentName: componentName$_, create: create$1j } = createComponent("cell");
302
- const _sfc_main$1j = create$1j({
300
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1g]]);
301
+ const { componentName: componentName$11, create: create$1m } = createComponent("cell");
302
+ const _sfc_main$1m = create$1m({
303
303
  props: {
304
304
  title: { type: String, default: "" },
305
305
  subTitle: { type: String, default: "" },
@@ -315,7 +315,7 @@ var __publicField = (obj, key, value) => {
315
315
  emits: ["click"],
316
316
  setup(props, { emit }) {
317
317
  const classes = vue.computed(() => {
318
- const prefixCls = componentName$_;
318
+ const prefixCls = componentName$11;
319
319
  return {
320
320
  [prefixCls]: true,
321
321
  [`${prefixCls}--clickable`]: props.isLink || props.to
@@ -342,9 +342,9 @@ var __publicField = (obj, key, value) => {
342
342
  };
343
343
  }
344
344
  });
345
- const _hoisted_1$V = { class: "title" };
346
- const _hoisted_2$L = { class: "nut-cell__title-desc" };
347
- function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
345
+ const _hoisted_1$Z = { class: "title" };
346
+ const _hoisted_2$O = { class: "nut-cell__title-desc" };
347
+ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
348
348
  const _component_nut_icon = vue.resolveComponent("nut-icon");
349
349
  return vue.openBlock(), vue.createElementBlock("view", {
350
350
  class: vue.normalizeClass(_ctx.classes),
@@ -362,8 +362,8 @@ var __publicField = (obj, key, value) => {
362
362
  name: _ctx.icon
363
363
  }, null, 8, ["name"])) : vue.createCommentVNode("", true),
364
364
  _ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
365
- vue.createElementVNode("view", _hoisted_1$V, vue.toDisplayString(_ctx.title), 1),
366
- vue.createElementVNode("view", _hoisted_2$L, vue.toDisplayString(_ctx.subTitle), 1)
365
+ vue.createElementVNode("view", _hoisted_1$Z, vue.toDisplayString(_ctx.title), 1),
366
+ vue.createElementVNode("view", _hoisted_2$O, vue.toDisplayString(_ctx.subTitle), 1)
367
367
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
368
368
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
369
369
  ], 64))
@@ -381,16 +381,16 @@ var __publicField = (obj, key, value) => {
381
381
  ])
382
382
  ], 6);
383
383
  }
384
- var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1c]]);
385
- const { componentName: componentName$Z, create: create$1i } = createComponent("cell-group");
386
- const _sfc_main$1i = create$1i({
384
+ var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1f]]);
385
+ const { componentName: componentName$10, create: create$1l } = createComponent("cell-group");
386
+ const _sfc_main$1l = create$1l({
387
387
  props: {
388
388
  title: { type: String, default: "" },
389
389
  desc: { type: String, default: "" }
390
390
  },
391
391
  setup() {
392
392
  const classes = vue.computed(() => {
393
- const prefixCls = componentName$Z;
393
+ const prefixCls = componentName$10;
394
394
  return {
395
395
  [prefixCls]: true
396
396
  };
@@ -400,29 +400,29 @@ var __publicField = (obj, key, value) => {
400
400
  };
401
401
  }
402
402
  });
403
- const _hoisted_1$U = {
403
+ const _hoisted_1$Y = {
404
404
  key: 1,
405
405
  class: "nut-cell-group__title"
406
406
  };
407
- const _hoisted_2$K = {
407
+ const _hoisted_2$N = {
408
408
  key: 3,
409
409
  class: "nut-cell-group__desc"
410
410
  };
411
- const _hoisted_3$A = { class: "nut-cell-group__warp" };
412
- function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
411
+ const _hoisted_3$B = { class: "nut-cell-group__warp" };
412
+ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
413
413
  return vue.openBlock(), vue.createElementBlock("view", {
414
414
  class: vue.normalizeClass(_ctx.classes)
415
415
  }, [
416
- _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$U, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
417
- _ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$K, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
418
- vue.createElementVNode("view", _hoisted_3$A, [
416
+ _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Y, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
417
+ _ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$N, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
418
+ vue.createElementVNode("view", _hoisted_3$B, [
419
419
  vue.renderSlot(_ctx.$slots, "default")
420
420
  ])
421
421
  ], 2);
422
422
  }
423
- var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1b]]);
424
- const { componentName: componentName$Y, create: create$1h } = createComponent("price");
425
- const _sfc_main$1h = create$1h({
423
+ var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1e]]);
424
+ const { componentName: componentName$$, create: create$1k } = createComponent("price");
425
+ const _sfc_main$1k = create$1k({
426
426
  props: {
427
427
  price: {
428
428
  type: [Number, String],
@@ -437,7 +437,7 @@ var __publicField = (obj, key, value) => {
437
437
  default: "¥"
438
438
  },
439
439
  decimalDigits: {
440
- type: Number,
440
+ type: [Number, String],
441
441
  default: 2
442
442
  },
443
443
  thousands: {
@@ -456,7 +456,7 @@ var __publicField = (obj, key, value) => {
456
456
  setup(props) {
457
457
  const classes = vue.computed(() => {
458
458
  return {
459
- [componentName$Y]: true
459
+ [componentName$$]: true
460
460
  };
461
461
  });
462
462
  const showSymbol = vue.computed(() => {
@@ -505,9 +505,9 @@ var __publicField = (obj, key, value) => {
505
505
  };
506
506
  }
507
507
  });
508
- const _hoisted_1$T = ["innerHTML"];
509
- const _hoisted_2$J = ["innerHTML"];
510
- function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
508
+ const _hoisted_1$X = ["innerHTML"];
509
+ const _hoisted_2$M = ["innerHTML"];
510
+ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
511
511
  return vue.openBlock(), vue.createElementBlock("view", {
512
512
  class: vue.normalizeClass(_ctx.classes)
513
513
  }, [
@@ -515,7 +515,7 @@ var __publicField = (obj, key, value) => {
515
515
  key: 0,
516
516
  class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
517
517
  innerHTML: _ctx.showSymbol
518
- }, null, 10, _hoisted_1$T)) : vue.createCommentVNode("", true),
518
+ }, null, 10, _hoisted_1$X)) : vue.createCommentVNode("", true),
519
519
  vue.createElementVNode("view", {
520
520
  class: vue.normalizeClass(`nut-price--${_ctx.size}`)
521
521
  }, vue.toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
@@ -530,11 +530,11 @@ var __publicField = (obj, key, value) => {
530
530
  key: 2,
531
531
  class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
532
532
  innerHTML: _ctx.showSymbol
533
- }, null, 10, _hoisted_2$J)) : vue.createCommentVNode("", true)
533
+ }, null, 10, _hoisted_2$M)) : vue.createCommentVNode("", true)
534
534
  ], 2);
535
535
  }
536
- var Price = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1a]]);
537
- const { componentName: componentName$X, create: create$1g } = createComponent("overlay");
536
+ var Price = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1d]]);
537
+ const { componentName: componentName$_, create: create$1j } = createComponent("overlay");
538
538
  const overlayProps = {
539
539
  visible: {
540
540
  type: Boolean,
@@ -564,12 +564,12 @@ var __publicField = (obj, key, value) => {
564
564
  default: true
565
565
  }
566
566
  };
567
- const _sfc_main$1g = create$1g({
567
+ const _sfc_main$1j = create$1j({
568
568
  props: overlayProps,
569
569
  emits: ["click", "update:visible"],
570
570
  setup(props, { emit }) {
571
571
  const classes = vue.computed(() => {
572
- const prefixCls = componentName$X;
572
+ const prefixCls = componentName$_;
573
573
  return {
574
574
  [prefixCls]: true,
575
575
  [props.overlayClass]: true
@@ -609,7 +609,7 @@ var __publicField = (obj, key, value) => {
609
609
  return { classes, style, touchmove, onClick };
610
610
  }
611
611
  });
612
- function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
612
+ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
613
613
  return vue.openBlock(), vue.createBlock(vue.Transition, { name: "overlay-fade" }, {
614
614
  default: vue.withCtx(() => [
615
615
  vue.withDirectives(vue.createElementVNode("view", {
@@ -626,9 +626,9 @@ var __publicField = (obj, key, value) => {
626
626
  _: 3
627
627
  });
628
628
  }
629
- var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$19]]);
630
- const { componentName: componentName$W, create: create$1f } = createComponent("divider");
631
- const _sfc_main$1f = create$1f({
629
+ var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1c]]);
630
+ const { componentName: componentName$Z, create: create$1i } = createComponent("divider");
631
+ const _sfc_main$1i = create$1i({
632
632
  props: {
633
633
  contentPosition: {
634
634
  type: String,
@@ -646,7 +646,7 @@ var __publicField = (obj, key, value) => {
646
646
  components: {},
647
647
  setup(props, context) {
648
648
  const classes = vue.computed(() => {
649
- const prefixCls = componentName$W;
649
+ const prefixCls = componentName$Z;
650
650
  return {
651
651
  [prefixCls]: true,
652
652
  [`${prefixCls}-center`]: context.slots.default,
@@ -659,18 +659,18 @@ var __publicField = (obj, key, value) => {
659
659
  return { classes };
660
660
  }
661
661
  });
662
- function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
662
+ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
663
663
  return vue.openBlock(), vue.createElementBlock("div", {
664
664
  class: vue.normalizeClass(_ctx.classes)
665
665
  }, [
666
666
  vue.renderSlot(_ctx.$slots, "default")
667
667
  ], 2);
668
668
  }
669
- var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$18]]);
670
- const { create: create$1e } = createComponent("layout");
671
- const _sfc_main$1e = create$1e({});
672
- const { componentName: componentName$V, create: create$1d } = createComponent("col");
673
- const _sfc_main$1d = create$1d({
669
+ var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1b]]);
670
+ const { create: create$1h } = createComponent("layout");
671
+ const _sfc_main$1h = create$1h({});
672
+ const { componentName: componentName$Y, create: create$1g } = createComponent("col");
673
+ const _sfc_main$1g = create$1g({
674
674
  props: {
675
675
  span: {
676
676
  type: [String, Number],
@@ -682,7 +682,7 @@ var __publicField = (obj, key, value) => {
682
682
  }
683
683
  },
684
684
  setup(props) {
685
- const prefixCls = componentName$V;
685
+ const prefixCls = componentName$Y;
686
686
  const gutter = vue.inject("gutter");
687
687
  const classes = vue.computed(() => {
688
688
  return {
@@ -704,7 +704,7 @@ var __publicField = (obj, key, value) => {
704
704
  };
705
705
  }
706
706
  });
707
- function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
707
+ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
708
708
  return vue.openBlock(), vue.createElementBlock("view", {
709
709
  class: vue.normalizeClass(_ctx.classes),
710
710
  style: vue.normalizeStyle(_ctx.style)
@@ -712,9 +712,9 @@ var __publicField = (obj, key, value) => {
712
712
  vue.renderSlot(_ctx.$slots, "default")
713
713
  ], 6);
714
714
  }
715
- var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$17]]);
716
- const { componentName: componentName$U, create: create$1c } = createComponent("row");
717
- const _sfc_main$1c = create$1c({
715
+ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1a]]);
716
+ const { componentName: componentName$X, create: create$1f } = createComponent("row");
717
+ const _sfc_main$1f = create$1f({
718
718
  props: {
719
719
  type: {
720
720
  type: String,
@@ -738,7 +738,7 @@ var __publicField = (obj, key, value) => {
738
738
  }
739
739
  },
740
740
  setup(props) {
741
- const prefixCls = componentName$U;
741
+ const prefixCls = componentName$X;
742
742
  vue.provide("gutter", props.gutter);
743
743
  const getClass = (prefix, type) => {
744
744
  return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
@@ -757,14 +757,14 @@ var __publicField = (obj, key, value) => {
757
757
  };
758
758
  }
759
759
  });
760
- function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
760
+ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
761
761
  return vue.openBlock(), vue.createElementBlock("view", {
762
762
  class: vue.normalizeClass(_ctx.getClasses())
763
763
  }, [
764
764
  vue.renderSlot(_ctx.$slots, "default")
765
765
  ], 2);
766
766
  }
767
- var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$16]]);
767
+ var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$19]]);
768
768
  let count = 0;
769
769
  const CLSNAME = "nut-overflow-hidden";
770
770
  const useLockScroll = (isLock) => {
@@ -782,7 +782,7 @@ var __publicField = (obj, key, value) => {
782
782
  };
783
783
  return [lock, unlock];
784
784
  };
785
- const { componentName: componentName$T, create: create$1b } = createComponent("popup");
785
+ const { componentName: componentName$W, create: create$1e } = createComponent("popup");
786
786
  let _zIndex = 2e3;
787
787
  const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
788
788
  position: {
@@ -830,10 +830,10 @@ var __publicField = (obj, key, value) => {
830
830
  default: true
831
831
  }
832
832
  });
833
- const _sfc_main$1b = create$1b({
833
+ const _sfc_main$1e = create$1e({
834
834
  components: {
835
835
  [OverLay.name]: OverLay,
836
- [_sfc_main$1l.name]: _sfc_main$1l
836
+ [_sfc_main$1o.name]: _sfc_main$1o
837
837
  },
838
838
  props: __spreadValues({}, popupProps),
839
839
  emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
@@ -843,11 +843,12 @@ var __publicField = (obj, key, value) => {
843
843
  showSlot: true,
844
844
  transitionName: `popup-fade-${props.position}`,
845
845
  overLayCount: 1,
846
- keepAlive: false
846
+ keepAlive: false,
847
+ closed: props.closeable
847
848
  });
848
849
  const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
849
850
  const classes = vue.computed(() => {
850
- const prefixCls = componentName$T;
851
+ const prefixCls = componentName$W;
851
852
  return {
852
853
  [prefixCls]: true,
853
854
  ["round"]: props.round,
@@ -940,6 +941,9 @@ var __publicField = (obj, key, value) => {
940
941
  vue.watch(() => props.position, (value) => {
941
942
  value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
942
943
  });
944
+ vue.watch(() => props.closeable, (value) => {
945
+ state.closed = value;
946
+ });
943
947
  return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
944
948
  popStyle,
945
949
  classes,
@@ -951,8 +955,8 @@ var __publicField = (obj, key, value) => {
951
955
  });
952
956
  }
953
957
  });
954
- const _hoisted_1$S = { key: 1 };
955
- function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
958
+ const _hoisted_1$W = { key: 1 };
959
+ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
956
960
  const _component_nut_overlay = vue.resolveComponent("nut-overlay");
957
961
  const _component_nut_icon = vue.resolveComponent("nut-icon");
958
962
  return _ctx.isWrapTeleport ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
@@ -982,7 +986,7 @@ var __publicField = (obj, key, value) => {
982
986
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
983
987
  }, [
984
988
  _ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
985
- _ctx.closeable ? (vue.openBlock(), vue.createElementBlock("view", {
989
+ _ctx.closed ? (vue.openBlock(), vue.createElementBlock("view", {
986
990
  key: 1,
987
991
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
988
992
  class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
@@ -998,7 +1002,7 @@ var __publicField = (obj, key, value) => {
998
1002
  ]),
999
1003
  _: 3
1000
1004
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1001
- ], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$S, [
1005
+ ], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$W, [
1002
1006
  _ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
1003
1007
  key: 0,
1004
1008
  visible: _ctx.visible,
@@ -1022,7 +1026,7 @@ var __publicField = (obj, key, value) => {
1022
1026
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1023
1027
  }, [
1024
1028
  _ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
1025
- _ctx.closeable ? (vue.openBlock(), vue.createElementBlock("view", {
1029
+ _ctx.closed ? (vue.openBlock(), vue.createElementBlock("view", {
1026
1030
  key: 1,
1027
1031
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
1028
1032
  class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
@@ -1040,7 +1044,7 @@ var __publicField = (obj, key, value) => {
1040
1044
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1041
1045
  ]));
1042
1046
  }
1043
- var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$15]]);
1047
+ var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$18]]);
1044
1048
  const throttle = (func, wait, type) => {
1045
1049
  if (type === 1) {
1046
1050
  var previous = 0;
@@ -1066,8 +1070,8 @@ var __publicField = (obj, key, value) => {
1066
1070
  }
1067
1071
  };
1068
1072
  };
1069
- const { create: create$1a } = createComponent("video");
1070
- const _sfc_main$1a = create$1a({
1073
+ const { create: create$1d } = createComponent("video");
1074
+ const _sfc_main$1d = create$1d({
1071
1075
  props: {
1072
1076
  source: {
1073
1077
  type: Object,
@@ -1313,12 +1317,12 @@ var __publicField = (obj, key, value) => {
1313
1317
  });
1314
1318
  }
1315
1319
  });
1316
- const _hoisted_1$R = {
1320
+ const _hoisted_1$V = {
1317
1321
  class: "nut-video",
1318
1322
  ref: "videocon"
1319
1323
  };
1320
- const _hoisted_2$I = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
1321
- const _hoisted_3$z = ["src", "type"];
1324
+ const _hoisted_2$L = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
1325
+ const _hoisted_3$A = ["src", "type"];
1322
1326
  const _hoisted_4$r = { class: "current-time" };
1323
1327
  const _hoisted_5$j = { class: "progress-container" };
1324
1328
  const _hoisted_6$g = {
@@ -1336,8 +1340,8 @@ var __publicField = (obj, key, value) => {
1336
1340
  const _hoisted_10$4 = { class: "duration-time" };
1337
1341
  const _hoisted_11$4 = { class: "nut-video-error" };
1338
1342
  const _hoisted_12$4 = /* @__PURE__ */ vue.createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
1339
- function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
1340
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
1343
+ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
1344
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
1341
1345
  vue.createElementVNode("video", {
1342
1346
  ref: "root",
1343
1347
  class: "nut-video-player",
@@ -1352,8 +1356,8 @@ var __publicField = (obj, key, value) => {
1352
1356
  vue.createElementVNode("source", {
1353
1357
  src: _ctx.source.src,
1354
1358
  type: _ctx.source.type
1355
- }, null, 8, _hoisted_3$z)
1356
- ], 40, _hoisted_2$I),
1359
+ }, null, 8, _hoisted_3$A)
1360
+ ], 40, _hoisted_2$L),
1357
1361
  _ctx.showToolbox && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", {
1358
1362
  key: 0,
1359
1363
  class: "playing-mask",
@@ -1417,7 +1421,7 @@ var __publicField = (obj, key, value) => {
1417
1421
  ])
1418
1422
  ], 512);
1419
1423
  }
1420
- var Video = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$14]]);
1424
+ var Video = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$17]]);
1421
1425
  const DISTANCE = 5;
1422
1426
  function useTouch$1() {
1423
1427
  const state = vue.reactive({
@@ -1472,8 +1476,8 @@ var __publicField = (obj, key, value) => {
1472
1476
  Object.assign(instance.proxy, apis);
1473
1477
  }
1474
1478
  }
1475
- const { create: create$19, componentName: componentName$S } = createComponent("swiper");
1476
- const _sfc_main$19 = create$19({
1479
+ const { create: create$1c, componentName: componentName$V } = createComponent("swiper");
1480
+ const _sfc_main$1c = create$1c({
1477
1481
  props: {
1478
1482
  width: {
1479
1483
  type: [Number, String],
@@ -1542,7 +1546,7 @@ var __publicField = (obj, key, value) => {
1542
1546
  });
1543
1547
  const touch = useTouch$1();
1544
1548
  const classes = vue.computed(() => {
1545
- const prefixCls = componentName$S;
1549
+ const prefixCls = componentName$V;
1546
1550
  return {
1547
1551
  [prefixCls]: true
1548
1552
  };
@@ -1578,7 +1582,7 @@ var __publicField = (obj, key, value) => {
1578
1582
  state.children.push(child.proxy);
1579
1583
  }
1580
1584
  };
1581
- const range2 = (num, min, max) => {
1585
+ const range = (num, min, max) => {
1582
1586
  return Math.min(Math.max(num, min), max);
1583
1587
  };
1584
1588
  const requestFrame = (fn) => {
@@ -1591,7 +1595,7 @@ var __publicField = (obj, key, value) => {
1591
1595
  }
1592
1596
  let targetOffset = offset - currentPosition;
1593
1597
  if (!props.loop) {
1594
- targetOffset = range2(targetOffset, minOffset.value, 0);
1598
+ targetOffset = range(targetOffset, minOffset.value, 0);
1595
1599
  }
1596
1600
  return targetOffset;
1597
1601
  };
@@ -1599,9 +1603,9 @@ var __publicField = (obj, key, value) => {
1599
1603
  const { active } = state;
1600
1604
  if (pace) {
1601
1605
  if (props.loop) {
1602
- return range2(active + pace, -1, childCount.value);
1606
+ return range(active + pace, -1, childCount.value);
1603
1607
  }
1604
- return range2(active + pace, 0, childCount.value - 1);
1608
+ return range(active + pace, 0, childCount.value - 1);
1605
1609
  }
1606
1610
  return active;
1607
1611
  };
@@ -1795,7 +1799,7 @@ var __publicField = (obj, key, value) => {
1795
1799
  state,
1796
1800
  classes,
1797
1801
  container,
1798
- componentName: componentName$S,
1802
+ componentName: componentName$V,
1799
1803
  isVertical,
1800
1804
  slots,
1801
1805
  activePagination,
@@ -1805,7 +1809,7 @@ var __publicField = (obj, key, value) => {
1805
1809
  };
1806
1810
  }
1807
1811
  });
1808
- function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
1812
+ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
1809
1813
  return vue.openBlock(), vue.createElementBlock("view", {
1810
1814
  ref: "container",
1811
1815
  class: vue.normalizeClass(_ctx.classes),
@@ -1842,15 +1846,15 @@ var __publicField = (obj, key, value) => {
1842
1846
  ], 2)) : vue.createCommentVNode("", true)
1843
1847
  ], 34);
1844
1848
  }
1845
- var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$13]]);
1849
+ var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$16]]);
1846
1850
  function useExpose(apis) {
1847
1851
  const instance = vue.getCurrentInstance();
1848
1852
  if (instance) {
1849
1853
  Object.assign(instance.proxy, apis);
1850
1854
  }
1851
1855
  }
1852
- const { create: create$18, componentName: componentName$R } = createComponent("swiper-item");
1853
- const _sfc_main$18 = create$18({
1856
+ const { create: create$1b, componentName: componentName$U } = createComponent("swiper-item");
1857
+ const _sfc_main$1b = create$1b({
1854
1858
  props: {},
1855
1859
  setup(props, { slots }) {
1856
1860
  const parent = vue.inject("parent");
@@ -1859,7 +1863,7 @@ var __publicField = (obj, key, value) => {
1859
1863
  offset: 0
1860
1864
  });
1861
1865
  const classes = vue.computed(() => {
1862
- const prefixCls = componentName$R;
1866
+ const prefixCls = componentName$U;
1863
1867
  return {
1864
1868
  [prefixCls]: true
1865
1869
  };
@@ -1885,7 +1889,7 @@ var __publicField = (obj, key, value) => {
1885
1889
  };
1886
1890
  }
1887
1891
  });
1888
- function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
1892
+ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
1889
1893
  return vue.openBlock(), vue.createElementBlock("view", {
1890
1894
  class: vue.normalizeClass(_ctx.classes),
1891
1895
  style: vue.normalizeStyle(_ctx.style)
@@ -1893,9 +1897,9 @@ var __publicField = (obj, key, value) => {
1893
1897
  vue.renderSlot(_ctx.$slots, "default")
1894
1898
  ], 6);
1895
1899
  }
1896
- var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$12]]);
1897
- const { componentName: componentName$Q, create: create$17 } = createComponent("imagepreview");
1898
- const _sfc_main$17 = create$17({
1900
+ var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$15]]);
1901
+ const { componentName: componentName$T, create: create$1a } = createComponent("imagepreview");
1902
+ const _sfc_main$1a = create$1a({
1899
1903
  props: {
1900
1904
  show: {
1901
1905
  type: Boolean,
@@ -2068,9 +2072,9 @@ var __publicField = (obj, key, value) => {
2068
2072
  });
2069
2073
  }
2070
2074
  });
2071
- const _hoisted_1$Q = ["src"];
2072
- const _hoisted_2$H = { class: "nut-imagepreview-index" };
2073
- function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
2075
+ const _hoisted_1$U = ["src"];
2076
+ const _hoisted_2$K = { class: "nut-imagepreview-index" };
2077
+ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
2074
2078
  const _component_nut_video = vue.resolveComponent("nut-video");
2075
2079
  const _component_nut_swiper_item = vue.resolveComponent("nut-swiper-item");
2076
2080
  const _component_nut_swiper = vue.resolveComponent("nut-swiper");
@@ -2118,7 +2122,7 @@ var __publicField = (obj, key, value) => {
2118
2122
  vue.createElementVNode("img", {
2119
2123
  src: item.src,
2120
2124
  class: "nut-imagepreview-img"
2121
- }, null, 8, _hoisted_1$Q)
2125
+ }, null, 8, _hoisted_1$U)
2122
2126
  ]),
2123
2127
  _: 2
2124
2128
  }, 1024);
@@ -2127,12 +2131,12 @@ var __publicField = (obj, key, value) => {
2127
2131
  _: 1
2128
2132
  }, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : vue.createCommentVNode("", true)
2129
2133
  ], 32),
2130
- vue.createElementVNode("view", _hoisted_2$H, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
2134
+ vue.createElementVNode("view", _hoisted_2$K, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
2131
2135
  ]),
2132
2136
  _: 1
2133
2137
  }, 8, ["visible", "onClick"]);
2134
2138
  }
2135
- var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$11]]);
2139
+ var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$14]]);
2136
2140
  class ImagePreviewOptions {
2137
2141
  constructor() {
2138
2142
  __publicField(this, "show", false);
@@ -2237,8 +2241,8 @@ var __publicField = (obj, key, value) => {
2237
2241
  isHorizontal
2238
2242
  };
2239
2243
  }
2240
- const { componentName: componentName$P, create: create$16 } = createComponent("swipe");
2241
- const _sfc_main$16 = create$16({
2244
+ const { componentName: componentName$S, create: create$19 } = createComponent("swipe");
2245
+ const _sfc_main$19 = create$19({
2242
2246
  props: {
2243
2247
  name: {
2244
2248
  type: String,
@@ -2260,7 +2264,7 @@ var __publicField = (obj, key, value) => {
2260
2264
  emits: ["open", "close"],
2261
2265
  setup(props, { emit }) {
2262
2266
  const classes = vue.computed(() => {
2263
- const prefixCls = componentName$P;
2267
+ const prefixCls = componentName$S;
2264
2268
  return {
2265
2269
  [prefixCls]: true
2266
2270
  };
@@ -2384,16 +2388,16 @@ var __publicField = (obj, key, value) => {
2384
2388
  });
2385
2389
  }
2386
2390
  });
2387
- const _hoisted_1$P = {
2391
+ const _hoisted_1$T = {
2388
2392
  class: "nut-swipe__left",
2389
2393
  ref: "leftRef"
2390
2394
  };
2391
- const _hoisted_2$G = { class: "nut-swipe__content" };
2392
- const _hoisted_3$y = {
2395
+ const _hoisted_2$J = { class: "nut-swipe__content" };
2396
+ const _hoisted_3$z = {
2393
2397
  class: "nut-swipe__right",
2394
2398
  ref: "rightRef"
2395
2399
  };
2396
- function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
2400
+ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
2397
2401
  return vue.openBlock(), vue.createElementBlock("view", {
2398
2402
  class: vue.normalizeClass(_ctx.classes),
2399
2403
  style: vue.normalizeStyle(_ctx.touchStyle),
@@ -2402,20 +2406,20 @@ var __publicField = (obj, key, value) => {
2402
2406
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
2403
2407
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
2404
2408
  }, [
2405
- vue.createElementVNode("view", _hoisted_1$P, [
2409
+ vue.createElementVNode("view", _hoisted_1$T, [
2406
2410
  vue.renderSlot(_ctx.$slots, "left")
2407
2411
  ], 512),
2408
- vue.createElementVNode("view", _hoisted_2$G, [
2412
+ vue.createElementVNode("view", _hoisted_2$J, [
2409
2413
  vue.renderSlot(_ctx.$slots, "default")
2410
2414
  ]),
2411
- vue.createElementVNode("view", _hoisted_3$y, [
2415
+ vue.createElementVNode("view", _hoisted_3$z, [
2412
2416
  vue.renderSlot(_ctx.$slots, "right")
2413
2417
  ], 512)
2414
2418
  ], 38);
2415
2419
  }
2416
- var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$10]]);
2417
- const { componentName: componentName$O, create: create$15 } = createComponent("actionsheet");
2418
- const _sfc_main$15 = create$15({
2420
+ var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$13]]);
2421
+ const { componentName: componentName$R, create: create$18 } = createComponent("actionsheet");
2422
+ const _sfc_main$18 = create$18({
2419
2423
  props: __spreadProps(__spreadValues({}, popupProps), {
2420
2424
  cancelTxt: {
2421
2425
  type: String,
@@ -2453,7 +2457,7 @@ var __publicField = (obj, key, value) => {
2453
2457
  emits: ["cancel", "choose", "update:visible"],
2454
2458
  setup(props, { emit }) {
2455
2459
  const classes = vue.computed(() => {
2456
- const prefixCls = componentName$O;
2460
+ const prefixCls = componentName$R;
2457
2461
  return {
2458
2462
  [prefixCls]: true
2459
2463
  };
@@ -2484,12 +2488,12 @@ var __publicField = (obj, key, value) => {
2484
2488
  };
2485
2489
  }
2486
2490
  });
2487
- const _hoisted_1$O = { class: "nut-actionsheet-panel" };
2488
- const _hoisted_2$F = {
2491
+ const _hoisted_1$S = { class: "nut-actionsheet-panel" };
2492
+ const _hoisted_2$I = {
2489
2493
  key: 0,
2490
2494
  class: "nut-actionsheet-title"
2491
2495
  };
2492
- const _hoisted_3$x = {
2496
+ const _hoisted_3$y = {
2493
2497
  key: 1,
2494
2498
  class: "nut-actionsheet-item desc"
2495
2499
  };
@@ -2499,7 +2503,7 @@ var __publicField = (obj, key, value) => {
2499
2503
  };
2500
2504
  const _hoisted_5$i = ["onClick"];
2501
2505
  const _hoisted_6$f = { class: "subdesc" };
2502
- function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
2506
+ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
2503
2507
  const _component_nut_popup = vue.resolveComponent("nut-popup");
2504
2508
  return vue.openBlock(), vue.createElementBlock("view", {
2505
2509
  class: vue.normalizeClass(_ctx.classes)
@@ -2512,9 +2516,9 @@ var __publicField = (obj, key, value) => {
2512
2516
  onClickOverlay: _ctx.close
2513
2517
  }, {
2514
2518
  default: vue.withCtx(() => [
2515
- vue.createElementVNode("view", _hoisted_1$O, [
2516
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$F, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
2517
- _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$x, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
2519
+ vue.createElementVNode("view", _hoisted_1$S, [
2520
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$I, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
2521
+ _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$y, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
2518
2522
  _ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$q, [
2519
2523
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
2520
2524
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -2539,9 +2543,9 @@ var __publicField = (obj, key, value) => {
2539
2543
  }, 8, ["visible", "onClickOverlay"])
2540
2544
  ], 2);
2541
2545
  }
2542
- var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$$]]);
2543
- const { componentName: componentName$N, create: create$14 } = createComponent("backtop");
2544
- const _sfc_main$14 = create$14({
2546
+ var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$12]]);
2547
+ const { componentName: componentName$Q, create: create$17 } = createComponent("backtop");
2548
+ const _sfc_main$17 = create$17({
2545
2549
  props: {
2546
2550
  bottom: {
2547
2551
  type: Number,
@@ -2582,7 +2586,7 @@ var __publicField = (obj, key, value) => {
2582
2586
  keepAlive: false
2583
2587
  });
2584
2588
  const classes = vue.computed(() => {
2585
- const prefixCls = componentName$N;
2589
+ const prefixCls = componentName$Q;
2586
2590
  return {
2587
2591
  [prefixCls]: true,
2588
2592
  show: state.backTop
@@ -2673,7 +2677,7 @@ var __publicField = (obj, key, value) => {
2673
2677
  };
2674
2678
  }
2675
2679
  });
2676
- function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
2680
+ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
2677
2681
  const _component_nut_icon = vue.resolveComponent("nut-icon");
2678
2682
  return vue.openBlock(), vue.createElementBlock("div", {
2679
2683
  class: vue.normalizeClass(_ctx.classes),
@@ -2689,9 +2693,9 @@ var __publicField = (obj, key, value) => {
2689
2693
  ])
2690
2694
  ], 6);
2691
2695
  }
2692
- var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$_]]);
2693
- const { create: create$13 } = createComponent("collapse");
2694
- const _sfc_main$13 = create$13({
2696
+ var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$11]]);
2697
+ const { create: create$16 } = createComponent("collapse");
2698
+ const _sfc_main$16 = create$16({
2695
2699
  props: {
2696
2700
  active: {
2697
2701
  type: [String, Number, Array]
@@ -2764,14 +2768,14 @@ var __publicField = (obj, key, value) => {
2764
2768
  });
2765
2769
  }
2766
2770
  });
2767
- function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
2771
+ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
2768
2772
  return vue.openBlock(), vue.createElementBlock("view", null, [
2769
2773
  vue.renderSlot(_ctx.$slots, "default")
2770
2774
  ]);
2771
2775
  }
2772
- var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$Z]]);
2773
- const { create: create$12, componentName: componentName$M } = createComponent("collapse-item");
2774
- const _sfc_main$12 = create$12({
2776
+ var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$10]]);
2777
+ const { create: create$15, componentName: componentName$P } = createComponent("collapse-item");
2778
+ const _sfc_main$15 = create$15({
2775
2779
  props: {
2776
2780
  title: {
2777
2781
  type: String,
@@ -2794,11 +2798,11 @@ var __publicField = (obj, key, value) => {
2794
2798
  type: Object
2795
2799
  }
2796
2800
  },
2797
- setup(props) {
2801
+ setup(props, ctx) {
2798
2802
  const collapse = vue.inject("collapseParent");
2799
2803
  const parent = vue.reactive(collapse);
2800
2804
  const classes = vue.computed(() => {
2801
- const prefixCls = componentName$M;
2805
+ const prefixCls = componentName$P;
2802
2806
  return {
2803
2807
  [prefixCls]: true,
2804
2808
  [`${prefixCls}-icon`]: parent.props.icon
@@ -2838,7 +2842,7 @@ var __publicField = (obj, key, value) => {
2838
2842
  if (!wrapperRefEle || !contentRefEle) {
2839
2843
  return;
2840
2844
  }
2841
- const offsetHeight = contentRefEle.offsetHeight;
2845
+ const offsetHeight = contentRefEle.offsetHeight || "auto";
2842
2846
  if (offsetHeight) {
2843
2847
  const contentHeight = `${offsetHeight}px`;
2844
2848
  wrapperRefEle.style.willChange = "height";
@@ -2897,6 +2901,14 @@ var __publicField = (obj, key, value) => {
2897
2901
  proxyData.openExpanded = true;
2898
2902
  }
2899
2903
  });
2904
+ vue.watch(() => {
2905
+ var _a, _b;
2906
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
2907
+ }, () => {
2908
+ setTimeout(() => {
2909
+ animation();
2910
+ }, 300);
2911
+ });
2900
2912
  vue.onMounted(() => {
2901
2913
  const { name } = props;
2902
2914
  const active = parent && parent.props.active;
@@ -2923,9 +2935,9 @@ var __publicField = (obj, key, value) => {
2923
2935
  });
2924
2936
  }
2925
2937
  });
2926
- const _hoisted_1$N = { class: "collapse-title" };
2927
- const _hoisted_2$E = { class: "collapse-title-value" };
2928
- const _hoisted_3$w = ["innerHTML"];
2938
+ const _hoisted_1$R = { class: "collapse-title" };
2939
+ const _hoisted_2$H = { class: "collapse-title-value" };
2940
+ const _hoisted_3$x = ["innerHTML"];
2929
2941
  const _hoisted_4$p = {
2930
2942
  key: 0,
2931
2943
  class: "subTitle"
@@ -2939,7 +2951,7 @@ var __publicField = (obj, key, value) => {
2939
2951
  class: "collapse-content",
2940
2952
  ref: "contentRef"
2941
2953
  };
2942
- function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
2954
+ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
2943
2955
  const _component_nut_icon = vue.resolveComponent("nut-icon");
2944
2956
  return vue.openBlock(), vue.createElementBlock("view", {
2945
2957
  class: vue.normalizeClass(_ctx.classes)
@@ -2948,9 +2960,9 @@ var __publicField = (obj, key, value) => {
2948
2960
  class: vue.normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
2949
2961
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
2950
2962
  }, [
2951
- vue.createElementVNode("view", _hoisted_1$N, [
2963
+ vue.createElementVNode("view", _hoisted_1$R, [
2952
2964
  vue.createElementVNode("view", null, [
2953
- vue.createElementVNode("view", _hoisted_2$E, [
2965
+ vue.createElementVNode("view", _hoisted_2$H, [
2954
2966
  _ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
2955
2967
  key: 0,
2956
2968
  name: _ctx.titleIcon,
@@ -2962,7 +2974,7 @@ var __publicField = (obj, key, value) => {
2962
2974
  key: 2,
2963
2975
  innerHTML: _ctx.title,
2964
2976
  class: "collapse-icon-title"
2965
- }, null, 8, _hoisted_3$w))
2977
+ }, null, 8, _hoisted_3$x))
2966
2978
  ])
2967
2979
  ])
2968
2980
  ]),
@@ -2989,7 +3001,7 @@ var __publicField = (obj, key, value) => {
2989
3001
  ], 512)
2990
3002
  ], 2);
2991
3003
  }
2992
- var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$Y]]);
3004
+ var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$$]]);
2993
3005
  const _window = window;
2994
3006
  function requestAniFrame() {
2995
3007
  if (typeof _window !== "undefined") {
@@ -3003,8 +3015,8 @@ var __publicField = (obj, key, value) => {
3003
3015
  }
3004
3016
  }
3005
3017
  var requestAniFrame$1 = requestAniFrame();
3006
- const { componentName: componentName$L, create: create$11 } = createComponent("drag");
3007
- const _sfc_main$11 = create$11({
3018
+ const { componentName: componentName$O, create: create$14 } = createComponent("drag");
3019
+ const _sfc_main$14 = create$14({
3008
3020
  props: {
3009
3021
  attract: {
3010
3022
  type: Boolean,
@@ -3049,7 +3061,7 @@ var __publicField = (obj, key, value) => {
3049
3061
  }
3050
3062
  });
3051
3063
  const classes = vue.computed(() => {
3052
- const prefixCls = componentName$L;
3064
+ const prefixCls = componentName$O;
3053
3065
  return {
3054
3066
  [prefixCls]: true
3055
3067
  };
@@ -3184,7 +3196,7 @@ var __publicField = (obj, key, value) => {
3184
3196
  };
3185
3197
  }
3186
3198
  });
3187
- function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
3199
+ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
3188
3200
  return vue.openBlock(), vue.createElementBlock("view", {
3189
3201
  class: vue.normalizeClass(_ctx.classes),
3190
3202
  ref: "myDrag",
@@ -3195,9 +3207,9 @@ var __publicField = (obj, key, value) => {
3195
3207
  vue.renderSlot(_ctx.$slots, "default")
3196
3208
  ], 34);
3197
3209
  }
3198
- var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X]]);
3199
- const { componentName: componentName$K, create: create$10 } = createComponent("dialog");
3200
- const _sfc_main$10 = create$10({
3210
+ var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$_]]);
3211
+ const { componentName: componentName$N, create: create$13 } = createComponent("dialog");
3212
+ const _sfc_main$13 = create$13({
3201
3213
  inheritAttrs: false,
3202
3214
  components: {
3203
3215
  [Popup.name]: Popup,
@@ -3272,7 +3284,7 @@ var __publicField = (obj, key, value) => {
3272
3284
  });
3273
3285
  const classes = vue.computed(() => {
3274
3286
  return {
3275
- [componentName$K]: true
3287
+ [componentName$N]: true
3276
3288
  };
3277
3289
  });
3278
3290
  const update = (val) => {
@@ -3302,12 +3314,12 @@ var __publicField = (obj, key, value) => {
3302
3314
  };
3303
3315
  }
3304
3316
  });
3305
- const _hoisted_1$M = {
3317
+ const _hoisted_1$Q = {
3306
3318
  key: 0,
3307
3319
  class: "nut-dialog__header"
3308
3320
  };
3309
- const _hoisted_2$D = ["innerHTML"];
3310
- function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
3321
+ const _hoisted_2$G = ["innerHTML"];
3322
+ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
3311
3323
  const _component_nut_button = vue.resolveComponent("nut-button");
3312
3324
  const _component_nut_popup = vue.resolveComponent("nut-popup");
3313
3325
  return vue.openBlock(), vue.createBlock(_component_nut_popup, {
@@ -3324,7 +3336,7 @@ var __publicField = (obj, key, value) => {
3324
3336
  vue.createElementVNode("view", {
3325
3337
  class: vue.normalizeClass(_ctx.classes)
3326
3338
  }, [
3327
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$M, [
3339
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Q, [
3328
3340
  _ctx.$slots.header ? vue.renderSlot(_ctx.$slots, "header", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
3329
3341
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
3330
3342
  ], 64))
@@ -3336,7 +3348,7 @@ var __publicField = (obj, key, value) => {
3336
3348
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", {
3337
3349
  key: 1,
3338
3350
  innerHTML: _ctx.content
3339
- }, null, 8, _hoisted_2$D))
3351
+ }, null, 8, _hoisted_2$G))
3340
3352
  ], 4),
3341
3353
  !_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", {
3342
3354
  key: 1,
@@ -3376,7 +3388,7 @@ var __publicField = (obj, key, value) => {
3376
3388
  _: 3
3377
3389
  }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
3378
3390
  }
3379
- var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$W]]);
3391
+ var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$Z]]);
3380
3392
  class DialogOptions {
3381
3393
  constructor() {
3382
3394
  __publicField(this, "title", "");
@@ -3450,8 +3462,8 @@ var __publicField = (obj, key, value) => {
3450
3462
  app.use(Dialog);
3451
3463
  app.config.globalProperties.$dialog = _Dialog;
3452
3464
  };
3453
- const { componentName: componentName$J, create: create$$ } = createComponent("infiniteloading");
3454
- const _sfc_main$$ = create$$({
3465
+ const { componentName: componentName$M, create: create$12 } = createComponent("infiniteloading");
3466
+ const _sfc_main$12 = create$12({
3455
3467
  props: {
3456
3468
  hasMore: {
3457
3469
  type: Boolean,
@@ -3513,7 +3525,7 @@ var __publicField = (obj, key, value) => {
3513
3525
  distance: 0
3514
3526
  });
3515
3527
  const classes = vue.computed(() => {
3516
- const prefixCls = componentName$J;
3528
+ const prefixCls = componentName$M;
3517
3529
  return {
3518
3530
  [prefixCls]: true
3519
3531
  };
@@ -3637,9 +3649,9 @@ var __publicField = (obj, key, value) => {
3637
3649
  });
3638
3650
  }
3639
3651
  });
3640
- const _hoisted_1$L = { class: "top-box" };
3641
- const _hoisted_2$C = { class: "top-text" };
3642
- const _hoisted_3$v = { class: "nut-infinite-container" };
3652
+ const _hoisted_1$P = { class: "top-box" };
3653
+ const _hoisted_2$F = { class: "top-text" };
3654
+ const _hoisted_3$w = { class: "nut-infinite-container" };
3643
3655
  const _hoisted_4$o = { class: "nut-infinite-bottom" };
3644
3656
  const _hoisted_5$g = {
3645
3657
  key: 0,
@@ -3650,7 +3662,7 @@ var __publicField = (obj, key, value) => {
3650
3662
  key: 1,
3651
3663
  class: "tips"
3652
3664
  };
3653
- function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
3665
+ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
3654
3666
  const _component_nut_icon = vue.resolveComponent("nut-icon");
3655
3667
  return vue.openBlock(), vue.createElementBlock("view", {
3656
3668
  class: vue.normalizeClass(_ctx.classes),
@@ -3664,15 +3676,15 @@ var __publicField = (obj, key, value) => {
3664
3676
  ref: "refreshTop",
3665
3677
  style: vue.normalizeStyle(_ctx.getStyle)
3666
3678
  }, [
3667
- vue.createElementVNode("view", _hoisted_1$L, [
3679
+ vue.createElementVNode("view", _hoisted_1$P, [
3668
3680
  vue.createVNode(_component_nut_icon, {
3669
3681
  class: "top-img",
3670
3682
  name: _ctx.pullIcon
3671
3683
  }, null, 8, ["name"]),
3672
- vue.createElementVNode("view", _hoisted_2$C, vue.toDisplayString(_ctx.pullTxt), 1)
3684
+ vue.createElementVNode("view", _hoisted_2$F, vue.toDisplayString(_ctx.pullTxt), 1)
3673
3685
  ])
3674
3686
  ], 4),
3675
- vue.createElementVNode("view", _hoisted_3$v, [
3687
+ vue.createElementVNode("view", _hoisted_3$w, [
3676
3688
  vue.renderSlot(_ctx.$slots, "default")
3677
3689
  ]),
3678
3690
  vue.createElementVNode("view", _hoisted_4$o, [
@@ -3686,9 +3698,9 @@ var __publicField = (obj, key, value) => {
3686
3698
  ])
3687
3699
  ], 34);
3688
3700
  }
3689
- var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$V]]);
3690
- const { componentName: componentName$I, create: create$_ } = createComponent("notify");
3691
- const _sfc_main$_ = create$_({
3701
+ var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$Y]]);
3702
+ const { componentName: componentName$L, create: create$11 } = createComponent("notify");
3703
+ const _sfc_main$11 = create$11({
3692
3704
  components: {
3693
3705
  [Popup.name]: Popup
3694
3706
  },
@@ -3758,7 +3770,7 @@ var __publicField = (obj, key, value) => {
3758
3770
  return { state, hide, onAfterLeave, clickCover };
3759
3771
  }
3760
3772
  });
3761
- function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
3773
+ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
3762
3774
  return vue.openBlock(), vue.createBlock(vue.Transition, {
3763
3775
  name: "toast-fade",
3764
3776
  onAfterLeave: _ctx.onAfterLeave
@@ -3779,7 +3791,7 @@ var __publicField = (obj, key, value) => {
3779
3791
  _: 3
3780
3792
  }, 8, ["onAfterLeave"]);
3781
3793
  }
3782
- var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$U]]);
3794
+ var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X]]);
3783
3795
  const defaultOptions$1 = {
3784
3796
  type: "base",
3785
3797
  showPopup: false,
@@ -3917,8 +3929,8 @@ var __publicField = (obj, key, value) => {
3917
3929
  height: 0
3918
3930
  };
3919
3931
  };
3920
- const { componentName: componentName$H, create: create$Z } = createComponent("range");
3921
- const _sfc_main$Z = create$Z({
3932
+ const { componentName: componentName$K, create: create$10 } = createComponent("range");
3933
+ const _sfc_main$10 = create$10({
3922
3934
  props: {
3923
3935
  range: {
3924
3936
  type: Boolean,
@@ -3963,7 +3975,7 @@ var __publicField = (obj, key, value) => {
3963
3975
  const touch = useTouch();
3964
3976
  const scope = vue.computed(() => Number(props.max) - Number(props.min));
3965
3977
  const classes = vue.computed(() => {
3966
- const prefixCls = componentName$H;
3978
+ const prefixCls = componentName$K;
3967
3979
  return {
3968
3980
  [prefixCls]: true,
3969
3981
  [`${prefixCls}-disabled`]: props.disabled,
@@ -4114,12 +4126,12 @@ var __publicField = (obj, key, value) => {
4114
4126
  });
4115
4127
  }
4116
4128
  });
4117
- const _hoisted_1$K = { class: "nut-range-container" };
4118
- const _hoisted_2$B = {
4129
+ const _hoisted_1$O = { class: "nut-range-container" };
4130
+ const _hoisted_2$E = {
4119
4131
  key: 0,
4120
4132
  class: "min"
4121
4133
  };
4122
- const _hoisted_3$u = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
4134
+ const _hoisted_3$v = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
4123
4135
  const _hoisted_4$n = {
4124
4136
  key: 0,
4125
4137
  class: "number"
@@ -4133,9 +4145,9 @@ var __publicField = (obj, key, value) => {
4133
4145
  key: 1,
4134
4146
  class: "max"
4135
4147
  };
4136
- function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
4137
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$K, [
4138
- !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$B, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
4148
+ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
4149
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$O, [
4150
+ !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$E, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
4139
4151
  vue.createElementVNode("view", {
4140
4152
  ref: "root",
4141
4153
  style: vue.normalizeStyle(_ctx.wrapperStyle),
@@ -4177,7 +4189,7 @@ var __publicField = (obj, key, value) => {
4177
4189
  }, [
4178
4190
  !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$n, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
4179
4191
  ], 4))
4180
- ], 42, _hoisted_3$u);
4192
+ ], 42, _hoisted_3$v);
4181
4193
  }), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
4182
4194
  key: 1,
4183
4195
  role: "slider",
@@ -4200,7 +4212,7 @@ var __publicField = (obj, key, value) => {
4200
4212
  class: "nut-range-button",
4201
4213
  style: vue.normalizeStyle(_ctx.buttonStyle)
4202
4214
  }, [
4203
- !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$c, vue.toDisplayString(_ctx.curValue(_ctx.index)), 1)) : vue.createCommentVNode("", true)
4215
+ !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$c, vue.toDisplayString(_ctx.curValue()), 1)) : vue.createCommentVNode("", true)
4204
4216
  ], 4))
4205
4217
  ], 40, _hoisted_5$f))
4206
4218
  ], 4)
@@ -4208,9 +4220,9 @@ var __publicField = (obj, key, value) => {
4208
4220
  !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$8, vue.toDisplayString(+_ctx.max), 1)) : vue.createCommentVNode("", true)
4209
4221
  ]);
4210
4222
  }
4211
- var Range = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$T]]);
4212
- const { create: create$Y, componentName: componentName$G } = createComponent("steps");
4213
- const _sfc_main$Y = create$Y({
4223
+ var Range = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$W]]);
4224
+ const { create: create$$, componentName: componentName$J } = createComponent("steps");
4225
+ const _sfc_main$$ = create$$({
4214
4226
  props: {
4215
4227
  direction: {
4216
4228
  type: String,
@@ -4230,7 +4242,7 @@ var __publicField = (obj, key, value) => {
4230
4242
  children: []
4231
4243
  });
4232
4244
  const classes = vue.computed(() => {
4233
- const prefixCls = componentName$G;
4245
+ const prefixCls = componentName$J;
4234
4246
  return {
4235
4247
  [prefixCls]: true,
4236
4248
  [`${prefixCls}-${props.direction}`]: true,
@@ -4253,8 +4265,8 @@ var __publicField = (obj, key, value) => {
4253
4265
  };
4254
4266
  }
4255
4267
  });
4256
- const { create: create$X, componentName: componentName$F } = createComponent("step");
4257
- const _sfc_main$X = create$X({
4268
+ const { create: create$_, componentName: componentName$I } = createComponent("step");
4269
+ const _sfc_main$_ = create$_({
4258
4270
  props: {
4259
4271
  title: {
4260
4272
  type: String,
@@ -4295,7 +4307,7 @@ var __publicField = (obj, key, value) => {
4295
4307
  return getCurrentStatus();
4296
4308
  });
4297
4309
  const classes = vue.computed(() => {
4298
- const prefixCls = componentName$F;
4310
+ const prefixCls = componentName$I;
4299
4311
  return {
4300
4312
  [prefixCls]: true,
4301
4313
  [`${prefixCls}-${status.value}`]: true
@@ -4307,22 +4319,22 @@ var __publicField = (obj, key, value) => {
4307
4319
  });
4308
4320
  }
4309
4321
  });
4310
- const _hoisted_1$J = { class: "nut-step-head" };
4311
- const _hoisted_2$A = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
4312
- const _hoisted_3$t = {
4322
+ const _hoisted_1$N = { class: "nut-step-head" };
4323
+ const _hoisted_2$D = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
4324
+ const _hoisted_3$u = {
4313
4325
  key: 2,
4314
4326
  class: "nut-step-inner"
4315
4327
  };
4316
4328
  const _hoisted_4$m = { class: "nut-step-main" };
4317
4329
  const _hoisted_5$e = { class: "nut-step-title" };
4318
4330
  const _hoisted_6$b = ["innerHTML"];
4319
- function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
4331
+ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
4320
4332
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4321
4333
  return vue.openBlock(), vue.createElementBlock("view", {
4322
4334
  class: vue.normalizeClass(_ctx.classes)
4323
4335
  }, [
4324
- vue.createElementVNode("view", _hoisted_1$J, [
4325
- _hoisted_2$A,
4336
+ vue.createElementVNode("view", _hoisted_1$N, [
4337
+ _hoisted_2$D,
4326
4338
  vue.createElementVNode("view", {
4327
4339
  class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
4328
4340
  }, [
@@ -4332,7 +4344,7 @@ var __publicField = (obj, key, value) => {
4332
4344
  color: _ctx.iconColor,
4333
4345
  name: _ctx.icon,
4334
4346
  size: _ctx.size
4335
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$t, vue.toDisplayString(_ctx.index), 1))
4347
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$u, vue.toDisplayString(_ctx.index), 1))
4336
4348
  ], 2)
4337
4349
  ]),
4338
4350
  vue.createElementVNode("view", _hoisted_4$m, [
@@ -4345,9 +4357,9 @@ var __publicField = (obj, key, value) => {
4345
4357
  ])
4346
4358
  ], 2);
4347
4359
  }
4348
- var Step = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$S]]);
4349
- const { componentName: componentName$E, create: create$W } = createComponent("switch");
4350
- const _sfc_main$W = create$W({
4360
+ var Step = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$V]]);
4361
+ const { componentName: componentName$H, create: create$Z } = createComponent("switch");
4362
+ const _sfc_main$Z = create$Z({
4351
4363
  props: {
4352
4364
  modelValue: {
4353
4365
  type: [String, Number, Boolean],
@@ -4402,7 +4414,7 @@ var __publicField = (obj, key, value) => {
4402
4414
  setup(props, { emit }) {
4403
4415
  const isActive = vue.computed(() => props.modelValue === props.activeValue);
4404
4416
  const classes = vue.computed(() => {
4405
- const prefixCls = componentName$E;
4417
+ const prefixCls = componentName$H;
4406
4418
  return {
4407
4419
  [prefixCls]: true,
4408
4420
  [isActive.value ? "switch-open" : "switch-close"]: true,
@@ -4430,15 +4442,15 @@ var __publicField = (obj, key, value) => {
4430
4442
  };
4431
4443
  }
4432
4444
  });
4433
- const _hoisted_1$I = { class: "switch-button" };
4434
- function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
4445
+ const _hoisted_1$M = { class: "switch-button" };
4446
+ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
4435
4447
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4436
4448
  return vue.openBlock(), vue.createElementBlock("view", {
4437
4449
  class: vue.normalizeClass(_ctx.classes),
4438
4450
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
4439
4451
  style: vue.normalizeStyle(_ctx.style)
4440
4452
  }, [
4441
- vue.createElementVNode("view", _hoisted_1$I, [
4453
+ vue.createElementVNode("view", _hoisted_1$M, [
4442
4454
  _ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
4443
4455
  key: 0,
4444
4456
  name: _ctx.name,
@@ -4456,11 +4468,11 @@ var __publicField = (obj, key, value) => {
4456
4468
  ])
4457
4469
  ], 6);
4458
4470
  }
4459
- var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$R]]);
4460
- const { create: create$V } = createComponent("toast");
4461
- const _sfc_main$V = create$V({
4471
+ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$U]]);
4472
+ const { create: create$Y } = createComponent("toast");
4473
+ const _sfc_main$Y = create$Y({
4462
4474
  components: {
4463
- [_sfc_main$1l.name]: _sfc_main$1l
4475
+ [_sfc_main$1o.name]: _sfc_main$1o
4464
4476
  },
4465
4477
  props: {
4466
4478
  id: String,
@@ -4586,16 +4598,16 @@ var __publicField = (obj, key, value) => {
4586
4598
  };
4587
4599
  }
4588
4600
  });
4589
- const _hoisted_1$H = {
4601
+ const _hoisted_1$L = {
4590
4602
  key: 0,
4591
4603
  class: "nut-toast-icon-wrapper"
4592
4604
  };
4593
- const _hoisted_2$z = {
4605
+ const _hoisted_2$C = {
4594
4606
  key: 1,
4595
4607
  class: "nut-toast-title"
4596
4608
  };
4597
- const _hoisted_3$s = ["innerHTML"];
4598
- function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
4609
+ const _hoisted_3$t = ["innerHTML"];
4610
+ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
4599
4611
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4600
4612
  return vue.openBlock(), vue.createBlock(vue.Transition, {
4601
4613
  name: "toast-fade",
@@ -4617,18 +4629,18 @@ var __publicField = (obj, key, value) => {
4617
4629
  "background-color": _ctx.bgColor
4618
4630
  })
4619
4631
  }, [
4620
- _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$H, [
4632
+ _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$L, [
4621
4633
  vue.createVNode(_component_nut_icon, {
4622
4634
  size: "20",
4623
4635
  color: "#ffffff",
4624
4636
  name: _ctx.icon
4625
4637
  }, null, 8, ["name"])
4626
4638
  ])) : vue.createCommentVNode("", true),
4627
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
4639
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$C, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
4628
4640
  vue.createElementVNode("view", {
4629
4641
  class: "nut-toast-text",
4630
4642
  innerHTML: _ctx.msg
4631
- }, null, 8, _hoisted_3$s)
4643
+ }, null, 8, _hoisted_3$t)
4632
4644
  ], 4)
4633
4645
  ], 6), [
4634
4646
  [vue.vShow, _ctx.state.mounted]
@@ -4637,7 +4649,7 @@ var __publicField = (obj, key, value) => {
4637
4649
  _: 1
4638
4650
  }, 8, ["onAfterLeave"]);
4639
4651
  }
4640
- var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$Q]]);
4652
+ var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$T]]);
4641
4653
  const defaultOptions = {
4642
4654
  msg: "",
4643
4655
  id: "",
@@ -4754,8 +4766,8 @@ var __publicField = (obj, key, value) => {
4754
4766
  app.config.globalProperties.$toast = ToastFunction;
4755
4767
  }
4756
4768
  };
4757
- const { create: create$U } = createComponent("progress");
4758
- const _sfc_main$U = create$U({
4769
+ const { create: create$X } = createComponent("progress");
4770
+ const _sfc_main$X = create$X({
4759
4771
  props: {
4760
4772
  percentage: {
4761
4773
  type: [Number, String],
@@ -4831,10 +4843,10 @@ var __publicField = (obj, key, value) => {
4831
4843
  };
4832
4844
  }
4833
4845
  });
4834
- const _hoisted_1$G = { class: "nut-progress" };
4835
- function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
4846
+ const _hoisted_1$K = { class: "nut-progress" };
4847
+ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
4836
4848
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4837
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
4849
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
4838
4850
  vue.createElementVNode("div", {
4839
4851
  class: vue.normalizeClass(["nut-progress-outer", [
4840
4852
  _ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
@@ -4875,9 +4887,9 @@ var __publicField = (obj, key, value) => {
4875
4887
  ], 4)) : vue.createCommentVNode("", true)
4876
4888
  ]);
4877
4889
  }
4878
- var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$P]]);
4879
- const { componentName: componentName$D, create: create$T } = createComponent("circleprogress");
4880
- const _sfc_main$T = create$T({
4890
+ var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$S]]);
4891
+ const { componentName: componentName$G, create: create$W } = createComponent("circleprogress");
4892
+ const _sfc_main$W = create$W({
4881
4893
  props: {
4882
4894
  progress: {
4883
4895
  type: [Number, String],
@@ -4899,7 +4911,7 @@ var __publicField = (obj, key, value) => {
4899
4911
  },
4900
4912
  setup(props, { emit }) {
4901
4913
  const classes = vue.computed(() => {
4902
- const prefixCls = componentName$D;
4914
+ const prefixCls = componentName$G;
4903
4915
  return {
4904
4916
  [prefixCls]: true
4905
4917
  };
@@ -4933,11 +4945,11 @@ var __publicField = (obj, key, value) => {
4933
4945
  };
4934
4946
  }
4935
4947
  });
4936
- const _hoisted_1$F = ["height", "width"];
4937
- const _hoisted_2$y = ["r", "cx", "cy", "stroke", "stroke-width"];
4938
- const _hoisted_3$r = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4948
+ const _hoisted_1$J = ["height", "width"];
4949
+ const _hoisted_2$B = ["r", "cx", "cy", "stroke", "stroke-width"];
4950
+ const _hoisted_3$s = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4939
4951
  const _hoisted_4$l = { class: "nut-circleprogress-content" };
4940
- function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
4952
+ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
4941
4953
  return vue.openBlock(), vue.createElementBlock("div", {
4942
4954
  class: vue.normalizeClass(_ctx.classes),
4943
4955
  style: vue.normalizeStyle({ height: _ctx.option.size + "px", width: _ctx.option.size + "px" })
@@ -4954,7 +4966,7 @@ var __publicField = (obj, key, value) => {
4954
4966
  stroke: _ctx.option.backColor,
4955
4967
  "stroke-width": _ctx.option.strokeOutWidth,
4956
4968
  fill: "none"
4957
- }, null, 8, _hoisted_2$y),
4969
+ }, null, 8, _hoisted_2$B),
4958
4970
  vue.createElementVNode("circle", {
4959
4971
  r: _ctx.option.radius,
4960
4972
  cx: _ctx.option.cx,
@@ -4966,8 +4978,8 @@ var __publicField = (obj, key, value) => {
4966
4978
  transform: _ctx.option.startPosition,
4967
4979
  "stroke-linecap": "round",
4968
4980
  style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
4969
- }, null, 8, _hoisted_3$r)
4970
- ], 8, _hoisted_1$F)),
4981
+ }, null, 8, _hoisted_3$s)
4982
+ ], 8, _hoisted_1$J)),
4971
4983
  vue.createElementVNode("div", _hoisted_4$l, [
4972
4984
  !_ctx.isAuto ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
4973
4985
  vue.createTextVNode(vue.toDisplayString(_ctx.progress) + "%", 1)
@@ -4975,9 +4987,9 @@ var __publicField = (obj, key, value) => {
4975
4987
  ])
4976
4988
  ], 6);
4977
4989
  }
4978
- var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$O]]);
4979
- const { componentName: componentName$C, create: create$S } = createComponent("noticebar");
4980
- const _sfc_main$S = create$S({
4990
+ var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$R]]);
4991
+ const { componentName: componentName$F, create: create$V } = createComponent("noticebar");
4992
+ const _sfc_main$V = create$V({
4981
4993
  props: {
4982
4994
  direction: {
4983
4995
  type: String,
@@ -5043,7 +5055,7 @@ var __publicField = (obj, key, value) => {
5043
5055
  },
5044
5056
  emits: ["click", "close"],
5045
5057
  setup(props, { emit, slots }) {
5046
- console.log("componentName", componentName$C);
5058
+ console.log("componentName", componentName$F);
5047
5059
  const wrap = vue.ref(null);
5048
5060
  const content = vue.ref(null);
5049
5061
  const state = vue.reactive({
@@ -5060,7 +5072,7 @@ var __publicField = (obj, key, value) => {
5060
5072
  keepAlive: false
5061
5073
  });
5062
5074
  const classes = vue.computed(() => {
5063
- const prefixCls = componentName$C;
5075
+ const prefixCls = componentName$F;
5064
5076
  return {
5065
5077
  [prefixCls]: true
5066
5078
  };
@@ -5234,12 +5246,12 @@ var __publicField = (obj, key, value) => {
5234
5246
  });
5235
5247
  }
5236
5248
  });
5237
- const _hoisted_1$E = {
5249
+ const _hoisted_1$I = {
5238
5250
  ref: "wrap",
5239
5251
  class: "wrap"
5240
5252
  };
5241
- const _hoisted_2$x = ["onClick"];
5242
- function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
5253
+ const _hoisted_2$A = ["onClick"];
5254
+ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
5243
5255
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5244
5256
  const _component_ScrollItem = vue.resolveComponent("ScrollItem");
5245
5257
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -5263,7 +5275,7 @@ var __publicField = (obj, key, value) => {
5263
5275
  color: _ctx.color
5264
5276
  }, null, 8, ["color"])) : vue.createCommentVNode("", true)
5265
5277
  ], 4)) : vue.createCommentVNode("", true),
5266
- vue.createElementVNode("view", _hoisted_1$E, [
5278
+ vue.createElementVNode("view", _hoisted_1$I, [
5267
5279
  vue.createElementVNode("view", {
5268
5280
  ref: "content",
5269
5281
  class: vue.normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
@@ -5272,7 +5284,7 @@ var __publicField = (obj, key, value) => {
5272
5284
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
5273
5285
  }, [
5274
5286
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
5275
- vue.createTextVNode("1" + vue.toDisplayString(_ctx.text), 1)
5287
+ vue.createTextVNode(vue.toDisplayString(_ctx.text), 1)
5276
5288
  ])
5277
5289
  ], 38)
5278
5290
  ], 512),
@@ -5317,7 +5329,7 @@ var __publicField = (obj, key, value) => {
5317
5329
  key: index,
5318
5330
  style: vue.normalizeStyle({ height: _ctx.height }),
5319
5331
  onClick: ($event) => _ctx.go(item)
5320
- }, vue.toDisplayString(item), 13, _hoisted_2$x);
5332
+ }, vue.toDisplayString(item), 13, _hoisted_2$A);
5321
5333
  }), 128))
5322
5334
  ], 4)),
5323
5335
  vue.createElementVNode("view", {
@@ -5334,9 +5346,9 @@ var __publicField = (obj, key, value) => {
5334
5346
  ], 4)) : vue.createCommentVNode("", true)
5335
5347
  ], 2);
5336
5348
  }
5337
- var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
5338
- const { create: create$R } = createComponent("searchbar");
5339
- const _sfc_main$R = create$R({
5349
+ var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$Q]]);
5350
+ const { create: create$U } = createComponent("searchbar");
5351
+ const _sfc_main$U = create$U({
5340
5352
  props: {
5341
5353
  modelValue: {
5342
5354
  type: [String, Number],
@@ -5427,15 +5439,15 @@ var __publicField = (obj, key, value) => {
5427
5439
  });
5428
5440
  }
5429
5441
  });
5430
- const _hoisted_1$D = {
5442
+ const _hoisted_1$H = {
5431
5443
  key: 0,
5432
5444
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
5433
5445
  };
5434
- const _hoisted_2$w = {
5446
+ const _hoisted_2$z = {
5435
5447
  key: 0,
5436
5448
  class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
5437
5449
  };
5438
- const _hoisted_3$q = { class: "nut-searchbar__input-inner" };
5450
+ const _hoisted_3$r = { class: "nut-searchbar__input-inner" };
5439
5451
  const _hoisted_4$k = ["type", "maxlength", "placeholder", "value"];
5440
5452
  const _hoisted_5$d = {
5441
5453
  key: 1,
@@ -5445,23 +5457,23 @@ var __publicField = (obj, key, value) => {
5445
5457
  key: 1,
5446
5458
  class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
5447
5459
  };
5448
- function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
5460
+ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
5449
5461
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5450
5462
  return vue.openBlock(), vue.createElementBlock("view", {
5451
5463
  class: "nut-searchbar",
5452
5464
  style: vue.normalizeStyle(_ctx.searchbarStyle)
5453
5465
  }, [
5454
- _ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$D, [
5466
+ _ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$H, [
5455
5467
  vue.renderSlot(_ctx.$slots, "leftout")
5456
5468
  ])) : vue.createCommentVNode("", true),
5457
5469
  vue.createElementVNode("view", {
5458
5470
  class: "nut-searchbar__search-input",
5459
5471
  style: vue.normalizeStyle(_ctx.inputSearchbarStyle)
5460
5472
  }, [
5461
- _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$w, [
5473
+ _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$z, [
5462
5474
  vue.renderSlot(_ctx.$slots, "leftin")
5463
5475
  ])) : vue.createCommentVNode("", true),
5464
- vue.createElementVNode("view", _hoisted_3$q, [
5476
+ vue.createElementVNode("view", _hoisted_3$r, [
5465
5477
  vue.createElementVNode("form", {
5466
5478
  action: "#",
5467
5479
  onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
@@ -5500,14 +5512,14 @@ var __publicField = (obj, key, value) => {
5500
5512
  ])) : vue.createCommentVNode("", true)
5501
5513
  ], 4);
5502
5514
  }
5503
- var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$M]]);
5504
- const { componentName: componentName$B, create: create$Q } = createComponent("empty");
5515
+ var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$P]]);
5516
+ const { componentName: componentName$E, create: create$T } = createComponent("empty");
5505
5517
  const defaultStatus = {
5506
5518
  empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
5507
5519
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
5508
5520
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
5509
5521
  };
5510
- const _sfc_main$Q = create$Q({
5522
+ const _sfc_main$T = create$T({
5511
5523
  props: {
5512
5524
  image: {
5513
5525
  type: String,
@@ -5541,14 +5553,14 @@ var __publicField = (obj, key, value) => {
5541
5553
  };
5542
5554
  }
5543
5555
  });
5544
- const _hoisted_1$C = { class: "nut-empty" };
5545
- const _hoisted_2$v = ["src"];
5546
- const _hoisted_3$p = {
5556
+ const _hoisted_1$G = { class: "nut-empty" };
5557
+ const _hoisted_2$y = ["src"];
5558
+ const _hoisted_3$q = {
5547
5559
  key: 1,
5548
5560
  class: "nut-empty-description"
5549
5561
  };
5550
- function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
5551
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$C, [
5562
+ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
5563
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$G, [
5552
5564
  vue.createElementVNode("view", {
5553
5565
  class: "nut-empty-image",
5554
5566
  style: vue.normalizeStyle(_ctx.imgStyle)
@@ -5558,26 +5570,20 @@ var __publicField = (obj, key, value) => {
5558
5570
  key: 0,
5559
5571
  class: "img",
5560
5572
  src: _ctx.imageUrl
5561
- }, null, 8, _hoisted_2$v)) : vue.createCommentVNode("", true)
5573
+ }, null, 8, _hoisted_2$y)) : vue.createCommentVNode("", true)
5562
5574
  ], 64))
5563
5575
  ], 4),
5564
- _ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$p, vue.toDisplayString(_ctx.description), 1)),
5576
+ _ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$q, vue.toDisplayString(_ctx.description), 1)),
5565
5577
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 2 }) : vue.createCommentVNode("", true)
5566
5578
  ]);
5567
5579
  }
5568
- var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$L]]);
5569
- const { componentName: componentName$A, create: create$P } = createComponent("navbar");
5570
- const _sfc_main$P = create$P({
5580
+ var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$O]]);
5581
+ const { componentName: componentName$D, create: create$S } = createComponent("navbar");
5582
+ const _sfc_main$S = create$S({
5571
5583
  props: {
5572
5584
  leftShow: { type: Boolean, default: true },
5573
5585
  title: { type: String, default: "" },
5574
5586
  titIcon: { type: String, default: "" },
5575
- tabs: {
5576
- type: Array,
5577
- defaul: () => {
5578
- return [];
5579
- }
5580
- },
5581
5587
  icon: { type: String, default: "" },
5582
5588
  desc: { type: String, default: "" },
5583
5589
  defaultIndex: {
@@ -5602,16 +5608,11 @@ var __publicField = (obj, key, value) => {
5602
5608
  setup(props, { emit }) {
5603
5609
  const activeIndex = vue.ref(props.defaultIndex);
5604
5610
  const classes = vue.computed(() => {
5605
- const prefixCls = componentName$A;
5611
+ const prefixCls = componentName$D;
5606
5612
  return {
5607
5613
  [prefixCls]: true
5608
5614
  };
5609
5615
  });
5610
- function switchTitle(id, name) {
5611
- activeIndex.value = id;
5612
- console.log(id);
5613
- emit("switch-tab", activeIndex.value, name);
5614
- }
5615
5616
  function handleLeft() {
5616
5617
  emit("on-click-back");
5617
5618
  }
@@ -5642,20 +5643,17 @@ var __publicField = (obj, key, value) => {
5642
5643
  handleSend,
5643
5644
  handleSlot,
5644
5645
  handleSends,
5645
- switchTitle,
5646
5646
  activeIndex
5647
5647
  };
5648
5648
  }
5649
5649
  });
5650
- const _hoisted_1$B = { class: "nut-navbar__left" };
5651
- const _hoisted_2$u = { class: "tab-title" };
5652
- const _hoisted_3$o = ["onClick"];
5653
- function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
5650
+ const _hoisted_1$F = { class: "nut-navbar__left" };
5651
+ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
5654
5652
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5655
5653
  return vue.openBlock(), vue.createElementBlock("view", {
5656
5654
  class: vue.normalizeClass(_ctx.classes)
5657
5655
  }, [
5658
- vue.createElementVNode("view", _hoisted_1$B, [
5656
+ vue.createElementVNode("view", _hoisted_1$F, [
5659
5657
  _ctx.leftShow ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5660
5658
  key: 0,
5661
5659
  color: "#979797",
@@ -5663,8 +5661,7 @@ var __publicField = (obj, key, value) => {
5663
5661
  onClick: _ctx.handleLeft
5664
5662
  }, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
5665
5663
  ]),
5666
- _ctx.title || _ctx.titIcon || _ctx.tabs ? (vue.openBlock(), vue.createElementBlock("view", {
5667
- key: 0,
5664
+ vue.createElementVNode("view", {
5668
5665
  class: vue.normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
5669
5666
  }, [
5670
5667
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
@@ -5677,21 +5674,10 @@ var __publicField = (obj, key, value) => {
5677
5674
  name: _ctx.titIcon,
5678
5675
  onClick: _ctx.handleCenterIcon
5679
5676
  }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
5680
- vue.createElementVNode("view", _hoisted_2$u, [
5681
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (item, index) => {
5682
- return vue.openBlock(), vue.createElementBlock("view", {
5683
- class: vue.normalizeClass([
5684
- "tab-title-box",
5685
- { "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index }
5686
- ]),
5687
- onClick: ($event) => _ctx.switchTitle(item.id, item.name),
5688
- key: item.id
5689
- }, vue.toDisplayString(item.name), 11, _hoisted_3$o);
5690
- }), 128))
5691
- ])
5692
- ], 2)) : vue.createCommentVNode("", true),
5677
+ vue.renderSlot(_ctx.$slots, "content")
5678
+ ], 2),
5693
5679
  _ctx.desc || _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", {
5694
- key: 1,
5680
+ key: 0,
5695
5681
  class: vue.normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
5696
5682
  }, [
5697
5683
  _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", {
@@ -5716,9 +5702,9 @@ var __publicField = (obj, key, value) => {
5716
5702
  ], 2)) : vue.createCommentVNode("", true)
5717
5703
  ], 2);
5718
5704
  }
5719
- var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$K]]);
5720
- const { componentName: componentName$z, create: create$O } = createComponent("fixednav");
5721
- const _sfc_main$O = create$O({
5705
+ var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
5706
+ const { componentName: componentName$C, create: create$R } = createComponent("fixednav");
5707
+ const _sfc_main$R = create$R({
5722
5708
  components: {
5723
5709
  [OverLay.name]: OverLay
5724
5710
  },
@@ -5761,7 +5747,7 @@ var __publicField = (obj, key, value) => {
5761
5747
  emits: ["update:visible", "selected"],
5762
5748
  setup(props, { emit }) {
5763
5749
  const classes = vue.computed(() => {
5764
- const prefixCls = componentName$z;
5750
+ const prefixCls = componentName$C;
5765
5751
  return {
5766
5752
  [prefixCls]: true,
5767
5753
  active: props.visible,
@@ -5780,16 +5766,16 @@ var __publicField = (obj, key, value) => {
5780
5766
  return { classes, updateValue, selected };
5781
5767
  }
5782
5768
  });
5783
- const _hoisted_1$A = { class: "nut-fixednav__list" };
5784
- const _hoisted_2$t = ["onClick"];
5785
- const _hoisted_3$n = ["src"];
5769
+ const _hoisted_1$E = { class: "nut-fixednav__list" };
5770
+ const _hoisted_2$x = ["onClick"];
5771
+ const _hoisted_3$p = ["src"];
5786
5772
  const _hoisted_4$j = { class: "span" };
5787
5773
  const _hoisted_5$c = {
5788
5774
  key: 0,
5789
5775
  class: "b"
5790
5776
  };
5791
5777
  const _hoisted_6$9 = { class: "text" };
5792
- function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
5778
+ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
5793
5779
  const _component_nut_overlay = vue.resolveComponent("nut-overlay");
5794
5780
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5795
5781
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -5803,7 +5789,7 @@ var __publicField = (obj, key, value) => {
5803
5789
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
5804
5790
  }, null, 8, ["visible"])) : vue.createCommentVNode("", true),
5805
5791
  vue.renderSlot(_ctx.$slots, "list", {}, () => [
5806
- vue.createElementVNode("view", _hoisted_1$A, [
5792
+ vue.createElementVNode("view", _hoisted_1$E, [
5807
5793
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
5808
5794
  return vue.openBlock(), vue.createElementBlock("view", {
5809
5795
  class: "nut-fixednav__list-item",
@@ -5812,10 +5798,10 @@ var __publicField = (obj, key, value) => {
5812
5798
  }, [
5813
5799
  vue.createElementVNode("img", {
5814
5800
  src: item.icon
5815
- }, null, 8, _hoisted_3$n),
5801
+ }, null, 8, _hoisted_3$p),
5816
5802
  vue.createElementVNode("view", _hoisted_4$j, vue.toDisplayString(item.text), 1),
5817
5803
  item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$c, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
5818
- ], 8, _hoisted_2$t);
5804
+ ], 8, _hoisted_2$x);
5819
5805
  }), 128))
5820
5806
  ])
5821
5807
  ]),
@@ -5833,13 +5819,13 @@ var __publicField = (obj, key, value) => {
5833
5819
  ])
5834
5820
  ], 6);
5835
5821
  }
5836
- var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$J]]);
5837
- const { componentName: componentName$y, create: create$N } = createComponent("menu");
5838
- const _sfc_main$N = create$N({
5822
+ var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$M]]);
5823
+ const { componentName: componentName$B, create: create$Q } = createComponent("menu");
5824
+ const _sfc_main$Q = create$Q({
5839
5825
  props: {
5840
5826
  activeColor: {
5841
5827
  type: String,
5842
- default: "#FA2C19"
5828
+ default: ""
5843
5829
  },
5844
5830
  overlay: {
5845
5831
  type: Boolean,
@@ -5877,7 +5863,7 @@ var __publicField = (obj, key, value) => {
5877
5863
  const { children, linkChildren } = useChildren();
5878
5864
  const opened = vue.computed(() => children.some((item) => item.state.showWrapper));
5879
5865
  const classes = vue.computed(() => {
5880
- const prefixCls = componentName$y;
5866
+ const prefixCls = componentName$B;
5881
5867
  return {
5882
5868
  [prefixCls]: true
5883
5869
  };
@@ -5908,9 +5894,9 @@ var __publicField = (obj, key, value) => {
5908
5894
  };
5909
5895
  }
5910
5896
  });
5911
- const _hoisted_1$z = ["onClick"];
5912
- const _hoisted_2$s = { class: "nut-menu__title-text" };
5913
- function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
5897
+ const _hoisted_1$D = ["onClick"];
5898
+ const _hoisted_2$w = { class: "nut-menu__title-text" };
5899
+ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
5914
5900
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5915
5901
  return vue.openBlock(), vue.createElementBlock("view", {
5916
5902
  class: vue.normalizeClass(_ctx.classes)
@@ -5922,29 +5908,29 @@ var __publicField = (obj, key, value) => {
5922
5908
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.children, (item, index) => {
5923
5909
  return vue.openBlock(), vue.createElementBlock("view", {
5924
5910
  key: index,
5925
- class: vue.normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
5911
+ class: vue.normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
5926
5912
  onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
5927
5913
  style: vue.normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
5928
5914
  }, [
5929
5915
  vue.createElementVNode("view", {
5930
5916
  class: vue.normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
5931
5917
  }, [
5932
- vue.createElementVNode("view", _hoisted_2$s, vue.toDisplayString(item.renderTitle()), 1),
5918
+ vue.createElementVNode("view", _hoisted_2$w, vue.toDisplayString(item.renderTitle()), 1),
5933
5919
  vue.createVNode(_component_nut_icon, {
5934
5920
  name: item.titleIcon,
5935
5921
  size: "10",
5936
5922
  class: "nut-menu__title-icon"
5937
5923
  }, null, 8, ["name"])
5938
5924
  ], 2)
5939
- ], 14, _hoisted_1$z);
5925
+ ], 14, _hoisted_1$D);
5940
5926
  }), 128))
5941
5927
  ], 2),
5942
5928
  vue.renderSlot(_ctx.$slots, "default")
5943
5929
  ], 2);
5944
5930
  }
5945
- var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$I]]);
5946
- const { componentName: componentName$x, create: create$M } = createComponent("menu-item");
5947
- const _sfc_main$M = create$M({
5931
+ var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$L]]);
5932
+ const { componentName: componentName$A, create: create$P } = createComponent("menu-item");
5933
+ const _sfc_main$P = create$P({
5948
5934
  props: {
5949
5935
  title: String,
5950
5936
  options: {
@@ -5966,7 +5952,7 @@ var __publicField = (obj, key, value) => {
5966
5952
  }
5967
5953
  },
5968
5954
  components: {
5969
- [_sfc_main$1l.name]: _sfc_main$1l,
5955
+ [_sfc_main$1o.name]: _sfc_main$1o,
5970
5956
  [Popup.name]: Popup
5971
5957
  },
5972
5958
  emits: ["update:modelValue", "change"],
@@ -5990,7 +5976,7 @@ var __publicField = (obj, key, value) => {
5990
5976
  };
5991
5977
  const { parent } = useParent();
5992
5978
  const classes = vue.computed(() => {
5993
- const prefixCls = componentName$x;
5979
+ const prefixCls = componentName$A;
5994
5980
  return {
5995
5981
  [prefixCls]: true
5996
5982
  };
@@ -6040,9 +6026,9 @@ var __publicField = (obj, key, value) => {
6040
6026
  };
6041
6027
  }
6042
6028
  });
6043
- const _hoisted_1$y = { class: "nut-menu-item__content" };
6044
- const _hoisted_2$r = ["onClick"];
6045
- function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
6029
+ const _hoisted_1$C = { class: "nut-menu-item__content" };
6030
+ const _hoisted_2$v = ["onClick"];
6031
+ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6046
6032
  const _component_nut_icon = vue.resolveComponent("nut-icon");
6047
6033
  const _component_nut_popup = vue.resolveComponent("nut-popup");
6048
6034
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
@@ -6070,7 +6056,7 @@ var __publicField = (obj, key, value) => {
6070
6056
  isWrapTeleport: false
6071
6057
  }), {
6072
6058
  default: vue.withCtx(() => [
6073
- vue.createElementVNode("view", _hoisted_1$y, [
6059
+ vue.createElementVNode("view", _hoisted_1$C, [
6074
6060
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option, index) => {
6075
6061
  return vue.openBlock(), vue.createElementBlock("view", {
6076
6062
  key: index,
@@ -6086,7 +6072,7 @@ var __publicField = (obj, key, value) => {
6086
6072
  vue.createElementVNode("view", {
6087
6073
  style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
6088
6074
  }, vue.toDisplayString(option.text), 5)
6089
- ], 14, _hoisted_2$r);
6075
+ ], 14, _hoisted_2$v);
6090
6076
  }), 128)),
6091
6077
  vue.renderSlot(_ctx.$slots, "default")
6092
6078
  ])
@@ -6097,9 +6083,9 @@ var __publicField = (obj, key, value) => {
6097
6083
  [vue.vShow, _ctx.state.showWrapper]
6098
6084
  ]);
6099
6085
  }
6100
- var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$H]]);
6101
- const { create: create$L } = createComponent("tabbar");
6102
- const _sfc_main$L = create$L({
6086
+ var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$K]]);
6087
+ const { create: create$O } = createComponent("tabbar");
6088
+ const _sfc_main$O = create$O({
6103
6089
  props: {
6104
6090
  visible: {
6105
6091
  type: [Number, String],
@@ -6124,6 +6110,10 @@ var __publicField = (obj, key, value) => {
6124
6110
  activeColor: {
6125
6111
  type: String,
6126
6112
  default: ""
6113
+ },
6114
+ safeAreaInsetBottom: {
6115
+ type: Boolean,
6116
+ default: false
6127
6117
  }
6128
6118
  },
6129
6119
  emits: ["tab-switch", "update:visible"],
@@ -6154,16 +6144,16 @@ var __publicField = (obj, key, value) => {
6154
6144
  };
6155
6145
  }
6156
6146
  });
6157
- function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
6147
+ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
6158
6148
  return vue.openBlock(), vue.createElementBlock("view", {
6159
- class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
6149
+ class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
6160
6150
  }, [
6161
6151
  vue.renderSlot(_ctx.$slots, "default")
6162
6152
  ], 2);
6163
6153
  }
6164
- var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$G]]);
6165
- const { create: create$K } = createComponent("tabbar-item");
6166
- const _sfc_main$K = create$K({
6154
+ var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$J]]);
6155
+ const { create: create$N } = createComponent("tabbar-item");
6156
+ const _sfc_main$N = create$N({
6167
6157
  props: {
6168
6158
  tabTitle: {
6169
6159
  type: String,
@@ -6244,17 +6234,17 @@ var __publicField = (obj, key, value) => {
6244
6234
  };
6245
6235
  }
6246
6236
  });
6247
- const _hoisted_1$x = { class: "nut-tabbar-item_icon-box" };
6248
- const _hoisted_2$q = {
6237
+ const _hoisted_1$B = { class: "nut-tabbar-item_icon-box" };
6238
+ const _hoisted_2$u = {
6249
6239
  key: 0,
6250
6240
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
6251
6241
  };
6252
- const _hoisted_3$m = {
6242
+ const _hoisted_3$o = {
6253
6243
  key: 1,
6254
6244
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
6255
6245
  };
6256
6246
  const _hoisted_4$i = { key: 2 };
6257
- function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
6247
+ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
6258
6248
  const _component_nut_icon = vue.resolveComponent("nut-icon");
6259
6249
  return vue.openBlock(), vue.createElementBlock("div", {
6260
6250
  class: vue.normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
@@ -6263,8 +6253,8 @@ var __publicField = (obj, key, value) => {
6263
6253
  }),
6264
6254
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
6265
6255
  }, [
6266
- vue.createElementVNode("view", _hoisted_1$x, [
6267
- _ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$q, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$m, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true),
6256
+ vue.createElementVNode("view", _hoisted_1$B, [
6257
+ _ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$u, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$o, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true),
6268
6258
  _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$i, [
6269
6259
  vue.createVNode(_component_nut_icon, {
6270
6260
  class: "nut-tabbar-item_icon-box_icon",
@@ -6289,9 +6279,9 @@ var __publicField = (obj, key, value) => {
6289
6279
  ])
6290
6280
  ], 6);
6291
6281
  }
6292
- var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$F]]);
6293
- const { componentName: componentName$w, create: create$J } = createComponent("elevator");
6294
- const _sfc_main$J = create$J({
6282
+ var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$I]]);
6283
+ const { componentName: componentName$z, create: create$M } = createComponent("elevator");
6284
+ const _sfc_main$M = create$M({
6295
6285
  props: {
6296
6286
  height: {
6297
6287
  type: [Number, String],
@@ -6324,7 +6314,7 @@ var __publicField = (obj, key, value) => {
6324
6314
  currentIndex: 0
6325
6315
  });
6326
6316
  const classes = vue.computed(() => {
6327
- const prefixCls = componentName$w;
6317
+ const prefixCls = componentName$z;
6328
6318
  return {
6329
6319
  [prefixCls]: true
6330
6320
  };
@@ -6413,11 +6403,11 @@ var __publicField = (obj, key, value) => {
6413
6403
  });
6414
6404
  }
6415
6405
  });
6416
- const _hoisted_1$w = { class: "nut-elevator__list__item__code" };
6417
- const _hoisted_2$p = ["onClick", "innerHTML"];
6418
- const _hoisted_3$l = { class: "nut-elevator__bars__inner" };
6406
+ const _hoisted_1$A = { class: "nut-elevator__list__item__code" };
6407
+ const _hoisted_2$t = ["onClick", "innerHTML"];
6408
+ const _hoisted_3$n = { class: "nut-elevator__bars__inner" };
6419
6409
  const _hoisted_4$h = ["data-index", "onClick"];
6420
- function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
6410
+ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
6421
6411
  return vue.openBlock(), vue.createElementBlock("view", {
6422
6412
  class: vue.normalizeClass(_ctx.classes)
6423
6413
  }, [
@@ -6433,14 +6423,14 @@ var __publicField = (obj, key, value) => {
6433
6423
  ref_for: true,
6434
6424
  ref: _ctx.setListGroup
6435
6425
  }, [
6436
- vue.createElementVNode("view", _hoisted_1$w, vue.toDisplayString(item[_ctx.acceptKey]), 1),
6426
+ vue.createElementVNode("view", _hoisted_1$A, vue.toDisplayString(item[_ctx.acceptKey]), 1),
6437
6427
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.list, (subitem) => {
6438
6428
  return vue.openBlock(), vue.createElementBlock("view", {
6439
6429
  class: "nut-elevator__list__item__name",
6440
6430
  key: subitem["id"],
6441
6431
  onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
6442
6432
  innerHTML: subitem.name
6443
- }, null, 8, _hoisted_2$p);
6433
+ }, null, 8, _hoisted_2$t);
6444
6434
  }), 128))
6445
6435
  ]);
6446
6436
  }), 128))
@@ -6457,7 +6447,7 @@ var __publicField = (obj, key, value) => {
6457
6447
  onTouchmove: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
6458
6448
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
6459
6449
  }, [
6460
- vue.createElementVNode("view", _hoisted_3$l, [
6450
+ vue.createElementVNode("view", _hoisted_3$n, [
6461
6451
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.indexList, (item, index) => {
6462
6452
  return vue.openBlock(), vue.createElementBlock("view", {
6463
6453
  class: "nut-elevator__bars__inner__item",
@@ -6470,9 +6460,9 @@ var __publicField = (obj, key, value) => {
6470
6460
  ], 32)
6471
6461
  ], 2);
6472
6462
  }
6473
- var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$E]]);
6474
- const { componentName: componentName$v, create: create$I } = createComponent("pagination");
6475
- const _sfc_main$I = create$I({
6463
+ var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$H]]);
6464
+ const { componentName: componentName$y, create: create$L } = createComponent("pagination");
6465
+ const _sfc_main$L = create$L({
6476
6466
  props: {
6477
6467
  modelValue: {
6478
6468
  type: Number,
@@ -6577,19 +6567,19 @@ var __publicField = (obj, key, value) => {
6577
6567
  };
6578
6568
  }
6579
6569
  });
6580
- const _hoisted_1$v = { class: "nut-pagination" };
6581
- const _hoisted_2$o = {
6570
+ const _hoisted_1$z = { class: "nut-pagination" };
6571
+ const _hoisted_2$s = {
6582
6572
  key: 0,
6583
6573
  class: "nut-pagination-contain"
6584
6574
  };
6585
- const _hoisted_3$k = ["onClick"];
6575
+ const _hoisted_3$m = ["onClick"];
6586
6576
  const _hoisted_4$g = {
6587
6577
  key: 1,
6588
6578
  class: "nut-pagination-contain"
6589
6579
  };
6590
6580
  const _hoisted_5$b = { class: "nut-pagination-simple" };
6591
- function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
6592
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$v, [
6581
+ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
6582
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$z, [
6593
6583
  vue.createElementVNode("view", {
6594
6584
  class: vue.normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
6595
6585
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
@@ -6598,7 +6588,7 @@ var __publicField = (obj, key, value) => {
6598
6588
  vue.createTextVNode(vue.toDisplayString(_ctx.prevText), 1)
6599
6589
  ])
6600
6590
  ], 2),
6601
- _ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$o, [
6591
+ _ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$s, [
6602
6592
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.pages, (item, index) => {
6603
6593
  return vue.openBlock(), vue.createElementBlock("view", {
6604
6594
  key: index + "pagination",
@@ -6608,7 +6598,7 @@ var __publicField = (obj, key, value) => {
6608
6598
  vue.renderSlot(_ctx.$slots, "page", { item }, () => [
6609
6599
  vue.createTextVNode(vue.toDisplayString(item.text), 1)
6610
6600
  ])
6611
- ], 10, _hoisted_3$k);
6601
+ ], 10, _hoisted_3$m);
6612
6602
  }), 128))
6613
6603
  ])) : vue.createCommentVNode("", true),
6614
6604
  _ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$g, [
@@ -6624,8 +6614,8 @@ var __publicField = (obj, key, value) => {
6624
6614
  ], 2)
6625
6615
  ]);
6626
6616
  }
6627
- var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$D]]);
6628
- const { create: create$H } = createComponent("tabs");
6617
+ var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$G]]);
6618
+ const { create: create$K } = createComponent("tabs");
6629
6619
  class Title {
6630
6620
  constructor() {
6631
6621
  __publicField(this, "title", "");
@@ -6634,7 +6624,7 @@ var __publicField = (obj, key, value) => {
6634
6624
  __publicField(this, "disabled", false);
6635
6625
  }
6636
6626
  }
6637
- const _sfc_main$H = create$H({
6627
+ const _sfc_main$K = create$K({
6638
6628
  props: {
6639
6629
  modelValue: {
6640
6630
  type: [String, Number],
@@ -6763,8 +6753,8 @@ var __publicField = (obj, key, value) => {
6763
6753
  }, methods);
6764
6754
  }
6765
6755
  });
6766
- const _hoisted_1$u = ["onClick"];
6767
- function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
6756
+ const _hoisted_1$y = ["onClick"];
6757
+ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
6768
6758
  const _component_nut_icon = vue.resolveComponent("nut-icon");
6769
6759
  return vue.openBlock(), vue.createElementBlock("view", {
6770
6760
  class: vue.normalizeClass(["nut-tabs", [_ctx.direction]])
@@ -6798,7 +6788,7 @@ var __publicField = (obj, key, value) => {
6798
6788
  vue.createElementVNode("view", {
6799
6789
  class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
6800
6790
  }, vue.toDisplayString(item.title), 3)
6801
- ], 14, _hoisted_1$u);
6791
+ ], 14, _hoisted_1$y);
6802
6792
  }), 128))
6803
6793
  ], 6),
6804
6794
  vue.createElementVNode("view", {
@@ -6809,9 +6799,9 @@ var __publicField = (obj, key, value) => {
6809
6799
  ], 4)
6810
6800
  ], 2);
6811
6801
  }
6812
- var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$C]]);
6813
- const { create: create$G } = createComponent("tabpane");
6814
- const _sfc_main$G = create$G({
6802
+ var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$F]]);
6803
+ const { create: create$J } = createComponent("tabpane");
6804
+ const _sfc_main$J = create$J({
6815
6805
  props: {
6816
6806
  title: {
6817
6807
  type: [String, Number],
@@ -6832,16 +6822,16 @@ var __publicField = (obj, key, value) => {
6832
6822
  return { activeKey: parent.activeKey };
6833
6823
  }
6834
6824
  });
6835
- function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
6825
+ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
6836
6826
  return vue.openBlock(), vue.createElementBlock("view", {
6837
6827
  class: vue.normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
6838
6828
  }, [
6839
6829
  vue.renderSlot(_ctx.$slots, "default")
6840
6830
  ], 2);
6841
6831
  }
6842
- var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$B]]);
6843
- const { componentName: componentName$u, create: create$F } = createComponent("indicator");
6844
- const _sfc_main$F = create$F({
6832
+ var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$E]]);
6833
+ const { componentName: componentName$x, create: create$I } = createComponent("indicator");
6834
+ const _sfc_main$I = create$I({
6845
6835
  props: {
6846
6836
  size: {
6847
6837
  type: Number,
@@ -6869,17 +6859,17 @@ var __publicField = (obj, key, value) => {
6869
6859
  setup(props) {
6870
6860
  const { block, align } = vue.toRefs(props);
6871
6861
  const classes = vue.computed(() => {
6872
- const prefixCls = componentName$u;
6862
+ const prefixCls = componentName$x;
6873
6863
  return {
6874
6864
  [prefixCls]: true,
6875
6865
  [`${prefixCls}--block`]: block.value,
6876
6866
  [`${prefixCls}--align__${align.value}`]: block.value && align.value
6877
6867
  };
6878
6868
  });
6879
- return { classes, componentName: componentName$u };
6869
+ return { classes, componentName: componentName$x };
6880
6870
  }
6881
6871
  });
6882
- function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
6872
+ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
6883
6873
  return vue.openBlock(), vue.createElementBlock("view", {
6884
6874
  class: vue.normalizeClass(_ctx.classes)
6885
6875
  }, [
@@ -6896,7 +6886,7 @@ var __publicField = (obj, key, value) => {
6896
6886
  }), 128))
6897
6887
  ], 2);
6898
6888
  }
6899
- var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$A]]);
6889
+ var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$D]]);
6900
6890
  function flattenVNodes(children, childName) {
6901
6891
  const result = [];
6902
6892
  const traverse = (children2) => {
@@ -6955,7 +6945,7 @@ var __publicField = (obj, key, value) => {
6955
6945
  };
6956
6946
  };
6957
6947
  }
6958
- const { componentName: componentName$t } = createComponent("grid");
6948
+ const { componentName: componentName$w } = createComponent("grid");
6959
6949
  const GRID_KEY = Symbol("grid");
6960
6950
  const gridProps = {
6961
6951
  columnNum: {
@@ -7000,9 +6990,9 @@ var __publicField = (obj, key, value) => {
7000
6990
  const component$3 = {
7001
6991
  props: gridProps,
7002
6992
  setup(props, { slots }) {
7003
- useProvide(GRID_KEY, `${componentName$t}-item`)({ props });
6993
+ useProvide(GRID_KEY, `${componentName$w}-item`)({ props });
7004
6994
  const rootClass = vue.computed(() => {
7005
- const prefixCls = componentName$t;
6995
+ const prefixCls = componentName$w;
7006
6996
  return {
7007
6997
  [prefixCls]: true,
7008
6998
  [`${prefixCls}--border`]: props.border && !props.gutter
@@ -7024,8 +7014,8 @@ var __publicField = (obj, key, value) => {
7024
7014
  };
7025
7015
  }
7026
7016
  };
7027
- const { create: create$E } = createComponent("grid");
7028
- const _sfc_main$E = create$E(component$3);
7017
+ const { create: create$H } = createComponent("grid");
7018
+ const _sfc_main$H = create$H(component$3);
7029
7019
  function useInject(key) {
7030
7020
  const parent = vue.inject(key, null);
7031
7021
  if (parent) {
@@ -7044,8 +7034,8 @@ var __publicField = (obj, key, value) => {
7044
7034
  index: vue.ref(-1)
7045
7035
  };
7046
7036
  }
7047
- const { create: create$D, componentName: componentName$s } = createComponent("grid-item");
7048
- const _sfc_main$D = create$D({
7037
+ const { create: create$G, componentName: componentName$v } = createComponent("grid-item");
7038
+ const _sfc_main$G = create$G({
7049
7039
  props: {
7050
7040
  text: {
7051
7041
  type: String
@@ -7079,7 +7069,7 @@ var __publicField = (obj, key, value) => {
7079
7069
  const index = Parent.index;
7080
7070
  const parent = Parent.parent.props;
7081
7071
  const rootClass = vue.computed(() => {
7082
- const prefixCls = componentName$s;
7072
+ const prefixCls = componentName$v;
7083
7073
  return {
7084
7074
  [prefixCls]: true
7085
7075
  };
@@ -7099,7 +7089,7 @@ var __publicField = (obj, key, value) => {
7099
7089
  return style;
7100
7090
  });
7101
7091
  const contentClass = vue.computed(() => {
7102
- const prefixCls = `${componentName$s}__content`;
7092
+ const prefixCls = `${componentName$v}__content`;
7103
7093
  return {
7104
7094
  [`${prefixCls}`]: true,
7105
7095
  [`${prefixCls}--border`]: parent.border,
@@ -7136,11 +7126,11 @@ var __publicField = (obj, key, value) => {
7136
7126
  };
7137
7127
  }
7138
7128
  });
7139
- const _hoisted_1$t = {
7129
+ const _hoisted_1$x = {
7140
7130
  key: 3,
7141
7131
  class: "nut-grid-item__text"
7142
7132
  };
7143
- function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
7133
+ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
7144
7134
  const _component_nut_icon = vue.resolveComponent("nut-icon");
7145
7135
  return vue.openBlock(), vue.createElementBlock("view", {
7146
7136
  class: vue.normalizeClass(_ctx.rootClass),
@@ -7157,12 +7147,205 @@ var __publicField = (obj, key, value) => {
7157
7147
  size: _ctx.iconProps.size,
7158
7148
  color: _ctx.iconProps.color
7159
7149
  }, null, 8, ["name", "size", "color"])),
7160
- _ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$t, vue.toDisplayString(_ctx.text), 1))
7150
+ _ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$x, vue.toDisplayString(_ctx.text), 1))
7161
7151
  ], 64))
7162
7152
  ], 2)
7163
7153
  ], 6);
7164
7154
  }
7165
- var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
7155
+ var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$C]]);
7156
+ const { componentName: componentName$u, create: create$F } = createComponent("sidenavbar");
7157
+ const _sfc_main$F = create$F({
7158
+ props: {
7159
+ offset: {
7160
+ type: [String, Number],
7161
+ default: 15
7162
+ }
7163
+ },
7164
+ emits: [],
7165
+ setup: (props, context) => {
7166
+ const list = vue.ref(null);
7167
+ const state = vue.reactive({
7168
+ count: 1,
7169
+ observer: null
7170
+ });
7171
+ const classes = vue.computed(() => {
7172
+ const prefixCls = componentName$u;
7173
+ return {
7174
+ [prefixCls]: true
7175
+ };
7176
+ });
7177
+ const setPaddingLeft = (nodeList, level = 1) => {
7178
+ for (let i = 0; i < nodeList.length; i++) {
7179
+ let item = nodeList[i];
7180
+ item.children[0].style.paddingLeft = props.offset * level + "px";
7181
+ if (!item.className.includes("nut-sidenavbaritem")) {
7182
+ setPaddingLeft(Array.from(item.children[1].children), ++state.count);
7183
+ }
7184
+ }
7185
+ state.count--;
7186
+ };
7187
+ const handleSlots = () => {
7188
+ let childNodes = list.value.childNodes;
7189
+ if (childNodes.length) {
7190
+ childNodes = Array.from(childNodes).filter((item) => item.nodeType !== 3).map((item) => {
7191
+ return item;
7192
+ });
7193
+ setPaddingLeft(childNodes);
7194
+ }
7195
+ };
7196
+ vue.onMounted(() => {
7197
+ handleSlots();
7198
+ state.observer = new MutationObserver(function() {
7199
+ state.count = 1;
7200
+ handleSlots();
7201
+ });
7202
+ state.observer.observe(list.value, {
7203
+ attributes: false,
7204
+ childList: true,
7205
+ characterData: false,
7206
+ subtree: false
7207
+ });
7208
+ });
7209
+ return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
7210
+ list,
7211
+ classes
7212
+ });
7213
+ }
7214
+ });
7215
+ const _hoisted_1$w = { class: "nut-sidenavbar__content" };
7216
+ const _hoisted_2$r = {
7217
+ class: "nut-sidenavbar__content__list",
7218
+ ref: "list"
7219
+ };
7220
+ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
7221
+ return vue.openBlock(), vue.createElementBlock("view", {
7222
+ class: vue.normalizeClass(_ctx.classes)
7223
+ }, [
7224
+ vue.createElementVNode("view", _hoisted_1$w, [
7225
+ vue.createElementVNode("view", _hoisted_2$r, [
7226
+ vue.renderSlot(_ctx.$slots, "default")
7227
+ ], 512)
7228
+ ])
7229
+ ], 2);
7230
+ }
7231
+ var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$B]]);
7232
+ const { componentName: componentName$t, create: create$E } = createComponent("sidenavbaritem");
7233
+ const _sfc_main$E = create$E({
7234
+ props: {
7235
+ title: {
7236
+ type: String,
7237
+ default: ""
7238
+ },
7239
+ ikey: {
7240
+ type: String,
7241
+ default: ""
7242
+ }
7243
+ },
7244
+ emits: ["click"],
7245
+ setup: (props, context) => {
7246
+ const classes = vue.computed(() => {
7247
+ const prefixCls = componentName$t;
7248
+ return {
7249
+ [prefixCls]: true
7250
+ };
7251
+ });
7252
+ const handleClick = () => {
7253
+ context.emit("click");
7254
+ };
7255
+ return {
7256
+ classes,
7257
+ handleClick
7258
+ };
7259
+ }
7260
+ });
7261
+ const _hoisted_1$v = ["ikey"];
7262
+ const _hoisted_2$q = { class: "nut-sidenavbaritem__title" };
7263
+ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
7264
+ return vue.openBlock(), vue.createElementBlock("view", {
7265
+ class: "nut-sidenavbaritem",
7266
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
7267
+ ikey: _ctx.ikey
7268
+ }, [
7269
+ vue.createElementVNode("span", _hoisted_2$q, vue.toDisplayString(_ctx.title), 1)
7270
+ ], 8, _hoisted_1$v);
7271
+ }
7272
+ var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
7273
+ const { componentName: componentName$s, create: create$D } = createComponent("subsidenavbar");
7274
+ const _sfc_main$D = create$D({
7275
+ props: {
7276
+ title: {
7277
+ type: String,
7278
+ default: ""
7279
+ },
7280
+ ikey: {
7281
+ type: [String, Number],
7282
+ default: ""
7283
+ },
7284
+ open: {
7285
+ type: Boolean,
7286
+ default: true
7287
+ }
7288
+ },
7289
+ emits: ["title-click"],
7290
+ setup: (props, context) => {
7291
+ const state = vue.reactive({
7292
+ direction: ""
7293
+ });
7294
+ const classes = vue.computed(() => {
7295
+ const prefixCls = componentName$s;
7296
+ return {
7297
+ [prefixCls]: true
7298
+ };
7299
+ });
7300
+ const style = vue.computed(() => {
7301
+ return {
7302
+ height: !state.direction ? "auto" : "0px"
7303
+ };
7304
+ });
7305
+ const handleClick = () => {
7306
+ context.emit("title-click");
7307
+ state.direction = !state.direction ? "up" : "";
7308
+ };
7309
+ vue.onMounted(() => {
7310
+ state.direction = props.open ? "" : "up";
7311
+ });
7312
+ return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
7313
+ classes,
7314
+ style,
7315
+ handleClick
7316
+ });
7317
+ }
7318
+ });
7319
+ const _hoisted_1$u = ["ikey"];
7320
+ const _hoisted_2$p = { class: "nut-subsidenavbar__title__text" };
7321
+ const _hoisted_3$l = { class: "nut-subsidenavbar__title__icon" };
7322
+ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
7323
+ const _component_nut_icon = vue.resolveComponent("nut-icon");
7324
+ return vue.openBlock(), vue.createElementBlock("view", {
7325
+ class: vue.normalizeClass(_ctx.classes),
7326
+ ikey: _ctx.ikey
7327
+ }, [
7328
+ vue.createElementVNode("view", {
7329
+ class: "nut-subsidenavbar__title",
7330
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
7331
+ }, [
7332
+ vue.createElementVNode("span", _hoisted_2$p, vue.toDisplayString(_ctx.title), 1),
7333
+ vue.createElementVNode("span", _hoisted_3$l, [
7334
+ vue.createVNode(_component_nut_icon, {
7335
+ name: "down-arrow",
7336
+ class: vue.normalizeClass(_ctx.direction)
7337
+ }, null, 8, ["class"])
7338
+ ])
7339
+ ]),
7340
+ vue.createElementVNode("view", {
7341
+ class: vue.normalizeClass(["nut-subsidenavbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
7342
+ style: vue.normalizeStyle(_ctx.style)
7343
+ }, [
7344
+ vue.renderSlot(_ctx.$slots, "default")
7345
+ ], 6)
7346
+ ], 10, _hoisted_1$u);
7347
+ }
7348
+ var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
7166
7349
  const Utils = {
7167
7350
  isLeapYear: function(y) {
7168
7351
  return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
@@ -7631,9 +7814,9 @@ var __publicField = (obj, key, value) => {
7631
7814
  }, vue.toRefs(state)), vue.toRefs(props));
7632
7815
  }
7633
7816
  });
7634
- const _hoisted_1$s = { class: "calendar-title" };
7635
- const _hoisted_2$n = { class: "calendar-curr-month" };
7636
- const _hoisted_3$j = {
7817
+ const _hoisted_1$t = { class: "calendar-title" };
7818
+ const _hoisted_2$o = { class: "calendar-curr-month" };
7819
+ const _hoisted_3$k = {
7637
7820
  class: "calendar-weeks",
7638
7821
  ref: "weeksPanel"
7639
7822
  };
@@ -7673,10 +7856,10 @@ var __publicField = (obj, key, value) => {
7673
7856
  class: vue.normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
7674
7857
  }, [
7675
7858
  _ctx.poppable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
7676
- vue.createElementVNode("view", _hoisted_1$s, vue.toDisplayString(_ctx.title), 1),
7677
- vue.createElementVNode("view", _hoisted_2$n, vue.toDisplayString(_ctx.yearMonthTitle), 1)
7859
+ vue.createElementVNode("view", _hoisted_1$t, vue.toDisplayString(_ctx.title), 1),
7860
+ vue.createElementVNode("view", _hoisted_2$o, vue.toDisplayString(_ctx.yearMonthTitle), 1)
7678
7861
  ], 64)) : vue.createCommentVNode("", true),
7679
- vue.createElementVNode("view", _hoisted_3$j, [
7862
+ vue.createElementVNode("view", _hoisted_3$k, [
7680
7863
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
7681
7864
  return vue.openBlock(), vue.createElementBlock("view", {
7682
7865
  class: "calendar-week-item",
@@ -7840,7 +8023,7 @@ var __publicField = (obj, key, value) => {
7840
8023
  const { create: create$A, componentName: componentName$r } = createComponent("checkbox");
7841
8024
  const _sfc_main$A = create$A({
7842
8025
  components: {
7843
- nutIcon: _sfc_main$1l
8026
+ nutIcon: _sfc_main$1o
7844
8027
  },
7845
8028
  props: {
7846
8029
  modelValue: {
@@ -7896,7 +8079,7 @@ var __publicField = (obj, key, value) => {
7896
8079
  };
7897
8080
  const renderIcon = () => {
7898
8081
  const { iconName, iconSize, iconActiveName } = props;
7899
- return vue.h(_sfc_main$1l, {
8082
+ return vue.h(_sfc_main$1o, {
7900
8083
  name: !pValue.value ? iconName : iconActiveName,
7901
8084
  size: iconSize,
7902
8085
  class: color.value
@@ -8000,10 +8183,6 @@ var __publicField = (obj, key, value) => {
8000
8183
  type: Boolean,
8001
8184
  default: false
8002
8185
  },
8003
- visibleItemCount: {
8004
- type: [Number, String],
8005
- default: 7
8006
- },
8007
8186
  defaultIndex: {
8008
8187
  type: [Number, String],
8009
8188
  default: 0
@@ -8013,206 +8192,208 @@ var __publicField = (obj, key, value) => {
8013
8192
  default: 35
8014
8193
  }
8015
8194
  };
8016
- const MOMENTUM_LIMIT_DISTANCE = 15;
8017
- const MOMENTUM_LIMIT_TIME = 300;
8018
- const DEFAULT_DURATION = 200;
8019
8195
  const { create: create$y } = createComponent("picker-column");
8020
- function range(num, min, max) {
8021
- return Math.min(Math.max(num, min), max);
8022
- }
8023
- function stopPropagation(event) {
8024
- event.stopPropagation();
8025
- }
8026
- function preventDefault(event, isStopPropagation) {
8027
- if (typeof event.cancelable !== "boolean" || event.cancelable) {
8028
- event.preventDefault();
8029
- }
8030
- if (isStopPropagation) {
8031
- stopPropagation(event);
8032
- }
8033
- }
8034
- function getElementTranslateY(element) {
8035
- const style = window.getComputedStyle(element);
8036
- const transform = style.transform || style.webkitTransform;
8037
- const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
8038
- return Number(translateY);
8039
- }
8040
- function isObject$1(val) {
8041
- return val !== null && typeof val === "object";
8042
- }
8043
- function isOptionDisabled(option) {
8044
- return isObject$1(option) && option.disabled;
8045
- }
8046
8196
  const _sfc_main$y = create$y({
8047
8197
  props: __spreadValues({
8048
- dataType: String
8198
+ dataType: String,
8199
+ itemShow: {
8200
+ type: Boolean,
8201
+ default: false
8202
+ }
8049
8203
  }, commonProps),
8050
8204
  emits: ["click", "change"],
8051
8205
  setup(props, { emit }) {
8052
8206
  const wrapper = vue.ref();
8053
8207
  const state = vue.reactive({
8054
- index: props.defaultIndex,
8055
- offset: 0,
8056
- duration: 0,
8057
- options: props.listData,
8058
- moving: false,
8059
- startOffset: 0,
8060
- touchStartTime: 0,
8061
- momentumOffset: 0,
8062
- transitionEndTrigger: null
8208
+ touchParams: {
8209
+ startY: 0,
8210
+ endY: 0,
8211
+ startTime: 0,
8212
+ endTime: 0,
8213
+ lastY: 0
8214
+ },
8215
+ currIndex: 1,
8216
+ transformY: 0,
8217
+ scrollDistance: 0,
8218
+ lineSpacing: 36,
8219
+ rotation: 20,
8220
+ timer: null
8063
8221
  });
8064
- const touch = useTouch();
8065
- const wrapperStyle = vue.computed(() => ({
8066
- transform: `translate3d(0, ${state.offset + baseOffset()}px, 0)`,
8067
- transitionDuration: `${state.duration}ms`,
8068
- transitionProperty: state.duration ? "all" : "none"
8069
- }));
8070
- const getIndexByOffset = (offset) => {
8071
- return range(Math.round(-offset / +props.itemHeight), 0, state.options.length - 1);
8222
+ const roller = vue.ref(null);
8223
+ const list = vue.ref(null);
8224
+ const listItem = vue.ref(null);
8225
+ const touchDeg = vue.ref(0);
8226
+ const touchTime = vue.ref(0);
8227
+ const touchTranslateY = vue.ref(0);
8228
+ const touchListStyle = vue.computed(() => {
8229
+ return {
8230
+ transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
8231
+ transform: `translate3d(0, ${state.scrollDistance}px, 0)`
8232
+ };
8233
+ });
8234
+ const touchRollerStyle = vue.computed(() => {
8235
+ return {
8236
+ transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
8237
+ transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
8238
+ };
8239
+ });
8240
+ const onTouchStart = (event) => {
8241
+ event.preventDefault();
8242
+ let changedTouches = event.changedTouches[0];
8243
+ state.touchParams.startY = changedTouches.pageY;
8244
+ state.touchParams.startTime = event.timeStamp || Date.now();
8245
+ state.transformY = state.scrollDistance;
8072
8246
  };
8073
- const baseOffset = () => {
8074
- return +props.itemHeight * (+props.visibleItemCount - 1) / 2;
8247
+ const onTouchMove = (event) => {
8248
+ event.preventDefault();
8249
+ let changedTouches = event.changedTouches[0];
8250
+ state.touchParams.lastY = changedTouches.pageY;
8251
+ state.touchParams.lastTime = event.timeStamp || Date.now();
8252
+ let move = state.touchParams.lastY - state.touchParams.startY;
8253
+ setMove(move);
8075
8254
  };
8076
- const stopMomentum = () => {
8077
- state.moving = false;
8078
- state.duration = 0;
8079
- if (state.transitionEndTrigger) {
8080
- state.transitionEndTrigger();
8081
- state.transitionEndTrigger = null;
8082
- }
8083
- };
8084
- const adjustIndex = (index) => {
8085
- index = range(index, 0, state.options.length);
8086
- for (let i = index; i < state.options.length; i++) {
8087
- if (!isOptionDisabled(state.options[i]))
8088
- return i;
8089
- }
8090
- for (let i = index - 1; i >= 0; i--) {
8091
- if (!isOptionDisabled(state.options[i]))
8092
- return i;
8093
- }
8094
- };
8095
- const setIndex = (index, emitChange = false) => {
8096
- index = adjustIndex(index) || 0;
8097
- const offset = -index * +props.itemHeight;
8098
- const trigger = () => {
8099
- if (index !== state.index) {
8100
- state.index = index;
8101
- if (emitChange) {
8102
- emit("change", index);
8103
- }
8104
- }
8105
- };
8106
- if (state.moving && offset !== state.offset) {
8107
- state.transitionEndTrigger = trigger;
8255
+ const onTouchEnd = (event) => {
8256
+ event.preventDefault();
8257
+ let changedTouches = event.changedTouches[0];
8258
+ state.touchParams.lastY = changedTouches.pageY;
8259
+ state.touchParams.lastTime = event.timestamp || Date.now();
8260
+ let move = state.touchParams.lastY - state.touchParams.startY;
8261
+ let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
8262
+ if (moveTime <= 300) {
8263
+ move = move * 2;
8264
+ moveTime = moveTime + 1e3;
8265
+ setMove(move, "end", moveTime);
8108
8266
  } else {
8109
- trigger();
8267
+ setMove(move, "end");
8110
8268
  }
8111
- state.offset = offset;
8112
8269
  };
8113
- const momentum = (distance, duration) => {
8114
- const speed = Math.abs(distance / duration);
8115
- distance = state.offset + speed / 0.03 * (distance < 0 ? -1 : 1);
8116
- const index = getIndexByOffset(distance);
8117
- setIndex(index, true);
8270
+ const setRollerStyle = (index) => {
8271
+ return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
8118
8272
  };
8119
- const onTouchStart = (event) => {
8120
- if (props.readonly) {
8121
- return;
8122
- }
8123
- touch.start(event);
8124
- if (state.moving) {
8125
- const translateY = getElementTranslateY(wrapper.value);
8126
- state.offset = Math.min(0, translateY - baseOffset());
8127
- state.startOffset = state.offset;
8273
+ const isHidden = (index) => {
8274
+ if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
8275
+ return true;
8128
8276
  } else {
8129
- state.startOffset = state.offset;
8277
+ return false;
8130
8278
  }
8131
- state.duration = 0;
8132
- state.touchStartTime = Date.now();
8133
- state.momentumOffset = state.startOffset;
8134
- state.transitionEndTrigger = null;
8135
8279
  };
8136
- const onTouchMove = (event) => {
8137
- if (props.readonly) {
8138
- return;
8139
- }
8140
- state.moving = true;
8141
- touch.move(event);
8142
- if (touch.isVertical()) {
8143
- state.moving = true;
8144
- preventDefault(event, true);
8145
- }
8146
- const moveOffset = state.startOffset + touch.deltaY.value;
8147
- if (moveOffset > props.itemHeight) {
8148
- state.offset = props.itemHeight;
8280
+ const setTransform = (translateY = 0, type, time = 1e3, deg) => {
8281
+ if (type === "end") {
8282
+ touchTime.value = time;
8149
8283
  } else {
8150
- state.offset = state.startOffset + touch.deltaY.value;
8151
- }
8152
- const now = Date.now();
8153
- if (now - state.touchStartTime > MOMENTUM_LIMIT_TIME) {
8154
- state.touchStartTime = now;
8155
- state.momentumOffset = state.offset;
8284
+ touchTime.value = 0;
8156
8285
  }
8286
+ touchDeg.value = deg;
8287
+ touchTranslateY.value = translateY;
8288
+ state.scrollDistance = translateY;
8157
8289
  };
8158
- const onTouchEnd = () => {
8159
- const index = getIndexByOffset(state.offset);
8160
- state.duration = DEFAULT_DURATION;
8161
- setIndex(index, true);
8162
- const distance = state.offset - state.momentumOffset;
8163
- const duration = Date.now() - state.touchStartTime;
8164
- const allowMomentum = duration < MOMENTUM_LIMIT_TIME && Math.abs(distance) > MOMENTUM_LIMIT_DISTANCE;
8165
- if (allowMomentum) {
8166
- momentum(distance, duration);
8167
- return;
8290
+ const setMove = (move, type, time) => {
8291
+ let updateMove = move + state.transformY;
8292
+ if (type === "end") {
8293
+ if (updateMove > 0) {
8294
+ updateMove = 0;
8295
+ }
8296
+ if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
8297
+ updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
8298
+ }
8299
+ let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
8300
+ let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
8301
+ setTransform(endMove, type, time, deg);
8302
+ let t = time ? time / 2 : 0;
8303
+ state.timer = setTimeout(() => {
8304
+ setChooseValue();
8305
+ }, t);
8306
+ state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
8307
+ } else {
8308
+ let deg = "0deg";
8309
+ if (updateMove < 0) {
8310
+ deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
8311
+ } else {
8312
+ deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
8313
+ }
8314
+ setTransform(updateMove, null, void 0, deg);
8315
+ state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
8168
8316
  }
8169
8317
  };
8170
- vue.onMounted(() => {
8171
- setIndex(+props.defaultIndex);
8172
- });
8318
+ const setChooseValue = () => {
8319
+ emit("change", state.currIndex - 1);
8320
+ };
8321
+ const modifyStatus = (type) => {
8322
+ let index = props.defaultIndex;
8323
+ state.currIndex = index === -1 ? 1 : index + 1;
8324
+ let move = index === -1 ? 0 : index * state.lineSpacing;
8325
+ type && setChooseValue();
8326
+ setMove(-move);
8327
+ };
8173
8328
  vue.watch(() => props.listData, (val) => {
8174
- if (val) {
8175
- state.options = val;
8176
- }
8329
+ state.transformY = 0;
8330
+ modifyStatus(false);
8331
+ }, {
8332
+ deep: true
8177
8333
  });
8178
8334
  vue.watch(() => props.defaultIndex, (val) => {
8179
- setIndex(+val);
8335
+ state.transformY = 0;
8336
+ modifyStatus(false);
8180
8337
  });
8181
- return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
8338
+ vue.onMounted(() => {
8339
+ modifyStatus(true);
8340
+ });
8341
+ return __spreadProps(__spreadValues(__spreadValues({}, vue.toRefs(state)), vue.toRefs(props)), {
8182
8342
  wrapper,
8343
+ setRollerStyle,
8344
+ isHidden,
8345
+ roller,
8346
+ list,
8347
+ listItem,
8183
8348
  onTouchStart,
8184
8349
  onTouchMove,
8185
8350
  onTouchEnd,
8186
- wrapperStyle,
8187
- stopMomentum,
8188
- columns: state.options,
8189
- height: Number(props.visibleItemCount) * +props.itemHeight
8351
+ touchRollerStyle,
8352
+ touchListStyle
8190
8353
  });
8191
8354
  }
8192
8355
  });
8356
+ const _hoisted_1$s = { class: "nut-picker-content" };
8357
+ const _hoisted_2$n = {
8358
+ key: 0,
8359
+ class: "nut-picker-placeholder"
8360
+ };
8193
8361
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
8194
8362
  return vue.openBlock(), vue.createElementBlock("view", {
8195
- class: "nut-picker__content",
8196
- style: vue.normalizeStyle({ height: _ctx.height + "px" }),
8363
+ class: "nut-picker__list",
8197
8364
  onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
8198
8365
  onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
8199
- onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
8200
- onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
8201
- onTransitionend: _cache[4] || (_cache[4] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
8366
+ onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
8202
8367
  }, [
8203
8368
  vue.createElementVNode("view", {
8204
- class: "nut-picker__wrapper",
8205
- ref: "wrapper",
8206
- style: vue.normalizeStyle(_ctx.wrapperStyle)
8369
+ class: "nut-picker-roller",
8370
+ ref: "roller",
8371
+ style: vue.normalizeStyle(_ctx.touchRollerStyle)
8207
8372
  }, [
8208
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (item, index) => {
8373
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
8209
8374
  return vue.openBlock(), vue.createElementBlock("view", {
8210
- class: "nut-picker__item",
8211
- key: index
8212
- }, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
8375
+ class: vue.normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
8376
+ style: vue.normalizeStyle(_ctx.setRollerStyle(index + 1)),
8377
+ key: item.label ? item.label : index
8378
+ }, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
8213
8379
  }), 128))
8214
- ], 4)
8215
- ], 36);
8380
+ ], 4),
8381
+ vue.createElementVNode("view", _hoisted_1$s, [
8382
+ vue.createElementVNode("view", {
8383
+ class: "nut-picker-list-panel",
8384
+ ref: "list",
8385
+ style: vue.normalizeStyle(_ctx.touchListStyle)
8386
+ }, [
8387
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
8388
+ return vue.openBlock(), vue.createElementBlock("view", {
8389
+ class: "nut-picker-item nut-picker-item-ref",
8390
+ key: item.label ? item.label : index
8391
+ }, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
8392
+ }), 128)),
8393
+ _ctx.listData && _ctx.listData.length === 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$n)) : vue.createCommentVNode("", true)
8394
+ ], 4)
8395
+ ])
8396
+ ], 32);
8216
8397
  }
8217
8398
  var column = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]);
8218
8399
  const { create: create$x, componentName: componentName$p } = createComponent("picker");
@@ -8252,12 +8433,6 @@ var __publicField = (obj, key, value) => {
8252
8433
  [prefixCls]: true
8253
8434
  };
8254
8435
  });
8255
- const top = vue.computed(() => {
8256
- return Number(+props.visibleItemCount - 1) / 2 * +props.itemHeight;
8257
- });
8258
- const height = vue.computed(() => {
8259
- return Number(props.visibleItemCount) * +props.itemHeight;
8260
- });
8261
8436
  const dataType = vue.computed(() => {
8262
8437
  const firstColumn = state.formattedColumns[0];
8263
8438
  if (typeof firstColumn === "object") {
@@ -8272,9 +8447,7 @@ var __publicField = (obj, key, value) => {
8272
8447
  });
8273
8448
  const columnList = vue.computed(() => {
8274
8449
  if (dataType.value === "text") {
8275
- return [
8276
- { values: state.formattedColumns, defaultIndex: state.defaultIndex }
8277
- ];
8450
+ return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
8278
8451
  } else if (dataType.value === "multipleColumns") {
8279
8452
  return state.formattedColumns;
8280
8453
  } else if (dataType.value === "cascade") {
@@ -8339,7 +8512,7 @@ var __publicField = (obj, key, value) => {
8339
8512
  } else if (dataType.value === "multipleColumns") {
8340
8513
  defaultIndexList[columnIndex] = dataIndex;
8341
8514
  const val = defaultIndexList.map((res, i) => vue.toRaw(state.formattedColumns)[i].values[res]);
8342
- emit("change", val);
8515
+ emit("change", val, columnIndex, dataIndex);
8343
8516
  }
8344
8517
  };
8345
8518
  const confirm = () => {
@@ -8369,8 +8542,6 @@ var __publicField = (obj, key, value) => {
8369
8542
  column,
8370
8543
  dataType,
8371
8544
  columnList,
8372
- top,
8373
- height,
8374
8545
  close,
8375
8546
  changeHandler,
8376
8547
  confirm
@@ -8379,6 +8550,7 @@ var __publicField = (obj, key, value) => {
8379
8550
  });
8380
8551
  const _hoisted_1$r = { class: "nut-picker__bar" };
8381
8552
  const _hoisted_2$m = { class: "nut-picker__column" };
8553
+ const _hoisted_3$j = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
8382
8554
  function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
8383
8555
  const _component_nut_picker_column = vue.resolveComponent("nut-picker-column");
8384
8556
  const _component_nut_popup = vue.resolveComponent("nut-popup");
@@ -8387,13 +8559,13 @@ var __publicField = (obj, key, value) => {
8387
8559
  }, [
8388
8560
  vue.createVNode(_component_nut_popup, {
8389
8561
  position: "bottom",
8390
- style: vue.normalizeStyle({ height: _ctx.height + 56 + "px" }),
8391
8562
  visible: _ctx.show,
8392
8563
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
8393
8564
  teleport: _ctx.teleport,
8394
8565
  "lock-scroll": _ctx.lockScroll,
8395
8566
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
8396
- onClose: _ctx.close
8567
+ onClose: _ctx.close,
8568
+ round: true
8397
8569
  }, {
8398
8570
  default: vue.withCtx(() => [
8399
8571
  vue.createElementVNode("view", _hoisted_1$r, [
@@ -8408,36 +8580,29 @@ var __publicField = (obj, key, value) => {
8408
8580
  }, vue.toDisplayString(_ctx.okText), 1)
8409
8581
  ]),
8410
8582
  vue.createElementVNode("view", _hoisted_2$m, [
8411
- vue.createElementVNode("view", {
8412
- class: "nut-picker__mask",
8413
- style: vue.normalizeStyle({ backgroundSize: `100% ${_ctx.top}px` })
8414
- }, null, 4),
8415
- vue.createElementVNode("view", {
8416
- class: "nut-picker__hairline",
8417
- style: vue.normalizeStyle({ top: ` ${_ctx.top}px` })
8418
- }, null, 4),
8583
+ _hoisted_3$j,
8419
8584
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnList, (item, columnIndex) => {
8420
8585
  return vue.openBlock(), vue.createElementBlock("view", {
8421
8586
  class: "nut-picker__columnitem",
8422
8587
  key: columnIndex
8423
8588
  }, [
8424
8589
  vue.createVNode(_component_nut_picker_column, {
8425
- "list-data": item.values,
8590
+ itemShow: _ctx.show,
8591
+ "list-data": item,
8426
8592
  readonly: _ctx.readonly,
8427
8593
  "default-index": item.defaultIndex,
8428
8594
  "visible-item-count": _ctx.visibleItemCount,
8429
- "item-height": _ctx.itemHeight,
8430
8595
  "data-type": _ctx.dataType,
8431
8596
  onChange: (dataIndex) => {
8432
8597
  _ctx.changeHandler(columnIndex, dataIndex);
8433
8598
  }
8434
- }, null, 8, ["list-data", "readonly", "default-index", "visible-item-count", "item-height", "data-type", "onChange"])
8599
+ }, null, 8, ["itemShow", "list-data", "readonly", "default-index", "visible-item-count", "data-type", "onChange"])
8435
8600
  ]);
8436
8601
  }), 128))
8437
8602
  ])
8438
8603
  ]),
8439
8604
  _: 1
8440
- }, 8, ["style", "visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
8605
+ }, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
8441
8606
  ], 2);
8442
8607
  }
8443
8608
  var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]);
@@ -8610,8 +8775,6 @@ var __publicField = (obj, key, value) => {
8610
8775
  }
8611
8776
  };
8612
8777
  const generateValue = (min, max, val, type) => {
8613
- if (!(max > min))
8614
- return;
8615
8778
  const arr = [];
8616
8779
  let index = 0;
8617
8780
  while (min <= max) {
@@ -8648,6 +8811,7 @@ var __publicField = (obj, key, value) => {
8648
8811
  return 0;
8649
8812
  };
8650
8813
  const columns = vue.computed(() => {
8814
+ console.log(ranges.value);
8651
8815
  const val = ranges.value.map((res) => {
8652
8816
  return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
8653
8817
  });
@@ -8747,8 +8911,8 @@ var __publicField = (obj, key, value) => {
8747
8911
  };
8748
8912
  const emitChange = (value, event) => {
8749
8913
  let output_value = fixedDecimalPlaces(value);
8750
- emit("change", output_value, event);
8751
8914
  emit("update:modelValue", output_value, event);
8915
+ emit("change", output_value, event);
8752
8916
  };
8753
8917
  const addAllow = (value = Number(props.modelValue)) => {
8754
8918
  return value < Number(props.max) && !props.disabled;
@@ -8909,6 +9073,10 @@ var __publicField = (obj, key, value) => {
8909
9073
  clearable: {
8910
9074
  type: Boolean,
8911
9075
  default: true
9076
+ },
9077
+ hasBorder: {
9078
+ type: Boolean,
9079
+ default: true
8912
9080
  }
8913
9081
  },
8914
9082
  emits: ["change", "update:modelValue", "blur", "focus", "clear"],
@@ -8919,7 +9087,8 @@ var __publicField = (obj, key, value) => {
8919
9087
  return {
8920
9088
  [prefixCls]: true,
8921
9089
  [`${prefixCls}-disabled`]: props.disabled,
8922
- [`${prefixCls}-require`]: props.requireShow
9090
+ [`${prefixCls}-require`]: props.requireShow,
9091
+ [`${prefixCls}-border`]: props.hasBorder
8923
9092
  };
8924
9093
  });
8925
9094
  const styles = vue.computed(() => {
@@ -8951,7 +9120,7 @@ var __publicField = (obj, key, value) => {
8951
9120
  const valueBlur = (event) => {
8952
9121
  setTimeout(() => {
8953
9122
  active.value = false;
8954
- }, 0);
9123
+ }, 200);
8955
9124
  const input = event.target;
8956
9125
  let value = input.value;
8957
9126
  if (props.maxLength && value.length > Number(props.maxLength)) {
@@ -8975,20 +9144,20 @@ var __publicField = (obj, key, value) => {
8975
9144
  };
8976
9145
  }
8977
9146
  });
8978
- const _hoisted_1$p = { class: "nut-input-label" };
8979
- const _hoisted_2$l = {
9147
+ const _hoisted_1$p = {
8980
9148
  key: 0,
8981
- class: "label-string"
9149
+ class: "nut-input-label"
8982
9150
  };
9151
+ const _hoisted_2$l = { class: "label-string" };
8983
9152
  const _hoisted_3$i = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
8984
9153
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
8985
9154
  const _component_nut_icon = vue.resolveComponent("nut-icon");
8986
9155
  return vue.openBlock(), vue.createElementBlock("view", {
8987
9156
  class: vue.normalizeClass(_ctx.classes)
8988
9157
  }, [
8989
- vue.createElementVNode("view", _hoisted_1$p, [
8990
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$l, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true)
8991
- ]),
9158
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$p, [
9159
+ vue.createElementVNode("view", _hoisted_2$l, vue.toDisplayString(_ctx.label), 1)
9160
+ ])) : vue.createCommentVNode("", true),
8992
9161
  vue.createElementVNode("input", {
8993
9162
  class: "input-text",
8994
9163
  style: vue.normalizeStyle(_ctx.styles),
@@ -9003,7 +9172,7 @@ var __publicField = (obj, key, value) => {
9003
9172
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
9004
9173
  }, null, 44, _hoisted_3$i),
9005
9174
  _ctx.clearable && !_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
9006
- key: 0,
9175
+ key: 1,
9007
9176
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
9008
9177
  class: "nut-textinput-clear"
9009
9178
  }, [
@@ -9058,7 +9227,7 @@ var __publicField = (obj, key, value) => {
9058
9227
  });
9059
9228
  const renderIcon = () => {
9060
9229
  const { iconName, iconSize, iconActiveName } = props;
9061
- return vue.h(_sfc_main$1l, {
9230
+ return vue.h(_sfc_main$1o, {
9062
9231
  name: isCurValue.value ? iconActiveName : iconName,
9063
9232
  size: iconSize,
9064
9233
  class: color.value
@@ -9302,7 +9471,7 @@ var __publicField = (obj, key, value) => {
9302
9471
  setup(props, { emit }) {
9303
9472
  const realInput = vue.ref(props.modelValue);
9304
9473
  const realpwd = vue.ref();
9305
- const comLen = vue.computed(() => range2(Number(props.length)));
9474
+ const comLen = vue.computed(() => range(Number(props.length)));
9306
9475
  const show = vue.ref(props.visible);
9307
9476
  function sureClick() {
9308
9477
  emit("ok", realInput.value);
@@ -9338,7 +9507,7 @@ var __publicField = (obj, key, value) => {
9338
9507
  emit("update:visible", false);
9339
9508
  emit("close");
9340
9509
  }
9341
- function range2(val) {
9510
+ function range(val) {
9342
9511
  return Math.min(Math.max(4, val), 6);
9343
9512
  }
9344
9513
  function onTips() {
@@ -9366,7 +9535,7 @@ var __publicField = (obj, key, value) => {
9366
9535
  realInput,
9367
9536
  realpwd,
9368
9537
  focus,
9369
- range: range2,
9538
+ range,
9370
9539
  changeValue,
9371
9540
  close,
9372
9541
  onTips,
@@ -9508,6 +9677,10 @@ var __publicField = (obj, key, value) => {
9508
9677
  autosize: {
9509
9678
  type: Boolean,
9510
9679
  default: false
9680
+ },
9681
+ autofocus: {
9682
+ type: Boolean,
9683
+ default: false
9511
9684
  }
9512
9685
  },
9513
9686
  emits: ["update:modelValue", "change", "blur", "focus"],
@@ -9529,8 +9702,8 @@ var __publicField = (obj, key, value) => {
9529
9702
  if (props.maxLength && value.length > Number(props.maxLength)) {
9530
9703
  value = value.substring(0, Number(props.maxLength));
9531
9704
  }
9532
- emit("change", value, event);
9533
9705
  emit("update:modelValue", value, event);
9706
+ emit("change", value, event);
9534
9707
  };
9535
9708
  const change = (event) => {
9536
9709
  const input = event.target;
@@ -9562,7 +9735,7 @@ var __publicField = (obj, key, value) => {
9562
9735
  };
9563
9736
  }
9564
9737
  });
9565
- const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
9738
+ const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
9566
9739
  const _hoisted_2$j = {
9567
9740
  key: 0,
9568
9741
  class: "nut-textarea__limit"
@@ -9582,7 +9755,8 @@ var __publicField = (obj, key, value) => {
9582
9755
  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
9583
9756
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
9584
9757
  maxlength: _ctx.maxLength,
9585
- placeholder: _ctx.placeholder
9758
+ placeholder: _ctx.placeholder,
9759
+ autofocus: _ctx.autofocus
9586
9760
  }, null, 44, _hoisted_1$m),
9587
9761
  _ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$j, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + vue.toDisplayString(_ctx.maxLength), 1)) : vue.createCommentVNode("", true)
9588
9762
  ], 2);
@@ -9849,8 +10023,9 @@ var __publicField = (obj, key, value) => {
9849
10023
  if (oversizes.length) {
9850
10024
  emit("oversize", oversizes);
9851
10025
  }
9852
- if (files.length > maximum) {
9853
- files.splice(maximum - 1, files.length - maximum);
10026
+ let currentFileLength = files.length + fileList.length;
10027
+ if (currentFileLength > maximum) {
10028
+ files.splice(files.length - (currentFileLength - maximum));
9854
10029
  }
9855
10030
  return files;
9856
10031
  };
@@ -9860,7 +10035,8 @@ var __publicField = (obj, key, value) => {
9860
10035
  fileList.splice(index, 1);
9861
10036
  emit("delete", {
9862
10037
  file,
9863
- fileList
10038
+ fileList,
10039
+ index
9864
10040
  });
9865
10041
  } else {
9866
10042
  console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
@@ -11419,16 +11595,16 @@ var __publicField = (obj, key, value) => {
11419
11595
  setup(props, { emit, slots }) {
11420
11596
  const formErrorTip = vue.computed(() => vue.reactive({}));
11421
11597
  vue.provide("formErrorTip", formErrorTip);
11422
- const init = (value = props.modelValue) => {
11423
- Object.keys(value).forEach((item) => {
11598
+ const clearErrorTips = (value = props.modelValue) => {
11599
+ Object.keys(formErrorTip.value).forEach((item) => {
11424
11600
  formErrorTip.value[item] = "";
11425
11601
  });
11426
11602
  };
11427
11603
  const reset = () => {
11428
- init();
11604
+ clearErrorTips();
11429
11605
  };
11430
11606
  vue.watch(() => props.modelValue, (value) => {
11431
- init(value);
11607
+ clearErrorTips(value);
11432
11608
  }, { immediate: true });
11433
11609
  const findFormItem = (vnodes) => {
11434
11610
  let task = [];
@@ -11464,7 +11640,10 @@ var __publicField = (obj, key, value) => {
11464
11640
  const getPropByPath = (obj, keyPath) => {
11465
11641
  return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
11466
11642
  };
11467
- let value = getPropByPath(props.modelValue, prop);
11643
+ if (!prop) {
11644
+ console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
11645
+ }
11646
+ let value = getPropByPath(props.modelValue, prop || "");
11468
11647
  tipMessage({ prop, message: "" });
11469
11648
  while (rules.length) {
11470
11649
  const { required, validator, regex, message } = rules.shift();
@@ -12686,7 +12865,6 @@ var __publicField = (obj, key, value) => {
12686
12865
  class: "region-item-icon",
12687
12866
  type: "self",
12688
12867
  name: _ctx.selectedIcon,
12689
- color: "#FA2C19",
12690
12868
  size: "13px"
12691
12869
  }, null, 8, ["name"])) : vue.createCommentVNode("", true),
12692
12870
  vue.createTextVNode(vue.toDisplayString(item.name), 1)
@@ -12731,9 +12909,8 @@ var __publicField = (obj, key, value) => {
12731
12909
  class: "exist-item-icon",
12732
12910
  type: "self",
12733
12911
  name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
12734
- color: item.selectedAddress ? "#FA2C19" : "",
12735
12912
  size: "13px"
12736
- }, null, 8, ["name", "color"]),
12913
+ }, null, 8, ["name"]),
12737
12914
  vue.createElementVNode("div", _hoisted_18, [
12738
12915
  item.name && item.phone ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
12739
12916
  vue.createElementVNode("div", _hoisted_20, vue.toDisplayString(item.name), 1),
@@ -13588,7 +13765,6 @@ var __publicField = (obj, key, value) => {
13588
13765
  }
13589
13766
  });
13590
13767
  vue.onMounted(() => {
13591
- console.log("\u66F4\u65B0\u53C2\u6570");
13592
13768
  });
13593
13769
  const getSlots = (name) => slots[name];
13594
13770
  const selectSku = (skus) => {
@@ -13885,6 +14061,11 @@ var __publicField = (obj, key, value) => {
13885
14061
  state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
13886
14062
  }
13887
14063
  };
14064
+ const sortDataItem = () => {
14065
+ return props.columns.map((value) => {
14066
+ return value.key;
14067
+ });
14068
+ };
13888
14069
  vue.watch(() => props.data, (val) => {
13889
14070
  state.curData = val.slice();
13890
14071
  });
@@ -13892,7 +14073,8 @@ var __publicField = (obj, key, value) => {
13892
14073
  classes,
13893
14074
  cellClasses,
13894
14075
  getColumnItem,
13895
- handleSorterClick
14076
+ handleSorterClick,
14077
+ sortDataItem
13896
14078
  });
13897
14079
  }
13898
14080
  };
@@ -13950,7 +14132,7 @@ var __publicField = (obj, key, value) => {
13950
14132
  class: "nut-table__main__body__tr",
13951
14133
  key: item
13952
14134
  }, [
13953
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.keys(item), (value) => {
14135
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.sortDataItem(), (value) => {
13954
14136
  return vue.openBlock(), vue.createElementBlock("span", {
13955
14137
  class: vue.normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
13956
14138
  key: value
@@ -13984,7 +14166,7 @@ var __publicField = (obj, key, value) => {
13984
14166
  }
13985
14167
  var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
13986
14168
  function install(app) {
13987
- const packages = [Avatar, Button, Cell, CellGroup, _sfc_main$1l, Price, OverLay, Divider, _sfc_main$1e, Col, Row, _ImagePreview, Swipe, ActionSheet, BackTop, Collapse, CollapseItem, Drag, _Dialog, InfiniteLoading, NotifyFunction, Range, Video, Popup, _sfc_main$Y, Step, Swiper, SwiperItem, Switch, ToastFunction, Progress, CircleProgress, NoticeBar, SearchBar, Empty, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, _sfc_main$E, GridItem, Calendar, _sfc_main$A, _sfc_main$z, DatePicker, InputNumber, Input, _sfc_main$t, _sfc_main$s, Rate, Picker, ShortPassword, TextArea, Uploader, CountUp, NumberKeyboard, CountDown, Badge, Tag, Popover, Form, FormItem, Skeleton, Cascader, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Table];
14169
+ const packages = [Avatar, Button, Cell, CellGroup, _sfc_main$1o, Price, OverLay, Divider, _sfc_main$1h, Col, Row, _ImagePreview, Swipe, ActionSheet, BackTop, Collapse, CollapseItem, Drag, _Dialog, InfiniteLoading, NotifyFunction, Range, Video, Popup, _sfc_main$$, Step, Swiper, SwiperItem, Switch, ToastFunction, Progress, CircleProgress, NoticeBar, SearchBar, Empty, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, _sfc_main$H, GridItem, SideNavBar, SideNavBarItem, SubSideNavBar, Calendar, _sfc_main$A, _sfc_main$z, DatePicker, InputNumber, Input, _sfc_main$t, _sfc_main$s, Rate, Picker, ShortPassword, TextArea, Uploader, CountUp, NumberKeyboard, CountDown, Badge, Tag, Popover, Form, FormItem, Skeleton, Cascader, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Table];
13988
14170
  packages.forEach((item) => {
13989
14171
  if (item.install) {
13990
14172
  app.use(item);
@@ -13993,7 +14175,7 @@ var __publicField = (obj, key, value) => {
13993
14175
  }
13994
14176
  });
13995
14177
  }
13996
- const version = "3.1.15-beta.0";
14178
+ const version = "3.1.16";
13997
14179
  var nutui_vue_build = { install, version };
13998
14180
  exports2.ActionSheet = ActionSheet;
13999
14181
  exports2.Address = Address;
@@ -14024,15 +14206,15 @@ var __publicField = (obj, key, value) => {
14024
14206
  exports2.FixedNav = FixedNav;
14025
14207
  exports2.Form = Form;
14026
14208
  exports2.FormItem = FormItem;
14027
- exports2.Grid = _sfc_main$E;
14209
+ exports2.Grid = _sfc_main$H;
14028
14210
  exports2.GridItem = GridItem;
14029
- exports2.Icon = _sfc_main$1l;
14211
+ exports2.Icon = _sfc_main$1o;
14030
14212
  exports2.ImagePreview = _ImagePreview;
14031
14213
  exports2.Indicator = Indicator;
14032
14214
  exports2.InfiniteLoading = InfiniteLoading;
14033
14215
  exports2.Input = Input;
14034
14216
  exports2.InputNumber = InputNumber;
14035
- exports2.Layout = _sfc_main$1e;
14217
+ exports2.Layout = _sfc_main$1h;
14036
14218
  exports2.Menu = Menu;
14037
14219
  exports2.MenuItem = MenuItem;
14038
14220
  exports2.Navbar = Navbar;
@@ -14053,11 +14235,14 @@ var __publicField = (obj, key, value) => {
14053
14235
  exports2.Row = Row;
14054
14236
  exports2.SearchBar = SearchBar;
14055
14237
  exports2.ShortPassword = ShortPassword;
14238
+ exports2.SideNavBar = SideNavBar;
14239
+ exports2.SideNavBarItem = SideNavBarItem;
14056
14240
  exports2.Signature = Signature;
14057
14241
  exports2.Skeleton = Skeleton;
14058
14242
  exports2.Sku = Sku;
14059
14243
  exports2.Step = Step;
14060
- exports2.Steps = _sfc_main$Y;
14244
+ exports2.Steps = _sfc_main$$;
14245
+ exports2.SubSideNavBar = SubSideNavBar;
14061
14246
  exports2.Swipe = Swipe;
14062
14247
  exports2.Swiper = Swiper;
14063
14248
  exports2.SwiperItem = SwiperItem;