@me-framework/me-ui-antdv-next 0.0.26 → 0.0.29

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 (60) hide show
  1. package/dist/chunks/input-icon-selector-BrrR4KK6.js +228 -0
  2. package/dist/chunks/modal-D4Tl-Qzk.js +166 -0
  3. package/dist/chunks/skeleton-D1-aYUPf.js +135 -0
  4. package/dist/icon/index.js +1 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/input-gps/index.js +85 -233
  7. package/dist/input-gps/index.vue.d.ts +4 -2
  8. package/dist/input-gps/map.vue.d.ts +1 -1
  9. package/dist/input-gps/types.d.ts +9 -5
  10. package/dist/input-icon-selector/index.js +1 -1
  11. package/dist/input-icon-selector/index.vue.d.ts +1 -1
  12. package/dist/input-property/index.css +1 -0
  13. package/dist/input-property/index.d.ts +5 -0
  14. package/dist/input-property/index.js +269 -0
  15. package/dist/input-property/index.vue.d.ts +18 -0
  16. package/dist/input-property/types.d.ts +38 -0
  17. package/dist/input-property/validate.d.ts +18 -0
  18. package/dist/load-json/index.css +1 -0
  19. package/dist/load-json/index.js +91 -24319
  20. package/dist/load-json/index.vue.d.ts +3 -3
  21. package/dist/me-ui-antdv-next.js +1791 -1551
  22. package/dist/me-ui-antdv-next.umd.cjs +2 -2
  23. package/dist/message/index.js +1 -1
  24. package/dist/message/index.vue.d.ts +1 -1
  25. package/dist/modal/index.css +1 -0
  26. package/dist/modal/index.js +7 -1
  27. package/dist/modal/index.vue.d.ts +26 -5
  28. package/dist/modal/types.d.ts +47 -7
  29. package/dist/nav/index.js +1 -1
  30. package/dist/nav/index.vue.d.ts +3 -3
  31. package/dist/resolver/index.d.ts +1 -1
  32. package/dist/resolver/index.js +9 -5
  33. package/dist/skeleton/index.js +5 -138
  34. package/dist/style.css +1 -1
  35. package/dist/tree-menu/TreeMenuEdit.vue.d.ts +1 -1
  36. package/dist/tree-menu/index.js +2 -2
  37. package/dist/tree-menu/index.vue.d.ts +1 -1
  38. package/package.json +6 -6
  39. package/dist/chunks/input-icon-selector-D5c45QL8.js +0 -227
  40. package/dist/chunks/modal-Dke8ng3P.js +0 -178
  41. package/dist/chunks/rolldown-runtime-DtPi1Y-2.js +0 -13
  42. package/dist/load-json.css +0 -1
  43. package/dist/modal.css +0 -1
  44. /package/dist/{base.css → base/index.css} +0 -0
  45. /package/dist/{body.css → body/index.css} +0 -0
  46. /package/dist/{box.css → box/index.css} +0 -0
  47. /package/dist/{breadcrumb.css → breadcrumb/index.css} +0 -0
  48. /package/dist/{card.css → card/index.css} +0 -0
  49. /package/dist/chunks/{icon-DdoH0MfT.js → icon-CXjgApCy.js} +0 -0
  50. /package/dist/chunks/{message-CPHX2tAR.js → message-D2zYiiQe.js} +0 -0
  51. /package/dist/{icon.css → icon/index.css} +0 -0
  52. /package/dist/{input-gps.css → input-gps/index.css} +0 -0
  53. /package/dist/{input-icon-selector.css → input-icon-selector/index.css} +0 -0
  54. /package/dist/{input-radio.css → input-radio/index.css} +0 -0
  55. /package/dist/{login-page.css → login-page/index.css} +0 -0
  56. /package/dist/{menu.css → menu/index.css} +0 -0
  57. /package/dist/{message.css → message/index.css} +0 -0
  58. /package/dist/{nav.css → nav/index.css} +0 -0
  59. /package/dist/{skeleton.css → skeleton/index.css} +0 -0
  60. /package/dist/{tree-menu.css → tree-menu/index.css} +0 -0
@@ -0,0 +1,228 @@
1
+ import { t as e } from "./icon-CXjgApCy.js";
2
+ import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onMounted as f, openBlock as p, ref as m, renderList as h, renderSlot as g, resolveComponent as _, unref as v, watch as y, withCtx as b } from "vue";
3
+ import * as x from "@lucide/vue";
4
+ import S from "remixicon/fonts/remixicon.symbol.svg";
5
+ //#region src/components/input-icon-selector/index.vue?vue&type=script&setup=true&lang.ts
6
+ var C = { class: "me-input-icon-selector__search" }, w = {
7
+ key: 0,
8
+ class: "me-input-icon-selector__list"
9
+ }, T = ["title", "onClick"], E = {
10
+ key: 1,
11
+ class: "me-input-icon-selector__empty"
12
+ }, D = { class: "me-input-icon-selector__footer" }, O = {
13
+ key: 0,
14
+ href: "https://remixicon.com/",
15
+ target: "_blank",
16
+ class: "me-input-icon-selector__link"
17
+ }, k = {
18
+ key: 1,
19
+ href: "https://lucide.dev/icons/",
20
+ target: "_blank",
21
+ class: "me-input-icon-selector__link"
22
+ }, A = { key: 2 }, j = /* @__PURE__ */ l({
23
+ name: "MeInputIconSelector",
24
+ __name: "index",
25
+ props: {
26
+ modelValue: { default: "" },
27
+ sources: { default: () => [
28
+ "lucide",
29
+ "remixicon",
30
+ "iconfont"
31
+ ] },
32
+ iconfontData: { default: () => [] },
33
+ placeholder: { default: "请选择图标" },
34
+ searchPlaceholder: { default: "搜索图标" },
35
+ pageSize: { default: 30 },
36
+ popoverWidth: { default: 280 },
37
+ disabled: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ size: { default: "middle" },
42
+ clearable: {
43
+ type: Boolean,
44
+ default: !0
45
+ },
46
+ iconfontPrefix: { default: "iconfont" },
47
+ iconfontMode: { default: "class" }
48
+ },
49
+ emits: ["update:modelValue", "change"],
50
+ setup(l, { emit: j }) {
51
+ let M = l, N = j, P = m(!1), F = m(""), I = m(1), L = m("lucide"), R = n(() => {
52
+ if (typeof M.popoverWidth == "number") return M.popoverWidth;
53
+ let e = parseInt(M.popoverWidth, 10);
54
+ return isNaN(e) ? 280 : e;
55
+ }), z = n(() => Object.keys(x).filter((e) => {
56
+ if (!/^[A-Z]/.test(e)) return !1;
57
+ let t = x[e];
58
+ return typeof t != "object" && typeof t != "function" || e === "icons" || e === "createLucideIcon" || e === "default" ? !1 : t && (t.render || t.setup || t.__name) ? !0 : typeof t == "function" || typeof t == "object";
59
+ })), B = m([]), V = !1;
60
+ function H() {
61
+ typeof document > "u" || V || (V = !0, fetch(S).then((e) => e.text()).then((e) => {
62
+ let t = new DOMParser().parseFromString(e, "image/svg+xml").querySelectorAll("symbol[id^=\"ri-\"]");
63
+ B.value = Array.from(t).map((e) => e.getAttribute("id") || "");
64
+ }).catch((e) => {
65
+ console.warn("[MeInputIconSelector] Failed to load remixicon list:", e), V = !1;
66
+ }));
67
+ }
68
+ f(() => {
69
+ H();
70
+ });
71
+ let U = {
72
+ lucide: {
73
+ label: "Lucide",
74
+ get data() {
75
+ return z.value;
76
+ }
77
+ },
78
+ remixicon: {
79
+ label: "Remixicon",
80
+ get data() {
81
+ return B.value;
82
+ }
83
+ },
84
+ iconfont: {
85
+ label: "Iconfont",
86
+ data: []
87
+ }
88
+ }, W = n(() => M.sources.map((e) => ({
89
+ key: e,
90
+ label: U[e].label
91
+ })));
92
+ y(() => M.sources, (e) => {
93
+ e.includes(L.value) || (L.value = e[0] || "lucide");
94
+ }, { immediate: !0 });
95
+ let G = n(() => L.value === "iconfont" ? M.iconfontData : U[L.value].data), K = n(() => {
96
+ let e = F.value.trim().toLowerCase();
97
+ return e ? G.value.filter((t) => t.toLowerCase().includes(e)) : G.value;
98
+ }), q = n(() => {
99
+ let e = (I.value - 1) * M.pageSize, t = e + M.pageSize;
100
+ return K.value.slice(e, t);
101
+ });
102
+ y(F, () => {
103
+ I.value = 1;
104
+ }), y(L, () => {
105
+ I.value = 1, F.value = "";
106
+ });
107
+ function J(e) {
108
+ N("update:modelValue", e), N("change", e), P.value = !1;
109
+ }
110
+ function Y(e) {
111
+ let t = typeof e == "string" ? e : e.target?.value || "";
112
+ N("update:modelValue", t), N("change", t);
113
+ }
114
+ function X() {
115
+ N("update:modelValue", ""), N("change", "");
116
+ }
117
+ return (n, f) => {
118
+ let m = _("a-space-addon"), y = _("a-input"), x = _("a-tab-pane"), S = _("a-tabs"), j = _("a-pagination"), N = _("a-button"), z = _("a-popover"), B = _("a-space-compact");
119
+ return p(), r(B, {
120
+ class: "me-input-icon-selector",
121
+ style: { width: "100%" }
122
+ }, {
123
+ default: b(() => [
124
+ l.modelValue ? (p(), r(m, { key: 0 }, {
125
+ default: b(() => [c(v(e), {
126
+ name: l.modelValue,
127
+ size: 16
128
+ }, null, 8, ["name"])]),
129
+ _: 1
130
+ })) : i("", !0),
131
+ c(y, {
132
+ value: l.modelValue,
133
+ placeholder: M.placeholder,
134
+ disabled: M.disabled,
135
+ size: M.size,
136
+ "allow-clear": M.clearable,
137
+ style: { width: "100%" },
138
+ "onUpdate:value": Y,
139
+ onChange: Y,
140
+ onClear: X
141
+ }, null, 8, [
142
+ "value",
143
+ "placeholder",
144
+ "disabled",
145
+ "size",
146
+ "allow-clear"
147
+ ]),
148
+ c(z, {
149
+ open: P.value,
150
+ "onUpdate:open": f[3] ||= (e) => P.value = e,
151
+ trigger: "click",
152
+ placement: "bottomRight",
153
+ "overlay-class-name": "me-input-icon-selector-popover"
154
+ }, {
155
+ content: b(() => [o("div", {
156
+ class: "me-input-icon-selector__popover",
157
+ style: d({ width: R.value + "px" })
158
+ }, [
159
+ o("div", C, [c(y, {
160
+ value: F.value,
161
+ "onUpdate:value": f[0] ||= (e) => F.value = e,
162
+ "allow-clear": "",
163
+ placeholder: M.searchPlaceholder,
164
+ size: "small"
165
+ }, null, 8, ["value", "placeholder"])]),
166
+ c(S, {
167
+ activeKey: L.value,
168
+ "onUpdate:activeKey": f[1] ||= (e) => L.value = e,
169
+ class: "me-input-icon-selector__tabs",
170
+ size: "small"
171
+ }, {
172
+ default: b(() => [(p(!0), a(t, null, h(W.value, (e) => (p(), r(x, {
173
+ key: e.key,
174
+ tab: e.label
175
+ }, null, 8, ["tab"]))), 128))]),
176
+ _: 1
177
+ }, 8, ["activeKey"]),
178
+ q.value.length > 0 ? (p(), a("div", w, [(p(!0), a(t, null, h(q.value, (t, n) => (p(), a("div", {
179
+ key: n,
180
+ class: u(["icon-item", { "is-active": t === l.modelValue }]),
181
+ title: t,
182
+ onClick: (e) => J(t)
183
+ }, [c(v(e), {
184
+ name: t,
185
+ type: L.value,
186
+ size: 18,
187
+ "iconfont-prefix": M.iconfontPrefix,
188
+ "iconfont-mode": M.iconfontMode
189
+ }, null, 8, [
190
+ "name",
191
+ "type",
192
+ "iconfont-prefix",
193
+ "iconfont-mode"
194
+ ])], 10, T))), 128))])) : (p(), a("div", E, " 暂无匹配的图标 ")),
195
+ o("div", D, [L.value === "remixicon" ? (p(), a("a", O, " remixicon.com ")) : L.value === "lucide" ? (p(), a("a", k, " lucide.dev ")) : (p(), a("span", A)), c(j, {
196
+ current: I.value,
197
+ "onUpdate:current": f[2] ||= (e) => I.value = e,
198
+ "page-size": M.pageSize,
199
+ total: K.value.length,
200
+ size: "small",
201
+ simple: "",
202
+ class: "me-input-icon-selector__pagination"
203
+ }, null, 8, [
204
+ "current",
205
+ "page-size",
206
+ "total"
207
+ ])])
208
+ ], 4)]),
209
+ default: b(() => [g(n.$slots, "default", {}, () => [c(N, { size: M.size }, {
210
+ default: b(() => [...f[4] ||= [s("选择", -1)]]),
211
+ _: 1
212
+ }, 8, ["size"])])]),
213
+ _: 3
214
+ }, 8, ["open"])
215
+ ]),
216
+ _: 3
217
+ });
218
+ };
219
+ }
220
+ });
221
+ //#endregion
222
+ //#region src/components/input-icon-selector/index.ts
223
+ j.install = (e) => {
224
+ e.component("MeInputIconSelector", j);
225
+ };
226
+ var M = j;
227
+ //#endregion
228
+ export { j as n, M as t };
@@ -0,0 +1,166 @@
1
+ import { t as e } from "./skeleton-D1-aYUPf.js";
2
+ import { Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, useSlots as y, watch as b, withCtx as x, withModifiers as S } from "vue";
3
+ import { Maximize as C, Minimize as w, X as T } from "@lucide/vue";
4
+ //#region src/components/modal/index.vue?vue&type=script&setup=true&lang.ts
5
+ var E = { class: "me-modal__header" }, D = { class: "me-modal__title-row" }, O = { class: "me-modal__title-text" }, k = { class: "me-modal__actions" }, A = ["title"], j = {
6
+ key: 0,
7
+ class: "me-modal__footer"
8
+ }, M = /* @__PURE__ */ u({
9
+ name: "MeModal",
10
+ __name: "index",
11
+ props: {
12
+ open: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ width: { default: 520 },
17
+ height: {},
18
+ position: { default: "top" },
19
+ offsetTop: { default: 100 },
20
+ offsetBottom: { default: 48 },
21
+ offsetLeft: { default: 16 },
22
+ offsetRight: { default: 16 },
23
+ title: {},
24
+ mask: {
25
+ type: Boolean,
26
+ default: !0
27
+ },
28
+ maskClosable: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ maskStyle: {},
33
+ closable: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ keyboard: {
38
+ type: Boolean,
39
+ default: !0
40
+ },
41
+ fullscreen: {
42
+ type: Boolean,
43
+ default: !0
44
+ },
45
+ defaultFullscreen: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ loading: {
50
+ type: Boolean,
51
+ default: !1
52
+ },
53
+ okText: { default: "确定" },
54
+ cancelText: { default: "取消" },
55
+ footer: {
56
+ type: Boolean,
57
+ default: !0
58
+ },
59
+ dividers: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ zIndex: { default: 1e3 },
64
+ bodyStyle: {}
65
+ },
66
+ emits: [
67
+ "update:open",
68
+ "fullscreen-change",
69
+ "ok",
70
+ "cancel"
71
+ ],
72
+ setup(u, { expose: M, emit: N }) {
73
+ let P = u, F = N, I = y(), L = r(() => !!I.loading), R = h(P.defaultFullscreen), z = r(() => {
74
+ let e = {};
75
+ return R.value ? (e.width = "100vw", e.height = "100vh") : (e.width = typeof P.width == "number" ? `${P.width}px` : P.width, P.height != null && (e.height = typeof P.height == "number" ? `${P.height}px` : P.height)), e;
76
+ }), B = r(() => {
77
+ if (R.value) return {
78
+ padding: 0,
79
+ alignItems: "stretch"
80
+ };
81
+ let e = P.position === "bottom" ? "flex-end" : P.position === "center" ? "center" : "flex-start";
82
+ return {
83
+ padding: `${P.offsetTop}px ${P.offsetRight}px ${P.offsetBottom}px ${P.offsetLeft}px`,
84
+ alignItems: e
85
+ };
86
+ }), V = () => {
87
+ R.value = !R.value, F("fullscreen-change", R.value);
88
+ }, H = (e) => {
89
+ F("cancel", e ?? new Event("cancel")), F("update:open", !1);
90
+ }, U = (e) => {
91
+ F("ok", e);
92
+ }, W = (e) => {
93
+ P.mask && P.maskClosable && H(e);
94
+ }, G = (e) => {
95
+ e.key === "Escape" && P.open && P.keyboard && H(e);
96
+ };
97
+ return b(() => P.open, (e) => {
98
+ e ? (document.body.style.overflow = "hidden", P.keyboard && window.addEventListener("keydown", G)) : (document.body.style.overflow = "", window.removeEventListener("keydown", G));
99
+ }), p(() => {
100
+ document.body.style.overflow = "", window.removeEventListener("keydown", G);
101
+ }), M({
102
+ toggleFullscreen: V,
103
+ isFullscreen: R
104
+ }), (r, p) => (m(), i(t, { to: "body" }, [l(n, { name: "me-modal" }, {
105
+ default: x(() => [u.open ? (m(), o("div", {
106
+ key: 0,
107
+ class: d(["me-modal", [`me-modal--${u.position}`, {
108
+ "me-modal--fullscreen": R.value,
109
+ "me-modal--dividers": u.dividers
110
+ }]]),
111
+ style: f({ "--me-modal-z": String(u.zIndex) })
112
+ }, [u.mask ? (m(), o("div", {
113
+ key: 0,
114
+ class: "me-modal__mask",
115
+ style: f(u.maskStyle),
116
+ onClick: W
117
+ }, null, 4)) : a("", !0), s("div", {
118
+ class: "me-modal__wrap",
119
+ style: f(B.value)
120
+ }, [s("div", {
121
+ class: "me-modal__panel",
122
+ style: f(z.value)
123
+ }, [
124
+ s("div", E, [g(r.$slots, "header", {}, () => [s("div", D, [s("span", O, [g(r.$slots, "title", {}, () => [c(_(u.title), 1)])])])]), s("div", k, [u.fullscreen ? (m(), o("button", {
125
+ key: 0,
126
+ class: "me-modal__action-btn",
127
+ type: "button",
128
+ title: R.value ? "退出全屏" : "全屏",
129
+ onClick: S(V, ["stop"])
130
+ }, [R.value ? (m(), i(v(w), {
131
+ key: 1,
132
+ size: 16
133
+ })) : (m(), i(v(C), {
134
+ key: 0,
135
+ size: 16
136
+ }))], 8, A)) : a("", !0), u.closable ? (m(), o("button", {
137
+ key: 1,
138
+ class: "me-modal__action-btn",
139
+ type: "button",
140
+ title: "关闭",
141
+ onClick: S(H, ["stop"])
142
+ }, [l(v(T), { size: 16 })])) : a("", !0)])]),
143
+ s("div", {
144
+ class: "me-modal__body",
145
+ style: f(u.bodyStyle)
146
+ }, [u.loading && L.value ? g(r.$slots, "loading", {}, void 0, void 0, 0) : u.loading ? (m(), i(e, {
147
+ key: 1,
148
+ animated: "",
149
+ preset: "text",
150
+ rows: 4,
151
+ class: "me-modal__skeleton"
152
+ })) : g(r.$slots, "default", {}, void 0, void 0, 2)], 4),
153
+ u.footer ? (m(), o("div", j, [g(r.$slots, "footer", {}, () => [s("span", {
154
+ class: "me-modal__btn me-modal__btn--default",
155
+ onClick: H
156
+ }, _(u.cancelText), 1), s("span", {
157
+ class: "me-modal__btn me-modal__btn--primary",
158
+ onClick: U
159
+ }, _(u.okText), 1)])])) : a("", !0)
160
+ ], 4)], 4)], 6)) : a("", !0)]),
161
+ _: 3
162
+ })]));
163
+ }
164
+ });
165
+ //#endregion
166
+ export { M as t };
@@ -0,0 +1,135 @@
1
+ import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, mergeProps as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, renderSlot as d } from "vue";
2
+ //#region src/components/skeleton/index.vue?vue&type=script&setup=true&lang.ts
3
+ var f = { class: "me-skeleton__card-body" }, p = { class: "me-skeleton__avatar-content" }, m = { class: "me-skeleton__list-content" }, h = /* @__PURE__ */ a({
4
+ name: "MeSkeleton",
5
+ __name: "index",
6
+ props: {
7
+ preset: { default: "text" },
8
+ loading: {
9
+ type: Boolean,
10
+ default: !0
11
+ },
12
+ animated: {
13
+ type: Boolean,
14
+ default: !0
15
+ },
16
+ rows: { default: void 0 },
17
+ height: { default: void 0 },
18
+ rowHeight: { default: 16 },
19
+ rowGap: { default: 12 },
20
+ avatar: {
21
+ type: Boolean,
22
+ default: !0
23
+ },
24
+ avatarSize: { default: 36 },
25
+ avatarShape: { default: "circle" },
26
+ titleWidth: { default: .5 },
27
+ lastRowWidth: { default: .7 },
28
+ cardImage: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ cardImageHeight: { default: 120 }
33
+ },
34
+ setup(a) {
35
+ let h = a, g = t(() => {
36
+ if (h.rows !== void 0 && h.rows > 0) return h.rows;
37
+ if (h.height) {
38
+ let e = typeof h.height == "number" ? h.height : parseFloat(h.height);
39
+ if (!isNaN(e) && e > 0) return Math.max(1, Math.floor((e + h.rowGap) / (h.rowHeight + h.rowGap)));
40
+ }
41
+ return h.preset === "article" ? 5 : (h.preset === "text" || h.preset, 3);
42
+ }), _ = t(() => h.rows !== void 0 && h.rows > 0 ? h.rows : 2), v = t(() => {
43
+ if (h.rows !== void 0 && h.rows > 0) return h.rows;
44
+ if (h.height) {
45
+ let e = typeof h.height == "number" ? h.height : parseFloat(h.height);
46
+ if (!isNaN(e) && e > 0) {
47
+ let t = h.avatarSize + 8;
48
+ return Math.max(1, Math.floor(e / t));
49
+ }
50
+ }
51
+ return 3;
52
+ }), y = t(() => Math.min(1, Math.max(.1, h.titleWidth))), b = t(() => Math.min(1, Math.max(.1, h.lastRowWidth))), x = (e, t) => t <= 1 ? .6 : e === t ? b.value : .85 + (Math.sin(e * 1.7 + .5) * .5 + .5) * .15000000000000002, S = (e, t) => {
53
+ let n = {
54
+ height: `${h.rowHeight}px`,
55
+ width: `${x(e, t) * 100}%`
56
+ };
57
+ return e > 1 && (n.marginTop = `${h.rowGap}px`), n;
58
+ }, C = t(() => {
59
+ let e = {};
60
+ return h.height && h.preset !== "card" && h.preset !== "avatar" && (e.height = typeof h.height == "number" ? `${h.height}px` : h.height), e;
61
+ });
62
+ return (t, b) => h.loading ? (l(), r("div", o({
63
+ key: 0,
64
+ class: ["me-skeleton", [`me-skeleton--${h.preset}`, { "me-skeleton--animated": h.animated }]],
65
+ style: C.value
66
+ }, t.$attrs), [h.preset === "card" ? (l(), r(e, { key: 0 }, [h.cardImage ? (l(), r("div", {
67
+ key: 0,
68
+ class: "me-skeleton__card-image me-skeleton__block",
69
+ style: c({ height: `${h.cardImageHeight}px` })
70
+ }, null, 4)) : n("", !0), i("div", f, [i("div", {
71
+ class: "me-skeleton__row me-skeleton__block me-skeleton__row--title",
72
+ style: c({
73
+ height: `${a.rowHeight}px`,
74
+ width: `${y.value * 100}%`
75
+ })
76
+ }, null, 4), (l(!0), r(e, null, u(_.value, (e) => (l(), r("div", {
77
+ key: e,
78
+ class: "me-skeleton__row me-skeleton__block",
79
+ style: c(S(e, _.value))
80
+ }, null, 4))), 128))])], 64)) : h.preset === "avatar" ? (l(), r(e, { key: 1 }, [h.avatar ? (l(), r("div", {
81
+ key: 0,
82
+ class: s(["me-skeleton__avatar me-skeleton__block", [h.avatarShape === "circle" ? "me-skeleton__avatar--circle" : "me-skeleton__avatar--square"]]),
83
+ style: c({
84
+ width: `${h.avatarSize}px`,
85
+ height: `${h.avatarSize}px`
86
+ })
87
+ }, null, 6)) : n("", !0), i("div", p, [i("div", {
88
+ class: "me-skeleton__row me-skeleton__block me-skeleton__row--title",
89
+ style: c({
90
+ height: `${a.rowHeight}px`,
91
+ width: `${y.value * 100}%`
92
+ })
93
+ }, null, 4), i("div", {
94
+ class: "me-skeleton__row me-skeleton__block",
95
+ style: c({
96
+ height: `${a.rowHeight}px`,
97
+ marginTop: `${a.rowGap}px`,
98
+ width: "85%"
99
+ })
100
+ }, null, 4)])], 64)) : h.preset === "article" ? (l(), r(e, { key: 2 }, [i("div", {
101
+ class: "me-skeleton__row me-skeleton__block me-skeleton__row--title",
102
+ style: c({
103
+ height: `${a.rowHeight}px`,
104
+ width: `${y.value * 100}%`,
105
+ marginBottom: `${a.rowGap + 8}px`
106
+ })
107
+ }, null, 4), (l(!0), r(e, null, u(g.value, (e) => (l(), r("div", {
108
+ key: e,
109
+ class: "me-skeleton__row me-skeleton__block",
110
+ style: c(S(e, g.value))
111
+ }, null, 4))), 128))], 64)) : h.preset === "list" ? (l(!0), r(e, { key: 3 }, u(v.value, (e) => (l(), r("div", {
112
+ key: e,
113
+ class: "me-skeleton__list-item"
114
+ }, [b[0] ||= i("div", { class: "me-skeleton__list-avatar me-skeleton__block" }, null, -1), i("div", m, [i("div", {
115
+ class: "me-skeleton__row me-skeleton__block",
116
+ style: c({
117
+ height: `${a.rowHeight}px`,
118
+ width: `${e % 2 == 0 ? 50 : 40}%`
119
+ })
120
+ }, null, 4), i("div", {
121
+ class: "me-skeleton__row me-skeleton__block",
122
+ style: c({
123
+ height: `${a.rowHeight}px`,
124
+ marginTop: `${a.rowGap}px`,
125
+ width: `${e % 3 == 0 ? 90 : 75}%`
126
+ })
127
+ }, null, 4)])]))), 128)) : (l(!0), r(e, { key: 4 }, u(g.value, (e) => (l(), r("div", {
128
+ key: e,
129
+ class: "me-skeleton__row me-skeleton__block",
130
+ style: c(S(e, g.value))
131
+ }, null, 4))), 128))], 16)) : d(t.$slots, "default", {}, void 0, void 0, 1);
132
+ }
133
+ });
134
+ //#endregion
135
+ export { h as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/icon-DdoH0MfT.js";
1
+ import { t as e } from "../chunks/icon-CXjgApCy.js";
2
2
  //#region src/components/icon/index.ts
3
3
  e.install = (t) => {
4
4
  t.component("MeIcon", e);
package/dist/index.d.ts CHANGED
@@ -15,8 +15,9 @@ import { default as MeLoadJson } from './load-json';
15
15
  import { default as MeLoginPage } from './login-page';
16
16
  import { default as MeCard } from './card';
17
17
  import { default as MeSkeleton } from './skeleton';
18
+ import { default as MeInputProperty } from './input-property';
18
19
  declare const install: (app: App) => void;
19
- export { MeMessage, MeMessageComponent, MeIcon, MeBox, MeBreadcrumb, MeBody, MeMenu, MeNav, MeModal, MeTreeMenu, MeInputGps, MeInputIconSelector, MeInputRadio, MeLoadJson, MeLoginPage, MeCard, MeSkeleton, install };
20
+ export { MeMessage, MeMessageComponent, MeIcon, MeBox, MeBreadcrumb, MeBody, MeMenu, MeNav, MeModal, MeTreeMenu, MeInputGps, MeInputIconSelector, MeInputRadio, MeLoadJson, MeLoginPage, MeCard, MeSkeleton, MeInputProperty, install };
20
21
  export { MeMessage as $message } from './message';
21
22
  export { loadIconfont } from './icon';
22
23
  declare const _default: {
@@ -41,3 +42,4 @@ export * from './load-json';
41
42
  export * from './login-page';
42
43
  export * from './card';
43
44
  export * from './skeleton';
45
+ export * from './input-property';