asiaint-lowcode 3.1.77 → 3.1.80

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 (40) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +106 -106
  3. package/dist/index.d.ts +2 -994
  4. package/dist/lazy/{Card-D1-mN7bn.js → Card-DvNcOnva.js} +1 -1
  5. package/dist/lazy/{Cascader-5qtUJMmY.js → Cascader-Bjlpixno.js} +1 -1
  6. package/dist/lazy/{Checkbox-BY1BsURG.js → Checkbox-DmdFXms9.js} +2 -2
  7. package/dist/lazy/{Collapse-CUpE84t6.js → Collapse-CKn_TSCm.js} +1 -1
  8. package/dist/lazy/{Component-kIa9-RAl.js → Component-CBmOD4ec.js} +1 -1
  9. package/dist/lazy/{Component-BnXAiS2t.js → Component-CPr0AdO_.js} +1 -1
  10. package/dist/lazy/{Component-CW9q1HtQ.js → Component-Df5UhbXK.js} +1 -1
  11. package/dist/lazy/{Component-CvOHn6OR.js → Component-Fi_73_-E.js} +1 -1
  12. package/dist/lazy/{Component-DNq1Z7zU.js → Component-R7RtZJSh.js} +1 -1
  13. package/dist/lazy/{Component-C4lQUANf.js → Component-oAfe3o5H.js} +1 -1
  14. package/dist/lazy/{CurdCard-C0NWLr9x.js → CurdCard-DUjCziiN.js} +1 -1
  15. package/dist/lazy/{Custom-C7QVF7sb.js → Custom-BAFCr78G.js} +1 -1
  16. package/dist/lazy/{DatePicker-uXmwIIgx.js → DatePicker-ZaxxwMFv.js} +1 -1
  17. package/dist/lazy/{DragList-CrgvWYxV.js → DragList-Cqsjxhhv.js} +1 -1
  18. package/dist/lazy/{FilterSearch-CxY45PNO.js → FilterSearch-BPxPu2FL.js} +1 -1
  19. package/dist/lazy/{FloatCurd-C2RtKLUA.js → FloatCurd-BIXVPS7j.js} +46 -44
  20. package/dist/lazy/{FormList-BIJ_yl3v.js → FormList-JQWq4sse.js} +1 -1
  21. package/dist/lazy/{Grid-C7QloI-j.js → Grid-Llh8kPEp.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-DoUWapwy.js → InfiniteScroll-DojLJYzr.js} +1 -1
  23. package/dist/lazy/{Inline-DBuGS5GH.js → Inline-DAI3cqXX.js} +1 -1
  24. package/dist/lazy/{JsonEdit-SsWaJyOg.js → JsonEdit-SRlm3aHt.js} +1 -1
  25. package/dist/lazy/{LogList-DS3EkP2-.js → LogList-CwBDKU7Q.js} +1 -1
  26. package/dist/lazy/{ObjGroup-D_ZdYfJu.js → ObjGroup-Duu9T85w.js} +1 -1
  27. package/dist/lazy/{OfferDetails-BVd4lN3I.js → OfferDetails-CYoXlNAr.js} +1 -1
  28. package/dist/lazy/{Pagination-Ml8IjGlW.js → Pagination-B4g7jndy.js} +1 -1
  29. package/dist/lazy/{Progress-Clpzi2Yz.js → Progress-DqKxwb6x.js} +1 -1
  30. package/dist/lazy/{Radio-DwaGXsjt.js → Radio-BvIYa6PJ.js} +2 -2
  31. package/dist/lazy/{SearchSelect-B41nT1sv.js → SearchSelect-Cwtb2cHo.js} +2 -2
  32. package/dist/lazy/{Select-CQpcqFfW.js → Select-BJ7EBQUB.js} +2 -2
  33. package/dist/lazy/{Table-BXq69pJr.js → Table-VAh_fX9B.js} +1 -1
  34. package/dist/lazy/{Tabs-7FTHsmz8.js → Tabs-A7MXXGsY.js} +1 -1
  35. package/dist/lazy/{TextArea-CFmj_GNL.js → TextArea-QqypbQfK.js} +1 -1
  36. package/dist/lazy/{Wrapper-B0yhRJa5.js → Wrapper-DJyo8r91.js} +1 -1
  37. package/dist/lazy/{index-BC0SqIYV.js → index-BT8ieeBh.js} +3266 -3263
  38. package/dist/lazy/{useSelect-DOGVlBHy.js → useSelect-rPigIPV0.js} +1 -1
  39. package/dist/style.css +1 -1
  40. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -8,14 +8,10 @@ import { DefineComponent } from 'vue';
8
8
  import { ExtractPropTypes } from 'vue';
9
9
  import { FormValidationResult } from 'element-plus';
10
10
  import { InjectionKey } from 'vue';
11
- import { ModelRef } from 'vue';
12
11
  import { PropType } from 'vue';
13
12
  import { PublicProps } from 'vue';
14
- import { Ref } from 'vue';
15
13
  import { StyleValue } from 'vue';
16
- import { TabPaneName } from 'element-plus';
17
14
  import { TabsProps } from 'element-plus';
18
- import { TreeOptionProps } from 'element-plus/es/components/tree/src/tree.type';
19
15
  import { VNode } from 'vue';
20
16
 
21
17
  export declare const $options: InjectionKey<Options>;
@@ -115,70 +111,7 @@ field?: string;
115
111
  onReset?: (() => any) | undefined;
116
112
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
117
113
 
118
- declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
119
- ruleMap: Record<string, any>;
120
- pageUrl?: string;
121
- pageParams?: any;
122
- }>>, {
123
- activate: typeof activate;
124
- ruleFunction: typeof ruleFunction;
125
- findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
126
- setFormDisabled: (key: string, disabled: boolean) => void;
127
- clearValidate: (key: string, names: string | string[]) => void;
128
- validate: (keys: string[] | string) => Promise<boolean | undefined>;
129
- getData: (keys?: string[] | string) => any;
130
- resetFields: (keys?: string[] | string) => void;
131
- emit: {
132
- (e: "doneParent", data?: any): void;
133
- (e: "done", data?: any): void;
134
- (e: "refresh"): void;
135
- (e: "changeTab", tabKey: string, params?: any): void;
136
- (e: "changeMixMode", tabKey: string, mode: boolean): void;
137
- (e: "addPageParams", data: any): void;
138
- };
139
- setData: (key: string, dataModel: any, isAssign?: boolean) => void;
140
- getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
141
- getPageParams: typeof getPageParams;
142
- setHidden: (key: string, hiddenState: boolean) => void;
143
- setBtnHidden: (key: string, hiddenState: boolean) => void;
144
- setBtnStateByKey: (key: string, stateType: "hidden" | "disabled" | "condition", state: boolean | string) => void;
145
- setBtnDisabled: (key: string, disabled: boolean) => void;
146
- addPageParams: (params: any) => void;
147
- setPageParams: (params: any) => void;
148
- setGlobalParams: (params: any) => void;
149
- getGlobalParams: () => any;
150
- setBtnState: setBtnStateFn;
151
- setReadMode: (key: string, readMode: boolean) => void;
152
- setPageMask: (mask: boolean) => void;
153
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
154
- doneParent: (data?: any) => void;
155
- done: (data?: any) => void;
156
- refresh: () => void;
157
- changeTab: (tabKey: string, params?: any) => void;
158
- changeMixMode: (tabKey: string, mode: boolean) => void;
159
- addPageParams: (data: any) => void;
160
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
161
- ruleMap: Record<string, any>;
162
- pageUrl?: string;
163
- pageParams?: any;
164
- }>>> & Readonly<{
165
- onDone?: ((data?: any) => any) | undefined;
166
- onDoneParent?: ((data?: any) => any) | undefined;
167
- onRefresh?: (() => any) | undefined;
168
- onChangeTab?: ((tabKey: string, params?: any) => any) | undefined;
169
- onChangeMixMode?: ((tabKey: string, mode: boolean) => any) | undefined;
170
- onAddPageParams?: ((data: any) => any) | undefined;
171
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
172
-
173
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
174
-
175
- declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
176
-
177
- declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
178
-
179
- declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
180
-
181
- declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
114
+ declare const __VLS_component_2: any;
182
115
 
183
116
  declare function __VLS_template(): {
184
117
  default?(_: {}): any;
@@ -188,51 +121,6 @@ declare function __VLS_template_2(): {
188
121
  loading?(_: {}): any;
189
122
  };
190
123
 
191
- declare type __VLS_TypePropsToRuntimeProps<T> = {
192
- [K in keyof T]-?: {} extends Pick<T, K> ? {
193
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
194
- } : {
195
- type: PropType<T[K]>;
196
- required: true;
197
- };
198
- };
199
-
200
- declare type __VLS_TypePropsToRuntimeProps_2<T> = {
201
- [K in keyof T]-?: {} extends Pick<T, K> ? {
202
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
203
- } : {
204
- type: PropType<T[K]>;
205
- required: true;
206
- };
207
- };
208
-
209
- declare type __VLS_TypePropsToRuntimeProps_3<T> = {
210
- [K in keyof T]-?: {} extends Pick<T, K> ? {
211
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
212
- } : {
213
- type: PropType<T[K]>;
214
- required: true;
215
- };
216
- };
217
-
218
- declare type __VLS_TypePropsToRuntimeProps_4<T> = {
219
- [K in keyof T]-?: {} extends Pick<T, K> ? {
220
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
221
- } : {
222
- type: PropType<T[K]>;
223
- required: true;
224
- };
225
- };
226
-
227
- declare type __VLS_TypePropsToRuntimeProps_5<T> = {
228
- [K in keyof T]-?: {} extends Pick<T, K> ? {
229
- type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
230
- } : {
231
- type: PropType<T[K]>;
232
- required: true;
233
- };
234
- };
235
-
236
124
  declare type __VLS_WithTemplateSlots<T, S> = T & {
237
125
  new (): {
238
126
  $slots: S;
@@ -245,27 +133,6 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
245
133
  };
246
134
  };
247
135
 
248
- declare function activate(): void;
249
-
250
- declare type AlertSchema = {
251
- description: string;
252
- values?: {
253
- text: string | number;
254
- onClick?: string;
255
- ext?: any;
256
- getPopoverContent?: string;
257
- }[];
258
- type?: 'primary' | 'success' | 'warning' | 'info' | 'error';
259
- key: string;
260
- rulePath?: string;
261
- hidden?: boolean;
262
- mixMode?: boolean;
263
- onClose?: string;
264
- top?: number;
265
- noSticky?: boolean;
266
- style?: Record<string, string>;
267
- };
268
-
269
136
  declare type BtnItemType = {
270
137
  tooltip?: string;
271
138
  key: string;
@@ -310,739 +177,13 @@ export declare type BtnType = ({
310
177
  children?: never;
311
178
  } & BtnItemType);
312
179
 
313
- declare type ComponentType = {
314
- form: typeof FormRender;
315
- table: typeof TableRender;
316
- tabs: typeof _default_2;
317
- infocard: typeof _default_3;
318
- navbar: typeof _default_4;
319
- alert: typeof _default_5;
320
- };
321
-
322
180
  declare const _default: {
323
181
  install: (app: App<Element>, options?: Options) => void;
324
182
  };
325
183
  export default _default;
326
184
 
327
- declare const _default_10: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
328
- onNodeClick?: string;
329
- onNodeDbClick?: string;
330
- onCheckChange?: string;
331
- onLoad?: string;
332
- btns: BtnType[];
333
- data?: any[];
334
- props?: TreeOptionProps;
335
- nodeKey: string;
336
- styleType?: "modal" | "normal";
337
- name: string;
338
- showCheckbox?: boolean;
339
- }>>, {
340
- getCheckedNodes: () => any;
341
- type: "tree";
342
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
343
- onNodeClick?: string;
344
- onNodeDbClick?: string;
345
- onCheckChange?: string;
346
- onLoad?: string;
347
- btns: BtnType[];
348
- data?: any[];
349
- props?: TreeOptionProps;
350
- nodeKey: string;
351
- styleType?: "modal" | "normal";
352
- name: string;
353
- showCheckbox?: boolean;
354
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
355
-
356
- declare const _default_2: DefineComponent<ExtractPropTypes< {
357
- schema: {
358
- required: true;
359
- type: PropType<TabsSchema>;
360
- };
361
- ruleMap: {
362
- type: PropType<Record<string, any>>;
363
- required: true;
364
- };
365
- pageParams: {
366
- type: PropType<any>;
367
- };
368
- pageRulePath: {
369
- type: PropType<string>;
370
- required: true;
371
- };
372
- styleType: {
373
- type: PropType<"normal" | "modal" | "btn">;
374
- required: true;
375
- };
376
- }>, {
377
- setTabContent: (newContents: TabsSchema["content"]) => void;
378
- addTabContent: (newContent: TabsSchema["content"] | getArrayType<TabsSchema["content"]>) => void;
379
- schema: {
380
- readonly key: string;
381
- readonly rulePath?: string | undefined;
382
- readonly onMounted?: string | undefined;
383
- readonly onActivated?: string | undefined;
384
- readonly onChange?: string | undefined;
385
- readonly tabProps?: {
386
- readonly type: "" | "card" | "border-card";
387
- readonly closable: boolean;
388
- readonly stretch: boolean;
389
- readonly addable: boolean;
390
- readonly editable: boolean;
391
- readonly tabPosition: "right" | "top" | "left" | "bottom";
392
- readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => boolean | void | Promise<boolean | void>;
393
- readonly modelValue?: (string | number) | undefined;
394
- } | undefined;
395
- readonly hidden?: boolean | undefined;
396
- readonly isSticky?: boolean | undefined;
397
- readonly stickyTop?: number | undefined;
398
- readonly expandTop?: boolean | undefined;
399
- readonly styleType?: ("modal" | "btn" | "normal") | undefined;
400
- readonly staticBtns: readonly ({
401
- readonly component: "Popover";
402
- readonly props: {
403
- readonly trigger: "hover" | "click" | "focus";
404
- readonly hoverStyle: any;
405
- readonly ostyle: any;
406
- readonly width?: number | undefined;
407
- readonly size?: ("small" | "normal" | "large") | undefined;
408
- readonly hoverColor?: string | undefined;
409
- };
410
- readonly children: readonly {
411
- readonly label?: string | undefined;
412
- readonly name: string;
413
- readonly component: string;
414
- readonly required?: boolean | undefined;
415
- readonly props?: {
416
- readonly [x: string]: any;
417
- } | undefined;
418
- readonly initialValue?: any;
419
- readonly help?: string | undefined;
420
- readonly labelSuffix?: {
421
- readonly component: "Popover";
422
- readonly props: any;
423
- } | undefined;
424
- readonly children?: readonly any[] | undefined;
425
- readonly hidden?: (boolean | string) | undefined;
426
- readonly hideLabel?: boolean | undefined;
427
- readonly designKey?: string | undefined;
428
- readonly rules?: readonly {
429
- readonly type: "email" | "url" | "custom" | string;
430
- readonly customReg?: string | undefined;
431
- readonly templateExp?: any;
432
- readonly message?: string | undefined;
433
- readonly trigger: readonly string[];
434
- }[] | undefined;
435
- readonly class?: any;
436
- readonly style?: any;
437
- readonly change?: readonly {
438
- readonly target: string;
439
- readonly value?: any;
440
- readonly condition?: any;
441
- }[] | undefined;
442
- readonly dialog?: boolean | undefined;
443
- readonly width?: number | undefined;
444
- }[];
445
- readonly tooltip?: string | undefined;
446
- readonly key: string;
447
- readonly text?: string | undefined;
448
- readonly isTextBtn?: boolean | undefined;
449
- readonly isLinkBtn?: boolean | undefined;
450
- readonly isPlainBtn?: boolean | undefined;
451
- readonly onClick?: string | undefined;
452
- readonly disabled?: boolean | undefined;
453
- readonly hidden?: boolean | undefined;
454
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
455
- readonly color?: string | undefined;
456
- readonly orange?: boolean | undefined;
457
- readonly isReverse?: boolean | undefined;
458
- readonly icon?: {
459
- readonly name: string;
460
- readonly color?: string | undefined;
461
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
462
- readonly tooltip?: string | undefined;
463
- } | undefined;
464
- readonly label?: string | undefined;
465
- readonly size?: ("default" | "small" | "large") | undefined;
466
- readonly style?: any;
467
- } | {
468
- readonly component: "BtnGroup";
469
- readonly children: readonly {
470
- readonly tooltip?: string | undefined;
471
- readonly key: string;
472
- readonly text?: string | undefined;
473
- readonly isTextBtn?: boolean | undefined;
474
- readonly isLinkBtn?: boolean | undefined;
475
- readonly isPlainBtn?: boolean | undefined;
476
- readonly onClick?: string | undefined;
477
- readonly disabled?: boolean | undefined;
478
- readonly hidden?: boolean | undefined;
479
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
480
- readonly color?: string | undefined;
481
- readonly orange?: boolean | undefined;
482
- readonly isReverse?: boolean | undefined;
483
- readonly icon?: {
484
- readonly name: string;
485
- readonly color?: string | undefined;
486
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
487
- readonly tooltip?: string | undefined;
488
- } | undefined;
489
- readonly label?: string | undefined;
490
- readonly size?: ("default" | "small" | "large") | undefined;
491
- readonly style?: any;
492
- }[];
493
- readonly tooltip?: string | undefined;
494
- readonly key: string;
495
- readonly text?: string | undefined;
496
- readonly isTextBtn?: boolean | undefined;
497
- readonly isLinkBtn?: boolean | undefined;
498
- readonly isPlainBtn?: boolean | undefined;
499
- readonly onClick?: string | undefined;
500
- readonly disabled?: boolean | undefined;
501
- readonly hidden?: boolean | undefined;
502
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
503
- readonly color?: string | undefined;
504
- readonly orange?: boolean | undefined;
505
- readonly isReverse?: boolean | undefined;
506
- readonly icon?: {
507
- readonly name: string;
508
- readonly color?: string | undefined;
509
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
510
- readonly tooltip?: string | undefined;
511
- } | undefined;
512
- readonly label?: string | undefined;
513
- readonly size?: ("default" | "small" | "large") | undefined;
514
- readonly style?: any;
515
- } | {
516
- readonly component?: never | undefined;
517
- readonly children?: never | undefined;
518
- readonly tooltip?: string | undefined;
519
- readonly key: string;
520
- readonly text?: string | undefined;
521
- readonly isTextBtn?: boolean | undefined;
522
- readonly isLinkBtn?: boolean | undefined;
523
- readonly isPlainBtn?: boolean | undefined;
524
- readonly onClick?: string | undefined;
525
- readonly disabled?: boolean | undefined;
526
- readonly hidden?: boolean | undefined;
527
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
528
- readonly color?: string | undefined;
529
- readonly orange?: boolean | undefined;
530
- readonly isReverse?: boolean | undefined;
531
- readonly icon?: {
532
- readonly name: string;
533
- readonly color?: string | undefined;
534
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
535
- readonly tooltip?: string | undefined;
536
- } | undefined;
537
- readonly label?: string | undefined;
538
- readonly size?: ("default" | "small" | "large") | undefined;
539
- readonly style?: any;
540
- })[];
541
- readonly dynamicBtns: readonly ({
542
- readonly component: "Popover";
543
- readonly props: {
544
- readonly trigger: "hover" | "click" | "focus";
545
- readonly hoverStyle: any;
546
- readonly ostyle: any;
547
- readonly width?: number | undefined;
548
- readonly size?: ("small" | "normal" | "large") | undefined;
549
- readonly hoverColor?: string | undefined;
550
- };
551
- readonly children: readonly {
552
- readonly label?: string | undefined;
553
- readonly name: string;
554
- readonly component: string;
555
- readonly required?: boolean | undefined;
556
- readonly props?: {
557
- readonly [x: string]: any;
558
- } | undefined;
559
- readonly initialValue?: any;
560
- readonly help?: string | undefined;
561
- readonly labelSuffix?: {
562
- readonly component: "Popover";
563
- readonly props: any;
564
- } | undefined;
565
- readonly children?: readonly any[] | undefined;
566
- readonly hidden?: (boolean | string) | undefined;
567
- readonly hideLabel?: boolean | undefined;
568
- readonly designKey?: string | undefined;
569
- readonly rules?: readonly {
570
- readonly type: "email" | "url" | "custom" | string;
571
- readonly customReg?: string | undefined;
572
- readonly templateExp?: any;
573
- readonly message?: string | undefined;
574
- readonly trigger: readonly string[];
575
- }[] | undefined;
576
- readonly class?: any;
577
- readonly style?: any;
578
- readonly change?: readonly {
579
- readonly target: string;
580
- readonly value?: any;
581
- readonly condition?: any;
582
- }[] | undefined;
583
- readonly dialog?: boolean | undefined;
584
- readonly width?: number | undefined;
585
- }[];
586
- readonly tooltip?: string | undefined;
587
- readonly key: string;
588
- readonly text?: string | undefined;
589
- readonly isTextBtn?: boolean | undefined;
590
- readonly isLinkBtn?: boolean | undefined;
591
- readonly isPlainBtn?: boolean | undefined;
592
- readonly onClick?: string | undefined;
593
- readonly disabled?: boolean | undefined;
594
- readonly hidden?: boolean | undefined;
595
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
596
- readonly color?: string | undefined;
597
- readonly orange?: boolean | undefined;
598
- readonly isReverse?: boolean | undefined;
599
- readonly icon?: {
600
- readonly name: string;
601
- readonly color?: string | undefined;
602
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
603
- readonly tooltip?: string | undefined;
604
- } | undefined;
605
- readonly label?: string | undefined;
606
- readonly size?: ("default" | "small" | "large") | undefined;
607
- readonly style?: any;
608
- } | {
609
- readonly component: "BtnGroup";
610
- readonly children: readonly {
611
- readonly tooltip?: string | undefined;
612
- readonly key: string;
613
- readonly text?: string | undefined;
614
- readonly isTextBtn?: boolean | undefined;
615
- readonly isLinkBtn?: boolean | undefined;
616
- readonly isPlainBtn?: boolean | undefined;
617
- readonly onClick?: string | undefined;
618
- readonly disabled?: boolean | undefined;
619
- readonly hidden?: boolean | undefined;
620
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
621
- readonly color?: string | undefined;
622
- readonly orange?: boolean | undefined;
623
- readonly isReverse?: boolean | undefined;
624
- readonly icon?: {
625
- readonly name: string;
626
- readonly color?: string | undefined;
627
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
628
- readonly tooltip?: string | undefined;
629
- } | undefined;
630
- readonly label?: string | undefined;
631
- readonly size?: ("default" | "small" | "large") | undefined;
632
- readonly style?: any;
633
- }[];
634
- readonly tooltip?: string | undefined;
635
- readonly key: string;
636
- readonly text?: string | undefined;
637
- readonly isTextBtn?: boolean | undefined;
638
- readonly isLinkBtn?: boolean | undefined;
639
- readonly isPlainBtn?: boolean | undefined;
640
- readonly onClick?: string | undefined;
641
- readonly disabled?: boolean | undefined;
642
- readonly hidden?: boolean | undefined;
643
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
644
- readonly color?: string | undefined;
645
- readonly orange?: boolean | undefined;
646
- readonly isReverse?: boolean | undefined;
647
- readonly icon?: {
648
- readonly name: string;
649
- readonly color?: string | undefined;
650
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
651
- readonly tooltip?: string | undefined;
652
- } | undefined;
653
- readonly label?: string | undefined;
654
- readonly size?: ("default" | "small" | "large") | undefined;
655
- readonly style?: any;
656
- } | {
657
- readonly component?: never | undefined;
658
- readonly children?: never | undefined;
659
- readonly tooltip?: string | undefined;
660
- readonly key: string;
661
- readonly text?: string | undefined;
662
- readonly isTextBtn?: boolean | undefined;
663
- readonly isLinkBtn?: boolean | undefined;
664
- readonly isPlainBtn?: boolean | undefined;
665
- readonly onClick?: string | undefined;
666
- readonly disabled?: boolean | undefined;
667
- readonly hidden?: boolean | undefined;
668
- readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
669
- readonly color?: string | undefined;
670
- readonly orange?: boolean | undefined;
671
- readonly isReverse?: boolean | undefined;
672
- readonly icon?: {
673
- readonly name: string;
674
- readonly color?: string | undefined;
675
- readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
676
- readonly tooltip?: string | undefined;
677
- } | undefined;
678
- readonly label?: string | undefined;
679
- readonly size?: ("default" | "small" | "large") | undefined;
680
- readonly style?: any;
681
- })[];
682
- readonly content: readonly {
683
- readonly label: string;
684
- readonly key?: string | undefined;
685
- readonly url: string;
686
- readonly disabled?: boolean | undefined;
687
- readonly closable?: boolean | undefined;
688
- readonly pageParams?: any;
689
- readonly mixMode?: boolean | undefined;
690
- readonly hidden?: boolean | undefined;
691
- readonly icon?: string | undefined;
692
- }[];
693
- readonly btns: readonly {
694
- readonly key: string;
695
- readonly text: string;
696
- readonly onClick: string;
697
- readonly disabled: boolean;
698
- readonly hidden: boolean;
699
- }[];
700
- };
701
- rootRef: Readonly<unknown>;
702
- findRef: (url: string) => PageMethods;
703
- changeActiveTab: (key: string, params?: any) => void;
704
- setTabHidden: (key: string, hidden: boolean) => void;
705
- activeTab: string;
706
- type: string;
707
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
708
- doneParent: (...args: any[]) => void;
709
- addPageParams: (...args: any[]) => void;
710
- }, string, PublicProps, Readonly<ExtractPropTypes< {
711
- schema: {
712
- required: true;
713
- type: PropType<TabsSchema>;
714
- };
715
- ruleMap: {
716
- type: PropType<Record<string, any>>;
717
- required: true;
718
- };
719
- pageParams: {
720
- type: PropType<any>;
721
- };
722
- pageRulePath: {
723
- type: PropType<string>;
724
- required: true;
725
- };
726
- styleType: {
727
- type: PropType<"normal" | "modal" | "btn">;
728
- required: true;
729
- };
730
- }>> & Readonly<{
731
- onDoneParent?: ((...args: any[]) => any) | undefined;
732
- onAddPageParams?: ((...args: any[]) => any) | undefined;
733
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
734
-
735
- declare const _default_3: DefineComponent<ExtractPropTypes< {
736
- schema: {
737
- required: true;
738
- type: PropType<InfoCardSchema>;
739
- };
740
- pageRulePath: {
741
- type: PropType<string>;
742
- required: true;
743
- };
744
- }>, {
745
- type: "infocard";
746
- schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
747
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
748
- schema: {
749
- required: true;
750
- type: PropType<InfoCardSchema>;
751
- };
752
- pageRulePath: {
753
- type: PropType<string>;
754
- required: true;
755
- };
756
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
757
-
758
- declare const _default_4: DefineComponent<ExtractPropTypes< {
759
- schema: {
760
- required: true;
761
- type: PropType<NavBarSchema>;
762
- };
763
- pageRulePath: {
764
- type: PropType<string>;
765
- required: true;
766
- };
767
- findRef: {
768
- type: PropType<(key: string) => any>;
769
- required: true;
770
- };
771
- }>, {
772
- type: "navbar";
773
- schema: ModelRef<NavBarSchema, string, NavBarSchema, NavBarSchema>;
774
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
775
- schema: {
776
- required: true;
777
- type: PropType<NavBarSchema>;
778
- };
779
- pageRulePath: {
780
- type: PropType<string>;
781
- required: true;
782
- };
783
- findRef: {
784
- type: PropType<(key: string) => any>;
785
- required: true;
786
- };
787
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
788
-
789
- declare const _default_5: DefineComponent<ExtractPropTypes< {
790
- schema: {
791
- required: true;
792
- type: PropType<AlertSchema>;
793
- };
794
- pageRulePath: {
795
- type: PropType<string>;
796
- required: true;
797
- };
798
- pageUrl: {
799
- type: PropType<string>;
800
- required: true;
801
- };
802
- pageEmit: {
803
- type: PropType<(e: "changeMixMode", tabKey: string, mode: boolean) => void>;
804
- required: true;
805
- };
806
- }>, {
807
- type: "alert";
808
- schema: ModelRef<AlertSchema, string, AlertSchema, AlertSchema>;
809
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
810
- schema: {
811
- required: true;
812
- type: PropType<AlertSchema>;
813
- };
814
- pageRulePath: {
815
- type: PropType<string>;
816
- required: true;
817
- };
818
- pageUrl: {
819
- type: PropType<string>;
820
- required: true;
821
- };
822
- pageEmit: {
823
- type: PropType<(e: "changeMixMode", tabKey: string, mode: boolean) => void>;
824
- required: true;
825
- };
826
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
827
-
828
- declare const _default_6: DefineComponent<ExtractPropTypes< {
829
- gridlayout: {
830
- required: true;
831
- type: PropType< {
832
- x: number;
833
- y: number;
834
- w: number;
835
- h: number;
836
- i: string;
837
- rowHeight?: number;
838
- contentHeight?: number;
839
- }[]>;
840
- };
841
- children: {
842
- type: PropType<FormItemType[]>;
843
- required: true;
844
- };
845
- rowHeight: {
846
- type: PropType<number>;
847
- };
848
- colNum: {
849
- type: PropType<number>;
850
- };
851
- maxRows: {
852
- type: PropType<number>;
853
- };
854
- isDraggable: {
855
- type: PropType<boolean>;
856
- required: true;
857
- };
858
- name: {
859
- type: PropType<string>;
860
- required: true;
861
- };
862
- onMoved: {
863
- type: PropType<string>;
864
- };
865
- }>, {
866
- getLayout: () => Readonly<Ref<readonly {
867
- readonly x: number;
868
- readonly y: number;
869
- readonly w: number;
870
- readonly h: number;
871
- readonly i: string;
872
- readonly rowHeight?: number | undefined;
873
- readonly contentHeight?: number | undefined;
874
- }[], readonly {
875
- readonly x: number;
876
- readonly y: number;
877
- readonly w: number;
878
- readonly h: number;
879
- readonly i: string;
880
- readonly rowHeight?: number | undefined;
881
- readonly contentHeight?: number | undefined;
882
- }[]>>;
883
- setItemX: (index: number, x: number) => void;
884
- setItemY: (index: number, y: number) => void;
885
- setItemVisible: (i: string, visible: boolean) => void;
886
- type: "draglist";
887
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
888
- gridlayout: {
889
- required: true;
890
- type: PropType< {
891
- x: number;
892
- y: number;
893
- w: number;
894
- h: number;
895
- i: string;
896
- rowHeight?: number;
897
- contentHeight?: number;
898
- }[]>;
899
- };
900
- children: {
901
- type: PropType<FormItemType[]>;
902
- required: true;
903
- };
904
- rowHeight: {
905
- type: PropType<number>;
906
- };
907
- colNum: {
908
- type: PropType<number>;
909
- };
910
- maxRows: {
911
- type: PropType<number>;
912
- };
913
- isDraggable: {
914
- type: PropType<boolean>;
915
- required: true;
916
- };
917
- name: {
918
- type: PropType<string>;
919
- required: true;
920
- };
921
- onMoved: {
922
- type: PropType<string>;
923
- };
924
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
925
-
926
- declare const _default_7: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
927
- pageSizes: number[];
928
- defaultPageSize: number;
929
- paginationLayout: string;
930
- hiddenPagination: boolean;
931
- pagerCount: number;
932
- style: StyleValue;
933
- sizeChange: string;
934
- pageChange: string;
935
- name: string;
936
- }>>, {
937
- getPagination: () => {
938
- pageNum: number;
939
- pageSize: number;
940
- };
941
- setTotal: (val: number) => void;
942
- type: "pagination";
943
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
944
- pageSizes: number[];
945
- defaultPageSize: number;
946
- paginationLayout: string;
947
- hiddenPagination: boolean;
948
- pagerCount: number;
949
- style: StyleValue;
950
- sizeChange: string;
951
- pageChange: string;
952
- name: string;
953
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
954
-
955
- declare const _default_8: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
956
- name: string;
957
- children: FormItemType[];
958
- placeholder?: string;
959
- defaultCollapse?: boolean;
960
- searchTypes?: {
961
- label: string;
962
- value: string;
963
- }[];
964
- onSearch: string;
965
- onChange?: string;
966
- onSearchTypeChange: string;
967
- }>>, {
968
- setSearchValue: (val: string) => void;
969
- getSearchValue: () => string;
970
- getSearchType: () => string | null;
971
- setSearchType: (val: string) => void;
972
- type: "filterSearch";
973
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
974
- name: string;
975
- children: FormItemType[];
976
- placeholder?: string;
977
- defaultCollapse?: boolean;
978
- searchTypes?: {
979
- label: string;
980
- value: string;
981
- }[];
982
- onSearch: string;
983
- onChange?: string;
984
- onSearchTypeChange: string;
985
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
986
-
987
- declare const _default_9: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
988
- name: string;
989
- children: FormItemType[];
990
- formTitle: string;
991
- onSearch: string;
992
- onAiSearch: string;
993
- onClear: string;
994
- inputPlaceholder: string;
995
- hidden: boolean;
996
- }>>, {
997
- type: "floatcurd";
998
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
999
- name: string;
1000
- children: FormItemType[];
1001
- formTitle: string;
1002
- onSearch: string;
1003
- onAiSearch: string;
1004
- onClear: string;
1005
- inputPlaceholder: string;
1006
- hidden: boolean;
1007
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1008
-
1009
- declare type DropdownType = {
1010
- key: string;
1011
- text: string;
1012
- icon?: {
1013
- name: string;
1014
- color?: string;
1015
- };
1016
- onClick: string;
1017
- disabled: boolean;
1018
- hidden: boolean;
1019
- color?: string;
1020
- options: {
1021
- label: string;
1022
- value: string;
1023
- key: string;
1024
- }[];
1025
- };
1026
-
1027
- /**
1028
- * 根据key查找单个组件实例
1029
- * @param key 组件的key
1030
- * @returns 组件实例
1031
- */
1032
- declare type ExtraRefTypeMap = {
1033
- draglist: InstanceType<typeof _default_6> & ComponentPublicInstance;
1034
- pagination: InstanceType<typeof _default_7> & ComponentPublicInstance;
1035
- filterSearch: InstanceType<typeof _default_8> & ComponentPublicInstance;
1036
- floatcurd: InstanceType<typeof _default_9> & ComponentPublicInstance;
1037
- tree: InstanceType<typeof _default_10> & ComponentPublicInstance;
1038
- };
1039
-
1040
185
  export declare const findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
1041
186
 
1042
- declare type FindRefType<T extends keyof FindRefTypeMap> = FindRefTypeMap[T];
1043
-
1044
- declare type FindRefTypeMap = RefTypeMap & ExtraRefTypeMap;
1045
-
1046
187
  declare type FormChange = {
1047
188
  target: string;
1048
189
  value?: any;
@@ -1161,83 +302,6 @@ export declare type FormSchema = {
1161
302
  style?: StyleValue;
1162
303
  };
1163
304
 
1164
- declare type getArrayType<T> = T extends Array<infer U> ? U : never;
1165
-
1166
- /**
1167
- * 获取页面参数
1168
- * @returns 页面参数
1169
- */
1170
- declare function getPageParams<T = any>(): T;
1171
-
1172
- declare type InfoCardSchema = {
1173
- expandBottom?: boolean;
1174
- top?: number;
1175
- expandTop?: boolean;
1176
- hidden?: boolean;
1177
- copiable: boolean;
1178
- btns: BtnType[];
1179
- dropdowns: DropdownType[];
1180
- infos: InfoType[];
1181
- key: string;
1182
- rulePath?: string;
1183
- onMounted?: string;
1184
- onActivated?: string;
1185
- onUnmounted?: string;
1186
- detail: {
1187
- label: string;
1188
- value: string | number;
1189
- color?: string;
1190
- }[];
1191
- bottomRightDetail?: {
1192
- label: string;
1193
- value: string;
1194
- };
1195
- bottomRightFormSlots?: FormItemType[];
1196
- header: {
1197
- title: string;
1198
- titleColor?: string;
1199
- titleIcon?: string;
1200
- titleClick?: string;
1201
- subTitlePrefix?: string;
1202
- subTitle: string;
1203
- subTitleClick?: string;
1204
- avatar: string;
1205
- avatarSize?: 'small' | 'x-small' | 'normal' | 'large' | 'ultra-large' | number | undefined;
1206
- avatarIconColor?: string;
1207
- subTitleIcons?: {
1208
- icon: {
1209
- name: string;
1210
- color?: string;
1211
- tooltip?: string;
1212
- };
1213
- onClick?: string;
1214
- }[];
1215
- avatarBgColor?: string;
1216
- titleIcons?: {
1217
- icon: string;
1218
- onClick?: string;
1219
- size?: 'small' | 'x-small' | 'normal' | 'large' | 'ultra-large' | undefined;
1220
- type?: 'icon' | 'popover';
1221
- popoverContent?: FormItemType[];
1222
- popoverWidth?: number;
1223
- tooltip?: string;
1224
- }[];
1225
- btns: BtnType[];
1226
- };
1227
- };
1228
-
1229
- declare type InfoType = {
1230
- key: string;
1231
- label: string;
1232
- value?: string;
1233
- type?: 'success' | 'warning' | 'danger';
1234
- icon?: {
1235
- name: string;
1236
- color?: string;
1237
- };
1238
- expendComponents?: FormItemType[];
1239
- };
1240
-
1241
305
  declare type Locale = {
1242
306
  menus: {
1243
307
  basicTitle: string;
@@ -1277,37 +341,6 @@ declare type Locale = {
1277
341
  };
1278
342
  };
1279
343
 
1280
- declare type NavBarSchema = {
1281
- expandBottom?: boolean;
1282
- title: string;
1283
- back?: boolean;
1284
- btns: BtnType[];
1285
- mixMode?: boolean;
1286
- simple?: boolean;
1287
- noSticky?: boolean;
1288
- secondary?: boolean;
1289
- hidden?: boolean;
1290
- key: string;
1291
- rulePath?: string;
1292
- content: {
1293
- text: string;
1294
- ref: string;
1295
- }[];
1296
- leftActions?: {
1297
- icon: {
1298
- name: string;
1299
- color?: string;
1300
- };
1301
- text: string;
1302
- key: string;
1303
- onClick: string;
1304
- hidden?: boolean;
1305
- }[];
1306
- footerBtns?: BtnType[];
1307
- top?: number;
1308
- traditionMode?: boolean;
1309
- };
1310
-
1311
344
  export declare type Options = {
1312
345
  extendElements?: Record<string, FormElement>;
1313
346
  lang?: 'zh' | 'en';
@@ -1346,10 +379,6 @@ export declare type PageSchema = {
1346
379
  btnPosition?: 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'end' | 'start';
1347
380
  };
1348
381
 
1349
- declare type RefTypeMap = {
1350
- [K in keyof ComponentType]: InstanceType<ComponentType[K]>;
1351
- };
1352
-
1353
382
  declare type RouteLocationRaw = string | number | {
1354
383
  path?: string;
1355
384
  query?: Record<string, string | string[] | null | undefined>;
@@ -1360,8 +389,6 @@ declare type RouteLocationRaw = string | number | {
1360
389
  force?: boolean;
1361
390
  };
1362
391
 
1363
- declare function ruleFunction(funcName: string, ...args: any[]): Promise<any>;
1364
-
1365
392
  declare interface SelectProps {
1366
393
  options?: Record<string, any>[];
1367
394
  defaultOptions?: Record<string, any>[];
@@ -1383,25 +410,6 @@ declare interface SelectProps {
1383
410
  width?: string;
1384
411
  }
1385
412
 
1386
- declare type setBtnStateFn = (params: {
1387
- type: 'form';
1388
- formKey: string;
1389
- btnKey: string;
1390
- } | {
1391
- type: 'table';
1392
- tableKey: string;
1393
- btnPosition: 'top' | 'row';
1394
- btnKey: string;
1395
- } | {
1396
- type: 'page';
1397
- btnKey: string;
1398
- } | {
1399
- type: 'card';
1400
- formKey: string;
1401
- cardKey: string;
1402
- btnKey: string;
1403
- }, stateType: 'hidden' | 'disabled', state: boolean) => void;
1404
-
1405
413
  export declare interface TableColumn {
1406
414
  label: string;
1407
415
  key: string;
@@ -1605,7 +613,7 @@ export declare const useFormInstance: () => FormInstance;
1605
613
 
1606
614
  export declare const useRuleContext: () => {
1607
615
  ruleModule: any;
1608
- pageMethodMap: PageMethods;
616
+ pageMethodMap: any;
1609
617
  };
1610
618
 
1611
619
  export { }