@antdv-vue/pro-skeleton 0.0.0-stage → 1.0.3
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 +25 -0
- package/README.md +4 -2
- package/dist/Skeleton.d.ts +18 -0
- package/dist/Skeleton.js +57 -0
- package/dist/components/Descriptions/DescriptionsItem.d.ts +13 -0
- package/dist/components/Descriptions/DescriptionsItem.js +73 -0
- package/dist/components/Descriptions/DescriptionsLargeItem.d.ts +12 -0
- package/dist/components/Descriptions/DescriptionsLargeItem.js +66 -0
- package/dist/components/Descriptions/Table.d.ts +13 -0
- package/dist/components/Descriptions/Table.js +57 -0
- package/dist/components/Descriptions/TableItem.d.ts +13 -0
- package/dist/components/Descriptions/TableItem.js +76 -0
- package/dist/components/Descriptions/index.d.ts +18 -0
- package/dist/components/Descriptions/index.js +64 -0
- package/dist/components/List/Statistic.d.ts +21 -0
- package/dist/components/List/Statistic.js +78 -0
- package/dist/components/List/index.d.ts +46 -0
- package/dist/components/List/index.js +167 -0
- package/dist/components/Result/index.d.ts +13 -0
- package/dist/components/Result/index.js +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/pro-skeleton.esm.js +571 -0
- package/package.json +59 -3
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createVNode as n, defineComponent as r } from "vue";
|
|
2
|
+
import { Card as i, Divider as a, Skeleton as o, SkeletonAvatar as s, SkeletonButton as c, Space as l, useBreakpoint as u } from "antdv-next";
|
|
3
|
+
import { unit as d } from "@antdv-next/cssinjs";
|
|
4
|
+
// src/components/List/Statistic.tsx
|
|
5
|
+
var f = {
|
|
6
|
+
xs: 2,
|
|
7
|
+
sm: 2,
|
|
8
|
+
md: 4,
|
|
9
|
+
lg: 4,
|
|
10
|
+
xl: 6,
|
|
11
|
+
xxl: 6
|
|
12
|
+
}, p = /* @__PURE__ */ r((e, { expose: r }) => {
|
|
13
|
+
let a = t(() => ({
|
|
14
|
+
lg: !0,
|
|
15
|
+
md: !0,
|
|
16
|
+
sm: !1,
|
|
17
|
+
xl: !1,
|
|
18
|
+
xs: !1,
|
|
19
|
+
xxl: !1
|
|
20
|
+
})), s = u(), l = t(() => s.value || a.value), d = t(() => Object.keys(l.value).filter((e) => l.value?.[e] === !0)[0] || "md"), p = t(() => e.size === void 0 ? f[d.value] || 6 : e.size), m = (e) => e === 0 ? 0 : p.value > 2 ? 42 : 16;
|
|
21
|
+
return r({}), () => {
|
|
22
|
+
let { active: t } = e;
|
|
23
|
+
return n(i, {
|
|
24
|
+
variant: "borderless",
|
|
25
|
+
styles: { root: { marginBlockEnd: "16px" } }
|
|
26
|
+
}, { default: () => [n("div", { style: {
|
|
27
|
+
width: "100%",
|
|
28
|
+
justifyContent: "space-between",
|
|
29
|
+
display: "flex"
|
|
30
|
+
} }, [Array.from({ length: p.value }).fill(null).map((e, r) => n("div", {
|
|
31
|
+
key: r,
|
|
32
|
+
style: {
|
|
33
|
+
borderInlineStart: p.value > 2 && r === 1 ? "1px solid rgba(0,0,0,0.06)" : void 0,
|
|
34
|
+
paddingInlineStart: m(r),
|
|
35
|
+
flex: 1,
|
|
36
|
+
marginInlineEnd: r === 0 ? "16px" : 0
|
|
37
|
+
}
|
|
38
|
+
}, [n(o, {
|
|
39
|
+
active: t,
|
|
40
|
+
paragraph: !1,
|
|
41
|
+
title: {
|
|
42
|
+
width: "100px",
|
|
43
|
+
style: { marginBlockStart: 0 }
|
|
44
|
+
}
|
|
45
|
+
}, null), n(c, {
|
|
46
|
+
active: t,
|
|
47
|
+
style: { height: "48px" }
|
|
48
|
+
}, null)]))])] });
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
props: {
|
|
52
|
+
size: {
|
|
53
|
+
type: Number,
|
|
54
|
+
required: !1
|
|
55
|
+
},
|
|
56
|
+
active: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
required: !1,
|
|
59
|
+
default: void 0
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
name: "StatisticSkeleton",
|
|
63
|
+
inheritAttrs: !1
|
|
64
|
+
}), m = ({ padding: e }) => n("div", { style: { padding: d(e || "") || "0 24px" } }, [n(a, { style: { margin: 0 } }, null)]), h = ({ active: t }) => n(e, null, [n(i, {
|
|
65
|
+
variant: "borderless",
|
|
66
|
+
styles: {
|
|
67
|
+
root: { borderRadius: 0 },
|
|
68
|
+
body: { padding: "24px" }
|
|
69
|
+
}
|
|
70
|
+
}, { default: () => [n("div", { style: {
|
|
71
|
+
width: "100%",
|
|
72
|
+
display: "flex",
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
justifyContent: "space-between"
|
|
75
|
+
} }, [n("div", { style: {
|
|
76
|
+
maxWidth: "100%",
|
|
77
|
+
flex: 1
|
|
78
|
+
} }, [n(o, {
|
|
79
|
+
active: t,
|
|
80
|
+
title: {
|
|
81
|
+
width: "100px",
|
|
82
|
+
style: { marginBlockStart: 0 }
|
|
83
|
+
},
|
|
84
|
+
paragraph: {
|
|
85
|
+
rows: 1,
|
|
86
|
+
style: { margin: 0 }
|
|
87
|
+
}
|
|
88
|
+
}, null)]), n(o.Button, {
|
|
89
|
+
active: t,
|
|
90
|
+
size: "small",
|
|
91
|
+
style: {
|
|
92
|
+
width: "165px",
|
|
93
|
+
marginBlockStart: "12px"
|
|
94
|
+
}
|
|
95
|
+
}, null)])] }), n(m, null, null)]), g = ({ size: e, active: t = !0, actionButton: r }) => n(i, {
|
|
96
|
+
variant: "borderless",
|
|
97
|
+
styles: { body: { padding: 0 } }
|
|
98
|
+
}, { default: () => [Array.from({ length: e }).fill(null).map((e, r) => n(h, {
|
|
99
|
+
key: r,
|
|
100
|
+
active: !!t
|
|
101
|
+
}, null)), r !== !1 && n(i, {
|
|
102
|
+
variant: "borderless",
|
|
103
|
+
styles: {
|
|
104
|
+
root: {
|
|
105
|
+
borderStartEndRadius: 0,
|
|
106
|
+
borderTopLeftRadius: 0
|
|
107
|
+
},
|
|
108
|
+
body: {
|
|
109
|
+
display: "flex",
|
|
110
|
+
alignItems: "center",
|
|
111
|
+
justifyContent: "center"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}, { default: () => [n(c, {
|
|
115
|
+
style: { width: "102px" },
|
|
116
|
+
active: t,
|
|
117
|
+
size: "small"
|
|
118
|
+
}, null)] })] }), _ = ({ active: e }) => n("div", { style: { marginBlockEnd: "16px" } }, [n(o, {
|
|
119
|
+
paragraph: !1,
|
|
120
|
+
title: { width: "185px" }
|
|
121
|
+
}, null), n(c, {
|
|
122
|
+
active: e,
|
|
123
|
+
size: "small"
|
|
124
|
+
}, null)]), v = ({ active: e }) => n(i, {
|
|
125
|
+
variant: "borderless",
|
|
126
|
+
styles: {
|
|
127
|
+
root: {
|
|
128
|
+
borderBottomRightRadius: 0,
|
|
129
|
+
borderBottomLeftRadius: 0
|
|
130
|
+
},
|
|
131
|
+
body: { paddingBlockEnd: "8px" }
|
|
132
|
+
}
|
|
133
|
+
}, { default: () => [n(l, { style: {
|
|
134
|
+
width: "100%",
|
|
135
|
+
justifyContent: "space-between"
|
|
136
|
+
} }, { default: () => [n(c, {
|
|
137
|
+
active: e,
|
|
138
|
+
style: { width: "200px" },
|
|
139
|
+
size: "small"
|
|
140
|
+
}, null), n(l, null, { default: () => [n(c, {
|
|
141
|
+
active: e,
|
|
142
|
+
size: "small",
|
|
143
|
+
style: { width: "120px" }
|
|
144
|
+
}, null), n(c, {
|
|
145
|
+
active: e,
|
|
146
|
+
size: "small",
|
|
147
|
+
style: { width: "80px" }
|
|
148
|
+
}, null)] })] })] }), y = /* @__PURE__ */ r((e, { expose: t }) => (t({}), () => {
|
|
149
|
+
let { active: t = !0, statistic: r, actionButton: a, toolbar: o, pageHeader: s, list: c = 5 } = e;
|
|
150
|
+
return n("div", { style: { width: "100%" } }, [
|
|
151
|
+
s !== !1 && n(_, { active: t }, null),
|
|
152
|
+
r !== !1 && n(p, {
|
|
153
|
+
size: r,
|
|
154
|
+
active: t
|
|
155
|
+
}, null),
|
|
156
|
+
(o !== !1 || c !== !1) && n(i, {
|
|
157
|
+
variant: "borderless",
|
|
158
|
+
styles: { body: { padding: 0 } }
|
|
159
|
+
}, { default: () => [o !== !1 && n(v, { active: t }, null), c !== !1 && n(g, {
|
|
160
|
+
size: c,
|
|
161
|
+
active: t,
|
|
162
|
+
actionButton: a
|
|
163
|
+
}, null)] })
|
|
164
|
+
]);
|
|
165
|
+
}), {
|
|
166
|
+
props: {
|
|
167
|
+
active: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
required: !1,
|
|
170
|
+
default: void 0
|
|
171
|
+
},
|
|
172
|
+
pageHeader: {
|
|
173
|
+
type: Boolean,
|
|
174
|
+
required: !1,
|
|
175
|
+
default: void 0
|
|
176
|
+
},
|
|
177
|
+
statistic: {
|
|
178
|
+
type: [Number, Boolean],
|
|
179
|
+
required: !1,
|
|
180
|
+
default: void 0
|
|
181
|
+
},
|
|
182
|
+
actionButton: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
required: !1,
|
|
185
|
+
default: void 0
|
|
186
|
+
},
|
|
187
|
+
toolbar: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
required: !1,
|
|
190
|
+
default: void 0
|
|
191
|
+
},
|
|
192
|
+
list: {
|
|
193
|
+
type: [Number, Boolean],
|
|
194
|
+
required: !1,
|
|
195
|
+
default: void 0
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
name: "ListPageSkeleton",
|
|
199
|
+
inheritAttrs: !1
|
|
200
|
+
}), b = {
|
|
201
|
+
xs: 1,
|
|
202
|
+
sm: 2,
|
|
203
|
+
md: 3,
|
|
204
|
+
lg: 3,
|
|
205
|
+
xl: 3,
|
|
206
|
+
xxl: 4
|
|
207
|
+
}, x = /* @__PURE__ */ r((e, { expose: r }) => {
|
|
208
|
+
let i = t(() => ({
|
|
209
|
+
lg: !0,
|
|
210
|
+
md: !0,
|
|
211
|
+
sm: !1,
|
|
212
|
+
xl: !1,
|
|
213
|
+
xs: !1,
|
|
214
|
+
xxl: !1
|
|
215
|
+
})), a = u();
|
|
216
|
+
return r({}), () => {
|
|
217
|
+
let { size: t, active: r } = e, s = a || i, c = Object.keys(s.value || {}).filter((e) => s.value?.[e] === !0)[0] || "md", l = t === void 0 ? b[c] || 3 : t;
|
|
218
|
+
return n("div", { style: {
|
|
219
|
+
width: "100%",
|
|
220
|
+
justifyContent: "space-between",
|
|
221
|
+
display: "flex"
|
|
222
|
+
} }, [Array.from({ length: l }).fill(null).map((e, t) => n("div", {
|
|
223
|
+
key: t,
|
|
224
|
+
style: {
|
|
225
|
+
flex: 1,
|
|
226
|
+
paddingInlineStart: t === 0 ? 0 : "24px",
|
|
227
|
+
paddingInlineEnd: t === l - 1 ? 0 : "24px"
|
|
228
|
+
}
|
|
229
|
+
}, [
|
|
230
|
+
n(o, {
|
|
231
|
+
active: r,
|
|
232
|
+
paragraph: !1,
|
|
233
|
+
title: { style: { marginBlockStart: 0 } }
|
|
234
|
+
}, null),
|
|
235
|
+
n(o, {
|
|
236
|
+
active: r,
|
|
237
|
+
paragraph: !1,
|
|
238
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
239
|
+
}, null),
|
|
240
|
+
n(o, {
|
|
241
|
+
active: r,
|
|
242
|
+
paragraph: !1,
|
|
243
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
244
|
+
}, null)
|
|
245
|
+
]))]);
|
|
246
|
+
};
|
|
247
|
+
}, {
|
|
248
|
+
props: {
|
|
249
|
+
size: {
|
|
250
|
+
type: Number,
|
|
251
|
+
required: !1
|
|
252
|
+
},
|
|
253
|
+
active: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
required: !1,
|
|
256
|
+
default: void 0
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
name: "DescriptionsItemSkeleton",
|
|
260
|
+
inheritAttrs: !1
|
|
261
|
+
}), S = /* @__PURE__ */ r((e, { expose: t }) => (t({}), () => {
|
|
262
|
+
let { active: t } = e;
|
|
263
|
+
return n("div", { style: { marginBlockStart: "32px" } }, [n(c, {
|
|
264
|
+
active: t,
|
|
265
|
+
size: "small",
|
|
266
|
+
style: {
|
|
267
|
+
width: "100px",
|
|
268
|
+
marginBlockEnd: "16px"
|
|
269
|
+
}
|
|
270
|
+
}, null), n("div", { style: {
|
|
271
|
+
width: "100%",
|
|
272
|
+
justifyContent: "space-between",
|
|
273
|
+
display: "flex"
|
|
274
|
+
} }, [n("div", { style: {
|
|
275
|
+
flex: 1,
|
|
276
|
+
marginInlineEnd: "24px",
|
|
277
|
+
maxWidth: "300px"
|
|
278
|
+
} }, [
|
|
279
|
+
n(o, {
|
|
280
|
+
active: t,
|
|
281
|
+
paragraph: !1,
|
|
282
|
+
title: { style: { marginBlockStart: 0 } }
|
|
283
|
+
}, null),
|
|
284
|
+
n(o, {
|
|
285
|
+
active: t,
|
|
286
|
+
paragraph: !1,
|
|
287
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
288
|
+
}, null),
|
|
289
|
+
n(o, {
|
|
290
|
+
active: t,
|
|
291
|
+
paragraph: !1,
|
|
292
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
293
|
+
}, null)
|
|
294
|
+
]), n("div", { style: {
|
|
295
|
+
flex: 1,
|
|
296
|
+
alignItems: "center",
|
|
297
|
+
justifyContent: "center"
|
|
298
|
+
} }, [n("div", { style: {
|
|
299
|
+
maxWidth: "300px",
|
|
300
|
+
margin: "auto"
|
|
301
|
+
} }, [n(o, {
|
|
302
|
+
active: t,
|
|
303
|
+
paragraph: !1,
|
|
304
|
+
title: { style: { marginBlockStart: 0 } }
|
|
305
|
+
}, null), n(o, {
|
|
306
|
+
active: t,
|
|
307
|
+
paragraph: !1,
|
|
308
|
+
title: { style: { marginBlockStart: "8px" } }
|
|
309
|
+
}, null)])])])]);
|
|
310
|
+
}), {
|
|
311
|
+
props: { active: {
|
|
312
|
+
type: Boolean,
|
|
313
|
+
required: !1,
|
|
314
|
+
default: void 0
|
|
315
|
+
} },
|
|
316
|
+
name: "DescriptionsLargeItemSkeleton",
|
|
317
|
+
inheritAttrs: !1
|
|
318
|
+
}), C = {
|
|
319
|
+
xs: 1,
|
|
320
|
+
sm: 2,
|
|
321
|
+
md: 3,
|
|
322
|
+
lg: 3,
|
|
323
|
+
xl: 3,
|
|
324
|
+
xxl: 4
|
|
325
|
+
}, w = /* @__PURE__ */ r((r, { expose: i }) => {
|
|
326
|
+
let a = t(() => ({
|
|
327
|
+
lg: !0,
|
|
328
|
+
md: !0,
|
|
329
|
+
sm: !1,
|
|
330
|
+
xl: !1,
|
|
331
|
+
xs: !1,
|
|
332
|
+
xxl: !1
|
|
333
|
+
})), s = u();
|
|
334
|
+
return i({}), () => {
|
|
335
|
+
let { active: t, header: i = !1 } = r, c = s || a, l = C[Object.keys(c.value || {}).filter((e) => c.value?.[e] === !0)[0] || "md"] || 3;
|
|
336
|
+
return n(e, null, [n("div", { style: {
|
|
337
|
+
display: "flex",
|
|
338
|
+
background: i ? "rgba(0,0,0,0.02)" : "none",
|
|
339
|
+
padding: "24px 8px"
|
|
340
|
+
} }, [Array.from({ length: l }).fill(null).map((e, r) => n("div", {
|
|
341
|
+
key: r,
|
|
342
|
+
style: {
|
|
343
|
+
flex: 1,
|
|
344
|
+
paddingInlineStart: i && r === 0 ? 0 : "20px",
|
|
345
|
+
paddingInlineEnd: "32px"
|
|
346
|
+
}
|
|
347
|
+
}, [n(o, {
|
|
348
|
+
active: t,
|
|
349
|
+
paragraph: !1,
|
|
350
|
+
title: { style: {
|
|
351
|
+
margin: 0,
|
|
352
|
+
height: "24px",
|
|
353
|
+
width: i ? "75px" : "100%"
|
|
354
|
+
} }
|
|
355
|
+
}, null)])), n("div", { style: {
|
|
356
|
+
flex: 3,
|
|
357
|
+
paddingInlineStart: "32px"
|
|
358
|
+
} }, [n(o, {
|
|
359
|
+
active: t,
|
|
360
|
+
paragraph: !1,
|
|
361
|
+
title: { style: {
|
|
362
|
+
margin: 0,
|
|
363
|
+
height: "24px",
|
|
364
|
+
width: i ? "75px" : "100%"
|
|
365
|
+
} }
|
|
366
|
+
}, null)])]), n(m, { padding: "0px 0px" }, null)]);
|
|
367
|
+
};
|
|
368
|
+
}, {
|
|
369
|
+
props: {
|
|
370
|
+
active: {
|
|
371
|
+
type: Boolean,
|
|
372
|
+
required: !0
|
|
373
|
+
},
|
|
374
|
+
header: {
|
|
375
|
+
type: Boolean,
|
|
376
|
+
required: !1,
|
|
377
|
+
default: void 0
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
name: "TableItemSkeleton",
|
|
381
|
+
inheritAttrs: !1
|
|
382
|
+
}), T = /* @__PURE__ */ r((e, { expose: t }) => (t({}), () => {
|
|
383
|
+
let { active: t, size: r = 4 } = e;
|
|
384
|
+
return n(i, { variant: "borderless" }, { default: () => [
|
|
385
|
+
n(c, {
|
|
386
|
+
active: t,
|
|
387
|
+
size: "small",
|
|
388
|
+
style: {
|
|
389
|
+
width: "100px",
|
|
390
|
+
marginBlockEnd: "16px"
|
|
391
|
+
}
|
|
392
|
+
}, null),
|
|
393
|
+
n(w, {
|
|
394
|
+
header: !0,
|
|
395
|
+
active: t
|
|
396
|
+
}, null),
|
|
397
|
+
Array.from({ length: r }).fill(null).map((e, r) => n(w, {
|
|
398
|
+
key: r,
|
|
399
|
+
active: t
|
|
400
|
+
}, null)),
|
|
401
|
+
n("div", { style: {
|
|
402
|
+
display: "flex",
|
|
403
|
+
justifyContent: "flex-end",
|
|
404
|
+
paddingBlockStart: "16px"
|
|
405
|
+
} }, [n(o, {
|
|
406
|
+
active: t,
|
|
407
|
+
paragraph: !1,
|
|
408
|
+
title: { style: {
|
|
409
|
+
margin: 0,
|
|
410
|
+
height: "32px",
|
|
411
|
+
float: "right",
|
|
412
|
+
maxWidth: "630px"
|
|
413
|
+
} }
|
|
414
|
+
}, null)])
|
|
415
|
+
] });
|
|
416
|
+
}), {
|
|
417
|
+
props: {
|
|
418
|
+
active: {
|
|
419
|
+
type: Boolean,
|
|
420
|
+
required: !0
|
|
421
|
+
},
|
|
422
|
+
size: {
|
|
423
|
+
type: Number,
|
|
424
|
+
required: !1
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
name: "TableSkeleton",
|
|
428
|
+
inheritAttrs: !1
|
|
429
|
+
}), E = ({ active: e }) => n(i, {
|
|
430
|
+
variant: "borderless",
|
|
431
|
+
style: {
|
|
432
|
+
borderStartEndRadius: 0,
|
|
433
|
+
borderTopLeftRadius: 0
|
|
434
|
+
}
|
|
435
|
+
}, { default: () => [
|
|
436
|
+
n(c, {
|
|
437
|
+
active: e,
|
|
438
|
+
size: "small",
|
|
439
|
+
style: {
|
|
440
|
+
width: "100px",
|
|
441
|
+
marginBlockEnd: "16px"
|
|
442
|
+
}
|
|
443
|
+
}, null),
|
|
444
|
+
n(x, { active: e }, null),
|
|
445
|
+
n(S, { active: e }, null)
|
|
446
|
+
] }), D = /* @__PURE__ */ r((e, { expose: t }) => (t({}), () => {
|
|
447
|
+
let { active: t = !0, pageHeader: r, list: i } = e;
|
|
448
|
+
return n("div", { style: { width: "100%" } }, [
|
|
449
|
+
r !== !1 && n(_, { active: t }, null),
|
|
450
|
+
n(E, { active: t }, null),
|
|
451
|
+
i !== !1 && n(m, null, null),
|
|
452
|
+
i !== !1 && n(T, {
|
|
453
|
+
active: t,
|
|
454
|
+
size: i
|
|
455
|
+
}, null)
|
|
456
|
+
]);
|
|
457
|
+
}), {
|
|
458
|
+
props: {
|
|
459
|
+
active: {
|
|
460
|
+
type: Boolean,
|
|
461
|
+
required: !1,
|
|
462
|
+
default: void 0
|
|
463
|
+
},
|
|
464
|
+
pageHeader: {
|
|
465
|
+
type: Boolean,
|
|
466
|
+
required: !1,
|
|
467
|
+
default: void 0
|
|
468
|
+
},
|
|
469
|
+
list: {
|
|
470
|
+
type: [Boolean, Number],
|
|
471
|
+
required: !1,
|
|
472
|
+
default: void 0
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
name: "DescriptionsPageSkeleton",
|
|
476
|
+
inheritAttrs: !1
|
|
477
|
+
}), O = /* @__PURE__ */ r((e, { expose: t }) => (t({}), () => {
|
|
478
|
+
let { active: t = !0, pageHeader: r } = e;
|
|
479
|
+
return n("div", { style: { width: "100%" } }, [r !== !1 && n(_, { active: t }, null), n(i, null, { default: () => [n("div", { style: {
|
|
480
|
+
display: "flex",
|
|
481
|
+
justifyContent: "center",
|
|
482
|
+
alignItems: "center",
|
|
483
|
+
flexDirection: "column",
|
|
484
|
+
padding: "128px"
|
|
485
|
+
} }, [
|
|
486
|
+
n(s, {
|
|
487
|
+
size: 64,
|
|
488
|
+
style: { marginBlockEnd: "32px" }
|
|
489
|
+
}, null),
|
|
490
|
+
n(c, {
|
|
491
|
+
active: t,
|
|
492
|
+
style: {
|
|
493
|
+
width: "214px",
|
|
494
|
+
marginBlockEnd: "8px"
|
|
495
|
+
}
|
|
496
|
+
}, null),
|
|
497
|
+
n(c, {
|
|
498
|
+
active: t,
|
|
499
|
+
style: { width: "328px" },
|
|
500
|
+
size: "small"
|
|
501
|
+
}, null),
|
|
502
|
+
n(l, { style: { marginBlockStart: "24px" } }, { default: () => [n(c, {
|
|
503
|
+
active: t,
|
|
504
|
+
style: { width: "116px" }
|
|
505
|
+
}, null), n(c, {
|
|
506
|
+
active: t,
|
|
507
|
+
style: { width: "116px" }
|
|
508
|
+
}, null)] })
|
|
509
|
+
])] })]);
|
|
510
|
+
}), {
|
|
511
|
+
props: {
|
|
512
|
+
active: {
|
|
513
|
+
type: Boolean,
|
|
514
|
+
required: !1,
|
|
515
|
+
default: void 0
|
|
516
|
+
},
|
|
517
|
+
pageHeader: {
|
|
518
|
+
type: Boolean,
|
|
519
|
+
required: !1,
|
|
520
|
+
default: void 0
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
name: "ResultPageSkeleton",
|
|
524
|
+
inheritAttrs: !1
|
|
525
|
+
}), k = /* @__PURE__ */ r((e) => () => {
|
|
526
|
+
let { type: t = "list", ...r } = e;
|
|
527
|
+
return n(t === "result" ? O : t === "descriptions" ? D : y, r, null);
|
|
528
|
+
}, {
|
|
529
|
+
props: {
|
|
530
|
+
active: {
|
|
531
|
+
type: Boolean,
|
|
532
|
+
required: !1,
|
|
533
|
+
default: void 0
|
|
534
|
+
},
|
|
535
|
+
pageHeader: {
|
|
536
|
+
type: Boolean,
|
|
537
|
+
required: !1,
|
|
538
|
+
default: void 0
|
|
539
|
+
},
|
|
540
|
+
statistic: {
|
|
541
|
+
type: [Number, Boolean],
|
|
542
|
+
required: !1,
|
|
543
|
+
default: void 0
|
|
544
|
+
},
|
|
545
|
+
actionButton: {
|
|
546
|
+
type: Boolean,
|
|
547
|
+
required: !1,
|
|
548
|
+
default: void 0
|
|
549
|
+
},
|
|
550
|
+
toolbar: {
|
|
551
|
+
type: Boolean,
|
|
552
|
+
required: !1,
|
|
553
|
+
default: void 0
|
|
554
|
+
},
|
|
555
|
+
list: {
|
|
556
|
+
type: [Number, Boolean],
|
|
557
|
+
required: !1,
|
|
558
|
+
default: void 0
|
|
559
|
+
},
|
|
560
|
+
type: {
|
|
561
|
+
type: String,
|
|
562
|
+
required: !1
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
name: "ProSkeleton",
|
|
566
|
+
inheritAttrs: !1
|
|
567
|
+
});
|
|
568
|
+
k.install = (e) => {
|
|
569
|
+
e.component(k.name, k);
|
|
570
|
+
};
|
|
571
|
+
export { k as ProSkeleton, k as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antdv-vue/pro-skeleton",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.3",
|
|
5
|
+
"description": "@antdv-vue/pro-skeleton",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/bunnyblueair/pro-components.git",
|
|
9
|
+
"directory": "packages/skeleton"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"./dist/pro-skeleton.esm.js"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./dist/*": {
|
|
21
|
+
"types": "./dist/*.d.ts",
|
|
22
|
+
"import": "./dist/*.js",
|
|
23
|
+
"default": "./dist/*.js"
|
|
24
|
+
},
|
|
25
|
+
"./dist/pro-skeleton.esm.js": "./dist/pro-skeleton.esm.js"
|
|
26
|
+
},
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"CHANGELOG.md",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"README.md",
|
|
34
|
+
"dist",
|
|
35
|
+
"package.json"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "run-s build:esm build:full-esm",
|
|
39
|
+
"build:esm": "tsdown --config-loader unrun",
|
|
40
|
+
"build:full-esm": "vite build"
|
|
41
|
+
},
|
|
42
|
+
"browserslist": [
|
|
43
|
+
"last 2 versions",
|
|
44
|
+
"Firefox ESR",
|
|
45
|
+
"> 1%",
|
|
46
|
+
"ie >= 11"
|
|
47
|
+
],
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"antdv-next": ">=1.8.0",
|
|
50
|
+
"vue": ">=3.5.30"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@antdv-vue/pro-provider": "2.0.0",
|
|
54
|
+
"@antdv-vue/pro-utils": "2.1.1"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"authors": [
|
|
60
|
+
"lucasjeke <lucasjekeqd@gmail.com> (https://github.com/lucasjeke)"
|
|
61
|
+
]
|
|
6
62
|
}
|