@nutui/nutui 4.0.10-beta.1 → 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.
- package/CHANGELOG.md +17 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6550 -8291
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +78 -111
- package/dist/packages/_es/Address.js +250 -375
- package/dist/packages/_es/AddressList.js +269 -354
- package/dist/packages/_es/Animate.js +41 -58
- package/dist/packages/_es/Audio.js +128 -197
- package/dist/packages/_es/AudioOperate.js +60 -71
- package/dist/packages/_es/Avatar.js +66 -89
- package/dist/packages/_es/AvatarGroup.js +23 -31
- package/dist/packages/_es/Backtop.js +59 -99
- package/dist/packages/_es/Badge.js +36 -47
- package/dist/packages/_es/Barrage.js +68 -147
- package/dist/packages/_es/Button.js +47 -66
- package/dist/packages/_es/Calendar.js +135 -157
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +42 -56
- package/dist/packages/_es/Cascader.js +315 -474
- package/dist/packages/_es/Category.js +29 -39
- package/dist/packages/_es/CategoryPane.js +57 -83
- package/dist/packages/_es/Cell.js +56 -71
- package/dist/packages/_es/CellGroup.js +19 -27
- package/dist/packages/_es/Checkbox.js +109 -156
- package/dist/packages/_es/CheckboxGroup.js +38 -59
- package/dist/packages/_es/CircleProgress.js +67 -96
- package/dist/packages/_es/Col.js +23 -31
- package/dist/packages/_es/Collapse.js +33 -58
- package/dist/packages/_es/CollapseItem.js +78 -108
- package/dist/packages/_es/Comment.js +207 -279
- package/dist/packages/_es/ConfigProvider.js +37 -55
- package/dist/packages/_es/Countdown.js +100 -212
- package/dist/packages/_es/Countup.js +232 -445
- package/dist/packages/_es/DatePicker.js +162 -265
- package/dist/packages/_es/Dialog.js +161 -213
- package/dist/packages/_es/Divider.js +42 -57
- package/dist/packages/_es/Drag.js +70 -153
- package/dist/packages/_es/Ecard.js +64 -104
- package/dist/packages/_es/Elevator.js +143 -219
- package/dist/packages/_es/Ellipsis.js +95 -178
- package/dist/packages/_es/Empty.js +23 -39
- package/dist/packages/_es/FixedNav.js +93 -116
- package/dist/packages/_es/Form.js +107 -178
- package/dist/packages/_es/FormItem.js +48 -61
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +58 -84
- package/dist/packages/_es/Image.js +90 -129
- package/dist/packages/_es/ImagePreview.js +256 -412
- package/dist/packages/_es/Indicator.js +30 -34
- package/dist/packages/_es/InfiniteLoading.js +83 -136
- package/dist/packages/_es/Input.js +160 -264
- package/dist/packages/_es/InputNumber.js +81 -117
- package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
- package/dist/packages/_es/Invoice.js +104 -130
- package/dist/packages/_es/Layout.js +3 -4
- package/dist/packages/_es/List.js +117 -215
- package/dist/packages/_es/Menu.js +95 -150
- package/dist/packages/_es/MenuItem.js +109 -154
- package/dist/packages/_es/Navbar.js +103 -119
- package/dist/packages/_es/Noticebar.js +197 -312
- package/dist/packages/_es/Notify.js +110 -166
- package/dist/packages/_es/NumberKeyboard.js +127 -202
- package/dist/packages/_es/Overlay.js +52 -80
- package/dist/packages/_es/Pagination.js +70 -100
- package/dist/packages/_es/Picker.js +275 -437
- package/dist/packages/_es/Popover.js +122 -225
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +44 -82
- package/dist/packages/_es/Progress.js +63 -79
- package/dist/packages/_es/PullRefresh.js +95 -173
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +204 -347
- package/dist/packages/_es/Rate.js +92 -141
- package/dist/packages/_es/Row.js +21 -27
- package/dist/packages/_es/Searchbar.js +123 -174
- package/dist/packages/_es/ShortPassword.js +69 -93
- package/dist/packages/_es/SideNavbar.js +49 -80
- package/dist/packages/_es/SideNavbarItem.js +22 -32
- package/dist/packages/_es/Signature.js +83 -146
- package/dist/packages/_es/Skeleton.js +110 -130
- package/dist/packages/_es/Sku.js +250 -343
- package/dist/packages/_es/Step.js +59 -86
- package/dist/packages/_es/Steps.js +26 -31
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +52 -74
- package/dist/packages/_es/Swipe.js +83 -155
- package/dist/packages/_es/Swiper.js +174 -311
- package/dist/packages/_es/SwiperItem.js +28 -44
- package/dist/packages/_es/Switch.js +55 -68
- package/dist/packages/_es/TabPane.js +30 -41
- package/dist/packages/_es/Tabbar.js +41 -52
- package/dist/packages/_es/TabbarItem.js +61 -82
- package/dist/packages/_es/Table.js +109 -165
- package/dist/packages/_es/Tabs.js +240 -388
- package/dist/packages/_es/Tag.js +44 -61
- package/dist/packages/_es/Textarea.js +80 -124
- package/dist/packages/_es/TimeDetail.js +49 -76
- package/dist/packages/_es/TimePannel.js +34 -48
- package/dist/packages/_es/TimeSelect.js +47 -68
- package/dist/packages/_es/Toast.js +144 -218
- package/dist/packages/_es/Tour.js +138 -192
- package/dist/packages/_es/TrendArrow.js +57 -77
- package/dist/packages/_es/Uploader.js +234 -359
- package/dist/packages/_es/Video.js +191 -316
- package/dist/packages/_es/Watermark.js +84 -117
- package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
- package/dist/packages/_es/common-d218746f.js +116 -0
- package/dist/packages/_es/component-234624bc.js +89 -0
- package/dist/packages/_es/index-14dfadc4.js +561 -0
- package/dist/packages/_es/index-192a3ef6.js +29 -0
- package/dist/packages/_es/index-360c5092.js +210 -0
- package/dist/packages/_es/index-496e6e05.js +24 -0
- package/dist/packages/_es/index-50eed3d9.js +7 -0
- package/dist/packages/_es/index-53ec2d4d.js +34 -0
- package/dist/packages/_es/index-fadb0974.js +8 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
- package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
- package/dist/packages/_es/pxCheck-38173291.js +4 -0
- package/dist/packages/_es/raf-a74f1a06.js +16 -0
- package/dist/packages/_es/renderIcon-47498b32.js +5 -0
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +154 -51
- package/dist/styles/themes/jdb.scss +154 -51
- package/dist/styles/themes/jddkh.scss +154 -51
- package/dist/styles/themes/jdt.scss +154 -51
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +110 -3
- package/dist/types/__VUE/image/index.vue.d.ts +2 -2
- package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
- package/dist/types/__VUE/searchbar/index.vue.d.ts +110 -3
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/table/common.d.ts +55 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/packages/_es/Interceptor-956b24fc.js +0 -29
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
- package/dist/packages/_es/common-b9a5e726.js +0 -145
- package/dist/packages/_es/component-81a4c1d0.js +0 -145
- package/dist/packages/_es/index-29892cda.js +0 -33
- package/dist/packages/_es/index-43c34ac6.js +0 -30
- package/dist/packages/_es/index-54d03fc1.js +0 -8
- package/dist/packages/_es/index-79c5dc33.js +0 -10
- package/dist/packages/_es/index-7a7385e4.js +0 -67
- package/dist/packages/_es/index-87422be8.js +0 -942
- package/dist/packages/_es/index-da0a7662.js +0 -259
- package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
- package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
- package/dist/packages/_es/mountComponent-8b24c346.js +0 -39
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- package/dist/packages/_es/raf-729dad54.js +0 -25
- 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
|
|
3
|
-
import { _ as
|
|
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 } =
|
|
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:
|
|
10
|
+
required: !0
|
|
12
11
|
},
|
|
13
12
|
current: {
|
|
14
13
|
type: Number,
|
|
15
14
|
default: 1,
|
|
16
|
-
required:
|
|
15
|
+
required: !0
|
|
17
16
|
},
|
|
18
17
|
block: {
|
|
19
18
|
type: Boolean,
|
|
20
|
-
default:
|
|
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:
|
|
27
|
+
default: !0
|
|
29
28
|
}
|
|
30
29
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const { block, align } =
|
|
33
|
-
|
|
34
|
-
const
|
|
30
|
+
setup(e) {
|
|
31
|
+
const { block: a, align: s } = i(e);
|
|
32
|
+
return { classes: m(() => {
|
|
33
|
+
const t = c;
|
|
35
34
|
return {
|
|
36
|
-
[
|
|
37
|
-
[`${
|
|
38
|
-
[`${
|
|
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
|
|
45
|
-
return
|
|
46
|
-
class:
|
|
42
|
+
function g(e, a, s, p, t, N) {
|
|
43
|
+
return r(), o("view", {
|
|
44
|
+
class: l(e.classes)
|
|
47
45
|
}, [
|
|
48
|
-
(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
|
57
|
+
const z = /* @__PURE__ */ k(b, [["render", g]]);
|
|
62
58
|
export {
|
|
63
|
-
|
|
59
|
+
z as default
|
|
64
60
|
};
|
|
@@ -1,39 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 } =
|
|
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:
|
|
24
|
+
default: !1
|
|
33
25
|
},
|
|
34
26
|
hasMore: {
|
|
35
27
|
type: Boolean,
|
|
36
|
-
default:
|
|
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:
|
|
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(
|
|
60
|
-
const
|
|
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:
|
|
54
|
+
isInfiniting: !1,
|
|
65
55
|
y: 0,
|
|
66
56
|
x: 0,
|
|
67
57
|
distance: 0
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
66
|
+
const { scrollHeight: r, clientHeight: V, scrollTop: h } = l.value;
|
|
67
|
+
n = r - V - h, a = h;
|
|
97
68
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
168
|
-
|
|
114
|
+
c("view", ne, [
|
|
115
|
+
u(e.$slots, "default")
|
|
169
116
|
]),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
|
|
123
|
+
c("view", ie, L(e.loadTxt || e.translate("loading")), 1)
|
|
177
124
|
])
|
|
178
|
-
])) :
|
|
179
|
-
|
|
180
|
-
])
|
|
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
|
|
131
|
+
const ge = /* @__PURE__ */ Y(te, [["render", re]]);
|
|
185
132
|
export {
|
|
186
|
-
|
|
133
|
+
ge as default
|
|
187
134
|
};
|