asiaint-lowcode 2.0.0 → 2.0.1

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 (35) hide show
  1. package/dist/asiaint-lowcode.js +12 -0
  2. package/dist/asiaint-lowcode.umd.cjs +1579 -0
  3. package/dist/index.d.ts +621 -0
  4. package/dist/lazy/Card---AoXvYS.js +46 -0
  5. package/dist/lazy/Cascader-BR70LGn1.js +41 -0
  6. package/dist/lazy/Checkbox-BkN59USC.js +75 -0
  7. package/dist/lazy/Collapse-Dm754krv.js +54 -0
  8. package/dist/lazy/ColorInput-Ox5qD0YJ.js +28 -0
  9. package/dist/lazy/Component-6kccf2p2.js +24 -0
  10. package/dist/lazy/Component-DF4pvvy0.js +97 -0
  11. package/dist/lazy/Component-DJQM5OQV.js +27 -0
  12. package/dist/lazy/Component-DO63yabq.js +66 -0
  13. package/dist/lazy/Component-DT__xEY1.js +117 -0
  14. package/dist/lazy/Component-DhFx0wp3.js +13 -0
  15. package/dist/lazy/Component-wdoYPdpq.js +321 -0
  16. package/dist/lazy/Custom-D5IoN5_M.js +26 -0
  17. package/dist/lazy/DatePicker-DuIm95j0.js +11 -0
  18. package/dist/lazy/Divider-2PVfgKTw.js +21 -0
  19. package/dist/lazy/FormList-BjQT7shp.js +199 -0
  20. package/dist/lazy/Grid-BovYqDr-.js +30 -0
  21. package/dist/lazy/Inline-Cv5LyrT1.js +30 -0
  22. package/dist/lazy/JsonEdit-Dp7eAHK0.js +16385 -0
  23. package/dist/lazy/ObjGroup-DT4UeHtF.js +32 -0
  24. package/dist/lazy/Radio-P_nuE_Fb.js +77 -0
  25. package/dist/lazy/SearchSelect-Tec35-Iy.js +86 -0
  26. package/dist/lazy/Select-CnMIf_86.js +67 -0
  27. package/dist/lazy/Tabs-C7dXurre.js +47 -0
  28. package/dist/lazy/Tag-YpWlcGOi.js +22 -0
  29. package/dist/lazy/TextArea-DW5pxGGU.js +25 -0
  30. package/dist/lazy/Title-32bZDihB.js +4 -0
  31. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +23 -0
  32. package/dist/lazy/index-C9fXRITB.js +22456 -0
  33. package/dist/lazy/useSelect-DvhNm7sS.js +50 -0
  34. package/dist/style.css +6 -0
  35. package/package.json +1 -1
@@ -0,0 +1,621 @@
1
+ import { App } from 'vue';
2
+ import { Component } from 'vue';
3
+ import { ComponentOptionsMixin } from 'vue';
4
+ import { ComponentProvideOptions } from 'vue';
5
+ import { DefineComponent } from 'vue';
6
+ import { ExtractPropTypes } from 'vue';
7
+ import { FormValidationResult } from 'element-plus';
8
+ import { PropType } from 'vue';
9
+ import { PublicProps } from 'vue';
10
+ import { VNode } from 'vue';
11
+
12
+ declare const __VLS_component: DefineComponent<ExtractPropTypes< {
13
+ modelValue: PropType<Record<string, any>>;
14
+ schema: PropType<FormSchema>;
15
+ schemaContext: {
16
+ type: PropType<Record<string, any>>;
17
+ };
18
+ design: {
19
+ type: PropType<boolean>;
20
+ };
21
+ footer: {
22
+ type: PropType<boolean>;
23
+ };
24
+ read: {
25
+ type: PropType<boolean>;
26
+ };
27
+ pageRulePath: {
28
+ type: PropType<string>;
29
+ required: true;
30
+ };
31
+ }>, {
32
+ formValues: Record<string, any>;
33
+ selectData: Record<string, Record<string, any>>;
34
+ initialValues: Record<string, any>;
35
+ context: {
36
+ $values: Record<string, any>;
37
+ $selectData: Record<string, Record<string, any>>;
38
+ $locale: Locale;
39
+ };
40
+ vCodePass: boolean;
41
+ updateFormValues: (values: Record<string, any>, isAssign: boolean) => void;
42
+ updateSelectData: (key: string, value: Record<string, any>) => void;
43
+ updateInitialValues: (values: Record<string, any>) => void;
44
+ updateVCodePass: (value: boolean) => void;
45
+ validate: () => FormValidationResult | undefined;
46
+ resetFields: (names?: string[]) => void;
47
+ submit: () => void;
48
+ setDisabled: (disabled: boolean) => void;
49
+ findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
50
+ type: string;
51
+ schema: FormSchema;
52
+ schemaContext: Record<string, any>;
53
+ design: boolean;
54
+ footer: boolean;
55
+ read: boolean;
56
+ pageRulePath: string;
57
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
58
+ reset: () => void;
59
+ finish: (values: Record<string, any>) => void;
60
+ failed: (errors: {
61
+ message?: string;
62
+ fieldValue?: any;
63
+ field?: string;
64
+ }[]) => void;
65
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
66
+ modelValue: PropType<Record<string, any>>;
67
+ schema: PropType<FormSchema>;
68
+ schemaContext: {
69
+ type: PropType<Record<string, any>>;
70
+ };
71
+ design: {
72
+ type: PropType<boolean>;
73
+ };
74
+ footer: {
75
+ type: PropType<boolean>;
76
+ };
77
+ read: {
78
+ type: PropType<boolean>;
79
+ };
80
+ pageRulePath: {
81
+ type: PropType<string>;
82
+ required: true;
83
+ };
84
+ }>> & Readonly<{
85
+ onReset?: (() => any) | undefined;
86
+ onFinish?: ((values: Record<string, any>) => any) | undefined;
87
+ onFailed?: ((errors: {
88
+ message?: string;
89
+ fieldValue?: any;
90
+ field?: string;
91
+ }[]) => any) | undefined;
92
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
93
+
94
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
95
+
96
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
97
+
98
+ declare type __VLS_Prettify<T> = {
99
+ [K in keyof T]: T[K];
100
+ } & {};
101
+
102
+ declare function __VLS_template(): {
103
+ default?(_: {}): any;
104
+ };
105
+
106
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
107
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
108
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
109
+ } : {
110
+ type: PropType<T[K]>;
111
+ required: true;
112
+ };
113
+ };
114
+
115
+ declare type __VLS_TypePropsToRuntimeProps_2<T> = {
116
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
117
+ type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
118
+ } : {
119
+ type: PropType<T[K]>;
120
+ required: true;
121
+ };
122
+ };
123
+
124
+ declare type __VLS_WithDefaults<P, D> = {
125
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
126
+ default: D[K];
127
+ }> : P[K];
128
+ };
129
+
130
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
131
+ new (): {
132
+ $slots: S;
133
+ };
134
+ };
135
+
136
+ declare const _default: {
137
+ install: (app: App<Element>, options?: Options) => void;
138
+ };
139
+ export default _default;
140
+
141
+ declare type FormChange = {
142
+ target: string;
143
+ value?: any;
144
+ condition?: any;
145
+ };
146
+
147
+ export declare const FormDesign: DefineComponent<ExtractPropTypes< {
148
+ modelValue: PropType<FormSchema>;
149
+ schemaContext: {
150
+ type: PropType<Record<string, any>>;
151
+ default: () => {};
152
+ };
153
+ templates: {
154
+ type: PropType<TemplateData>;
155
+ default: () => never[];
156
+ };
157
+ omitMenus: {
158
+ type: PropType<string[]>;
159
+ default: () => never[];
160
+ };
161
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
162
+ add: (element: FormElement) => void;
163
+ save: () => void;
164
+ onSave: () => void;
165
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
166
+ modelValue: PropType<FormSchema>;
167
+ schemaContext: {
168
+ type: PropType<Record<string, any>>;
169
+ default: () => {};
170
+ };
171
+ templates: {
172
+ type: PropType<TemplateData>;
173
+ default: () => never[];
174
+ };
175
+ omitMenus: {
176
+ type: PropType<string[]>;
177
+ default: () => never[];
178
+ };
179
+ }>> & Readonly<{
180
+ onAdd?: ((element: FormElement) => any) | undefined;
181
+ onSave?: (() => any) | undefined;
182
+ onOnSave?: (() => any) | undefined;
183
+ }>, {
184
+ schemaContext: Record<string, any>;
185
+ templates: TemplateData;
186
+ omitMenus: string[];
187
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
188
+
189
+ export declare type FormElement = {
190
+ title: string;
191
+ component: string;
192
+ render: string | VNode | Component;
193
+ icon: string | VNode | Component;
194
+ type: 'assist' | 'layout' | 'basic' | 'high';
195
+ order: number;
196
+ modelName?: string;
197
+ attrSchema: FormSchema;
198
+ lbTitle?: boolean;
199
+ };
200
+
201
+ export declare interface FormInstance extends FormRenderProps {
202
+ formValues: Record<string, any>;
203
+ selectData: Record<string, Record<string, any>>;
204
+ initialValues: Record<string, Record<string, any>>;
205
+ context: Record<string, any>;
206
+ vCodePass: boolean;
207
+ updateFormValues: (values: Record<string, any>, isAssign: boolean) => void;
208
+ updateSelectData: (key: string, value: Record<string, any>) => void;
209
+ updateInitialValues: (values: Record<string, any>) => void;
210
+ updateVCodePass: (value: boolean) => void;
211
+ validate: () => FormValidationResult | undefined;
212
+ resetFields: (names?: string[]) => void;
213
+ submit: () => void;
214
+ }
215
+
216
+ export declare interface FormItemType {
217
+ label?: string;
218
+ name: string;
219
+ component: string;
220
+ required?: boolean;
221
+ props?: Record<string, any>;
222
+ initialValue?: any;
223
+ help?: string;
224
+ children?: FormItemType[];
225
+ hidden?: boolean | string;
226
+ hideLabel?: boolean;
227
+ designKey?: string;
228
+ rules?: FormRule[];
229
+ class?: any;
230
+ style?: any;
231
+ change?: FormChange[];
232
+ dialog?: boolean;
233
+ width?: number;
234
+ }
235
+
236
+ export declare const FormRender: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
237
+
238
+ declare interface FormRenderProps {
239
+ schema: FormSchema;
240
+ schemaContext?: Record<string, any>;
241
+ design?: boolean;
242
+ footer?: boolean;
243
+ read?: boolean;
244
+ pageRulePath: string;
245
+ }
246
+
247
+ declare type FormRule = {
248
+ type: 'email' | 'url' | 'custom' | string;
249
+ customReg?: string;
250
+ templateExp?: any;
251
+ message?: string;
252
+ trigger: string[];
253
+ };
254
+
255
+ export declare type FormSchema = {
256
+ labelWidth?: number;
257
+ labelPosition?: 'top' | 'left' | 'right';
258
+ labelSuffix?: string;
259
+ size?: 'default' | 'small' | 'large';
260
+ disabled?: boolean;
261
+ hideRequiredAsterisk?: boolean;
262
+ labelBold?: boolean;
263
+ scrollToError?: boolean;
264
+ initialValues?: Record<string, any>;
265
+ key?: string;
266
+ items: FormItemType[];
267
+ rulePath?: string;
268
+ };
269
+
270
+ declare type Locale = {
271
+ menus: {
272
+ basicTitle: string;
273
+ highTitle: string;
274
+ layoutTitle: string;
275
+ assistTitle: string;
276
+ useTemplateBtn: string;
277
+ };
278
+ actions: {
279
+ previewJson: string;
280
+ previewVueCode: string;
281
+ previewForm: string;
282
+ clear: string;
283
+ save: string;
284
+ };
285
+ canvas: {
286
+ emptyTip: string;
287
+ wrapperEmptyTip: string;
288
+ };
289
+ attr: {
290
+ tab1: {
291
+ title: string;
292
+ emptyTip: string;
293
+ linkage: {
294
+ text: string;
295
+ action1: string;
296
+ action2: string;
297
+ };
298
+ };
299
+ tab2: {
300
+ title: string;
301
+ };
302
+ };
303
+ };
304
+
305
+ declare type Options = {
306
+ request?: (options: Record<string, any>) => Promise<Record<string, any>>;
307
+ extendElements?: Record<string, FormElement>;
308
+ lang?: 'zh' | 'en';
309
+ };
310
+
311
+ export declare type PageMethods = {
312
+ findRef: <T extends 'form' | 'table'>(key: string, type: T) => any;
313
+ setFormDisabled: (key: string, disabled: boolean) => void;
314
+ validate: (keys: string[] | string) => Promise<void>;
315
+ getData: (keys?: string[] | string) => any;
316
+ resetFields: (keys?: string[] | string) => void;
317
+ emit: (event: 'done' | 'refresh') => void;
318
+ setData: (key: string, dataModel: any, isAssign: boolean) => void;
319
+ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
320
+ };
321
+
322
+ export declare const PageRender: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps_2<{
323
+ ruleMap: Record<string, any>;
324
+ pageSchema: PageSchema;
325
+ pageParams: any;
326
+ }>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
327
+ done: (...args: any[]) => void;
328
+ refresh: (...args: any[]) => void;
329
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps_2<{
330
+ ruleMap: Record<string, any>;
331
+ pageSchema: PageSchema;
332
+ pageParams: any;
333
+ }>, {}>>> & Readonly<{
334
+ onDone?: ((...args: any[]) => any) | undefined;
335
+ onRefresh?: ((...args: any[]) => any) | undefined;
336
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
337
+
338
+ declare type PageSchema = {
339
+ key: string;
340
+ rulePath?: string;
341
+ onMounted?: string;
342
+ onActivated?: string;
343
+ content: Array<{
344
+ type: 'form';
345
+ schema: FormSchema;
346
+ } | {
347
+ type: 'table';
348
+ schema: TableSchema;
349
+ }>;
350
+ btns: Array<{
351
+ key: string;
352
+ text: string;
353
+ onClick: string;
354
+ disabled: boolean;
355
+ visible: boolean;
356
+ }>;
357
+ };
358
+
359
+ declare interface TableColumn {
360
+ label: string;
361
+ key: string;
362
+ minWidth?: string;
363
+ fixed?: boolean;
364
+ hidden?: boolean;
365
+ }
366
+
367
+ export declare const TableRender: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableRenderProps>>, {
368
+ setCellData: (rowIndex: number, field: string, value: any) => void;
369
+ clearSelection: () => void;
370
+ getData: () => any[];
371
+ getCurrentRow: () => Record<string, any> | undefined;
372
+ getSelectedRows: () => any;
373
+ addRow: (rowData?: {}) => void;
374
+ deleteRow: (rowIndex: number) => void;
375
+ refresh: () => Promise<void>;
376
+ validate: () => Promise<boolean>;
377
+ setData: (data: any[]) => void;
378
+ selectRow: (row: Record<string, any>) => void;
379
+ selectRowNum: (num: number) => void;
380
+ type: string;
381
+ schema: {
382
+ readonly label: string;
383
+ readonly key: string;
384
+ readonly rulePath: string;
385
+ readonly rowKey?: string | undefined;
386
+ readonly addForm?: {
387
+ readonly schema: {
388
+ readonly labelWidth?: number | undefined;
389
+ readonly labelPosition?: ("top" | "left" | "right") | undefined;
390
+ readonly labelSuffix?: string | undefined;
391
+ readonly size?: ("default" | "small" | "large") | undefined;
392
+ readonly disabled?: boolean | undefined;
393
+ readonly hideRequiredAsterisk?: boolean | undefined;
394
+ readonly labelBold?: boolean | undefined;
395
+ readonly scrollToError?: boolean | undefined;
396
+ readonly initialValues?: {
397
+ readonly [x: string]: any;
398
+ } | undefined;
399
+ readonly key?: string | undefined;
400
+ readonly items: readonly {
401
+ readonly label?: string | undefined;
402
+ readonly name: string;
403
+ readonly component: string;
404
+ readonly required?: boolean | undefined;
405
+ readonly props?: {
406
+ readonly [x: string]: any;
407
+ } | undefined;
408
+ readonly initialValue?: any;
409
+ readonly help?: string | undefined;
410
+ readonly children?: readonly any[] | undefined;
411
+ readonly hidden?: (boolean | string) | undefined;
412
+ readonly hideLabel?: boolean | undefined;
413
+ readonly designKey?: string | undefined;
414
+ readonly rules?: readonly {
415
+ readonly type: "email" | "url" | "custom" | string;
416
+ readonly customReg?: string | undefined;
417
+ readonly templateExp?: any;
418
+ readonly message?: string | undefined;
419
+ readonly trigger: readonly string[];
420
+ }[] | undefined;
421
+ readonly class?: any;
422
+ readonly style?: any;
423
+ readonly change?: readonly {
424
+ readonly target: string;
425
+ readonly value?: any;
426
+ readonly condition?: any;
427
+ }[] | undefined;
428
+ readonly dialog?: boolean | undefined;
429
+ readonly width?: number | undefined;
430
+ }[];
431
+ readonly rulePath?: string | undefined;
432
+ };
433
+ readonly schemaContext?: {
434
+ readonly [x: string]: any;
435
+ } | undefined;
436
+ readonly design?: boolean | undefined;
437
+ readonly footer?: boolean | undefined;
438
+ readonly read?: boolean | undefined;
439
+ readonly pageRulePath: string;
440
+ } | undefined;
441
+ readonly showDynamicSearch?: boolean | undefined;
442
+ readonly multipleSelection?: boolean | undefined;
443
+ readonly highlightCurrentRow?: boolean | undefined;
444
+ readonly rowClick?: string | undefined;
445
+ readonly rowDbClick?: string | undefined;
446
+ readonly topBtns?: readonly {
447
+ readonly [x: string]: any;
448
+ }[] | undefined;
449
+ readonly rowBtns?: readonly {
450
+ readonly [x: string]: any;
451
+ }[] | undefined;
452
+ readonly columns: readonly {
453
+ readonly label: string;
454
+ readonly key: string;
455
+ readonly minWidth?: string | undefined;
456
+ readonly fixed?: boolean | undefined;
457
+ readonly hidden?: boolean | undefined;
458
+ }[];
459
+ readonly form?: {
460
+ readonly labelWidth?: number | undefined;
461
+ readonly labelPosition?: ("top" | "left" | "right") | undefined;
462
+ readonly labelSuffix?: string | undefined;
463
+ readonly size?: ("default" | "small" | "large") | undefined;
464
+ readonly disabled?: boolean | undefined;
465
+ readonly hideRequiredAsterisk?: boolean | undefined;
466
+ readonly labelBold?: boolean | undefined;
467
+ readonly scrollToError?: boolean | undefined;
468
+ readonly initialValues?: {
469
+ readonly [x: string]: any;
470
+ } | undefined;
471
+ readonly key?: string | undefined;
472
+ readonly items: readonly {
473
+ readonly label?: string | undefined;
474
+ readonly name: string;
475
+ readonly component: string;
476
+ readonly required?: boolean | undefined;
477
+ readonly props?: {
478
+ readonly [x: string]: any;
479
+ } | undefined;
480
+ readonly initialValue?: any;
481
+ readonly help?: string | undefined;
482
+ readonly children?: readonly any[] | undefined;
483
+ readonly hidden?: (boolean | string) | undefined;
484
+ readonly hideLabel?: boolean | undefined;
485
+ readonly designKey?: string | undefined;
486
+ readonly rules?: readonly {
487
+ readonly type: "email" | "url" | "custom" | string;
488
+ readonly customReg?: string | undefined;
489
+ readonly templateExp?: any;
490
+ readonly message?: string | undefined;
491
+ readonly trigger: readonly string[];
492
+ }[] | undefined;
493
+ readonly class?: any;
494
+ readonly style?: any;
495
+ readonly change?: readonly {
496
+ readonly target: string;
497
+ readonly value?: any;
498
+ readonly condition?: any;
499
+ }[] | undefined;
500
+ readonly dialog?: boolean | undefined;
501
+ readonly width?: number | undefined;
502
+ }[];
503
+ readonly rulePath?: string | undefined;
504
+ } | undefined;
505
+ };
506
+ design: boolean;
507
+ read: boolean;
508
+ pageRulePath: string;
509
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableRenderProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
510
+
511
+ declare interface TableRenderProps {
512
+ schema: TableSchema;
513
+ design?: boolean;
514
+ read?: boolean;
515
+ pageRulePath: string;
516
+ }
517
+
518
+ declare type TableSchema = {
519
+ label: string;
520
+ key: string;
521
+ rulePath: string;
522
+ rowKey?: string;
523
+ addForm?: FormRenderProps;
524
+ showDynamicSearch?: boolean;
525
+ multipleSelection?: boolean;
526
+ highlightCurrentRow?: boolean;
527
+ rowClick?: string;
528
+ rowDbClick?: string;
529
+ topBtns?: Record<string, any>[];
530
+ rowBtns?: Record<string, any>[];
531
+ columns: TableColumn[];
532
+ form?: FormSchema;
533
+ };
534
+
535
+ export declare type TemplateData = {
536
+ name: string;
537
+ schema: FormSchema;
538
+ id?: string;
539
+ }[];
540
+
541
+ export declare const useFormInstance: () => {
542
+ readonly formValues: {
543
+ readonly [x: string]: any;
544
+ };
545
+ readonly selectData: {
546
+ readonly [x: string]: {
547
+ readonly [x: string]: any;
548
+ };
549
+ };
550
+ readonly initialValues: {
551
+ readonly [x: string]: {
552
+ readonly [x: string]: any;
553
+ };
554
+ };
555
+ readonly context: {
556
+ readonly [x: string]: any;
557
+ };
558
+ readonly vCodePass: boolean;
559
+ readonly updateFormValues: (values: Record<string, any>, isAssign: boolean) => void;
560
+ readonly updateSelectData: (key: string, value: Record<string, any>) => void;
561
+ readonly updateInitialValues: (values: Record<string, any>) => void;
562
+ readonly updateVCodePass: (value: boolean) => void;
563
+ readonly validate: () => FormValidationResult | undefined;
564
+ readonly resetFields: (names?: string[]) => void;
565
+ readonly submit: () => void;
566
+ readonly schema: {
567
+ readonly labelWidth?: number | undefined;
568
+ readonly labelPosition?: ("top" | "left" | "right") | undefined;
569
+ readonly labelSuffix?: string | undefined;
570
+ readonly size?: ("default" | "small" | "large") | undefined;
571
+ readonly disabled?: boolean | undefined;
572
+ readonly hideRequiredAsterisk?: boolean | undefined;
573
+ readonly labelBold?: boolean | undefined;
574
+ readonly scrollToError?: boolean | undefined;
575
+ readonly initialValues?: {
576
+ readonly [x: string]: any;
577
+ } | undefined;
578
+ readonly key?: string | undefined;
579
+ readonly items: readonly {
580
+ readonly label?: string | undefined;
581
+ readonly name: string;
582
+ readonly component: string;
583
+ readonly required?: boolean | undefined;
584
+ readonly props?: {
585
+ readonly [x: string]: any;
586
+ } | undefined;
587
+ readonly initialValue?: any;
588
+ readonly help?: string | undefined;
589
+ readonly children?: readonly any[] | undefined;
590
+ readonly hidden?: (boolean | string) | undefined;
591
+ readonly hideLabel?: boolean | undefined;
592
+ readonly designKey?: string | undefined;
593
+ readonly rules?: readonly {
594
+ readonly type: "email" | "url" | "custom" | string;
595
+ readonly customReg?: string | undefined;
596
+ readonly templateExp?: any;
597
+ readonly message?: string | undefined;
598
+ readonly trigger: readonly string[];
599
+ }[] | undefined;
600
+ readonly class?: any;
601
+ readonly style?: any;
602
+ readonly change?: readonly {
603
+ readonly target: string;
604
+ readonly value?: any;
605
+ readonly condition?: any;
606
+ }[] | undefined;
607
+ readonly dialog?: boolean | undefined;
608
+ readonly width?: number | undefined;
609
+ }[];
610
+ readonly rulePath?: string | undefined;
611
+ };
612
+ readonly schemaContext?: {
613
+ readonly [x: string]: any;
614
+ } | undefined;
615
+ readonly design?: boolean | undefined;
616
+ readonly footer?: boolean | undefined;
617
+ readonly read?: boolean | undefined;
618
+ readonly pageRulePath: string;
619
+ };
620
+
621
+ export { }
@@ -0,0 +1,46 @@
1
+ import { defineComponent as p, ref as c, resolveComponent as m, openBlock as r, createBlock as n, normalizeProps as u, guardReactiveProps as _, withCtx as o, createElementVNode as l, toDisplayString as f, unref as t, normalizeClass as v, createCommentVNode as C, createVNode as d, Transition as h, withDirectives as w, vShow as b } from "vue";
2
+ import { _ as k, a as $, b as y } from "./index-C9fXRITB.js";
3
+ import "element-plus";
4
+ const B = { class: "card-header" }, E = /* @__PURE__ */ p({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {}
10
+ },
11
+ setup(N) {
12
+ const e = c(!1);
13
+ return (a, s) => {
14
+ const i = m("ElCard");
15
+ return r(), n(i, u(_(a.$attrs)), {
16
+ header: o(() => [
17
+ l("div", B, [
18
+ l("span", null, f(a.header), 1),
19
+ a.collapsible ? (r(), n(t(k), {
20
+ key: 0,
21
+ name: "dropdown",
22
+ onClick: s[0] || (s[0] = (V) => e.value = !e.value),
23
+ class: v(["dropdown-icon", { "is-collapsed": e.value }])
24
+ }, null, 8, ["class"])) : C("", !0)
25
+ ])
26
+ ]),
27
+ default: o(() => [
28
+ d(h, { name: "collapse" }, {
29
+ default: o(() => [
30
+ w(l("div", null, [
31
+ d(t($), { list: a.children }, null, 8, ["list"])
32
+ ], 512), [
33
+ [b, !e.value]
34
+ ])
35
+ ]),
36
+ _: 1
37
+ })
38
+ ]),
39
+ _: 1
40
+ }, 16);
41
+ };
42
+ }
43
+ }), P = /* @__PURE__ */ y(E, [["__scopeId", "data-v-f48b76d3"]]);
44
+ export {
45
+ P as default
46
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as m, mergeModels as i, useModel as c, resolveComponent as f, openBlock as g, createBlock as v, mergeProps as C, unref as l } from "vue";
2
+ import "element-plus";
3
+ import { u as y } from "./useSelect-DvhNm7sS.js";
4
+ const h = /* @__PURE__ */ m({
5
+ __name: "Cascader",
6
+ props: /* @__PURE__ */ i({
7
+ options: { default: () => [] },
8
+ multiple: { type: Boolean, default: !1 },
9
+ mode: { default: "static" },
10
+ labelKey: { default: "label" },
11
+ valueKey: { default: "value" },
12
+ disabledKey: {},
13
+ api: {},
14
+ name: { default: "" },
15
+ onChange: {}
16
+ }, {
17
+ modelValue: {},
18
+ modelModifiers: {}
19
+ }),
20
+ emits: ["update:modelValue"],
21
+ setup(o) {
22
+ const n = o, a = c(o, "modelValue"), { currentOptions: u, selectChange: s, loading: d } = y(n);
23
+ return (e, t) => {
24
+ const p = f("el-cascader");
25
+ return g(), v(p, C({
26
+ modelValue: a.value,
27
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => a.value = r),
28
+ options: l(u),
29
+ loading: l(d),
30
+ props: {
31
+ multiple: e.multiple,
32
+ label: e.labelKey,
33
+ value: e.valueKey
34
+ }
35
+ }, e.$attrs, { onChange: l(s) }), null, 16, ["modelValue", "options", "loading", "props", "onChange"]);
36
+ };
37
+ }
38
+ });
39
+ export {
40
+ h as default
41
+ };