ling-yun-custom-components 0.0.29 → 0.0.31

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.
Files changed (49) hide show
  1. package/es/CustomDialog.mjs +1 -1
  2. package/es/SearchBar.mjs +1 -1
  3. package/es/UpdatePasswordDialog.mjs +2 -2
  4. package/es/assets/layout2.css +1 -1
  5. package/es/assets/layout3.css +1 -1
  6. package/es/chunks/{layout.Bg387XYI.js → layout.Cops0Vah.js} +17 -15
  7. package/es/chunks/{layout.BSdpu71J.js → layout.DXw3haOP.js} +48 -51
  8. package/lib/CustomDialog.js +1 -1
  9. package/lib/SearchBar.js +1 -1
  10. package/lib/UpdatePasswordDialog.js +1 -1
  11. package/lib/assets/layout2.css +1 -1
  12. package/lib/assets/layout3.css +1 -1
  13. package/lib/chunks/layout.B9EVVV-O.js +1 -0
  14. package/lib/chunks/layout.OHsMvEtb.js +1 -0
  15. package/package.json +2 -2
  16. package/es/chunks/index.CRROL-C7.js +0 -8991
  17. package/es/chunks/index.DfOANPhX.js +0 -1729
  18. package/es/chunks/index._uj6b1Kd.js +0 -8946
  19. package/es/chunks/layout.3r4JjCjq.js +0 -98
  20. package/es/chunks/layout.B8mwOOqx.js +0 -149
  21. package/es/chunks/layout.BZ373u9D.js +0 -584
  22. package/es/chunks/layout.BsiNPYtX.js +0 -149
  23. package/es/chunks/layout.CSYJ22Ac.js +0 -234
  24. package/es/chunks/layout.CUOtHOHG.js +0 -66
  25. package/es/chunks/layout.CmH2-6H-.js +0 -121
  26. package/es/chunks/layout.D7cg-xRZ.js +0 -230
  27. package/es/chunks/layout.DLUJzpco.js +0 -121
  28. package/es/chunks/layout.Epzao23T.js +0 -234
  29. package/es/chunks/layout.dhOtQkoC.js +0 -98
  30. package/es/chunks/layout.iUFnoCjZ.js +0 -230
  31. package/es/chunks/layout.o_B8gly4.js +0 -584
  32. package/lib/chunks/index.BKVX0AJJ.js +0 -23
  33. package/lib/chunks/index.Cm0zRaZN.js +0 -23
  34. package/lib/chunks/index.DJKAT9lI.js +0 -1
  35. package/lib/chunks/layout.-2KgXQBu.js +0 -1
  36. package/lib/chunks/layout.7-8MCU-f.js +0 -1
  37. package/lib/chunks/layout.9Q_gwznp.js +0 -1
  38. package/lib/chunks/layout.B8EsRYB6.js +0 -1
  39. package/lib/chunks/layout.BeQpU6RU.js +0 -1
  40. package/lib/chunks/layout.BqWe_qix.js +0 -1
  41. package/lib/chunks/layout.C2BGVUSH.js +0 -1
  42. package/lib/chunks/layout.D3OyheOl.js +0 -1
  43. package/lib/chunks/layout.DYKJPi9L.js +0 -1
  44. package/lib/chunks/layout.DYnlhiPO.js +0 -1
  45. package/lib/chunks/layout.Dt0IRZ49.js +0 -1
  46. package/lib/chunks/layout.XtG7xOYE.js +0 -1
  47. package/lib/chunks/layout.gqpUcAHO.js +0 -1
  48. package/lib/chunks/layout.s-xNK0r5.js +0 -1
  49. package/lib/chunks/layout.vff7gZ3-.js +0 -1
@@ -1,98 +0,0 @@
1
- import { computed as l, createBlock as f, openBlock as z, unref as y, mergeProps as S } from "vue";
2
- import { ElPagination as C } from "element-plus";
3
- import { d as P, e as b } from "./index.DfOANPhX.js";
4
- import { b as t, c as p, v as d } from "./index.CRROL-C7.js";
5
- const O = /* @__PURE__ */ Object.assign({
6
- name: "CustomPagination"
7
- }, {
8
- __name: "layout",
9
- props: {
10
- // 当前页码
11
- currentPage: {
12
- type: Number,
13
- default: d.pageNum
14
- },
15
- // 每页显示条目个数
16
- pageSize: {
17
- type: Number,
18
- default: d.pageSize
19
- },
20
- // 每页显示个数选择器的选项设置
21
- pageSizes: {
22
- type: Array,
23
- default: () => p.pageSizes
24
- },
25
- // 是否为分页按钮添加背景色
26
- background: {
27
- type: Boolean,
28
- default: !0
29
- },
30
- // 分页组件的布局,子组件名用逗号分隔
31
- layout: {
32
- type: String,
33
- default: p.layout
34
- },
35
- // 上一页的图标
36
- prevIcon: {
37
- type: Object,
38
- default: b
39
- },
40
- // 下一页的图标
41
- nextIcon: {
42
- type: Object,
43
- default: P
44
- },
45
- // 只有一页时是否隐藏
46
- hideOnSinglePage: {
47
- type: Boolean,
48
- default: !0
49
- },
50
- // 总数
51
- total: {
52
- type: Number,
53
- default: 0
54
- }
55
- },
56
- emits: [
57
- t.sizeChange,
58
- t.currentChange,
59
- t.updateCurrentPage,
60
- t.updatePageSize
61
- ],
62
- setup(a, { emit: c }) {
63
- const n = c, r = a, g = l({
64
- get: () => r.currentPage,
65
- set: (e) => {
66
- n(t.updateCurrentPage, e);
67
- }
68
- }), i = l({
69
- get: () => r.pageSize,
70
- set: (e) => {
71
- n(t.updatePageSize, e);
72
- }
73
- }), s = (e) => {
74
- n(t.sizeChange, e), n(t.updatePageSize, e);
75
- }, m = (e) => {
76
- n(t.currentChange, e), n(t.updateCurrentPage, e);
77
- };
78
- return (e, u) => (z(), f(y(C), S({
79
- "current-page": g.value,
80
- "onUpdate:currentPage": u[0] || (u[0] = (o) => g.value = o),
81
- "page-size": i.value,
82
- "onUpdate:pageSize": u[1] || (u[1] = (o) => i.value = o),
83
- "page-sizes": a.pageSizes,
84
- background: a.background,
85
- layout: a.layout,
86
- total: a.total,
87
- "prev-icon": a.prevIcon,
88
- "next-icon": a.nextIcon,
89
- "hide-on-single-page": a.hideOnSinglePage
90
- }, e.$attrs, {
91
- onSizeChange: s,
92
- onCurrentChange: m
93
- }), null, 16, ["current-page", "page-size", "page-sizes", "background", "layout", "total", "prev-icon", "next-icon", "hide-on-single-page"]));
94
- }
95
- });
96
- export {
97
- O as _
98
- };
@@ -1,149 +0,0 @@
1
- import { useCssVars as L, ref as N, watch as U, createElementBlock as u, createCommentVNode as v, openBlock as r, Fragment as x, renderList as j, normalizeClass as z, unref as o, createElementVNode as m, createBlock as f, normalizeStyle as O, withCtx as S, resolveDynamicComponent as E, toDisplayString as k, renderSlot as w, createVNode as R } from "vue";
2
- import { ElImage as T, ElIcon as M } from "element-plus";
3
- import { f as c, t as P, m as a } from "./index._uj6b1Kd.js";
4
- import { IconDelete as A, IconTxt as G, IconPpt as I, IconXls as b, IconDoc as F, IconPdf as K } from "color-message-lingyun-vue";
5
- import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import '../assets/layout6.css';const i = {
7
- uploading: "uploading",
8
- success: "success",
9
- error: "error"
10
- }, q = {
11
- key: 0,
12
- class: "file-list display-grid pd-t-12 pd-b-12"
13
- }, H = { class: "flex overflow-hidden flex-1 pd-r-10" }, J = { class: "pd-l-8 flex-1 overflow-hidden" }, Q = ["title"], W = { class: "fz-12 text-ellipsis lh-16" }, Y = {
14
- key: 1,
15
- class: "text-74798c"
16
- }, Z = /* @__PURE__ */ Object.assign({
17
- name: "FileList"
18
- }, {
19
- __name: "layout",
20
- props: {
21
- // 文件列表数据
22
- modelValue: {
23
- type: Array,
24
- default: () => []
25
- },
26
- // 是否显示删除按钮
27
- showDelete: {
28
- type: Boolean,
29
- default: !0
30
- },
31
- // 字段映射配置
32
- fieldMapping: {
33
- type: Object,
34
- default: () => ({
35
- // fileName: 'fileName',
36
- // fileUrl: 'fileUrl',
37
- })
38
- },
39
- rowCount: {
40
- type: Number,
41
- default: 2
42
- },
43
- // 图标大小
44
- iconSize: {
45
- type: Number,
46
- default: 36
47
- }
48
- },
49
- emits: [c.delete, c.change, c.updateModelValue],
50
- setup(l, { emit: _ }) {
51
- L((e) => ({
52
- v247946fe: l.rowCount
53
- }));
54
- const p = l, g = _, n = N(p.modelValue), B = Object.fromEntries(
55
- Object.entries(P).map(([e, s]) => [s, e])
56
- ), h = (e) => e[p.fieldMapping.fileUrl] ? e[p.fieldMapping.fileUrl] : e.raw && e.raw instanceof File ? URL.createObjectURL(e.raw) : e instanceof File ? URL.createObjectURL(e) : "", C = {
57
- [a.pdf]: K,
58
- [a.doc]: F,
59
- [a.docx]: F,
60
- [a.xls]: b,
61
- [a.xlsx]: b,
62
- [a.ppt]: I,
63
- [a.pptx]: I,
64
- [a.txt]: G
65
- }, V = (e) => e?.includes("image"), $ = (e) => {
66
- const s = B[e];
67
- return C[s];
68
- }, y = (e) => {
69
- if (!e || e === 0) return "0 B";
70
- const s = 1024, t = ["B", "KB", "MB", "GB"], d = Math.floor(Math.log(e) / Math.log(s));
71
- return `${parseFloat((e / Math.pow(s, d)).toFixed(2))} ${t[d]}`;
72
- }, D = (e, s) => {
73
- n.value.splice(s, 1), g(c.delete, e), g(c.updateModelValue, n.value), g(c.change, n.value);
74
- };
75
- return U(
76
- () => p.modelValue,
77
- (e) => {
78
- n.value = e;
79
- },
80
- { immediate: !0 }
81
- ), (e, s) => n.value?.length ? (r(), u("div", q, [
82
- (r(!0), u(x, null, j(n.value, (t, d) => (r(), u("div", {
83
- key: d,
84
- class: z(["pd-l-8 pd-r-8 pd-t-6 pd-b-6 radius-8 file-item overflow-hidden flex items-center", {
85
- "bg-uploading": t.fileStatus === o(i).uploading,
86
- "bg-fcfdff": t.fileStatus !== o(i).uploading,
87
- "border-error": t.fileStatus === o(i).error,
88
- "border-normal": t.fileStatus !== o(i).error
89
- }])
90
- }, [
91
- m("div", H, [
92
- V(t?.type) && h(t) ? (r(), f(o(T), {
93
- key: 0,
94
- src: h(t),
95
- class: "radius-4",
96
- fit: "cover",
97
- style: O({ width: `${l.iconSize}px`, height: `${l.iconSize}px` })
98
- }, null, 8, ["src", "style"])) : (r(), f(o(M), {
99
- key: 1,
100
- size: l.iconSize,
101
- class: "pointer"
102
- }, {
103
- default: S(() => [
104
- (r(), f(E($(t?.type))))
105
- ]),
106
- _: 2
107
- }, 1032, ["size"])),
108
- m("div", J, [
109
- m("div", {
110
- class: z(["fz-14 text-ellipsis lh-20 flex-1", {
111
- "text-ec0e13": t.fileStatus === o(i).error,
112
- "text-262626": t.fileStatus !== o(i).error
113
- }]),
114
- title: t[l.fieldMapping.fileName]
115
- }, k(t[l.fieldMapping.fileName]), 11, Q),
116
- m("div", W, [
117
- e.$slots.status ? w(e.$slots, "status", {
118
- key: 0,
119
- file: t
120
- }, void 0, !0) : (r(), u(x, { key: 1 }, [
121
- e.$slots.size ? w(e.$slots, "size", {
122
- key: 0,
123
- file: t,
124
- size: y(t.size)
125
- }, void 0, !0) : (r(), u("span", Y, k(y(t.size)), 1))
126
- ], 64))
127
- ])
128
- ])
129
- ]),
130
- l.showDelete ? (r(), f(o(M), {
131
- key: 0,
132
- size: 16,
133
- color: t.fileStatus === o(i).error ? "var(--error-color-1)" : "var(--text-color-4)",
134
- class: "pointer",
135
- onClick: (ee) => D(t, d)
136
- }, {
137
- default: S(() => [
138
- R(o(A))
139
- ]),
140
- _: 1
141
- }, 8, ["color", "onClick"])) : v("", !0)
142
- ], 2))), 128))
143
- ])) : v("", !0);
144
- }
145
- }), ae = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-0980a743"]]);
146
- export {
147
- ae as _,
148
- i as u
149
- };