asiaint-lowcode 3.0.10 → 3.0.11

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 (32) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +132 -132
  3. package/dist/index.d.ts +227 -38
  4. package/dist/lazy/Card-CpK65F2R.js +77 -0
  5. package/dist/lazy/{Cascader-Gem1tf3p.js → Cascader-DwYAjKnt.js} +10 -9
  6. package/dist/lazy/{Checkbox-BxrnuJq1.js → Checkbox-DyhHO1lI.js} +3 -2
  7. package/dist/lazy/{Collapse-Cu8gp21w.js → Collapse-BB6uq8XG.js} +1 -1
  8. package/dist/lazy/{Component-CAj69dYy.js → Component-D2cqqZWu.js} +1 -1
  9. package/dist/lazy/{Component-46GeOz3I.js → Component-DPMNuys3.js} +1 -1
  10. package/dist/lazy/{Component-B4ZGwOZm.js → Component-Dc6ui_ac.js} +1 -1
  11. package/dist/lazy/{Component-Cp33Touf.js → Component-Dch4Sc0Z.js} +1 -1
  12. package/dist/lazy/Component-SBS5WSNC.js +32 -0
  13. package/dist/lazy/{Component-DQD6fDeO.js → Component-ZCJQNxel.js} +1 -1
  14. package/dist/lazy/{Custom-DYmckKCU.js → Custom-BxBsRCKU.js} +1 -1
  15. package/dist/lazy/{DatePicker-C2Xfur9H.js → DatePicker-DKOiq92L.js} +1 -1
  16. package/dist/lazy/{FormList-mj0DqTX9.js → FormList-z1CXVWu9.js} +1 -1
  17. package/dist/lazy/{Grid-BY7cCYmz.js → Grid-CriVKZ2b.js} +1 -1
  18. package/dist/lazy/{Inline-C_YHch3X.js → Inline-DTwut_Pu.js} +1 -1
  19. package/dist/lazy/{JsonEdit-BWWAH1jp.js → JsonEdit-CoLe-wTH.js} +1 -1
  20. package/dist/lazy/{ObjGroup-CX5cfC_g.js → ObjGroup-DuZvdEA5.js} +1 -1
  21. package/dist/lazy/{Radio-DXZ53glk.js → Radio-DGDip7ml.js} +7 -6
  22. package/dist/lazy/{SearchSelect-DByMp_ra.js → SearchSelect-BZqvg68V.js} +12 -11
  23. package/dist/lazy/Select-D_OzapP0.js +78 -0
  24. package/dist/lazy/{Tabs-DWO651cu.js → Tabs-C73JPy1z.js} +1 -1
  25. package/dist/lazy/{TextArea-Bb0ecX94.js → TextArea-2ePXEvCP.js} +1 -1
  26. package/dist/lazy/{index-9KA43iIq.js → index-lmlqy9ej.js} +6539 -6263
  27. package/dist/lazy/{useSelect-Dhsn7wE7.js → useSelect-BmR-wNME.js} +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/lazy/Card-DR9xYcyf.js +0 -70
  31. package/dist/lazy/Component-B0VBQwhJ.js +0 -29
  32. package/dist/lazy/Select-BbCbrGeu.js +0 -69
package/dist/index.d.ts CHANGED
@@ -1,14 +1,19 @@
1
1
  import { App } from 'vue';
2
+ import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
2
3
  import { Component } from 'vue';
3
4
  import { ComponentOptionsMixin } from 'vue';
4
5
  import { ComponentProvideOptions } from 'vue';
6
+ import { ComponentPublicInstance } from 'vue';
5
7
  import { DeepReadonly } from 'vue';
6
8
  import { DefineComponent } from 'vue';
9
+ import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
7
10
  import { ExtractPropTypes } from 'vue';
8
11
  import { FormValidationResult } from 'element-plus';
9
12
  import { InjectionKey } from 'vue';
13
+ import { ModelRef } from 'vue';
10
14
  import { PropType } from 'vue';
11
15
  import { PublicProps } from 'vue';
16
+ import { TabPaneName } from 'element-plus';
12
17
  import { TabsProps } from 'element-plus';
13
18
  import { VNode } from 'vue';
14
19
 
@@ -56,8 +61,9 @@ setDisabled: (disabled: boolean) => void;
56
61
  findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
57
62
  setFieldEditSts: (key: string, value: boolean) => void;
58
63
  setFieldVisibleSts: (key: string, value: boolean) => void;
59
- setFieldValue: (key: string, realValue: any, value: any) => void;
64
+ setFieldValue: (key: string, realValue: any, value?: any) => void;
60
65
  getFieldValue: (key: string) => any;
66
+ rootRef: unknown;
61
67
  type: string;
62
68
  schema: FormSchema;
63
69
  schemaContext: Record<string, any>;
@@ -106,7 +112,27 @@ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypeProp
106
112
  ruleMap: Record<string, any>;
107
113
  pageUrl?: string;
108
114
  pageParams?: any;
109
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
115
+ }>>, {
116
+ methodMap: {
117
+ findRef: <T extends keyof RefTypeMap>(key: string) => RefType<T>;
118
+ setFormDisabled: (key: string, disabled: boolean) => void;
119
+ validate: (keys: string[] | string) => Promise<boolean | undefined>;
120
+ getData: (keys?: string[] | string) => any;
121
+ resetFields: (keys?: string[] | string) => void;
122
+ emit: (event: "done" | "refresh", ...args: any[]) => void;
123
+ setData: (key: string, dataModel: any, isAssign?: boolean) => void;
124
+ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
125
+ getPageParams: () => any;
126
+ setHidden: (key: string, hiddenState: boolean) => void;
127
+ setBtnHidden: (key: string, hiddenState: boolean) => void;
128
+ setBtnDisabled: (key: string, disabled: boolean) => void;
129
+ addPageParams: (params: any) => void;
130
+ setPageParams: (params: any) => void;
131
+ setGlobalParams: (params: any) => void;
132
+ getGlobalParams: () => {};
133
+ setBtnState: setBtnStateFn;
134
+ };
135
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
110
136
  done: (...args: any[]) => void;
111
137
  refresh: (...args: any[]) => void;
112
138
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
@@ -156,14 +182,142 @@ declare type BtnType = {
156
182
  disabled: boolean;
157
183
  hidden: boolean;
158
184
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
185
+ icon?: {
186
+ name: string;
187
+ color?: string;
188
+ };
159
189
  label?: string;
160
190
  };
161
191
 
192
+ declare type ComponentType = {
193
+ form: typeof FormRender;
194
+ table: typeof TableRender;
195
+ tabs: typeof _default_2;
196
+ infocard: typeof _default_3;
197
+ navbar: typeof _default_4;
198
+ };
199
+
162
200
  declare const _default: {
163
201
  install: (app: App<Element>, options?: Options) => void;
164
202
  };
165
203
  export default _default;
166
204
 
205
+ declare const _default_2: DefineComponent<ExtractPropTypes< {
206
+ schema: {
207
+ required: true;
208
+ type: PropType<TabsSchema>;
209
+ };
210
+ ruleMap: {
211
+ type: PropType<Record<string, any>>;
212
+ required: true;
213
+ };
214
+ pageParams: {
215
+ type: PropType<any>;
216
+ };
217
+ }>, {
218
+ setTabContent: (newContents: TabsSchema["content"]) => void;
219
+ addTabContent: (newContent: TabsSchema["content"] | getArrayType<TabsSchema["content"]>) => void;
220
+ schema: {
221
+ readonly key: string;
222
+ readonly rulePath?: string | undefined;
223
+ readonly onMounted?: string | undefined;
224
+ readonly onActivated?: string | undefined;
225
+ readonly tabProps?: {
226
+ readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
227
+ readonly stretch: boolean;
228
+ readonly closable: boolean;
229
+ readonly addable: boolean;
230
+ readonly editable: boolean;
231
+ readonly tabPosition: EpPropMergeType<StringConstructor, "right" | "top" | "left" | "bottom", unknown>;
232
+ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
233
+ readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
234
+ } | undefined;
235
+ readonly hidden?: boolean | undefined;
236
+ readonly content: readonly {
237
+ readonly label: string;
238
+ readonly url: string;
239
+ readonly disabled?: boolean | undefined;
240
+ readonly closable?: boolean | undefined;
241
+ readonly pageParams?: any;
242
+ }[];
243
+ readonly btns: readonly {
244
+ readonly key: string;
245
+ readonly text: string;
246
+ readonly onClick: string;
247
+ readonly disabled: boolean;
248
+ readonly hidden: boolean;
249
+ }[];
250
+ };
251
+ rootRef: Readonly<unknown>;
252
+ type: string;
253
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
254
+ schema: {
255
+ required: true;
256
+ type: PropType<TabsSchema>;
257
+ };
258
+ ruleMap: {
259
+ type: PropType<Record<string, any>>;
260
+ required: true;
261
+ };
262
+ pageParams: {
263
+ type: PropType<any>;
264
+ };
265
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
266
+
267
+ declare const _default_3: DefineComponent<ExtractPropTypes< {
268
+ schema: {
269
+ required: true;
270
+ type: PropType<InfoCardSchema>;
271
+ };
272
+ pageRulePath: {
273
+ type: PropType<string>;
274
+ required: true;
275
+ };
276
+ }>, {
277
+ type: string;
278
+ schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
279
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
280
+ schema: {
281
+ required: true;
282
+ type: PropType<InfoCardSchema>;
283
+ };
284
+ pageRulePath: {
285
+ type: PropType<string>;
286
+ required: true;
287
+ };
288
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
289
+
290
+ declare const _default_4: DefineComponent<ExtractPropTypes< {
291
+ schema: {
292
+ required: true;
293
+ type: PropType<NavBarSchema>;
294
+ };
295
+ pageRulePath: {
296
+ type: PropType<string>;
297
+ required: true;
298
+ };
299
+ findRef: {
300
+ type: PropType<(key: string) => any>;
301
+ required: true;
302
+ };
303
+ }>, {
304
+ type: string;
305
+ schema: ModelRef<NavBarSchema, string, NavBarSchema, NavBarSchema>;
306
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
307
+ schema: {
308
+ required: true;
309
+ type: PropType<NavBarSchema>;
310
+ };
311
+ pageRulePath: {
312
+ type: PropType<string>;
313
+ required: true;
314
+ };
315
+ findRef: {
316
+ type: PropType<(key: string) => any>;
317
+ required: true;
318
+ };
319
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
320
+
167
321
  declare type FormChange = {
168
322
  target: string;
169
323
  value?: any;
@@ -292,9 +446,29 @@ export declare type FormSchema = {
292
446
  items: FormItemType[];
293
447
  rulePath?: string;
294
448
  hidden?: boolean;
449
+ read?: boolean;
295
450
  dataModel?: string;
296
451
  };
297
452
 
453
+ declare type getArrayType<T> = T extends Array<infer U> ? U : never;
454
+
455
+ declare type InfoCardSchema = {
456
+ title: string;
457
+ hidden?: boolean;
458
+ copiable: boolean;
459
+ btns: BtnType[];
460
+ key: string;
461
+ rulePath?: string;
462
+ detail: {
463
+ label: string;
464
+ value: string;
465
+ }[];
466
+ customerInfo: {
467
+ name: string;
468
+ status: string;
469
+ };
470
+ };
471
+
298
472
  declare type Locale = {
299
473
  menus: {
300
474
  basicTitle: string;
@@ -330,6 +504,28 @@ declare type Locale = {
330
504
  };
331
505
  };
332
506
 
507
+ declare type NavBarSchema = {
508
+ title: string;
509
+ back?: boolean;
510
+ btns: BtnType[];
511
+ hidden?: boolean;
512
+ key: string;
513
+ rulePath?: string;
514
+ content: {
515
+ text: string;
516
+ ref: string;
517
+ }[];
518
+ leftActions?: {
519
+ icon: {
520
+ name: string;
521
+ color?: string;
522
+ };
523
+ text: string;
524
+ key: string;
525
+ onClick: string;
526
+ }[];
527
+ };
528
+
333
529
  export declare type Options = {
334
530
  extendElements?: Record<string, FormElement>;
335
531
  lang?: 'zh' | 'en';
@@ -342,42 +538,7 @@ export declare type Options = {
342
538
  translateFn?: (key: string, dataSource: Record<string, any>) => any;
343
539
  };
344
540
 
345
- export declare type PageMethods = {
346
- findRef: (key: string) => any;
347
- setFormDisabled: (key: string, disabled: boolean) => void;
348
- validate: (keys: string[] | string) => Promise<boolean>;
349
- getData: (keys?: string[] | string) => any;
350
- resetFields: (keys?: string[] | string) => void;
351
- emit: (event: 'done' | 'refresh', data?: any) => void;
352
- setData: (key: string, dataModel: any, isAssign?: boolean) => void;
353
- getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
354
- getPageParams: () => any;
355
- setHidden: (key: string, hiddenState: boolean) => void;
356
- setBtnDisabled: (key: string, disabled: boolean) => void;
357
- setBtnHidden: (key: string, hiddenState: boolean) => void;
358
- addPageParams: (params: any) => void;
359
- setPageParams: (params: any) => void;
360
- setGlobalParams: (params: any) => void;
361
- getGlobalParams: () => any;
362
- setBtnState: (params: {
363
- type: 'form';
364
- formKey: string;
365
- btnKey: string;
366
- } | {
367
- type: 'table';
368
- tableKey: string;
369
- btnPosition: 'top' | 'row';
370
- btnKey: string;
371
- } | {
372
- type: 'page';
373
- btnKey: string;
374
- } | {
375
- type: 'card';
376
- formKey: string;
377
- cardKey: string;
378
- btnKey: string;
379
- }, stateType: 'hidden' | 'disabled', state: boolean) => void;
380
- };
541
+ export declare type PageMethods = InstanceType<typeof PageRender>['methodMap'];
381
542
 
382
543
  export declare const PageRender: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
383
544
 
@@ -399,6 +560,12 @@ declare type PageSchema = {
399
560
  btns: Array<BtnType>;
400
561
  };
401
562
 
563
+ declare type RefType<T extends keyof RefTypeMap> = RefTypeMap[T] & ComponentPublicInstance;
564
+
565
+ declare type RefTypeMap = {
566
+ [K in keyof ComponentType]: InstanceType<ComponentType[K]>;
567
+ };
568
+
402
569
  declare interface SelectProps {
403
570
  options?: Record<string, any>[];
404
571
  multiple?: boolean;
@@ -410,8 +577,28 @@ declare interface SelectProps {
410
577
  dependentFields?: string[];
411
578
  name?: string;
412
579
  onChange?: string;
580
+ read?: boolean;
413
581
  }
414
582
 
583
+ declare type setBtnStateFn = (params: {
584
+ type: 'form';
585
+ formKey: string;
586
+ btnKey: string;
587
+ } | {
588
+ type: 'table';
589
+ tableKey: string;
590
+ btnPosition: 'top' | 'row';
591
+ btnKey: string;
592
+ } | {
593
+ type: 'page';
594
+ btnKey: string;
595
+ } | {
596
+ type: 'card';
597
+ formKey: string;
598
+ cardKey: string;
599
+ btnKey: string;
600
+ }, stateType: 'hidden' | 'disabled', state: boolean) => void;
601
+
415
602
  declare interface TableColumn {
416
603
  label: string;
417
604
  key: string;
@@ -467,6 +654,7 @@ setTopBtnHidden: (btnKey: string, hidden: boolean) => void;
467
654
  setColVisible: (colKey: string, visible: boolean) => void;
468
655
  setColumn: <K extends keyof TableColumn>(key: string, keyName: K, keyValue: TableColumn[K]) => void;
469
656
  setRowBtnHidden: (btnKey: string, hidden: boolean) => void;
657
+ rootRef: Readonly<unknown>;
470
658
  type: string;
471
659
  design: boolean;
472
660
  read: boolean;
@@ -613,6 +801,7 @@ export declare const useFormInstance: () => {
613
801
  }[];
614
802
  readonly rulePath?: string | undefined;
615
803
  readonly hidden?: boolean | undefined;
804
+ readonly read?: boolean | undefined;
616
805
  readonly dataModel?: string | undefined;
617
806
  };
618
807
  readonly schemaContext?: {
@@ -0,0 +1,77 @@
1
+ import { defineComponent as w, ref as y, inject as i, resolveComponent as p, openBlock as l, createBlock as u, mergeProps as M, withCtx as t, createElementVNode as s, createElementBlock as d, createVNode as c, unref as m, normalizeClass as g, createCommentVNode as _, toDisplayString as h, Fragment as v, renderList as $, createTextVNode as B, Transition as E, withDirectives as V, vShow as N } from "vue";
2
+ import { _ as D, a as S, b as T } from "./index-lmlqy9ej.js";
3
+ import "element-plus";
4
+ const j = { class: "card-header" }, x = { class: "card-btns" }, z = /* @__PURE__ */ w({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {},
10
+ btns: {}
11
+ },
12
+ setup(F) {
13
+ const a = y(!1), n = i("ruleModule", void 0), C = i("pageMethodMap", {}), f = (e) => {
14
+ if (n && n[e])
15
+ try {
16
+ n[e](C);
17
+ } catch (r) {
18
+ console.error(r);
19
+ }
20
+ };
21
+ return (e, r) => {
22
+ const k = p("el-button"), b = p("ElCard");
23
+ return l(), u(b, M(e.$attrs, {
24
+ class: "crm-card",
25
+ shadow: "never"
26
+ }), {
27
+ header: t(() => [
28
+ s("div", j, [
29
+ e.collapsible ? (l(), d("div", {
30
+ key: 0,
31
+ class: "icon-wrapper",
32
+ onClick: r[0] || (r[0] = (o) => a.value = !a.value)
33
+ }, [
34
+ c(m(D), {
35
+ name: "dropdown",
36
+ class: g(["dropdown-icon", { "is-collapsed": a.value }])
37
+ }, null, 8, ["class"])
38
+ ])) : _("", !0),
39
+ s("span", null, h(e.header), 1),
40
+ s("div", x, [
41
+ (l(!0), d(v, null, $(e.btns, (o) => (l(), d(v, {
42
+ key: o.key
43
+ }, [
44
+ o.hidden ? _("", !0) : (l(), u(k, {
45
+ key: 0,
46
+ onClick: (I) => f(o.onClick),
47
+ disabled: o.disabled
48
+ }, {
49
+ default: t(() => [
50
+ B(h(o.text), 1)
51
+ ]),
52
+ _: 2
53
+ }, 1032, ["onClick", "disabled"]))
54
+ ], 64))), 128))
55
+ ])
56
+ ])
57
+ ]),
58
+ default: t(() => [
59
+ c(E, { name: "collapse" }, {
60
+ default: t(() => [
61
+ V(s("div", null, [
62
+ c(m(S), { list: e.children }, null, 8, ["list"])
63
+ ], 512), [
64
+ [N, !a.value]
65
+ ])
66
+ ]),
67
+ _: 1
68
+ })
69
+ ]),
70
+ _: 1
71
+ }, 16);
72
+ };
73
+ }
74
+ }), A = /* @__PURE__ */ T(z, [["__scopeId", "data-v-9d198016"]]);
75
+ export {
76
+ A as default
77
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as C, createBlock as h, mergeProps as y, unref as s } from "vue";
1
+ import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as y, createBlock as C, mergeProps as h, unref as r } from "vue";
2
2
  import "element-plus";
3
- import { u as V } from "./useSelect-Dhsn7wE7.js";
3
+ import { u as V } from "./useSelect-BmR-wNME.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -13,34 +13,35 @@ const k = /* @__PURE__ */ f({
13
13
  apiParams: {},
14
14
  dependentFields: {},
15
15
  name: { default: "" },
16
- onChange: {}
16
+ onChange: {},
17
+ read: { type: Boolean }
17
18
  }, {
18
19
  modelValue: {},
19
20
  modelModifiers: {}
20
21
  }),
21
22
  emits: ["update:modelValue"],
22
23
  setup(a) {
23
- const l = a, t = v(a, "modelValue"), n = d("ruleModule", void 0), u = d("pageMethodMap", {}), r = (e) => {
24
+ const l = a, t = v(a, "modelValue"), n = d("ruleModule", void 0), s = d("pageMethodMap", {}), u = (e) => {
24
25
  if (l.onChange && n)
25
26
  try {
26
- n[l.onChange](u, e);
27
+ n[l.onChange](s, e);
27
28
  } catch (o) {
28
29
  console.error(o);
29
30
  }
30
31
  }, { currentOptions: p, loading: m } = V(l);
31
32
  return (e, o) => {
32
33
  const i = M("el-cascader");
33
- return C(), h(i, y({
34
+ return y(), C(i, h({
34
35
  modelValue: t.value,
35
36
  "onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
36
- options: s(p),
37
- loading: s(m),
37
+ options: r(p),
38
+ loading: r(m),
38
39
  props: {
39
40
  multiple: e.multiple,
40
41
  label: e.labelKey,
41
42
  value: e.valueKey
42
43
  }
43
- }, e.$attrs, { onChange: r }), null, 16, ["modelValue", "options", "loading", "props"]);
44
+ }, e.$attrs, { onChange: u }), null, 16, ["modelValue", "options", "loading", "props"]);
44
45
  };
45
46
  }
46
47
  });
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as w, mergeModels as B, useModel as D, watch as F, resolveComponent as u, resolveDirective as M, unref as a, openBlock as l, createElementBlock as n, toDisplayString as I, Fragment as d, createCommentVNode as i, withDirectives as P, createBlock as s, mergeProps as S, withCtx as f, renderList as h } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-9KA43iIq.js";
4
- import { u as E } from "./useSelect-Dhsn7wE7.js";
3
+ import { u as j } from "./index-lmlqy9ej.js";
4
+ import { u as E } from "./useSelect-BmR-wNME.js";
5
5
  const L = { key: 0 }, N = {
6
6
  key: 0,
7
7
  style: { "font-size": "12px" }
@@ -17,6 +17,7 @@ const L = { key: 0 }, N = {
17
17
  dependentFields: {},
18
18
  name: { default: "" },
19
19
  onChange: {},
20
+ read: { type: Boolean },
20
21
  optionType: { default: "circle" },
21
22
  direction: { default: "horizontal" },
22
23
  space: { default: 20 }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
2
- import { a as y } from "./index-9KA43iIq.js";
2
+ import { a as y } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
5
5
  const x = /* @__PURE__ */ u({
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
2
2
  var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
5
- import { u as b, b as x } from "./index-9KA43iIq.js";
5
+ import { u as b, b as x } from "./index-lmlqy9ej.js";
6
6
  import "element-plus";
7
7
  function S() {
8
8
  return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
2
- import { u as V } from "./index-9KA43iIq.js";
2
+ import { u as V } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
2
- import { b as H, u as K, c as Q } from "./index-9KA43iIq.js";
2
+ import { b as H, u as K, c as Q } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
2
2
  import { ElMessage as M, ElMessageBox as N } from "element-plus";
3
- import { _ as f } from "./index-9KA43iIq.js";
3
+ import { _ as f } from "./index-lmlqy9ej.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -0,0 +1,32 @@
1
+ import { defineComponent as u, mergeModels as d, useModel as p, resolveComponent as i, unref as c, openBlock as t, createElementBlock as f, toDisplayString as y, createBlock as v, mergeProps as _ } from "vue";
2
+ import { u as k } from "./index-lmlqy9ej.js";
3
+ import "element-plus";
4
+ const V = { key: 0 }, h = /* @__PURE__ */ u({
5
+ __name: "Component",
6
+ props: /* @__PURE__ */ d({
7
+ min: {},
8
+ read: { type: Boolean }
9
+ }, {
10
+ modelValue: {},
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(l) {
15
+ const n = p(l, "modelValue"), m = k(), r = (e) => {
16
+ ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
17
+ };
18
+ return (e, o) => {
19
+ const a = i("el-input-number");
20
+ return c(m).schema.read || e.read ? (t(), f("span", V, y(n.value), 1)) : (t(), v(a, _({ key: 1 }, e.$attrs, {
21
+ modelValue: n.value,
22
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
23
+ style: { width: "100%" },
24
+ min: e.min || 0,
25
+ onKeydown: r
26
+ }), null, 16, ["modelValue", "min"]));
27
+ };
28
+ }
29
+ });
30
+ export {
31
+ h as default
32
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, inject as p, resolveComponent as m, openBlock as d, createBlock as u, mergeProps as L, withCtx as _, createElementVNode as s, toDisplayString as k, createElementBlock as C, Fragment as f, renderList as b, withModifiers as x, createTextVNode as B, createCommentVNode as V } from "vue";
2
- import { b as w } from "./index-9KA43iIq.js";
2
+ import { b as w } from "./index-lmlqy9ej.js";
3
3
  const E = { class: "custom-tree-node" }, $ = /* @__PURE__ */ g({
4
4
  __name: "Component",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
2
- import { b as i } from "./index-9KA43iIq.js";
2
+ import { b as i } from "./index-lmlqy9ej.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as o, createBlock as c, mergeProps as n } from "vue";
2
- import { b as s } from "./index-9KA43iIq.js";
2
+ import { b as s } from "./index-lmlqy9ej.js";
3
3
  const _ = {};
4
4
  function a(e, p) {
5
5
  const r = t("el-date-picker");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
2
- import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-9KA43iIq.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
5
5
  __name: "FormList",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, computed as n, openBlock as a, createBlock as m, unref as p, normalizeStyle as s } from "vue";
2
- import { a as i } from "./index-9KA43iIq.js";
2
+ import { a as i } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const g = /* @__PURE__ */ t({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
2
- import { a as c, b as f } from "./index-9KA43iIq.js";
2
+ import { a as c, b as f } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const m = /* @__PURE__ */ a({
5
5
  __name: "Inline",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
2
- import { b as xt, g as Nt } from "./index-9KA43iIq.js";
2
+ import { b as xt, g as Nt } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const Mt = /* @__PURE__ */ At({
5
5
  __name: "Disabled",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
2
- import { u as j, d as h, e as k } from "./index-9KA43iIq.js";
2
+ import { u as j, d as h, e as k } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,