@huyooo/ui 0.6.0 → 0.6.1
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/CustomTable-BCOwLyRJ.js +271 -0
- package/dist/{FeedbackItem-B9lo9J0G.js → FeedbackItem-3RVUHPP1.js} +1 -1
- package/dist/{FeedbackModal-DWJmFtvY.js → FeedbackModal-CK9JVDXg.js} +1 -1
- package/dist/{PaySubscriptions-Vj0KnZGv.js → PaySubscriptions-C9LA8ZeX.js} +1 -1
- package/dist/{ReferrerReferees-D8hYkkAy.js → ReferrerReferees-CnYkGC5r.js} +1 -1
- package/dist/{UserAccountMenu-DqwouFOD.js → UserAccountMenu-BzV2mkj3.js} +3 -3
- package/dist/{WidthContainer-CD44QZfP.js → WidthContainer-BKpO4rRH.js} +2 -2
- package/dist/common.js +2 -2
- package/dist/components/CustomTable.vue.d.ts +49 -0
- package/dist/feedback.js +2 -2
- package/dist/index.js +7 -7
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/CustomTable-B8i1SbFB.js +0 -202
package/dist/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { defineComponent as q, ref as S, computed as N, onMounted as A, nextTick as W, watch as H, onBeforeUnmount as U, createElementBlock as i, openBlock as n, normalizeStyle as w, normalizeClass as C, renderSlot as M, createVNode as x, unref as l, withCtx as z, createElementVNode as c, createCommentVNode as b, Fragment as g, renderList as k, toDisplayString as E, createBlock as $, createTextVNode as D, useSlots as F } from "vue";
|
|
8
|
-
import { Spin as K, Tooltip as O, Empty as R, Pagination as G } from "@arco-design/web-vue";
|
|
9
|
-
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { g as L, a as B } from "./index-Bb-d5pBq.js";
|
|
11
|
-
const Q = /* @__PURE__ */ q({
|
|
12
|
-
__name: "Ellipsis",
|
|
13
|
-
props: {
|
|
14
|
-
open: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
required: !1,
|
|
17
|
-
default: () => !0
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(v) {
|
|
21
|
-
const f = v, t = S(null), r = S(0), h = N(() => {
|
|
22
|
-
var y, _;
|
|
23
|
-
if (!f.open || r.value === 0)
|
|
24
|
-
return {};
|
|
25
|
-
const s = (_ = (y = t.value) == null ? void 0 : y.parentElement) == null ? void 0 : _.style.width;
|
|
26
|
-
return s && s !== "auto" ? {
|
|
27
|
-
width: s
|
|
28
|
-
} : {
|
|
29
|
-
width: `${r.value}px`
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
function m() {
|
|
33
|
-
t.value && f.open && W(() => {
|
|
34
|
-
t.value && (r.value = t.value.clientWidth);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function u() {
|
|
38
|
-
m();
|
|
39
|
-
}
|
|
40
|
-
return A(() => {
|
|
41
|
-
f.open && W(() => {
|
|
42
|
-
m(), window.addEventListener("resize", u);
|
|
43
|
-
});
|
|
44
|
-
}), H(() => f.open, (s) => {
|
|
45
|
-
s ? (m(), window.addEventListener("resize", u)) : window.removeEventListener("resize", u);
|
|
46
|
-
}), U(() => {
|
|
47
|
-
window.removeEventListener("resize", u);
|
|
48
|
-
}), (s, y) => (n(), i("div", {
|
|
49
|
-
ref_key: "ellipsisContainer",
|
|
50
|
-
ref: t,
|
|
51
|
-
class: C({
|
|
52
|
-
ellipsis: v.open
|
|
53
|
-
}),
|
|
54
|
-
style: w(v.open ? h.value : {})
|
|
55
|
-
}, [M(s.$slots, "default", {}, void 0, !0)], 6));
|
|
56
|
-
}
|
|
57
|
-
}), X = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-4874d041"]]), Y = {
|
|
58
|
-
class: "CubeTableCom"
|
|
59
|
-
}, Z = {
|
|
60
|
-
class: "tableContain"
|
|
61
|
-
}, I = {
|
|
62
|
-
class: "table-header"
|
|
63
|
-
}, ee = {
|
|
64
|
-
class: "table-body"
|
|
65
|
-
}, te = ["onMouseenter", "onMouseleave"], ne = {
|
|
66
|
-
style: {
|
|
67
|
-
width: "100%",
|
|
68
|
-
overflow: "hidden"
|
|
69
|
-
}
|
|
70
|
-
}, oe = {
|
|
71
|
-
key: 0,
|
|
72
|
-
class: "contain"
|
|
73
|
-
}, ie = {
|
|
74
|
-
class: "pagination"
|
|
75
|
-
}, ae = /* @__PURE__ */ q({
|
|
76
|
-
__name: "CustomTable",
|
|
77
|
-
props: {
|
|
78
|
-
loading: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
required: !1,
|
|
81
|
-
default: () => !1
|
|
82
|
-
},
|
|
83
|
-
bordered: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
required: !1,
|
|
86
|
-
default: () => !0
|
|
87
|
-
},
|
|
88
|
-
data: {
|
|
89
|
-
type: Array,
|
|
90
|
-
required: !0
|
|
91
|
-
},
|
|
92
|
-
pagination: {
|
|
93
|
-
type: Object,
|
|
94
|
-
required: !1,
|
|
95
|
-
default: () => null
|
|
96
|
-
},
|
|
97
|
-
columns: {
|
|
98
|
-
type: Array,
|
|
99
|
-
required: !0
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
emits: ["mouseenter", "mouseleave", "pageChange", "pageSizeChange"],
|
|
103
|
-
setup(v, {
|
|
104
|
-
emit: f
|
|
105
|
-
}) {
|
|
106
|
-
const t = v, r = f, h = S(-1), m = N(() => t.columns.map((e) => e.width ? `${e.width}px` : e.minWidth ? `minmax(${e.minWidth}px, 1fr)` : "1fr").join(" "));
|
|
107
|
-
function u(e) {
|
|
108
|
-
const p = {};
|
|
109
|
-
return e.maxWidth && (p.maxWidth = `${e.maxWidth}px`), p;
|
|
110
|
-
}
|
|
111
|
-
function s(e) {
|
|
112
|
-
console.log(e, "currentPage"), r("pageChange", e);
|
|
113
|
-
}
|
|
114
|
-
function y(e) {
|
|
115
|
-
console.log(e, "pageSize"), r("pageSizeChange", e);
|
|
116
|
-
}
|
|
117
|
-
function _(e) {
|
|
118
|
-
const p = F();
|
|
119
|
-
return e ? !!p[e] : !1;
|
|
120
|
-
}
|
|
121
|
-
function J(e) {
|
|
122
|
-
h.value = e, r("mouseenter", e);
|
|
123
|
-
}
|
|
124
|
-
function j(e) {
|
|
125
|
-
h.value = -1, r("mouseleave", e);
|
|
126
|
-
}
|
|
127
|
-
return (e, p) => (n(), i("div", Y, [x(l(K), {
|
|
128
|
-
loading: t.loading,
|
|
129
|
-
tip: "数据加载中"
|
|
130
|
-
}, {
|
|
131
|
-
default: z(() => {
|
|
132
|
-
var T;
|
|
133
|
-
return [c("div", Z, [c("div", {
|
|
134
|
-
class: "flex-table",
|
|
135
|
-
style: w({
|
|
136
|
-
"grid-template-columns": m.value
|
|
137
|
-
})
|
|
138
|
-
}, [c("div", I, [(n(!0), i(g, null, k(t.columns, (a, d) => (n(), i("div", {
|
|
139
|
-
key: d,
|
|
140
|
-
class: C(["header-cell", {
|
|
141
|
-
fixed: a.fixed,
|
|
142
|
-
fixedBackground: a.fixed,
|
|
143
|
-
lastBorder: d === t.columns.length - 1
|
|
144
|
-
}]),
|
|
145
|
-
style: w(u(a))
|
|
146
|
-
}, E(a.title), 7))), 128))]), c("div", ee, [(n(!0), i(g, null, k(t.data, (a, d) => (n(), i("div", {
|
|
147
|
-
key: d,
|
|
148
|
-
class: C(["table-row", {
|
|
149
|
-
trListHover: d === h.value
|
|
150
|
-
}]),
|
|
151
|
-
onMouseenter: (o) => J(d),
|
|
152
|
-
onMouseleave: (o) => j(d)
|
|
153
|
-
}, [(n(!0), i(g, null, k(t.columns, (o, V) => (n(), i("div", {
|
|
154
|
-
key: V,
|
|
155
|
-
class: C(["body-cell", {
|
|
156
|
-
fixed: o.fixed,
|
|
157
|
-
trListHover: d === h.value,
|
|
158
|
-
lastBorder: V === t.columns.length - 1
|
|
159
|
-
}]),
|
|
160
|
-
style: w(u(o))
|
|
161
|
-
}, [c("div", ne, [x(X, {
|
|
162
|
-
open: o.ellipsis
|
|
163
|
-
}, {
|
|
164
|
-
default: z(() => [_(o.slotName) ? M(e.$slots, o.slotName, {
|
|
165
|
-
key: 0,
|
|
166
|
-
record: a
|
|
167
|
-
}, void 0, !0) : (n(), i(g, {
|
|
168
|
-
key: 1
|
|
169
|
-
}, [o.dataIndex ? (n(), i(g, {
|
|
170
|
-
key: 0
|
|
171
|
-
}, [o.tooltip ? (n(), $(l(O), {
|
|
172
|
-
key: 0,
|
|
173
|
-
content: l(L)(l(B)(a, o.dataIndex)),
|
|
174
|
-
position: "bottom"
|
|
175
|
-
}, {
|
|
176
|
-
default: z(() => [c("span", null, E(l(B)(a, o.dataIndex)), 1)]),
|
|
177
|
-
_: 2
|
|
178
|
-
}, 1032, ["content"])) : (n(), i(g, {
|
|
179
|
-
key: 1
|
|
180
|
-
}, [D(E(l(L)(l(B)(a, o.dataIndex))), 1)], 64))], 64)) : b("", !0)], 64))]),
|
|
181
|
-
_: 2
|
|
182
|
-
}, 1032, ["open"])])], 6))), 128))], 42, te))), 128))])], 4), t.data.length === 0 ? (n(), i("div", oe, [x(l(R))])) : b("", !0)]), c("div", ie, [t.pagination ? (n(), $(l(G), {
|
|
183
|
-
key: 0,
|
|
184
|
-
modelValue: t.pagination.current,
|
|
185
|
-
"onUpdate:modelValue": p[0] || (p[0] = (a) => t.pagination.current = a),
|
|
186
|
-
total: ((T = t.pagination) == null ? void 0 : T.total) || 0,
|
|
187
|
-
pageSize: t.pagination.pageSize,
|
|
188
|
-
showTotal: t.pagination.showTotal,
|
|
189
|
-
showJumper: t.pagination.showJumper,
|
|
190
|
-
showPageSize: t.pagination.showPageSize,
|
|
191
|
-
onChange: s,
|
|
192
|
-
onPageSizeChange: y
|
|
193
|
-
}, null, 8, ["modelValue", "total", "pageSize", "showTotal", "showJumper", "showPageSize"])) : b("", !0)])];
|
|
194
|
-
}),
|
|
195
|
-
_: 3
|
|
196
|
-
}, 8, ["loading"])]));
|
|
197
|
-
}
|
|
198
|
-
}), ve = /* @__PURE__ */ P(ae, [["__scopeId", "data-v-0eab51b1"]]);
|
|
199
|
-
export {
|
|
200
|
-
ve as C,
|
|
201
|
-
X as E
|
|
202
|
-
};
|