@me-framework/me-ui-antdv-next 0.0.24 → 0.0.28

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 (108) hide show
  1. package/README.md +41 -0
  2. package/dist/base/index.css +1 -0
  3. package/dist/base/index.js +0 -0
  4. package/dist/base.d.ts +1 -0
  5. package/dist/body/index.css +1 -0
  6. package/dist/body/index.js +153 -0
  7. package/dist/{components/body → body}/index.vue.d.ts +3 -3
  8. package/dist/box/index.css +1 -0
  9. package/dist/box/index.js +170 -0
  10. package/dist/breadcrumb/index.css +1 -0
  11. package/dist/breadcrumb/index.js +99 -0
  12. package/dist/card/index.css +1 -0
  13. package/dist/card/index.js +154 -0
  14. package/dist/chunks/icon-CXjgApCy.js +156 -0
  15. package/dist/chunks/input-icon-selector-BrrR4KK6.js +228 -0
  16. package/dist/chunks/message-D2zYiiQe.js +290 -0
  17. package/dist/chunks/modal-KBZYtIHD.js +178 -0
  18. package/dist/icon/index.css +1 -0
  19. package/dist/icon/index.js +27 -0
  20. package/dist/index.d.ts +34 -34
  21. package/dist/input-gps/index.css +1 -0
  22. package/dist/input-gps/index.js +303 -0
  23. package/dist/{components/input-gps → input-gps}/index.vue.d.ts +3 -1
  24. package/dist/{components/input-gps → input-gps}/map.vue.d.ts +1 -1
  25. package/dist/{components/input-gps → input-gps}/types.d.ts +9 -5
  26. package/dist/input-icon-selector/index.css +1 -0
  27. package/dist/input-icon-selector/index.js +2 -0
  28. package/dist/input-radio/index.css +1 -0
  29. package/dist/input-radio/index.js +96 -0
  30. package/dist/{components/input-radio → input-radio}/index.vue.d.ts +3 -3
  31. package/dist/load-json/index.css +1 -0
  32. package/dist/load-json/index.js +211 -0
  33. package/dist/login-page/index.css +1 -0
  34. package/dist/login-page/index.js +272 -0
  35. package/dist/me-ui-antdv-next.js +62 -48
  36. package/dist/me-ui-antdv-next.umd.cjs +2 -2
  37. package/dist/menu/index.css +1 -0
  38. package/dist/menu/index.js +465 -0
  39. package/dist/message/index.css +1 -0
  40. package/dist/message/index.js +2 -0
  41. package/dist/modal/index.css +1 -0
  42. package/dist/modal/index.js +2 -0
  43. package/dist/nav/index.css +1 -0
  44. package/dist/nav/index.js +560 -0
  45. package/dist/resolver/index.d.ts +7 -0
  46. package/dist/resolver/index.js +39 -0
  47. package/dist/resolver/resolver-map.d.ts +6 -0
  48. package/dist/resolver/resolver-type.d.ts +19 -0
  49. package/dist/resolver.d.ts +2 -0
  50. package/dist/shims-vue.d.ts +3 -0
  51. package/dist/skeleton/index.css +1 -0
  52. package/dist/skeleton/index.js +141 -0
  53. package/dist/{me-ui-antdv-next.css → style.css} +1 -1
  54. package/dist/styles/base.d.ts +0 -0
  55. package/dist/tree-menu/index.css +1 -0
  56. package/dist/tree-menu/index.js +890 -0
  57. package/package.json +18 -9
  58. package/dist/{components/body → body}/index.d.ts +0 -0
  59. package/dist/{components/body → body}/types.d.ts +0 -0
  60. package/dist/{components/box → box}/index.d.ts +0 -0
  61. package/dist/{components/box → box}/index.vue.d.ts +2 -2
  62. package/dist/{components/box → box}/types.d.ts +0 -0
  63. package/dist/{components/breadcrumb → breadcrumb}/index.d.ts +0 -0
  64. package/dist/{components/breadcrumb → breadcrumb}/index.vue.d.ts +0 -0
  65. package/dist/{components/breadcrumb → breadcrumb}/types.d.ts +0 -0
  66. package/dist/{components/card → card}/index.d.ts +0 -0
  67. package/dist/{components/card → card}/index.vue.d.ts +4 -4
  68. package/dist/{components/card → card}/types.d.ts +0 -0
  69. package/dist/{components/icon → icon}/index.d.ts +0 -0
  70. package/dist/{components/icon → icon}/index.vue.d.ts +2 -2
  71. package/dist/{components/icon → icon}/types.d.ts +0 -0
  72. package/dist/{components/input-gps → input-gps}/index.d.ts +0 -0
  73. package/dist/{components/input-icon-selector → input-icon-selector}/index.d.ts +0 -0
  74. package/dist/{components/input-icon-selector → input-icon-selector}/index.vue.d.ts +5 -5
  75. package/dist/{components/input-icon-selector → input-icon-selector}/types.d.ts +0 -0
  76. package/dist/{components/input-radio → input-radio}/index.d.ts +0 -0
  77. package/dist/{components/input-radio → input-radio}/types.d.ts +0 -0
  78. package/dist/{components/load-json → load-json}/index.d.ts +0 -0
  79. package/dist/{components/load-json → load-json}/index.vue.d.ts +1 -1
  80. package/dist/{components/load-json → load-json}/types.d.ts +0 -0
  81. package/dist/{components/login-page → login-page}/index.d.ts +0 -0
  82. package/dist/{components/login-page → login-page}/index.vue.d.ts +0 -0
  83. package/dist/{components/login-page → login-page}/types.d.ts +0 -0
  84. package/dist/{components/menu → menu}/MenuTreeItem.vue.d.ts +0 -0
  85. package/dist/{components/menu → menu}/index.d.ts +0 -0
  86. package/dist/{components/menu → menu}/index.vue.d.ts +2 -2
  87. package/dist/{components/menu → menu}/types.d.ts +0 -0
  88. package/dist/{components/message → message}/index.d.ts +0 -0
  89. package/dist/{components/message → message}/index.vue.d.ts +4 -4
  90. package/dist/{components/message → message}/types.d.ts +0 -0
  91. package/dist/{components/modal → modal}/index.d.ts +0 -0
  92. package/dist/{components/modal → modal}/index.vue.d.ts +5 -5
  93. package/dist/{components/modal → modal}/types.d.ts +0 -0
  94. package/dist/{components/nav → nav}/composables/useNavDrag.d.ts +0 -0
  95. package/dist/{components/nav → nav}/composables/useNavScroll.d.ts +0 -0
  96. package/dist/{components/nav → nav}/index.d.ts +0 -0
  97. package/dist/{components/nav → nav}/index.vue.d.ts +5 -5
  98. package/dist/{components/nav → nav}/types.d.ts +0 -0
  99. package/dist/{components/skeleton → skeleton}/index.d.ts +0 -0
  100. package/dist/{components/skeleton → skeleton}/index.vue.d.ts +0 -0
  101. package/dist/{components/skeleton → skeleton}/types.d.ts +0 -0
  102. package/dist/{components/tree-menu → tree-menu}/TreeMenuActions.vue.d.ts +0 -0
  103. package/dist/{components/tree-menu → tree-menu}/TreeMenuCard.vue.d.ts +1 -1
  104. package/dist/{components/tree-menu → tree-menu}/TreeMenuEdit.vue.d.ts +2 -2
  105. package/dist/{components/tree-menu → tree-menu}/TreeMenuNode.vue.d.ts +0 -0
  106. package/dist/{components/tree-menu → tree-menu}/index.d.ts +0 -0
  107. package/dist/{components/tree-menu → tree-menu}/index.vue.d.ts +3 -3
  108. /package/dist/{components/tree-menu → tree-menu}/types.d.ts +0 -0
@@ -0,0 +1,303 @@
1
+ import e from "../icon/index.js";
2
+ import { t } from "../chunks/modal-KBZYtIHD.js";
3
+ import { Fragment 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, nextTick as d, normalizeStyle as f, onMounted as p, openBlock as m, ref as h, resolveComponent as g, shallowRef as _, toDisplayString as v, unref as y, watch as b, withCtx as x } from "vue";
4
+ import S from "@amap/amap-jsapi-loader";
5
+ //#region src/components/input-gps/map.vue?vue&type=script&setup=true&lang.ts
6
+ var C = { class: "search-box" }, w = /* @__PURE__ */ u({
7
+ __name: "map",
8
+ props: {
9
+ isFullscreen: { type: Boolean },
10
+ modelValue: {},
11
+ mapKey: {},
12
+ mapSecurityKey: {}
13
+ },
14
+ emits: ["update:modelValue"],
15
+ setup(e, { expose: t, emit: n }) {
16
+ let i = e, a = n, c = _(null), u = h(""), d = h([]), v = r({
17
+ get() {
18
+ return i.modelValue || {};
19
+ },
20
+ set(e) {
21
+ a("update:modelValue", e);
22
+ }
23
+ });
24
+ b(() => v.value, (e) => {
25
+ e.longitude && e.latitude && j(e);
26
+ }, { deep: !0 }), b(() => i.isFullscreen, () => {
27
+ setTimeout(() => {
28
+ c.value?.resize();
29
+ }, 100);
30
+ });
31
+ let y, w, T, E;
32
+ function D() {
33
+ let e = i.mapSecurityKey || "f4b453739d9bbfaeedb62f53dcf4c436";
34
+ e && typeof window < "u" && (window._AMapSecurityConfig = { securityJsCode: e }), S.load({
35
+ key: i.mapKey || "43046d94499dc85dec81037e5ac14ee9",
36
+ version: "2.0",
37
+ plugins: [
38
+ "AMap.ToolBar",
39
+ "AMap.Scale",
40
+ "AMap.Geolocation",
41
+ "AMap.PlaceSearch",
42
+ "AMap.Geocoder"
43
+ ]
44
+ }).then((e) => {
45
+ w = e, c.value = new e.Map("mapcontainer"), v.value.longitude && v.value.latitude && j(v.value), e.plugin([
46
+ "AMap.ToolBar",
47
+ "AMap.Scale",
48
+ "AMap.Geolocation",
49
+ "AMap.PlaceSearch",
50
+ "AMap.Geocoder"
51
+ ], () => {
52
+ let t = new e.ToolBar(), n = new e.Scale(), r = new e.Geolocation({
53
+ enableHighAccuracy: !0,
54
+ timeout: 1e4,
55
+ position: "RT",
56
+ buttonOffset: new e.Pixel(10, 20),
57
+ zoomToAccuracy: !0
58
+ });
59
+ E = new e.Geocoder({ city: "全国" }), c.value.addControl(r), c.value.addControl(t), c.value.addControl(n), y = new e.PlaceSearch({
60
+ map: c.value,
61
+ city: "",
62
+ pageSize: 30,
63
+ pageIndex: 1,
64
+ citylimit: !1,
65
+ autoFitView: !0
66
+ }), c.value.on("click", k), e.Event.addListener(y, "markerClick", function(e) {
67
+ let t = { ...v.value };
68
+ t.longitude = e.data.location.lng, t.latitude = e.data.location.lat, t.name = e.data.name, a("update:modelValue", t);
69
+ });
70
+ });
71
+ });
72
+ }
73
+ p(() => {
74
+ D(), setTimeout(() => {
75
+ let { longitude: e, latitude: t } = v.value;
76
+ e && t && c.value && c.value.setZoomAndCenter(16, [e, t]);
77
+ }, 500);
78
+ });
79
+ function O(e) {
80
+ if (!e) {
81
+ d.value = [];
82
+ return;
83
+ }
84
+ y.search(e, (e, t) => {
85
+ if (t && typeof t == "object" && t.poiList) {
86
+ let e = t.poiList.pois;
87
+ d.value = e.map((e) => ({
88
+ value: e.name,
89
+ label: e.name,
90
+ ...e
91
+ }));
92
+ } else d.value = [];
93
+ });
94
+ }
95
+ function k(e) {
96
+ if (!E) return;
97
+ let { lng: t, lat: n } = e.lnglat;
98
+ a("update:modelValue", {
99
+ longitude: t,
100
+ latitude: n
101
+ }), E.getAddress([t, n], (e, r) => {
102
+ if (e === "complete" && r.info === "OK") {
103
+ let { addressComponent: e, formattedAddress: i } = r.regeocode, { city: o, province: s, district: c } = e;
104
+ o ||= s, a("update:modelValue", {
105
+ longitude: t,
106
+ latitude: n,
107
+ address: i,
108
+ zone: [
109
+ s,
110
+ o,
111
+ c
112
+ ]
113
+ });
114
+ }
115
+ });
116
+ }
117
+ function A(e, t) {
118
+ let n = t, { pname: r, cityname: i, adname: o, address: s, name: l } = n, { lng: u, lat: d } = n.location;
119
+ a("update:modelValue", {
120
+ longitude: u,
121
+ latitude: d,
122
+ address: s,
123
+ zone: [
124
+ r,
125
+ i,
126
+ o
127
+ ],
128
+ name: l
129
+ }), c.value.setZoomAndCenter(16, [u, d]);
130
+ }
131
+ function j(e = v.value) {
132
+ let { longitude: t, latitude: n } = e;
133
+ !t || !n || (T && T.setMap(null), T = new w.Marker({
134
+ position: new w.LngLat(t, n),
135
+ anchor: "bottom-center"
136
+ }), c.value.add(T));
137
+ }
138
+ function M() {
139
+ c.value?.resize();
140
+ }
141
+ function N() {
142
+ let { longitude: e, latitude: t } = v.value;
143
+ e && t && c.value && (c.value.setZoomAndCenter(16, [e, t]), j());
144
+ }
145
+ return t({
146
+ resize: M,
147
+ setCenter: N
148
+ }), (t, n) => {
149
+ let r = g("a-input"), i = g("a-auto-complete");
150
+ return m(), o("div", {
151
+ class: "me-input-gps__map",
152
+ style: f({
153
+ height: e.isFullscreen ? "100%" : "400px",
154
+ width: "100%"
155
+ })
156
+ }, [n[3] ||= s("div", { id: "mapcontainer" }, null, -1), s("div", C, [
157
+ l(i, {
158
+ value: u.value,
159
+ "onUpdate:value": n[0] ||= (e) => u.value = e,
160
+ options: d.value,
161
+ placeholder: "输入城市+关键字搜索",
162
+ style: { width: "300px" },
163
+ onSearch: O,
164
+ onSelect: A
165
+ }, {
166
+ default: x(() => [l(r, { "allow-clear": "" })]),
167
+ _: 1
168
+ }, 8, ["value", "options"]),
169
+ l(r, {
170
+ value: v.value.longitude,
171
+ "onUpdate:value": n[1] ||= (e) => v.value.longitude = e,
172
+ placeholder: "点击地图选择经度",
173
+ maxlength: 15,
174
+ "allow-clear": "",
175
+ style: {
176
+ width: "150px",
177
+ margin: "0 5px"
178
+ }
179
+ }, null, 8, ["value"]),
180
+ l(r, {
181
+ value: v.value.latitude,
182
+ "onUpdate:value": n[2] ||= (e) => v.value.latitude = e,
183
+ placeholder: "点击地图选择纬度",
184
+ maxlength: 15,
185
+ "allow-clear": "",
186
+ style: { width: "150px" }
187
+ }, null, 8, ["value"])
188
+ ])], 4);
189
+ };
190
+ }
191
+ }), T = { class: "me-input-gps" }, E = {
192
+ key: 0,
193
+ class: "me-input-gps__address"
194
+ }, D = /* @__PURE__ */ u({
195
+ name: "MeInputGps",
196
+ __name: "index",
197
+ props: {
198
+ modelValue: {},
199
+ latitude: {},
200
+ longitude: {},
201
+ address: {},
202
+ mapKey: {},
203
+ mapSecurityKey: {},
204
+ placeholder: { default: "请选择位置" },
205
+ disabled: {
206
+ type: Boolean,
207
+ default: !1
208
+ }
209
+ },
210
+ emits: ["update:modelValue", "confirm"],
211
+ setup(s, { emit: u }) {
212
+ let f = s, _ = u, S = r(() => f.modelValue && Object.keys(f.modelValue).length ? f.modelValue : {
213
+ latitude: f.latitude,
214
+ longitude: f.longitude,
215
+ address: f.address
216
+ }), C = h({}), D = h(!1), O = h(!1), k = h(null), A = r(() => C.value.latitude ? `经度:${C.value.longitude},纬度:${C.value.latitude}` : ""), j = r(() => f.mapKey || "43046d94499dc85dec81037e5ac14ee9"), M = r(() => f.mapSecurityKey || "f4b453739d9bbfaeedb62f53dcf4c436"), N = () => {
217
+ f.disabled || (D.value = !0);
218
+ }, P = h(!1), F = () => {
219
+ let e = {
220
+ latitude: C.value.latitude || "",
221
+ longitude: C.value.longitude || "",
222
+ address: C.value.address || ""
223
+ };
224
+ P.value = !0, _("update:modelValue", { ...e }), _("confirm", { ...e }), D.value = !1;
225
+ }, I = (e) => {
226
+ O.value = e;
227
+ };
228
+ return b(D, (e) => {
229
+ e && d(() => {
230
+ setTimeout(() => {
231
+ k.value?.resize(), k.value?.setCenter();
232
+ }, 300);
233
+ });
234
+ }), b(D, (e) => {
235
+ e || (P.value ? P.value = !1 : C.value = { ...S.value });
236
+ }), b(S, (e) => {
237
+ D.value || (C.value = { ...e });
238
+ }), p(() => {
239
+ C.value = { ...S.value };
240
+ }), (r, u) => {
241
+ let d = g("a-input"), f = g("a-button"), p = g("a-space-compact");
242
+ return m(), o("div", T, [
243
+ l(p, { style: { width: "100%" } }, {
244
+ default: x(() => [l(d, {
245
+ value: A.value,
246
+ placeholder: s.placeholder,
247
+ disabled: s.disabled,
248
+ readonly: "",
249
+ class: "me-input-gps__input"
250
+ }, null, 8, [
251
+ "value",
252
+ "placeholder",
253
+ "disabled"
254
+ ]), l(f, {
255
+ disabled: s.disabled,
256
+ onClick: N
257
+ }, {
258
+ default: x(() => [l(y(e), {
259
+ name: "MapPin",
260
+ size: 16
261
+ })]),
262
+ _: 1
263
+ }, 8, ["disabled"])]),
264
+ _: 1
265
+ }),
266
+ C.value?.latitude ? (m(), o("div", E, [C.value.address ? (m(), o(n, { key: 0 }, [c(" 位置:" + v(C.value.address), 1)], 64)) : (m(), o(n, { key: 1 }, [c(" 位置:经度 " + v(C.value.longitude) + ",纬度 " + v(C.value.latitude), 1)], 64))])) : a("", !0),
267
+ l(y(t), {
268
+ open: D.value,
269
+ "onUpdate:open": u[1] ||= (e) => D.value = e,
270
+ title: "选择位置",
271
+ width: 800,
272
+ onFullscreenChange: I,
273
+ onOk: F
274
+ }, {
275
+ default: x(() => [D.value && j.value ? (m(), i(w, {
276
+ key: 0,
277
+ ref_key: "mapRef",
278
+ ref: k,
279
+ "is-fullscreen": O.value,
280
+ modelValue: C.value,
281
+ "onUpdate:modelValue": u[0] ||= (e) => C.value = e,
282
+ "map-key": j.value,
283
+ "map-security-key": M.value
284
+ }, null, 8, [
285
+ "is-fullscreen",
286
+ "modelValue",
287
+ "map-key",
288
+ "map-security-key"
289
+ ])) : a("", !0)]),
290
+ _: 1
291
+ }, 8, ["open"])
292
+ ]);
293
+ };
294
+ }
295
+ });
296
+ //#endregion
297
+ //#region src/components/input-gps/index.ts
298
+ D.install = (e) => {
299
+ e.component("MeInputGps", D);
300
+ };
301
+ var O = D;
302
+ //#endregion
303
+ export { D as MeInputGps, O as default };
@@ -1,11 +1,13 @@
1
- import { MeInputGpsProps } from './types';
1
+ import { MeInputGpsProps, GpsCoord } from './types';
2
2
  declare const __VLS_export: import('vue').DefineComponent<MeInputGpsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: GpsCoord) => any;
3
4
  confirm: (data: {
4
5
  latitude: number | string;
5
6
  longitude: number | string;
6
7
  address: string;
7
8
  }) => any;
8
9
  }, string, import('vue').PublicProps, Readonly<MeInputGpsProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: GpsCoord) => any) | undefined;
9
11
  onConfirm?: ((data: {
10
12
  latitude: number | string;
11
13
  longitude: number | string;
@@ -3,7 +3,7 @@ type __VLS_Props = {
3
3
  isFullscreen?: boolean;
4
4
  modelValue?: GpsCoord;
5
5
  mapKey?: string;
6
- securityJsCode?: string;
6
+ mapSecurityKey?: string;
7
7
  };
8
8
  /** 重新调整地图尺寸(容器尺寸变化后调用) */
9
9
  declare function resize(): void;
@@ -16,16 +16,18 @@ export interface GpsCoord {
16
16
  }
17
17
  /** MeInputGps Props */
18
18
  export interface MeInputGpsProps {
19
- /** 纬度 */
19
+ /** v-model 绑定的坐标对象(优先于单独的 latitude/longitude/address) */
20
+ modelValue?: GpsCoord;
21
+ /** 纬度(未使用 modelValue 时的回退) */
20
22
  latitude?: number | string;
21
23
  /** 经度 */
22
24
  longitude?: number | string;
23
25
  /** 地址 */
24
26
  address?: string;
25
- /** 高德地图 Web 端 Key */
26
- mapKey: string;
27
- /** 高德地图安全密钥(JS API 2.0 必填,开启"加密方式"时使用) */
28
- securityJsCode?: string;
27
+ /** 高德地图 Web 端 Key(可不传,默认读取 .env 的 VITE_AMAP_KEY) */
28
+ mapKey?: string;
29
+ /** 高德地图安全密钥(可不传,默认读取 .env VITE_AMAP_SECURITY_KEY;控制台开启「安全密钥」加密方式时通常需要) */
30
+ mapSecurityKey?: string;
29
31
  /** 输入框占位符 */
30
32
  placeholder?: string;
31
33
  /** 是否禁用 */
@@ -33,6 +35,8 @@ export interface MeInputGpsProps {
33
35
  }
34
36
  /** MeInputGps Events */
35
37
  export interface MeInputGpsEmits {
38
+ /** 更新 v-model 绑定的坐标 */
39
+ (e: 'update:modelValue', value: GpsCoord): void;
36
40
  /** 确认选择位置 */
37
41
  (e: 'confirm', data: {
38
42
  latitude: number | string;
@@ -0,0 +1 @@
1
+ .me-input-icon-selector{width:100%}.me-input-icon-selector-popover .ant-popover-inner-content{padding:12px}.me-input-icon-selector-popover-content{box-sizing:border-box;width:280px}.me-input-icon-selector__popover{width:256px}.me-input-icon-selector__search{margin-bottom:8px}.me-input-icon-selector__tabs{margin:0 0 8px}.me-input-icon-selector__list{grid-template-columns:repeat(6,1fr);gap:10px;max-height:340px;margin:10px 0;display:grid;overflow-y:auto}.me-input-icon-selector__list .icon-item{box-sizing:border-box;aspect-ratio:1;border:1px solid var(--me-border-color-light);border-radius:var(--me-border-radius-sm);cursor:pointer;color:var(--me-text-primary);justify-content:center;align-items:center;transition:all .2s cubic-bezier(.645,.045,.355,1);display:flex}.me-input-icon-selector__list .icon-item:hover{border-color:var(--me-color-primary);color:var(--me-color-primary)}.me-input-icon-selector__list .icon-item.is-active{border-color:var(--me-color-primary);color:var(--me-color-primary);background-color:var(--me-fill-color-light)}.me-input-icon-selector__footer{border-top:1px solid var(--me-border-color-light);justify-content:space-between;align-items:center;padding-top:8px;display:flex}.me-input-icon-selector__link{color:var(--me-color-primary);font-size:12px;text-decoration:none}.me-input-icon-selector__link:hover{opacity:.8}.me-input-icon-selector__pagination{flex-shrink:0;justify-content:flex-end;width:120px;margin-top:0;display:flex}.me-input-icon-selector__pagination .ant-pagination{justify-content:flex-end;margin:0}.me-input-icon-selector__pagination .ant-pagination-total-text,.me-input-icon-selector__pagination .ant-pagination-options,.me-input-icon-selector__pagination .ant-pagination-simple-pager{display:none}.me-input-icon-selector__pagination .ant-pagination-prev,.me-input-icon-selector__pagination .ant-pagination-next{min-width:24px;height:24px;font-size:12px;line-height:22px}.me-input-icon-selector__empty{height:120px;color:var(--me-text-secondary);justify-content:center;align-items:center;font-size:13px;display:flex}
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../chunks/input-icon-selector-BrrR4KK6.js";
2
+ export { e as MeInputIconSelector, t as default };
@@ -0,0 +1 @@
1
+ .me-input-radio{--me-input-radio-primary-color:#1677ff;--me-input-radio-border-color:#d9d9d9;--me-input-radio-bg:#fff;--me-input-radio-title-color:var(--me-input-radio-primary-color);--me-input-radio-desc-color:#6c7a91;--me-input-radio-checked-bg:#1677ff0a;--me-input-radio-checked-shadow:0 0 0 .25rem #1677ff40;--me-input-radio-ribbon-color:#1677ff;--me-input-radio-padding:10px;--me-input-radio-check-size:14px;--me-input-radio-ribbon-size:30px;--me-input-radio-check-offset-bottom:7px;--me-input-radio-check-offset-right:2px;border:2px solid var(--me-input-radio-border-color);padding:var(--me-input-radio-padding);white-space:pre-wrap;border-radius:4px;align-items:flex-start;height:auto;margin-bottom:10px;line-height:1.5;transition:border-color .3s,background .3s,color .3s;display:inline-flex;position:relative;box-shadow:0 1px 1px #1824330f}.me-input-radio--small{--me-input-radio-padding:4px;--me-input-radio-check-size:10px;--me-input-radio-ribbon-size:20px;--me-input-radio-check-offset-bottom:5px;--me-input-radio-check-offset-right:0px}.me-input-radio .ant-radio+span{flex:1;width:100%;padding-inline-start:8px;overflow:hidden}.me-input-radio .ant-radio{display:none}.me-input-radio--radio .ant-radio{align-self:center;display:inline-flex}.me-input-radio--radio.ant-radio-wrapper-checked:before,.me-input-radio--radio.ant-radio-wrapper-checked:after{display:none!important}.me-input-radio .ant-radio-checked .ant-radio-inner{border-color:var(--me-input-radio-primary-color);background-color:var(--me-input-radio-primary-color)}.me-input-radio .ant-radio-checked .ant-radio-inner:after{opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86);transform:scale(1)}.me-input-radio__content{flex:1}.me-input-radio__title{word-break:break-all;color:var(--me-input-radio-title-color);font-size:15px;font-weight:700}.me-input-radio__desc{letter-spacing:.3px;font-size:11px;color:var(--me-input-radio-desc-color)!important}.me-input-radio.ant-radio-wrapper-checked{border-color:var(--me-input-radio-primary-color);box-shadow:var(--me-input-radio-checked-shadow);background:var(--me-input-radio-checked-bg)}.me-input-radio.ant-radio-wrapper-checked:before{content:"";width:var(--me-input-radio-check-size);height:calc(var(--me-input-radio-check-size) * .5);top:auto;bottom:var(--me-input-radio-check-offset-bottom);right:var(--me-input-radio-check-offset-right);z-index:9;background:0 0;border-top:none;border-bottom:2px solid #fff;border-left:2px solid #fff;border-right:none;display:block;position:absolute;transform:rotate(315deg)}.me-input-radio.ant-radio-wrapper-checked:after{content:"";border-bottom:var(--me-input-radio-ribbon-size) solid var(--me-input-radio-ribbon-color);border-left:var(--me-input-radio-ribbon-size) solid transparent;width:0;height:0;position:absolute;bottom:0;right:0}.me-input-radio.ant-radio-wrapper-checked.me-input-radio--top:before{top:0;bottom:auto}.me-input-radio.ant-radio-wrapper-checked.me-input-radio--top:after{border-bottom:none;border-top:var(--me-input-radio-ribbon-size) solid var(--me-input-radio-ribbon-color);top:0;bottom:auto}.me-input-radio.ant-radio-wrapper-disabled{cursor:not-allowed}html.dark .me-input-radio,.dark .me-input-radio{--me-input-radio-primary-color:#4096ff;--me-input-radio-border-color:#434343;--me-input-radio-bg:#1d1e1f;--me-input-radio-title-color:#4096ff;--me-input-radio-desc-color:#a6adbb;--me-input-radio-checked-bg:#4096ff1a;--me-input-radio-checked-shadow:0 0 0 .25rem #4096ff40;--me-input-radio-ribbon-color:#4096ff;background-color:var(--me-input-radio-bg)}
@@ -0,0 +1,96 @@
1
+ import { computed as e, createBlock as t, createElementVNode as n, defineComponent as r, mergeProps as i, normalizeStyle as a, openBlock as o, resolveComponent as s, toDisplayString as c, withCtx as l } from "vue";
2
+ //#region src/components/input-radio/index.vue?vue&type=script&setup=true&lang.ts
3
+ var u = { class: "me-input-radio__content" }, d = /* @__PURE__ */ r({
4
+ name: "MeInputRadio",
5
+ __name: "index",
6
+ props: {
7
+ title: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ desc: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ radio: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ width: {
20
+ type: String,
21
+ default: "150px"
22
+ },
23
+ top: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ gap: {
28
+ type: String,
29
+ default: "30px"
30
+ },
31
+ size: {
32
+ type: String,
33
+ default: "normal"
34
+ },
35
+ disabled: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ label: {
40
+ type: [
41
+ String,
42
+ Number,
43
+ Boolean
44
+ ],
45
+ default: ""
46
+ }
47
+ },
48
+ setup(r) {
49
+ let d = r, f = e(() => d.disabled ? {
50
+ backgroundColor: "var(--ant-color-bg-container-disabled)",
51
+ color: "var(--ant-color-text-disabled)",
52
+ borderColor: "var(--ant-color-border)",
53
+ boxShadow: "none",
54
+ cursor: "not-allowed"
55
+ } : {}), p = e(() => ({ ...f.value })), m = e(() => ({ ...f.value }));
56
+ return (e, d) => {
57
+ let f = s("a-radio");
58
+ return o(), t(f, i({
59
+ value: r.label,
60
+ disabled: r.disabled
61
+ }, e.$attrs, {
62
+ class: ["me-input-radio", {
63
+ "me-input-radio--top": r.top,
64
+ "me-input-radio--small": r.size === "small",
65
+ "me-input-radio--radio": r.radio
66
+ }],
67
+ style: {
68
+ width: r.width,
69
+ marginRight: r.gap
70
+ }
71
+ }), {
72
+ default: l(() => [n("div", u, [n("div", {
73
+ class: "me-input-radio__title",
74
+ style: a(p.value)
75
+ }, c(r.title), 5), n("div", {
76
+ class: "me-input-radio__desc",
77
+ style: a(m.value)
78
+ }, c(r.desc), 5)])]),
79
+ _: 1
80
+ }, 16, [
81
+ "value",
82
+ "disabled",
83
+ "class",
84
+ "style"
85
+ ]);
86
+ };
87
+ }
88
+ });
89
+ //#endregion
90
+ //#region src/components/input-radio/index.ts
91
+ d.install = (e) => {
92
+ e.component("MeInputRadio", d);
93
+ };
94
+ var f = d;
95
+ //#endregion
96
+ export { d as MeInputRadio, f as default };
@@ -92,12 +92,12 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
92
92
  default: string;
93
93
  };
94
94
  }>> & Readonly<{}>, {
95
- top: boolean;
96
- width: string;
95
+ size: "normal" | "small";
97
96
  title: string;
98
97
  label: string | number | boolean;
99
98
  desc: string;
100
- size: "small" | "normal";
99
+ top: boolean;
100
+ width: string;
101
101
  disabled: boolean;
102
102
  radio: boolean;
103
103
  gap: string;
@@ -0,0 +1 @@
1
+ .me-load-json{display:inline-block}.me-load-json__editor{flex-direction:column;flex:1;width:100%;height:100%;min-height:400px;display:flex}.me-load-json__editor .editor{flex:1;width:100%;height:100%;min-height:0}.me-load-json-modal .ant-modal-body{flex-direction:column;min-height:400px;padding:0;display:flex}.me-load-json-modal .ant-modal-content{flex-direction:column;height:100%;display:flex}.me-load-json-modal .ant-modal{height:80vh;max-height:80vh}.me-load-json-modal.me-modal-wrap--fullscreen .ant-modal{height:100vh;max-height:100vh;padding-bottom:0;top:0}.me-load-json-modal.me-modal-wrap--fullscreen .ant-modal-body{flex:1;min-height:0}