@huyooo/ui 0.4.16 → 0.4.18

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.
@@ -1,66 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- import { defineComponent as c, ref as m, createElementBlock as i, openBlock as n, createCommentVNode as d, createVNode as r, unref as a } from "vue";
4
- import { Spin as h, Empty as p } from "@arco-design/web-vue";
5
- import { useIntersectionObserver as u } from "@vueuse/core";
6
- import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const y = {
8
- key: 0,
9
- class: "loading"
10
- }, x = {
11
- key: 1,
12
- class: "none"
13
- }, T = /* @__PURE__ */ c({
14
- __name: "InfiniteLoading",
15
- props: {
16
- loading: {
17
- type: Boolean,
18
- default: !1
19
- },
20
- finished: {
21
- type: Boolean,
22
- default: !1
23
- },
24
- loadingText: {
25
- type: String,
26
- default: "数据加载中..."
27
- },
28
- finishedText: {
29
- type: String,
30
- default: "亲,没有更多了!"
31
- },
32
- showFinishedText: {
33
- type: Boolean,
34
- default: !0
35
- },
36
- threshold: {
37
- type: Number,
38
- default: 0
39
- }
40
- },
41
- emits: ["infinite"],
42
- setup(e, {
43
- emit: l
44
- }) {
45
- const t = e, f = l, o = m(null);
46
- return u(o, ([{
47
- isIntersecting: s
48
- }]) => {
49
- s && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
50
- !t.loading && !t.finished && f("infinite");
51
- }, {
52
- threshold: t.threshold
53
- }), (s, _) => (n(), i("div", {
54
- ref_key: "container",
55
- ref: o,
56
- class: "infinite-loading"
57
- }, [e.loading ? (n(), i("div", y, [r(a(h), {
58
- tip: e.loadingText
59
- }, null, 8, ["tip"])])) : d("", !0), e.finished && e.showFinishedText ? (n(), i("div", x, [r(a(p), {
60
- description: e.finishedText
61
- }, null, 8, ["description"])])) : d("", !0)], 512));
62
- }
63
- }), S = /* @__PURE__ */ g(T, [["__scopeId", "data-v-b513f798"]]);
64
- export {
65
- S as I
66
- };