@nutui/nutui 4.0.12-beta.1 → 4.0.12
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/dist/nutui.es.js +1 -1
- package/dist/nutui.js +1 -1
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +111 -78
- package/dist/packages/_es/Address.js +375 -250
- package/dist/packages/_es/AddressList.js +354 -269
- package/dist/packages/_es/Animate.js +58 -41
- package/dist/packages/_es/Audio.js +197 -128
- package/dist/packages/_es/AudioOperate.js +71 -60
- package/dist/packages/_es/Avatar.js +89 -66
- package/dist/packages/_es/AvatarGroup.js +31 -23
- package/dist/packages/_es/Backtop.js +99 -59
- package/dist/packages/_es/Badge.js +47 -36
- package/dist/packages/_es/Barrage.js +147 -68
- package/dist/packages/_es/Button.js +66 -47
- package/dist/packages/_es/Calendar.js +157 -135
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +56 -42
- package/dist/packages/_es/Cascader.js +474 -315
- package/dist/packages/_es/Category.js +39 -29
- package/dist/packages/_es/CategoryPane.js +83 -57
- package/dist/packages/_es/Cell.js +71 -56
- package/dist/packages/_es/CellGroup.js +27 -19
- package/dist/packages/_es/Checkbox.js +156 -109
- package/dist/packages/_es/CheckboxGroup.js +59 -38
- package/dist/packages/_es/CircleProgress.js +96 -67
- package/dist/packages/_es/Col.js +31 -23
- package/dist/packages/_es/Collapse.js +58 -33
- package/dist/packages/_es/CollapseItem.js +108 -78
- package/dist/packages/_es/Comment.js +279 -207
- package/dist/packages/_es/ConfigProvider.js +55 -37
- package/dist/packages/_es/Countdown.js +212 -100
- package/dist/packages/_es/Countup.js +445 -232
- package/dist/packages/_es/DatePicker.js +265 -162
- package/dist/packages/_es/Dialog.js +213 -161
- package/dist/packages/_es/Divider.js +57 -42
- package/dist/packages/_es/Drag.js +153 -70
- package/dist/packages/_es/Ecard.js +104 -64
- package/dist/packages/_es/Elevator.js +219 -143
- package/dist/packages/_es/Ellipsis.js +178 -95
- package/dist/packages/_es/Empty.js +39 -23
- package/dist/packages/_es/FixedNav.js +116 -93
- package/dist/packages/_es/Form.js +178 -107
- package/dist/packages/_es/FormItem.js +61 -48
- package/dist/packages/_es/Grid.js +6 -5
- package/dist/packages/_es/GridItem.js +84 -58
- package/dist/packages/_es/Image.js +130 -90
- package/dist/packages/_es/ImagePreview.js +412 -256
- package/dist/packages/_es/Indicator.js +34 -30
- package/dist/packages/_es/InfiniteLoading.js +136 -83
- package/dist/packages/_es/Input.js +264 -160
- package/dist/packages/_es/InputNumber.js +117 -81
- package/dist/packages/_es/Interceptor-956b24fc.js +29 -0
- package/dist/packages/_es/Invoice.js +130 -104
- package/dist/packages/_es/Layout.js +4 -3
- package/dist/packages/_es/List.js +215 -117
- package/dist/packages/_es/Menu.js +150 -95
- package/dist/packages/_es/MenuItem.js +154 -109
- package/dist/packages/_es/Navbar.js +119 -103
- package/dist/packages/_es/Noticebar.js +312 -197
- package/dist/packages/_es/Notify.js +166 -110
- package/dist/packages/_es/NumberKeyboard.js +202 -127
- package/dist/packages/_es/Overlay.js +80 -52
- package/dist/packages/_es/Pagination.js +100 -70
- package/dist/packages/_es/Picker.js +437 -275
- package/dist/packages/_es/Popover.js +225 -122
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +82 -44
- package/dist/packages/_es/Progress.js +79 -63
- package/dist/packages/_es/PullRefresh.js +173 -95
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +347 -204
- package/dist/packages/_es/Rate.js +141 -92
- package/dist/packages/_es/Row.js +27 -21
- package/dist/packages/_es/Searchbar.js +174 -123
- package/dist/packages/_es/ShortPassword.js +93 -69
- package/dist/packages/_es/SideNavbar.js +80 -49
- package/dist/packages/_es/SideNavbarItem.js +32 -22
- package/dist/packages/_es/Signature.js +146 -83
- package/dist/packages/_es/Skeleton.js +130 -110
- package/dist/packages/_es/Sku.js +343 -250
- package/dist/packages/_es/Step.js +86 -59
- package/dist/packages/_es/Steps.js +31 -26
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +74 -52
- package/dist/packages/_es/Swipe.js +155 -83
- package/dist/packages/_es/Swiper.js +311 -174
- package/dist/packages/_es/SwiperItem.js +44 -28
- package/dist/packages/_es/Switch.js +68 -55
- package/dist/packages/_es/TabPane.js +41 -30
- package/dist/packages/_es/Tabbar.js +52 -41
- package/dist/packages/_es/TabbarItem.js +82 -61
- package/dist/packages/_es/Table.js +165 -109
- package/dist/packages/_es/Tabs.js +388 -240
- package/dist/packages/_es/Tag.js +61 -44
- package/dist/packages/_es/Textarea.js +124 -80
- package/dist/packages/_es/TimeDetail.js +76 -49
- package/dist/packages/_es/TimePannel.js +48 -34
- package/dist/packages/_es/TimeSelect.js +68 -47
- package/dist/packages/_es/Toast.js +218 -144
- package/dist/packages/_es/Tour.js +192 -138
- package/dist/packages/_es/TrendArrow.js +77 -57
- package/dist/packages/_es/Uploader.js +359 -234
- package/dist/packages/_es/Video.js +316 -191
- package/dist/packages/_es/Watermark.js +117 -84
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +10 -0
- package/dist/packages/_es/common-b9a5e726.js +145 -0
- package/dist/packages/_es/component-81a4c1d0.js +145 -0
- package/dist/packages/_es/index-29892cda.js +33 -0
- package/dist/packages/_es/index-43c34ac6.js +30 -0
- package/dist/packages/_es/index-54d03fc1.js +8 -0
- package/dist/packages/_es/index-79c5dc33.js +10 -0
- package/dist/packages/_es/index-7a7385e4.js +67 -0
- package/dist/packages/_es/index-87422be8.js +942 -0
- package/dist/packages/_es/index-da0a7662.js +259 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +46 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-a8856969.js +97 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +151 -0
- package/dist/packages/_es/mountComponent-8b24c346.js +39 -0
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/raf-729dad54.js +25 -0
- package/dist/packages/_es/renderIcon-3d0fd47c.js +9 -0
- package/dist/packages/locale/lang/baseLang-3a8457ac.js +5 -0
- package/dist/packages/locale/lang/en-US.js +39 -36
- package/dist/packages/locale/lang/id-ID.js +39 -36
- package/dist/packages/locale/lang/index.js +44 -22
- package/dist/packages/locale/lang/zh-CN.js +38 -35
- package/dist/packages/locale/lang/zh-TW.js +38 -35
- package/dist/resolver/index.js +26 -1
- package/dist/resolver/index.mjs +17 -14
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +50 -50
- package/dist/styles/themes/jdb.scss +50 -50
- package/dist/styles/themes/jddkh.scss +50 -50
- package/dist/styles/themes/jdt.scss +50 -50
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/packages/_es/Interceptor-6e26b757.js +0 -18
- package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +0 -9
- package/dist/packages/_es/common-d218746f.js +0 -116
- package/dist/packages/_es/component-234624bc.js +0 -89
- package/dist/packages/_es/index-14dfadc4.js +0 -561
- package/dist/packages/_es/index-192a3ef6.js +0 -29
- package/dist/packages/_es/index-360c5092.js +0 -210
- package/dist/packages/_es/index-496e6e05.js +0 -24
- package/dist/packages/_es/index-50eed3d9.js +0 -7
- package/dist/packages/_es/index-53ec2d4d.js +0 -34
- package/dist/packages/_es/index-fadb0974.js +0 -8
- package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +0 -43
- package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +0 -77
- package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +0 -110
- package/dist/packages/_es/mountComponent-6d4ff200.js +0 -23
- package/dist/packages/_es/pxCheck-38173291.js +0 -4
- package/dist/packages/_es/raf-a74f1a06.js +0 -16
- package/dist/packages/_es/renderIcon-47498b32.js +0 -5
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +0 -5
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { toRefs
|
|
2
|
-
import { p as
|
|
3
|
-
import { _ as
|
|
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";
|
|
4
4
|
import "../locale/lang";
|
|
5
|
-
const { componentName
|
|
5
|
+
const { componentName, create } = createComponent("indicator");
|
|
6
|
+
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
7
8
|
size: {
|
|
8
9
|
type: Number,
|
|
9
10
|
default: 3,
|
|
10
|
-
required:
|
|
11
|
+
required: true
|
|
11
12
|
},
|
|
12
13
|
current: {
|
|
13
14
|
type: Number,
|
|
14
15
|
default: 1,
|
|
15
|
-
required:
|
|
16
|
+
required: true
|
|
16
17
|
},
|
|
17
18
|
block: {
|
|
18
19
|
type: Boolean,
|
|
19
|
-
default:
|
|
20
|
+
default: false
|
|
20
21
|
},
|
|
21
22
|
align: {
|
|
22
23
|
type: String,
|
|
@@ -24,37 +25,40 @@ const { componentName: c, create: v } = $("indicator"), b = v({
|
|
|
24
25
|
},
|
|
25
26
|
fillZero: {
|
|
26
27
|
type: Boolean,
|
|
27
|
-
default:
|
|
28
|
+
default: true
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const { block
|
|
32
|
-
|
|
33
|
-
const
|
|
31
|
+
setup(props) {
|
|
32
|
+
const { block, align } = toRefs(props);
|
|
33
|
+
const classes = computed(() => {
|
|
34
|
+
const prefixCls = componentName;
|
|
34
35
|
return {
|
|
35
|
-
[
|
|
36
|
-
[`${
|
|
37
|
-
[`${
|
|
36
|
+
[prefixCls]: true,
|
|
37
|
+
[`${prefixCls}--block`]: block.value,
|
|
38
|
+
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
38
39
|
};
|
|
39
|
-
})
|
|
40
|
+
});
|
|
41
|
+
return { classes, componentName, padZero };
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
class:
|
|
44
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
|
+
return openBlock(), createElementBlock("view", {
|
|
46
|
+
class: normalizeClass(_ctx.classes)
|
|
45
47
|
}, [
|
|
46
|
-
(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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))
|
|
55
59
|
], 2);
|
|
56
60
|
}
|
|
57
|
-
const
|
|
61
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
58
62
|
export {
|
|
59
|
-
|
|
63
|
+
index as default
|
|
60
64
|
};
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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";
|
|
19
26
|
import "../locale/lang";
|
|
20
|
-
const { componentName
|
|
27
|
+
const { componentName, create, translate } = createComponent("infinite-loading");
|
|
28
|
+
const _sfc_main = create({
|
|
21
29
|
props: {
|
|
22
30
|
modelValue: {
|
|
23
31
|
type: Boolean,
|
|
24
|
-
default:
|
|
32
|
+
default: false
|
|
25
33
|
},
|
|
26
34
|
hasMore: {
|
|
27
35
|
type: Boolean,
|
|
28
|
-
default:
|
|
36
|
+
default: true
|
|
29
37
|
},
|
|
30
38
|
threshold: {
|
|
31
39
|
type: Number,
|
|
@@ -41,94 +49,139 @@ const { componentName: Z, create: ee, translate: oe } = J("infinite-loading"), t
|
|
|
41
49
|
},
|
|
42
50
|
useCapture: {
|
|
43
51
|
type: Boolean,
|
|
44
|
-
default:
|
|
52
|
+
default: false
|
|
45
53
|
}
|
|
46
54
|
},
|
|
47
55
|
emits: ["scroll-change", "load-more", "update:modelValue"],
|
|
48
56
|
components: {
|
|
49
|
-
Loading
|
|
57
|
+
Loading
|
|
50
58
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const
|
|
59
|
+
setup(props, { emit, slots }) {
|
|
60
|
+
const scroller = ref();
|
|
61
|
+
const scrollParent = useScrollParent(scroller);
|
|
62
|
+
const state = reactive({
|
|
53
63
|
beforeScrollTop: 0,
|
|
54
|
-
isInfiniting:
|
|
64
|
+
isInfiniting: false,
|
|
55
65
|
y: 0,
|
|
56
66
|
x: 0,
|
|
57
67
|
distance: 0
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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";
|
|
65
95
|
} else {
|
|
66
|
-
|
|
67
|
-
n = r - V - h, a = h;
|
|
96
|
+
direction = "down";
|
|
68
97
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
+
}
|
|
75
111
|
});
|
|
76
|
-
}, _ = () => {
|
|
77
|
-
l.value && l.value.addEventListener("scroll", v, e.useCapture);
|
|
78
|
-
}, g = () => {
|
|
79
|
-
l.value && l.value.removeEventListener("scroll", v, e.useCapture);
|
|
80
112
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
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();
|
|
85
121
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
n || (s.isInfiniting = !1);
|
|
122
|
+
onUnmounted(() => {
|
|
123
|
+
removeScrollListener();
|
|
124
|
+
});
|
|
125
|
+
const isKeepAlive = ref(false);
|
|
126
|
+
onActivated(() => {
|
|
127
|
+
if (isKeepAlive.value) {
|
|
128
|
+
isKeepAlive.value = false;
|
|
129
|
+
scrollListener();
|
|
95
130
|
}
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
|
102
150
|
});
|
|
103
151
|
}
|
|
104
|
-
})
|
|
152
|
+
});
|
|
153
|
+
const _hoisted_1 = { class: "nut-infinite__container" };
|
|
154
|
+
const _hoisted_2 = { class: "nut-infinite__bottom" };
|
|
155
|
+
const _hoisted_3 = {
|
|
105
156
|
key: 0,
|
|
106
157
|
class: "nut-infinite__bottom-box"
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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),
|
|
112
165
|
ref: "scroller"
|
|
113
166
|
}, [
|
|
114
|
-
|
|
115
|
-
|
|
167
|
+
createElementVNode("view", _hoisted_1, [
|
|
168
|
+
renderSlot(_ctx.$slots, "default")
|
|
116
169
|
]),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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" })
|
|
122
175
|
]),
|
|
123
|
-
|
|
176
|
+
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
124
177
|
])
|
|
125
|
-
])) :
|
|
126
|
-
|
|
127
|
-
])
|
|
178
|
+
])) : !_ctx.hasMore ? renderSlot(_ctx.$slots, "finished", { key: 1 }, () => [
|
|
179
|
+
createElementVNode("view", _hoisted_5, toDisplayString(_ctx.loadMoreTxt || _ctx.translate("loadMoreTxt")), 1)
|
|
180
|
+
]) : createCommentVNode("", true)
|
|
128
181
|
])
|
|
129
182
|
], 2);
|
|
130
183
|
}
|
|
131
|
-
const
|
|
184
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
132
185
|
export {
|
|
133
|
-
|
|
186
|
+
index as default
|
|
134
187
|
};
|