@nutui/nutui 4.0.9 → 4.0.10

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 (168) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +15382 -0
  4. package/dist/nutui.umd.js +1 -7
  5. package/dist/packages/_es/ActionSheet.js +78 -111
  6. package/dist/packages/_es/Address.js +250 -375
  7. package/dist/packages/_es/AddressList.js +269 -354
  8. package/dist/packages/_es/Animate.js +41 -58
  9. package/dist/packages/_es/Audio.js +128 -197
  10. package/dist/packages/_es/AudioOperate.js +60 -71
  11. package/dist/packages/_es/Avatar.js +66 -89
  12. package/dist/packages/_es/AvatarGroup.js +23 -31
  13. package/dist/packages/_es/Backtop.js +59 -99
  14. package/dist/packages/_es/Badge.js +36 -47
  15. package/dist/packages/_es/Barrage.js +68 -147
  16. package/dist/packages/_es/Button.js +47 -66
  17. package/dist/packages/_es/Calendar.js +135 -157
  18. package/dist/packages/_es/CalendarItem.js +6 -6
  19. package/dist/packages/_es/Card.js +42 -56
  20. package/dist/packages/_es/Cascader.js +315 -474
  21. package/dist/packages/_es/Category.js +29 -39
  22. package/dist/packages/_es/CategoryPane.js +57 -83
  23. package/dist/packages/_es/Cell.js +56 -71
  24. package/dist/packages/_es/CellGroup.js +19 -27
  25. package/dist/packages/_es/Checkbox.js +109 -156
  26. package/dist/packages/_es/CheckboxGroup.js +38 -59
  27. package/dist/packages/_es/CircleProgress.js +67 -96
  28. package/dist/packages/_es/Col.js +23 -31
  29. package/dist/packages/_es/Collapse.js +33 -58
  30. package/dist/packages/_es/CollapseItem.js +78 -108
  31. package/dist/packages/_es/Comment.js +207 -279
  32. package/dist/packages/_es/ConfigProvider.js +37 -55
  33. package/dist/packages/_es/Countdown.js +100 -212
  34. package/dist/packages/_es/Countup.js +232 -445
  35. package/dist/packages/_es/DatePicker.js +162 -265
  36. package/dist/packages/_es/Dialog.js +161 -213
  37. package/dist/packages/_es/Divider.js +42 -57
  38. package/dist/packages/_es/Drag.js +70 -153
  39. package/dist/packages/_es/Ecard.js +64 -104
  40. package/dist/packages/_es/Elevator.js +143 -219
  41. package/dist/packages/_es/Ellipsis.js +95 -178
  42. package/dist/packages/_es/Empty.js +23 -39
  43. package/dist/packages/_es/FixedNav.js +93 -116
  44. package/dist/packages/_es/Form.js +107 -178
  45. package/dist/packages/_es/FormItem.js +48 -61
  46. package/dist/packages/_es/Grid.js +5 -6
  47. package/dist/packages/_es/GridItem.js +58 -84
  48. package/dist/packages/_es/Image.js +90 -129
  49. package/dist/packages/_es/ImagePreview.js +256 -412
  50. package/dist/packages/_es/Indicator.js +30 -34
  51. package/dist/packages/_es/InfiniteLoading.js +83 -136
  52. package/dist/packages/_es/Input.js +160 -264
  53. package/dist/packages/_es/InputNumber.js +81 -117
  54. package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
  55. package/dist/packages/_es/Invoice.js +104 -130
  56. package/dist/packages/_es/Layout.js +3 -4
  57. package/dist/packages/_es/List.js +117 -215
  58. package/dist/packages/_es/Menu.js +96 -152
  59. package/dist/packages/_es/MenuItem.js +117 -172
  60. package/dist/packages/_es/Navbar.js +103 -119
  61. package/dist/packages/_es/Noticebar.js +197 -312
  62. package/dist/packages/_es/Notify.js +110 -166
  63. package/dist/packages/_es/NumberKeyboard.js +127 -202
  64. package/dist/packages/_es/Overlay.js +52 -80
  65. package/dist/packages/_es/Pagination.js +70 -100
  66. package/dist/packages/_es/Picker.js +275 -441
  67. package/dist/packages/_es/Popover.js +122 -225
  68. package/dist/packages/_es/Popup.js +4 -4
  69. package/dist/packages/_es/Price.js +44 -82
  70. package/dist/packages/_es/Progress.js +63 -79
  71. package/dist/packages/_es/PullRefresh.js +95 -173
  72. package/dist/packages/_es/Radio.js +4 -4
  73. package/dist/packages/_es/RadioGroup.js +3 -3
  74. package/dist/packages/_es/Range.js +204 -347
  75. package/dist/packages/_es/Rate.js +92 -141
  76. package/dist/packages/_es/Row.js +21 -27
  77. package/dist/packages/_es/Searchbar.js +130 -179
  78. package/dist/packages/_es/ShortPassword.js +69 -93
  79. package/dist/packages/_es/SideNavbar.js +49 -80
  80. package/dist/packages/_es/SideNavbarItem.js +22 -32
  81. package/dist/packages/_es/Signature.js +83 -146
  82. package/dist/packages/_es/Skeleton.js +110 -130
  83. package/dist/packages/_es/Sku.js +250 -343
  84. package/dist/packages/_es/Step.js +59 -86
  85. package/dist/packages/_es/Steps.js +26 -31
  86. package/dist/packages/_es/Sticky.js +4 -4
  87. package/dist/packages/_es/SubSideNavbar.js +52 -74
  88. package/dist/packages/_es/Swipe.js +83 -155
  89. package/dist/packages/_es/Swiper.js +174 -311
  90. package/dist/packages/_es/SwiperItem.js +28 -44
  91. package/dist/packages/_es/Switch.js +55 -68
  92. package/dist/packages/_es/TabPane.js +30 -41
  93. package/dist/packages/_es/Tabbar.js +41 -52
  94. package/dist/packages/_es/TabbarItem.js +61 -82
  95. package/dist/packages/_es/Table.js +109 -165
  96. package/dist/packages/_es/Tabs.js +240 -388
  97. package/dist/packages/_es/Tag.js +44 -61
  98. package/dist/packages/_es/Textarea.js +80 -124
  99. package/dist/packages/_es/TimeDetail.js +49 -76
  100. package/dist/packages/_es/TimePannel.js +34 -48
  101. package/dist/packages/_es/TimeSelect.js +47 -68
  102. package/dist/packages/_es/Toast.js +144 -218
  103. package/dist/packages/_es/Tour.js +138 -192
  104. package/dist/packages/_es/TrendArrow.js +57 -77
  105. package/dist/packages/_es/Uploader.js +234 -359
  106. package/dist/packages/_es/Video.js +191 -316
  107. package/dist/packages/_es/Watermark.js +84 -117
  108. package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
  109. package/dist/packages/_es/common-d218746f.js +116 -0
  110. package/dist/packages/_es/component-234624bc.js +89 -0
  111. package/dist/packages/_es/index-14dfadc4.js +561 -0
  112. package/dist/packages/_es/index-192a3ef6.js +29 -0
  113. package/dist/packages/_es/index-360c5092.js +210 -0
  114. package/dist/packages/_es/index-496e6e05.js +24 -0
  115. package/dist/packages/_es/index-50eed3d9.js +7 -0
  116. package/dist/packages/_es/index-53ec2d4d.js +34 -0
  117. package/dist/packages/_es/index-fadb0974.js +8 -0
  118. package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
  121. package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
  122. package/dist/packages/_es/pxCheck-38173291.js +4 -0
  123. package/dist/packages/_es/raf-a74f1a06.js +16 -0
  124. package/dist/packages/_es/renderIcon-47498b32.js +5 -0
  125. package/dist/packages/col/index.scss +2 -2
  126. package/dist/packages/menuitem/index.scss +7 -10
  127. package/dist/packages/searchbar/index.scss +4 -0
  128. package/dist/smartips/web-types.json +2 -2
  129. package/dist/style.css +1 -1
  130. package/dist/styles/themes/default.scss +158 -55
  131. package/dist/styles/themes/jdb.scss +158 -55
  132. package/dist/styles/themes/jddkh.scss +158 -55
  133. package/dist/styles/themes/jdt.scss +158 -55
  134. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  135. package/dist/types/__VUE/collapseitem/index.vue.d.ts +110 -3
  136. package/dist/types/__VUE/image/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
  138. package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
  139. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  140. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  141. package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
  142. package/dist/types/__VUE/row/index.vue.d.ts +1 -1
  143. package/dist/types/__VUE/searchbar/index.vue.d.ts +121 -5
  144. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  146. package/dist/types/__VUE/table/common.d.ts +55 -2
  147. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  148. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  149. package/dist/types/index.d.ts +1 -1
  150. package/package.json +2 -2
  151. package/dist/packages/_es/Interceptor-956b24fc.js +0 -29
  152. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
  153. package/dist/packages/_es/common-b9a5e726.js +0 -145
  154. package/dist/packages/_es/component-81a4c1d0.js +0 -145
  155. package/dist/packages/_es/index-29892cda.js +0 -33
  156. package/dist/packages/_es/index-43c34ac6.js +0 -30
  157. package/dist/packages/_es/index-54d03fc1.js +0 -8
  158. package/dist/packages/_es/index-79c5dc33.js +0 -10
  159. package/dist/packages/_es/index-7a7385e4.js +0 -67
  160. package/dist/packages/_es/index-87422be8.js +0 -942
  161. package/dist/packages/_es/index-da0a7662.js +0 -259
  162. package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
  163. package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
  164. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
  165. package/dist/packages/_es/mountComponent-8b24c346.js +0 -39
  166. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  167. package/dist/packages/_es/raf-729dad54.js +0 -25
  168. package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
@@ -1,23 +1,22 @@
1
- import { toRefs, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, toDisplayString } from "vue";
2
- import { p as padZero, c as createComponent } from "./component-81a4c1d0.js";
3
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ import { toRefs as i, computed as m, openBlock as r, createElementBlock as o, normalizeClass as l, Fragment as u, renderList as d, toDisplayString as f } from "vue";
2
+ import { p as y, c as $ } from "./component-234624bc.js";
3
+ import { _ as k } from "./_plugin-vue_export-helper-dad06003.js";
4
4
  import "../locale/lang";
5
- const { componentName, create } = createComponent("indicator");
6
- const _sfc_main = create({
5
+ const { componentName: c, create: v } = $("indicator"), b = v({
7
6
  props: {
8
7
  size: {
9
8
  type: Number,
10
9
  default: 3,
11
- required: true
10
+ required: !0
12
11
  },
13
12
  current: {
14
13
  type: Number,
15
14
  default: 1,
16
- required: true
15
+ required: !0
17
16
  },
18
17
  block: {
19
18
  type: Boolean,
20
- default: false
19
+ default: !1
21
20
  },
22
21
  align: {
23
22
  type: String,
@@ -25,40 +24,37 @@ const _sfc_main = create({
25
24
  },
26
25
  fillZero: {
27
26
  type: Boolean,
28
- default: true
27
+ default: !0
29
28
  }
30
29
  },
31
- setup(props) {
32
- const { block, align } = toRefs(props);
33
- const classes = computed(() => {
34
- const prefixCls = componentName;
30
+ setup(e) {
31
+ const { block: a, align: s } = i(e);
32
+ return { classes: m(() => {
33
+ const t = c;
35
34
  return {
36
- [prefixCls]: true,
37
- [`${prefixCls}--block`]: block.value,
38
- [`${prefixCls}--align__${align.value}`]: block.value && align.value
35
+ [t]: !0,
36
+ [`${t}--block`]: a.value,
37
+ [`${t}--align__${s.value}`]: a.value && s.value
39
38
  };
40
- });
41
- return { classes, componentName, padZero };
39
+ }), componentName: c, padZero: y };
42
40
  }
43
41
  });
44
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
45
- return openBlock(), createElementBlock("view", {
46
- class: normalizeClass(_ctx.classes)
42
+ function g(e, a, s, p, t, N) {
43
+ return r(), o("view", {
44
+ class: l(e.classes)
47
45
  }, [
48
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.size, (item) => {
49
- return openBlock(), createElementBlock(Fragment, { key: item }, [
50
- item === _ctx.current ? (openBlock(), createElementBlock("view", {
51
- key: 0,
52
- class: normalizeClass(`${_ctx.componentName}--number`)
53
- }, toDisplayString(_ctx.fillZero && _ctx.padZero(item) || item), 3)) : (openBlock(), createElementBlock("view", {
54
- key: 1,
55
- class: normalizeClass(`${_ctx.componentName}--dot`)
56
- }, null, 2))
57
- ], 64);
58
- }), 128))
46
+ (r(!0), o(u, null, d(e.size, (n) => (r(), o(u, { key: n }, [
47
+ n === e.current ? (r(), o("view", {
48
+ key: 0,
49
+ class: l(`${e.componentName}--number`)
50
+ }, f(e.fillZero && e.padZero(n) || n), 3)) : (r(), o("view", {
51
+ key: 1,
52
+ class: l(`${e.componentName}--dot`)
53
+ }, null, 2))
54
+ ], 64))), 128))
59
55
  ], 2);
60
56
  }
61
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
57
+ const z = /* @__PURE__ */ k(b, [["render", g]]);
62
58
  export {
63
- index as default
59
+ z as default
64
60
  };
@@ -1,39 +1,31 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { ref, reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
21
- import { c as createComponent, l as getScrollTopRoot } from "./component-81a4c1d0.js";
22
- import { u as useScrollParent } from "./index-43c34ac6.js";
23
- import { r as requestAniFrame } from "./raf-729dad54.js";
24
- import { Loading } from "@nutui/icons-vue";
25
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ var x = Object.defineProperty, B = Object.defineProperties;
2
+ var k = Object.getOwnPropertyDescriptors;
3
+ var w = Object.getOwnPropertySymbols;
4
+ var I = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
5
+ var T = (e, o, t) => o in e ? x(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, S = (e, o) => {
6
+ for (var t in o || (o = {}))
7
+ I.call(o, t) && T(e, t, o[t]);
8
+ if (w)
9
+ for (var t of w(o))
10
+ N.call(o, t) && T(e, t, o[t]);
11
+ return e;
12
+ }, b = (e, o) => B(e, k(o));
13
+ import { ref as y, reactive as A, computed as E, onMounted as H, onUnmounted as P, onActivated as D, onDeactivated as R, watch as q, toRefs as z, nextTick as F, resolveComponent as K, openBlock as C, createElementBlock as $, normalizeClass as U, createElementVNode as c, renderSlot as u, createVNode as j, toDisplayString as L, createCommentVNode as G } from "vue";
14
+ import { c as J, l as O } from "./component-234624bc.js";
15
+ import { u as Q } from "./index-496e6e05.js";
16
+ import { r as W } from "./raf-a74f1a06.js";
17
+ import { Loading as X } from "@nutui/icons-vue";
18
+ import { _ as Y } from "./_plugin-vue_export-helper-dad06003.js";
26
19
  import "../locale/lang";
27
- const { componentName, create, translate } = createComponent("infinite-loading");
28
- const _sfc_main = create({
20
+ const { componentName: Z, create: ee, translate: oe } = J("infinite-loading"), te = ee({
29
21
  props: {
30
22
  modelValue: {
31
23
  type: Boolean,
32
- default: false
24
+ default: !1
33
25
  },
34
26
  hasMore: {
35
27
  type: Boolean,
36
- default: true
28
+ default: !0
37
29
  },
38
30
  threshold: {
39
31
  type: Number,
@@ -49,139 +41,94 @@ const _sfc_main = create({
49
41
  },
50
42
  useCapture: {
51
43
  type: Boolean,
52
- default: false
44
+ default: !1
53
45
  }
54
46
  },
55
47
  emits: ["scroll-change", "load-more", "update:modelValue"],
56
48
  components: {
57
- Loading
49
+ Loading: X
58
50
  },
59
- setup(props, { emit, slots }) {
60
- const scroller = ref();
61
- const scrollParent = useScrollParent(scroller);
62
- const state = reactive({
51
+ setup(e, { emit: o, slots: t }) {
52
+ const i = y(), l = Q(i), s = A({
63
53
  beforeScrollTop: 0,
64
- isInfiniting: false,
54
+ isInfiniting: !1,
65
55
  y: 0,
66
56
  x: 0,
67
57
  distance: 0
68
- });
69
- const classes = computed(() => {
70
- const prefixCls = componentName;
71
- return {
72
- [prefixCls]: true
73
- };
74
- });
75
- const calculateTopPosition = (el) => {
76
- return !el ? 0 : el.offsetTop + calculateTopPosition(el.offsetParent);
77
- };
78
- const isScrollAtBottom = () => {
79
- let offsetDistance = 0;
80
- let resScrollTop = 0;
81
- let direction = "down";
82
- if (scrollParent.value == window) {
83
- const windowScrollTop = getScrollTopRoot();
84
- if (scroller.value) {
85
- offsetDistance = calculateTopPosition(scroller.value) + scroller.value.offsetHeight - windowScrollTop - window.innerHeight;
86
- }
87
- resScrollTop = windowScrollTop;
88
- } else {
89
- const { scrollHeight, clientHeight, scrollTop } = scrollParent.value;
90
- offsetDistance = scrollHeight - clientHeight - scrollTop;
91
- resScrollTop = scrollTop;
92
- }
93
- if (state.beforeScrollTop > resScrollTop) {
94
- direction = "up";
58
+ }), d = E(() => ({
59
+ [Z]: !0
60
+ })), p = (n) => n ? n.offsetTop + p(n.offsetParent) : 0, M = () => {
61
+ let n = 0, a = 0, m = "down";
62
+ if (l.value == window) {
63
+ const r = O();
64
+ i.value && (n = p(i.value) + i.value.offsetHeight - r - window.innerHeight), a = r;
95
65
  } else {
96
- direction = "down";
66
+ const { scrollHeight: r, clientHeight: V, scrollTop: h } = l.value;
67
+ n = r - V - h, a = h;
97
68
  }
98
- state.beforeScrollTop = resScrollTop;
99
- emit("scroll-change", resScrollTop);
100
- return offsetDistance <= props.threshold && direction == "down";
101
- };
102
- const handleScroll = () => {
103
- requestAniFrame(() => {
104
- if (!isScrollAtBottom() || !props.hasMore || state.isInfiniting) {
105
- return false;
106
- } else {
107
- state.isInfiniting = true;
108
- emit("update:modelValue", true);
109
- nextTick(() => emit("load-more"));
110
- }
69
+ return s.beforeScrollTop > a ? m = "up" : m = "down", s.beforeScrollTop = a, o("scroll-change", a), n <= e.threshold && m == "down";
70
+ }, v = () => {
71
+ W(() => {
72
+ if (!M() || !e.hasMore || s.isInfiniting)
73
+ return !1;
74
+ s.isInfiniting = !0, o("update:modelValue", !0), F(() => o("load-more"));
111
75
  });
76
+ }, _ = () => {
77
+ l.value && l.value.addEventListener("scroll", v, e.useCapture);
78
+ }, g = () => {
79
+ l.value && l.value.removeEventListener("scroll", v, e.useCapture);
112
80
  };
113
- const scrollListener = () => {
114
- scrollParent.value && scrollParent.value.addEventListener("scroll", handleScroll, props.useCapture);
115
- };
116
- const removeScrollListener = () => {
117
- scrollParent.value && scrollParent.value.removeEventListener("scroll", handleScroll, props.useCapture);
118
- };
119
- onMounted(() => {
120
- scrollListener();
81
+ H(() => {
82
+ _();
83
+ }), P(() => {
84
+ g();
121
85
  });
122
- onUnmounted(() => {
123
- removeScrollListener();
124
- });
125
- const isKeepAlive = ref(false);
126
- onActivated(() => {
127
- if (isKeepAlive.value) {
128
- isKeepAlive.value = false;
129
- scrollListener();
86
+ const f = y(!1);
87
+ return D(() => {
88
+ f.value && (f.value = !1, _());
89
+ }), R(() => {
90
+ f.value = !0, g();
91
+ }), q(
92
+ () => e.modelValue,
93
+ (n) => {
94
+ n || (s.isInfiniting = !1);
130
95
  }
131
- });
132
- onDeactivated(() => {
133
- isKeepAlive.value = true;
134
- removeScrollListener();
135
- });
136
- watch(
137
- () => props.modelValue,
138
- (val) => {
139
- if (!val) {
140
- state.isInfiniting = false;
141
- }
142
- }
143
- );
144
- return __spreadProps(__spreadValues({
145
- classes,
146
- scroller
147
- }, toRefs(state)), {
148
- translate,
149
- slots
96
+ ), b(S({
97
+ classes: d,
98
+ scroller: i
99
+ }, z(s)), {
100
+ translate: oe,
101
+ slots: t
150
102
  });
151
103
  }
152
- });
153
- const _hoisted_1 = { class: "nut-infinite__container" };
154
- const _hoisted_2 = { class: "nut-infinite__bottom" };
155
- const _hoisted_3 = {
104
+ }), ne = { class: "nut-infinite__container" }, le = { class: "nut-infinite__bottom" }, se = {
156
105
  key: 0,
157
106
  class: "nut-infinite__bottom-box"
158
- };
159
- const _hoisted_4 = { class: "nut-infinite__bottom-box__text" };
160
- const _hoisted_5 = { class: "nut-infinite__bottom-tips" };
161
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
162
- const _component_Loading = resolveComponent("Loading");
163
- return openBlock(), createElementBlock("view", {
164
- class: normalizeClass(_ctx.classes),
107
+ }, ie = { class: "nut-infinite__bottom-box__text" }, ae = { class: "nut-infinite__bottom-tips" };
108
+ function re(e, o, t, i, l, s) {
109
+ const d = K("Loading");
110
+ return C(), $("view", {
111
+ class: U(e.classes),
165
112
  ref: "scroller"
166
113
  }, [
167
- createElementVNode("view", _hoisted_1, [
168
- renderSlot(_ctx.$slots, "default")
114
+ c("view", ne, [
115
+ u(e.$slots, "default")
169
116
  ]),
170
- createElementVNode("view", _hoisted_2, [
171
- _ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_3, [
172
- renderSlot(_ctx.$slots, "loading", {}, () => [
173
- renderSlot(_ctx.$slots, "loading-icon", {}, () => [
174
- createVNode(_component_Loading, { class: "nut-icon-loading nut-infinite__bottom-box__img" })
117
+ c("view", le, [
118
+ e.isInfiniting ? (C(), $("view", se, [
119
+ u(e.$slots, "loading", {}, () => [
120
+ u(e.$slots, "loading-icon", {}, () => [
121
+ j(d, { class: "nut-icon-loading nut-infinite__bottom-box__img" })
175
122
  ]),
176
- createElementVNode("view", _hoisted_4, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
123
+ c("view", ie, L(e.loadTxt || e.translate("loading")), 1)
177
124
  ])
178
- ])) : !_ctx.hasMore ? renderSlot(_ctx.$slots, "finished", { key: 1 }, () => [
179
- createElementVNode("view", _hoisted_5, toDisplayString(_ctx.loadMoreTxt || _ctx.translate("loadMoreTxt")), 1)
180
- ]) : createCommentVNode("", true)
125
+ ])) : e.hasMore ? G("", !0) : u(e.$slots, "finished", { key: 1 }, () => [
126
+ c("view", ae, L(e.loadMoreTxt || e.translate("loadMoreTxt")), 1)
127
+ ])
181
128
  ])
182
129
  ], 2);
183
130
  }
184
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
131
+ const ge = /* @__PURE__ */ Y(te, [["render", re]]);
185
132
  export {
186
- index as default
133
+ ge as default
187
134
  };