asiaint-lowcode 3.1.85 → 3.1.87

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 +2 -2
  3. package/dist/index.d.ts +1092 -2
  4. package/dist/lazy/{Card-BigooJ9O.js → Card-BEml_0K4.js} +1 -1
  5. package/dist/lazy/{Cascader-DSpXdXaw.js → Cascader-BOEL8leW.js} +1 -1
  6. package/dist/lazy/{Checkbox-QRCyDQEW.js → Checkbox-BohfIHWT.js} +2 -2
  7. package/dist/lazy/{Collapse-UxW94iou.js → Collapse-D3rSlIIe.js} +1 -1
  8. package/dist/lazy/{Component-CucH-N4a.js → Component-B1JFbbXp.js} +1 -1
  9. package/dist/lazy/{Component-DWM0rqsn.js → Component-BsajZs7j.js} +1 -1
  10. package/dist/lazy/{Component-DHZo9OVX.js → Component-C9Tnwx9E.js} +1 -1
  11. package/dist/lazy/{Component-DeZTXM_E.js → Component-D6TzL4ye.js} +1 -1
  12. package/dist/lazy/{Component-Bo7BSWgt.js → Component-DxFl702g.js} +1 -1
  13. package/dist/lazy/{Component-CQu9i0Je.js → Component-ssj_sB2Q.js} +1 -1
  14. package/dist/lazy/{CurdCard-ChSDg6mU.js → CurdCard-7VXKq98j.js} +1 -1
  15. package/dist/lazy/{Custom-BxZi3zp1.js → Custom-De1K8eu2.js} +1 -1
  16. package/dist/lazy/{DatePicker-Bl3HzGzU.js → DatePicker-Cnwzka9Q.js} +1 -1
  17. package/dist/lazy/{DragList-yaXqF5sQ.js → DragList-DNlH6xc_.js} +1 -1
  18. package/dist/lazy/{FilterSearch-DDpLwcBh.js → FilterSearch-CawqnN3-.js} +1 -1
  19. package/dist/lazy/{FloatCurd-CB0KBtU-.js → FloatCurd-Bfbx0pNz.js} +21 -21
  20. package/dist/lazy/{FormList-CDyS5z25.js → FormList-CnLGFRE8.js} +1 -1
  21. package/dist/lazy/{Grid-CG1LFMY0.js → Grid-BPpDwCZf.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-fve922Lk.js → InfiniteScroll-C5qR1y-e.js} +1 -1
  23. package/dist/lazy/{Inline-_H-TNzY9.js → Inline-BCmcJrtp.js} +1 -1
  24. package/dist/lazy/{JsonEdit-XlGHcp9L.js → JsonEdit-Cry77PP2.js} +1 -1
  25. package/dist/lazy/{LogList-DtLKmOzK.js → LogList-DV9x0l-4.js} +1 -1
  26. package/dist/lazy/{ObjGroup-xkB8R_gN.js → ObjGroup-B9H0Nyct.js} +1 -1
  27. package/dist/lazy/{OfferDetails-CRLSzjfu.js → OfferDetails-BXkuopGM.js} +1 -1
  28. package/dist/lazy/{Pagination-DuKlCl7p.js → Pagination-Ddo_VXm7.js} +1 -1
  29. package/dist/lazy/{Progress-ChUMXmv5.js → Progress-1tMu1q7F.js} +1 -1
  30. package/dist/lazy/{Radio-Dd_U_MpR.js → Radio-vC5wToSi.js} +2 -2
  31. package/dist/lazy/{SearchSelect-CVfjoj_Y.js → SearchSelect-D6ryeTSr.js} +2 -2
  32. package/dist/lazy/{Select-C0xS-d-d.js → Select-DqKoRkw2.js} +2 -2
  33. package/dist/lazy/{Table-CcMRO9XE.js → Table-C8Y6Sz0f.js} +1 -1
  34. package/dist/lazy/{Tabs-CsxysU3m.js → Tabs-B8Zya2C4.js} +1 -1
  35. package/dist/lazy/{TextArea-DkP9c3CZ.js → TextArea-CjuCf5PU.js} +1 -1
  36. package/dist/lazy/{Wrapper-BqxLvti_.js → Wrapper-qHEwy0M0.js} +1 -1
  37. package/dist/lazy/{index-Cx0bwqKp.js → index-CzvMY4Xl.js} +34 -34
  38. package/dist/lazy/{useSelect-PzOmtysZ.js → useSelect-IZjFrN2T.js} +1 -1
  39. package/dist/style.css +1 -1
  40. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -8,10 +8,14 @@ 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';
11
12
  import { PropType } from 'vue';
12
13
  import { PublicProps } from 'vue';
14
+ import { Ref } from 'vue';
13
15
  import { StyleValue } from 'vue';
16
+ import { TabPaneName } from 'element-plus';
14
17
  import { TabsProps } from 'element-plus';
18
+ import { TreeOptionProps } from 'element-plus/es/components/tree/src/tree.type';
15
19
  import { VNode } from 'vue';
16
20
 
17
21
  export declare const $options: InjectionKey<Options>;
@@ -111,7 +115,103 @@ field?: string;
111
115
  onReset?: (() => any) | undefined;
112
116
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
113
117
 
114
- declare const __VLS_component_2: any;
118
+ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
119
+ ruleMap: Record<string, any>;
120
+ pageUrl?: string;
121
+ pageParams?: any;
122
+ parentPageFun?: typeof methodMap;
123
+ }>>, {
124
+ activate: typeof activate;
125
+ ruleFunction: typeof ruleFunction;
126
+ findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
127
+ setFormDisabled: (key: string, disabled: boolean) => void;
128
+ clearValidate: (key: string, names?: string | string[]) => void;
129
+ validate: (keys: string[] | string) => Promise<boolean | undefined>;
130
+ getData: (keys?: string[] | string) => any;
131
+ resetFields: (keys?: string[] | string) => void;
132
+ emit: {
133
+ (e: "doneParent", data?: any): void;
134
+ (e: "done", data?: any): void;
135
+ (e: "refresh"): void;
136
+ (e: "changeTab", tabKey: string, params?: any): void;
137
+ (e: "changeMixMode", tabKey: string, mode: boolean): void;
138
+ (e: "addPageParams", data: any): void;
139
+ };
140
+ setData: (key: string, dataModel: any, isAssign?: boolean) => void;
141
+ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
142
+ getPageParams: typeof getPageParams;
143
+ setHidden: (key: string, hiddenState: boolean) => void;
144
+ setBtnHidden: (key: string, hiddenState: boolean) => void;
145
+ setBtnStateByKey: (key: string, stateType: "hidden" | "disabled" | "condition", state: boolean | string) => void;
146
+ setBtnDisabled: (key: string, disabled: boolean) => void;
147
+ addPageParams: (params: any) => void;
148
+ setPageParams: (params: any) => void;
149
+ setGlobalParams: (params: any) => void;
150
+ getGlobalParams: () => any;
151
+ setBtnState: setBtnStateFn;
152
+ setReadMode: (key: string, readMode: boolean) => void;
153
+ getParentPageFun: () => {
154
+ findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
155
+ setFormDisabled: (key: string, disabled: boolean) => void;
156
+ clearValidate: (key: string, names?: string | string[]) => void;
157
+ validate: (keys: string[] | string) => Promise<boolean | undefined>;
158
+ getData: (keys?: string[] | string) => any;
159
+ resetFields: (keys?: string[] | string) => void;
160
+ emit: {
161
+ (e: "doneParent", data?: any): void;
162
+ (e: "done", data?: any): void;
163
+ (e: "refresh"): void;
164
+ (e: "changeTab", tabKey: string, params?: any): void;
165
+ (e: "changeMixMode", tabKey: string, mode: boolean): void;
166
+ (e: "addPageParams", data: any): void;
167
+ };
168
+ setData: (key: string, dataModel: any, isAssign?: boolean) => void;
169
+ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
170
+ getPageParams: typeof getPageParams;
171
+ setHidden: (key: string, hiddenState: boolean) => void;
172
+ setBtnHidden: (key: string, hiddenState: boolean) => void;
173
+ setBtnStateByKey: (key: string, stateType: "hidden" | "disabled" | "condition", state: boolean | string) => void;
174
+ setBtnDisabled: (key: string, disabled: boolean) => void;
175
+ addPageParams: (params: any) => void;
176
+ setPageParams: (params: any) => void;
177
+ setGlobalParams: (params: any) => void;
178
+ getGlobalParams: () => any;
179
+ setBtnState: setBtnStateFn;
180
+ setReadMode: (key: string, readMode: boolean) => void;
181
+ getParentPageFun: any;
182
+ setPageMask: (mask: boolean) => void;
183
+ } | undefined;
184
+ setPageMask: (mask: boolean) => void;
185
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
186
+ doneParent: (data?: any) => void;
187
+ done: (data?: any) => void;
188
+ refresh: () => void;
189
+ changeTab: (tabKey: string, params?: any) => void;
190
+ changeMixMode: (tabKey: string, mode: boolean) => void;
191
+ addPageParams: (data: any) => void;
192
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
193
+ ruleMap: Record<string, any>;
194
+ pageUrl?: string;
195
+ pageParams?: any;
196
+ parentPageFun?: typeof methodMap;
197
+ }>>> & Readonly<{
198
+ onDone?: ((data?: any) => any) | undefined;
199
+ onDoneParent?: ((data?: any) => any) | undefined;
200
+ onRefresh?: (() => any) | undefined;
201
+ onChangeTab?: ((tabKey: string, params?: any) => any) | undefined;
202
+ onChangeMixMode?: ((tabKey: string, mode: boolean) => any) | undefined;
203
+ onAddPageParams?: ((data: any) => any) | undefined;
204
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
205
+
206
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
207
+
208
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
209
+
210
+ declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
211
+
212
+ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
213
+
214
+ declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
115
215
 
116
216
  declare function __VLS_template(): {
117
217
  default?(_: {}): any;
@@ -121,6 +221,51 @@ declare function __VLS_template_2(): {
121
221
  loading?(_: {}): any;
122
222
  };
123
223
 
224
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
225
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
226
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
227
+ } : {
228
+ type: PropType<T[K]>;
229
+ required: true;
230
+ };
231
+ };
232
+
233
+ declare type __VLS_TypePropsToRuntimeProps_2<T> = {
234
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
235
+ type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
236
+ } : {
237
+ type: PropType<T[K]>;
238
+ required: true;
239
+ };
240
+ };
241
+
242
+ declare type __VLS_TypePropsToRuntimeProps_3<T> = {
243
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
244
+ type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
245
+ } : {
246
+ type: PropType<T[K]>;
247
+ required: true;
248
+ };
249
+ };
250
+
251
+ declare type __VLS_TypePropsToRuntimeProps_4<T> = {
252
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
253
+ type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
254
+ } : {
255
+ type: PropType<T[K]>;
256
+ required: true;
257
+ };
258
+ };
259
+
260
+ declare type __VLS_TypePropsToRuntimeProps_5<T> = {
261
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
262
+ type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
263
+ } : {
264
+ type: PropType<T[K]>;
265
+ required: true;
266
+ };
267
+ };
268
+
124
269
  declare type __VLS_WithTemplateSlots<T, S> = T & {
125
270
  new (): {
126
271
  $slots: S;
@@ -133,6 +278,27 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
133
278
  };
134
279
  };
135
280
 
281
+ declare function activate(): void;
282
+
283
+ declare type AlertSchema = {
284
+ description: string;
285
+ values?: {
286
+ text: string | number;
287
+ onClick?: string;
288
+ ext?: any;
289
+ getPopoverContent?: string;
290
+ }[];
291
+ type?: 'primary' | 'success' | 'warning' | 'info' | 'error';
292
+ key: string;
293
+ rulePath?: string;
294
+ hidden?: boolean;
295
+ mixMode?: boolean;
296
+ onClose?: string;
297
+ top?: number;
298
+ noSticky?: boolean;
299
+ style?: Record<string, string>;
300
+ };
301
+
136
302
  declare type BtnItemType = {
137
303
  tooltip?: string;
138
304
  key: string;
@@ -177,13 +343,739 @@ export declare type BtnType = ({
177
343
  children?: never;
178
344
  } & BtnItemType);
179
345
 
346
+ declare type ComponentType = {
347
+ form: typeof FormRender;
348
+ table: typeof TableRender;
349
+ tabs: typeof _default_2;
350
+ infocard: typeof _default_3;
351
+ navbar: typeof _default_4;
352
+ alert: typeof _default_5;
353
+ };
354
+
180
355
  declare const _default: {
181
356
  install: (app: App<Element>, options?: Options) => void;
182
357
  };
183
358
  export default _default;
184
359
 
360
+ declare const _default_10: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
361
+ onNodeClick?: string;
362
+ onNodeDbClick?: string;
363
+ onCheckChange?: string;
364
+ onLoad?: string;
365
+ btns: BtnType[];
366
+ data?: any[];
367
+ props?: TreeOptionProps;
368
+ nodeKey: string;
369
+ styleType?: "modal" | "normal";
370
+ name: string;
371
+ showCheckbox?: boolean;
372
+ }>>, {
373
+ getCheckedNodes: () => any;
374
+ type: "tree";
375
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
376
+ onNodeClick?: string;
377
+ onNodeDbClick?: string;
378
+ onCheckChange?: string;
379
+ onLoad?: string;
380
+ btns: BtnType[];
381
+ data?: any[];
382
+ props?: TreeOptionProps;
383
+ nodeKey: string;
384
+ styleType?: "modal" | "normal";
385
+ name: string;
386
+ showCheckbox?: boolean;
387
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
388
+
389
+ declare const _default_2: DefineComponent<ExtractPropTypes< {
390
+ schema: {
391
+ required: true;
392
+ type: PropType<TabsSchema>;
393
+ };
394
+ ruleMap: {
395
+ type: PropType<Record<string, any>>;
396
+ required: true;
397
+ };
398
+ pageParams: {
399
+ type: PropType<any>;
400
+ };
401
+ pageRulePath: {
402
+ type: PropType<string>;
403
+ required: true;
404
+ };
405
+ styleType: {
406
+ type: PropType<"normal" | "modal" | "btn">;
407
+ required: true;
408
+ };
409
+ }>, {
410
+ setTabContent: (newContents: TabsSchema["content"]) => void;
411
+ addTabContent: (newContent: TabsSchema["content"] | getArrayType<TabsSchema["content"]>) => void;
412
+ schema: {
413
+ readonly key: string;
414
+ readonly rulePath?: string | undefined;
415
+ readonly onMounted?: string | undefined;
416
+ readonly onActivated?: string | undefined;
417
+ readonly onChange?: string | undefined;
418
+ readonly tabProps?: {
419
+ readonly type: "" | "card" | "border-card";
420
+ readonly closable: boolean;
421
+ readonly stretch: boolean;
422
+ readonly addable: boolean;
423
+ readonly editable: boolean;
424
+ readonly tabPosition: "right" | "top" | "left" | "bottom";
425
+ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => boolean | void | Promise<boolean | void>;
426
+ readonly modelValue?: (string | number) | undefined;
427
+ } | undefined;
428
+ readonly hidden?: boolean | undefined;
429
+ readonly isSticky?: boolean | undefined;
430
+ readonly stickyTop?: number | undefined;
431
+ readonly expandTop?: boolean | undefined;
432
+ readonly styleType?: ("modal" | "btn" | "normal") | undefined;
433
+ readonly staticBtns: readonly ({
434
+ readonly component: "Popover";
435
+ readonly props: {
436
+ readonly trigger: "hover" | "click" | "focus";
437
+ readonly hoverStyle: any;
438
+ readonly ostyle: any;
439
+ readonly width?: number | undefined;
440
+ readonly size?: ("small" | "normal" | "large") | undefined;
441
+ readonly hoverColor?: string | undefined;
442
+ };
443
+ readonly children: readonly {
444
+ readonly label?: string | undefined;
445
+ readonly name: string;
446
+ readonly component: string;
447
+ readonly required?: boolean | undefined;
448
+ readonly props?: {
449
+ readonly [x: string]: any;
450
+ } | undefined;
451
+ readonly initialValue?: any;
452
+ readonly help?: string | undefined;
453
+ readonly labelSuffix?: {
454
+ readonly component: "Popover";
455
+ readonly props: any;
456
+ } | undefined;
457
+ readonly children?: readonly any[] | undefined;
458
+ readonly hidden?: (boolean | string) | undefined;
459
+ readonly hideLabel?: boolean | undefined;
460
+ readonly designKey?: string | undefined;
461
+ readonly rules?: readonly {
462
+ readonly type: "email" | "url" | "custom" | string;
463
+ readonly customReg?: string | undefined;
464
+ readonly templateExp?: any;
465
+ readonly message?: string | undefined;
466
+ readonly trigger: readonly string[];
467
+ }[] | undefined;
468
+ readonly class?: any;
469
+ readonly style?: any;
470
+ readonly change?: readonly {
471
+ readonly target: string;
472
+ readonly value?: any;
473
+ readonly condition?: any;
474
+ }[] | undefined;
475
+ readonly dialog?: boolean | undefined;
476
+ readonly width?: number | undefined;
477
+ }[];
478
+ readonly tooltip?: string | undefined;
479
+ readonly key: string;
480
+ readonly text?: string | undefined;
481
+ readonly isTextBtn?: boolean | undefined;
482
+ readonly isLinkBtn?: boolean | undefined;
483
+ readonly isPlainBtn?: boolean | undefined;
484
+ readonly onClick?: string | undefined;
485
+ readonly disabled?: boolean | undefined;
486
+ readonly hidden?: boolean | undefined;
487
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
488
+ readonly color?: string | undefined;
489
+ readonly orange?: boolean | undefined;
490
+ readonly isReverse?: boolean | undefined;
491
+ readonly icon?: {
492
+ readonly name: string;
493
+ readonly color?: string | undefined;
494
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
495
+ readonly tooltip?: string | undefined;
496
+ } | undefined;
497
+ readonly label?: string | undefined;
498
+ readonly size?: ("default" | "small" | "large") | undefined;
499
+ readonly style?: any;
500
+ } | {
501
+ readonly component: "BtnGroup";
502
+ readonly children: readonly {
503
+ readonly tooltip?: string | undefined;
504
+ readonly key: string;
505
+ readonly text?: string | undefined;
506
+ readonly isTextBtn?: boolean | undefined;
507
+ readonly isLinkBtn?: boolean | undefined;
508
+ readonly isPlainBtn?: boolean | undefined;
509
+ readonly onClick?: string | undefined;
510
+ readonly disabled?: boolean | undefined;
511
+ readonly hidden?: boolean | undefined;
512
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
513
+ readonly color?: string | undefined;
514
+ readonly orange?: boolean | undefined;
515
+ readonly isReverse?: boolean | undefined;
516
+ readonly icon?: {
517
+ readonly name: string;
518
+ readonly color?: string | undefined;
519
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
520
+ readonly tooltip?: string | undefined;
521
+ } | undefined;
522
+ readonly label?: string | undefined;
523
+ readonly size?: ("default" | "small" | "large") | undefined;
524
+ readonly style?: any;
525
+ }[];
526
+ readonly tooltip?: string | undefined;
527
+ readonly key: string;
528
+ readonly text?: string | undefined;
529
+ readonly isTextBtn?: boolean | undefined;
530
+ readonly isLinkBtn?: boolean | undefined;
531
+ readonly isPlainBtn?: boolean | undefined;
532
+ readonly onClick?: string | undefined;
533
+ readonly disabled?: boolean | undefined;
534
+ readonly hidden?: boolean | undefined;
535
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
536
+ readonly color?: string | undefined;
537
+ readonly orange?: boolean | undefined;
538
+ readonly isReverse?: boolean | undefined;
539
+ readonly icon?: {
540
+ readonly name: string;
541
+ readonly color?: string | undefined;
542
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
543
+ readonly tooltip?: string | undefined;
544
+ } | undefined;
545
+ readonly label?: string | undefined;
546
+ readonly size?: ("default" | "small" | "large") | undefined;
547
+ readonly style?: any;
548
+ } | {
549
+ readonly component?: never | undefined;
550
+ readonly children?: never | undefined;
551
+ readonly tooltip?: string | undefined;
552
+ readonly key: string;
553
+ readonly text?: string | undefined;
554
+ readonly isTextBtn?: boolean | undefined;
555
+ readonly isLinkBtn?: boolean | undefined;
556
+ readonly isPlainBtn?: boolean | undefined;
557
+ readonly onClick?: string | undefined;
558
+ readonly disabled?: boolean | undefined;
559
+ readonly hidden?: boolean | undefined;
560
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
561
+ readonly color?: string | undefined;
562
+ readonly orange?: boolean | undefined;
563
+ readonly isReverse?: boolean | undefined;
564
+ readonly icon?: {
565
+ readonly name: string;
566
+ readonly color?: string | undefined;
567
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
568
+ readonly tooltip?: string | undefined;
569
+ } | undefined;
570
+ readonly label?: string | undefined;
571
+ readonly size?: ("default" | "small" | "large") | undefined;
572
+ readonly style?: any;
573
+ })[];
574
+ readonly dynamicBtns: readonly ({
575
+ readonly component: "Popover";
576
+ readonly props: {
577
+ readonly trigger: "hover" | "click" | "focus";
578
+ readonly hoverStyle: any;
579
+ readonly ostyle: any;
580
+ readonly width?: number | undefined;
581
+ readonly size?: ("small" | "normal" | "large") | undefined;
582
+ readonly hoverColor?: string | undefined;
583
+ };
584
+ readonly children: readonly {
585
+ readonly label?: string | undefined;
586
+ readonly name: string;
587
+ readonly component: string;
588
+ readonly required?: boolean | undefined;
589
+ readonly props?: {
590
+ readonly [x: string]: any;
591
+ } | undefined;
592
+ readonly initialValue?: any;
593
+ readonly help?: string | undefined;
594
+ readonly labelSuffix?: {
595
+ readonly component: "Popover";
596
+ readonly props: any;
597
+ } | undefined;
598
+ readonly children?: readonly any[] | undefined;
599
+ readonly hidden?: (boolean | string) | undefined;
600
+ readonly hideLabel?: boolean | undefined;
601
+ readonly designKey?: string | undefined;
602
+ readonly rules?: readonly {
603
+ readonly type: "email" | "url" | "custom" | string;
604
+ readonly customReg?: string | undefined;
605
+ readonly templateExp?: any;
606
+ readonly message?: string | undefined;
607
+ readonly trigger: readonly string[];
608
+ }[] | undefined;
609
+ readonly class?: any;
610
+ readonly style?: any;
611
+ readonly change?: readonly {
612
+ readonly target: string;
613
+ readonly value?: any;
614
+ readonly condition?: any;
615
+ }[] | undefined;
616
+ readonly dialog?: boolean | undefined;
617
+ readonly width?: number | undefined;
618
+ }[];
619
+ readonly tooltip?: string | undefined;
620
+ readonly key: string;
621
+ readonly text?: string | undefined;
622
+ readonly isTextBtn?: boolean | undefined;
623
+ readonly isLinkBtn?: boolean | undefined;
624
+ readonly isPlainBtn?: boolean | undefined;
625
+ readonly onClick?: string | undefined;
626
+ readonly disabled?: boolean | undefined;
627
+ readonly hidden?: boolean | undefined;
628
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
629
+ readonly color?: string | undefined;
630
+ readonly orange?: boolean | undefined;
631
+ readonly isReverse?: boolean | undefined;
632
+ readonly icon?: {
633
+ readonly name: string;
634
+ readonly color?: string | undefined;
635
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
636
+ readonly tooltip?: string | undefined;
637
+ } | undefined;
638
+ readonly label?: string | undefined;
639
+ readonly size?: ("default" | "small" | "large") | undefined;
640
+ readonly style?: any;
641
+ } | {
642
+ readonly component: "BtnGroup";
643
+ readonly children: readonly {
644
+ readonly tooltip?: string | undefined;
645
+ readonly key: string;
646
+ readonly text?: string | undefined;
647
+ readonly isTextBtn?: boolean | undefined;
648
+ readonly isLinkBtn?: boolean | undefined;
649
+ readonly isPlainBtn?: boolean | undefined;
650
+ readonly onClick?: string | undefined;
651
+ readonly disabled?: boolean | undefined;
652
+ readonly hidden?: boolean | undefined;
653
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
654
+ readonly color?: string | undefined;
655
+ readonly orange?: boolean | undefined;
656
+ readonly isReverse?: boolean | undefined;
657
+ readonly icon?: {
658
+ readonly name: string;
659
+ readonly color?: string | undefined;
660
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
661
+ readonly tooltip?: string | undefined;
662
+ } | undefined;
663
+ readonly label?: string | undefined;
664
+ readonly size?: ("default" | "small" | "large") | undefined;
665
+ readonly style?: any;
666
+ }[];
667
+ readonly tooltip?: string | undefined;
668
+ readonly key: string;
669
+ readonly text?: string | undefined;
670
+ readonly isTextBtn?: boolean | undefined;
671
+ readonly isLinkBtn?: boolean | undefined;
672
+ readonly isPlainBtn?: boolean | undefined;
673
+ readonly onClick?: string | undefined;
674
+ readonly disabled?: boolean | undefined;
675
+ readonly hidden?: boolean | undefined;
676
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
677
+ readonly color?: string | undefined;
678
+ readonly orange?: boolean | undefined;
679
+ readonly isReverse?: boolean | undefined;
680
+ readonly icon?: {
681
+ readonly name: string;
682
+ readonly color?: string | undefined;
683
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
684
+ readonly tooltip?: string | undefined;
685
+ } | undefined;
686
+ readonly label?: string | undefined;
687
+ readonly size?: ("default" | "small" | "large") | undefined;
688
+ readonly style?: any;
689
+ } | {
690
+ readonly component?: never | undefined;
691
+ readonly children?: never | undefined;
692
+ readonly tooltip?: string | undefined;
693
+ readonly key: string;
694
+ readonly text?: string | undefined;
695
+ readonly isTextBtn?: boolean | undefined;
696
+ readonly isLinkBtn?: boolean | undefined;
697
+ readonly isPlainBtn?: boolean | undefined;
698
+ readonly onClick?: string | undefined;
699
+ readonly disabled?: boolean | undefined;
700
+ readonly hidden?: boolean | undefined;
701
+ readonly type?: ("primary" | "success" | "warning" | "danger" | "info") | undefined;
702
+ readonly color?: string | undefined;
703
+ readonly orange?: boolean | undefined;
704
+ readonly isReverse?: boolean | undefined;
705
+ readonly icon?: {
706
+ readonly name: string;
707
+ readonly color?: string | undefined;
708
+ readonly size?: ("x-small" | "small" | "normal" | "large" | "ultra-large") | undefined;
709
+ readonly tooltip?: string | undefined;
710
+ } | undefined;
711
+ readonly label?: string | undefined;
712
+ readonly size?: ("default" | "small" | "large") | undefined;
713
+ readonly style?: any;
714
+ })[];
715
+ readonly content: readonly {
716
+ readonly label: string;
717
+ readonly key?: string | undefined;
718
+ readonly url: string;
719
+ readonly disabled?: boolean | undefined;
720
+ readonly closable?: boolean | undefined;
721
+ readonly pageParams?: any;
722
+ readonly mixMode?: boolean | undefined;
723
+ readonly hidden?: boolean | undefined;
724
+ readonly icon?: string | undefined;
725
+ }[];
726
+ readonly btns: readonly {
727
+ readonly key: string;
728
+ readonly text: string;
729
+ readonly onClick: string;
730
+ readonly disabled: boolean;
731
+ readonly hidden: boolean;
732
+ }[];
733
+ };
734
+ rootRef: Readonly<unknown>;
735
+ findRef: (url: string) => PageMethods;
736
+ changeActiveTab: (key: string, params?: any) => void;
737
+ setTabHidden: (key: string, hidden: boolean) => void;
738
+ activeTab: string;
739
+ type: string;
740
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
741
+ doneParent: (...args: any[]) => void;
742
+ addPageParams: (...args: any[]) => void;
743
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
744
+ schema: {
745
+ required: true;
746
+ type: PropType<TabsSchema>;
747
+ };
748
+ ruleMap: {
749
+ type: PropType<Record<string, any>>;
750
+ required: true;
751
+ };
752
+ pageParams: {
753
+ type: PropType<any>;
754
+ };
755
+ pageRulePath: {
756
+ type: PropType<string>;
757
+ required: true;
758
+ };
759
+ styleType: {
760
+ type: PropType<"normal" | "modal" | "btn">;
761
+ required: true;
762
+ };
763
+ }>> & Readonly<{
764
+ onDoneParent?: ((...args: any[]) => any) | undefined;
765
+ onAddPageParams?: ((...args: any[]) => any) | undefined;
766
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
767
+
768
+ declare const _default_3: DefineComponent<ExtractPropTypes< {
769
+ schema: {
770
+ required: true;
771
+ type: PropType<InfoCardSchema>;
772
+ };
773
+ pageRulePath: {
774
+ type: PropType<string>;
775
+ required: true;
776
+ };
777
+ }>, {
778
+ type: "infocard";
779
+ schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
780
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
781
+ schema: {
782
+ required: true;
783
+ type: PropType<InfoCardSchema>;
784
+ };
785
+ pageRulePath: {
786
+ type: PropType<string>;
787
+ required: true;
788
+ };
789
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
790
+
791
+ declare const _default_4: DefineComponent<ExtractPropTypes< {
792
+ schema: {
793
+ required: true;
794
+ type: PropType<NavBarSchema>;
795
+ };
796
+ pageRulePath: {
797
+ type: PropType<string>;
798
+ required: true;
799
+ };
800
+ findRef: {
801
+ type: PropType<(key: string) => any>;
802
+ required: true;
803
+ };
804
+ }>, {
805
+ type: "navbar";
806
+ schema: ModelRef<NavBarSchema, string, NavBarSchema, NavBarSchema>;
807
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
808
+ schema: {
809
+ required: true;
810
+ type: PropType<NavBarSchema>;
811
+ };
812
+ pageRulePath: {
813
+ type: PropType<string>;
814
+ required: true;
815
+ };
816
+ findRef: {
817
+ type: PropType<(key: string) => any>;
818
+ required: true;
819
+ };
820
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
821
+
822
+ declare const _default_5: DefineComponent<ExtractPropTypes< {
823
+ schema: {
824
+ required: true;
825
+ type: PropType<AlertSchema>;
826
+ };
827
+ pageRulePath: {
828
+ type: PropType<string>;
829
+ required: true;
830
+ };
831
+ pageUrl: {
832
+ type: PropType<string>;
833
+ required: true;
834
+ };
835
+ pageEmit: {
836
+ type: PropType<(e: "changeMixMode", tabKey: string, mode: boolean) => void>;
837
+ required: true;
838
+ };
839
+ }>, {
840
+ type: "alert";
841
+ schema: ModelRef<AlertSchema, string, AlertSchema, AlertSchema>;
842
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
843
+ schema: {
844
+ required: true;
845
+ type: PropType<AlertSchema>;
846
+ };
847
+ pageRulePath: {
848
+ type: PropType<string>;
849
+ required: true;
850
+ };
851
+ pageUrl: {
852
+ type: PropType<string>;
853
+ required: true;
854
+ };
855
+ pageEmit: {
856
+ type: PropType<(e: "changeMixMode", tabKey: string, mode: boolean) => void>;
857
+ required: true;
858
+ };
859
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
860
+
861
+ declare const _default_6: DefineComponent<ExtractPropTypes< {
862
+ gridlayout: {
863
+ required: true;
864
+ type: PropType< {
865
+ x: number;
866
+ y: number;
867
+ w: number;
868
+ h: number;
869
+ i: string;
870
+ rowHeight?: number;
871
+ contentHeight?: number;
872
+ }[]>;
873
+ };
874
+ children: {
875
+ type: PropType<FormItemType[]>;
876
+ required: true;
877
+ };
878
+ rowHeight: {
879
+ type: PropType<number>;
880
+ };
881
+ colNum: {
882
+ type: PropType<number>;
883
+ };
884
+ maxRows: {
885
+ type: PropType<number>;
886
+ };
887
+ isDraggable: {
888
+ type: PropType<boolean>;
889
+ required: true;
890
+ };
891
+ name: {
892
+ type: PropType<string>;
893
+ required: true;
894
+ };
895
+ onMoved: {
896
+ type: PropType<string>;
897
+ };
898
+ }>, {
899
+ getLayout: () => Readonly<Ref<readonly {
900
+ readonly x: number;
901
+ readonly y: number;
902
+ readonly w: number;
903
+ readonly h: number;
904
+ readonly i: string;
905
+ readonly rowHeight?: number | undefined;
906
+ readonly contentHeight?: number | undefined;
907
+ }[], readonly {
908
+ readonly x: number;
909
+ readonly y: number;
910
+ readonly w: number;
911
+ readonly h: number;
912
+ readonly i: string;
913
+ readonly rowHeight?: number | undefined;
914
+ readonly contentHeight?: number | undefined;
915
+ }[]>>;
916
+ setItemX: (index: number, x: number) => void;
917
+ setItemY: (index: number, y: number) => void;
918
+ setItemVisible: (i: string, visible: boolean) => void;
919
+ type: "draglist";
920
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
921
+ gridlayout: {
922
+ required: true;
923
+ type: PropType< {
924
+ x: number;
925
+ y: number;
926
+ w: number;
927
+ h: number;
928
+ i: string;
929
+ rowHeight?: number;
930
+ contentHeight?: number;
931
+ }[]>;
932
+ };
933
+ children: {
934
+ type: PropType<FormItemType[]>;
935
+ required: true;
936
+ };
937
+ rowHeight: {
938
+ type: PropType<number>;
939
+ };
940
+ colNum: {
941
+ type: PropType<number>;
942
+ };
943
+ maxRows: {
944
+ type: PropType<number>;
945
+ };
946
+ isDraggable: {
947
+ type: PropType<boolean>;
948
+ required: true;
949
+ };
950
+ name: {
951
+ type: PropType<string>;
952
+ required: true;
953
+ };
954
+ onMoved: {
955
+ type: PropType<string>;
956
+ };
957
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
958
+
959
+ declare const _default_7: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
960
+ pageSizes: number[];
961
+ defaultPageSize: number;
962
+ paginationLayout: string;
963
+ hiddenPagination: boolean;
964
+ pagerCount: number;
965
+ style: StyleValue;
966
+ sizeChange: string;
967
+ pageChange: string;
968
+ name: string;
969
+ }>>, {
970
+ getPagination: () => {
971
+ pageNum: number;
972
+ pageSize: number;
973
+ };
974
+ setTotal: (val: number) => void;
975
+ type: "pagination";
976
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
977
+ pageSizes: number[];
978
+ defaultPageSize: number;
979
+ paginationLayout: string;
980
+ hiddenPagination: boolean;
981
+ pagerCount: number;
982
+ style: StyleValue;
983
+ sizeChange: string;
984
+ pageChange: string;
985
+ name: string;
986
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
987
+
988
+ declare const _default_8: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
989
+ name: string;
990
+ children: FormItemType[];
991
+ placeholder?: string;
992
+ defaultCollapse?: boolean;
993
+ searchTypes?: {
994
+ label: string;
995
+ value: string;
996
+ }[];
997
+ onSearch: string;
998
+ onChange?: string;
999
+ onSearchTypeChange: string;
1000
+ }>>, {
1001
+ setSearchValue: (val: string) => void;
1002
+ getSearchValue: () => string;
1003
+ getSearchType: () => string | null;
1004
+ setSearchType: (val: string) => void;
1005
+ type: "filterSearch";
1006
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
1007
+ name: string;
1008
+ children: FormItemType[];
1009
+ placeholder?: string;
1010
+ defaultCollapse?: boolean;
1011
+ searchTypes?: {
1012
+ label: string;
1013
+ value: string;
1014
+ }[];
1015
+ onSearch: string;
1016
+ onChange?: string;
1017
+ onSearchTypeChange: string;
1018
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1019
+
1020
+ declare const _default_9: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
1021
+ name: string;
1022
+ children: FormItemType[];
1023
+ formTitle: string;
1024
+ onSearch: string;
1025
+ onAiSearch: string;
1026
+ onClear: string;
1027
+ inputPlaceholder: string;
1028
+ hidden: boolean;
1029
+ }>>, {
1030
+ type: "floatcurd";
1031
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
1032
+ name: string;
1033
+ children: FormItemType[];
1034
+ formTitle: string;
1035
+ onSearch: string;
1036
+ onAiSearch: string;
1037
+ onClear: string;
1038
+ inputPlaceholder: string;
1039
+ hidden: boolean;
1040
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1041
+
1042
+ declare type DropdownType = {
1043
+ key: string;
1044
+ text: string;
1045
+ icon?: {
1046
+ name: string;
1047
+ color?: string;
1048
+ };
1049
+ onClick: string;
1050
+ disabled: boolean;
1051
+ hidden: boolean;
1052
+ color?: string;
1053
+ options: {
1054
+ label: string;
1055
+ value: string;
1056
+ key: string;
1057
+ }[];
1058
+ };
1059
+
1060
+ /**
1061
+ * 根据key查找单个组件实例
1062
+ * @param key 组件的key
1063
+ * @returns 组件实例
1064
+ */
1065
+ declare type ExtraRefTypeMap = {
1066
+ draglist: InstanceType<typeof _default_6> & ComponentPublicInstance;
1067
+ pagination: InstanceType<typeof _default_7> & ComponentPublicInstance;
1068
+ filterSearch: InstanceType<typeof _default_8> & ComponentPublicInstance;
1069
+ floatcurd: InstanceType<typeof _default_9> & ComponentPublicInstance;
1070
+ tree: InstanceType<typeof _default_10> & ComponentPublicInstance;
1071
+ };
1072
+
185
1073
  export declare const findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
186
1074
 
1075
+ declare type FindRefType<T extends keyof FindRefTypeMap> = FindRefTypeMap[T];
1076
+
1077
+ declare type FindRefTypeMap = RefTypeMap & ExtraRefTypeMap;
1078
+
187
1079
  declare type FormChange = {
188
1080
  target: string;
189
1081
  value?: any;
@@ -302,6 +1194,83 @@ export declare type FormSchema = {
302
1194
  style?: StyleValue;
303
1195
  };
304
1196
 
1197
+ declare type getArrayType<T> = T extends Array<infer U> ? U : never;
1198
+
1199
+ /**
1200
+ * 获取页面参数
1201
+ * @returns 页面参数
1202
+ */
1203
+ declare function getPageParams<T = any>(): T;
1204
+
1205
+ declare type InfoCardSchema = {
1206
+ expandBottom?: boolean;
1207
+ top?: number;
1208
+ expandTop?: boolean;
1209
+ hidden?: boolean;
1210
+ copiable: boolean;
1211
+ btns: BtnType[];
1212
+ dropdowns: DropdownType[];
1213
+ infos: InfoType[];
1214
+ key: string;
1215
+ rulePath?: string;
1216
+ onMounted?: string;
1217
+ onActivated?: string;
1218
+ onUnmounted?: string;
1219
+ detail: {
1220
+ label: string;
1221
+ value: string | number;
1222
+ color?: string;
1223
+ }[];
1224
+ bottomRightDetail?: {
1225
+ label: string;
1226
+ value: string;
1227
+ };
1228
+ bottomRightFormSlots?: FormItemType[];
1229
+ header: {
1230
+ title: string;
1231
+ titleColor?: string;
1232
+ titleIcon?: string;
1233
+ titleClick?: string;
1234
+ subTitlePrefix?: string;
1235
+ subTitle: string;
1236
+ subTitleClick?: string;
1237
+ avatar: string;
1238
+ avatarSize?: 'small' | 'x-small' | 'normal' | 'large' | 'ultra-large' | number | undefined;
1239
+ avatarIconColor?: string;
1240
+ subTitleIcons?: {
1241
+ icon: {
1242
+ name: string;
1243
+ color?: string;
1244
+ tooltip?: string;
1245
+ };
1246
+ onClick?: string;
1247
+ }[];
1248
+ avatarBgColor?: string;
1249
+ titleIcons?: {
1250
+ icon: string;
1251
+ onClick?: string;
1252
+ size?: 'small' | 'x-small' | 'normal' | 'large' | 'ultra-large' | undefined;
1253
+ type?: 'icon' | 'popover';
1254
+ popoverContent?: FormItemType[];
1255
+ popoverWidth?: number;
1256
+ tooltip?: string;
1257
+ }[];
1258
+ btns: BtnType[];
1259
+ };
1260
+ };
1261
+
1262
+ declare type InfoType = {
1263
+ key: string;
1264
+ label: string;
1265
+ value?: string;
1266
+ type?: 'success' | 'warning' | 'danger';
1267
+ icon?: {
1268
+ name: string;
1269
+ color?: string;
1270
+ };
1271
+ expendComponents?: FormItemType[];
1272
+ };
1273
+
305
1274
  declare type Locale = {
306
1275
  menus: {
307
1276
  basicTitle: string;
@@ -341,6 +1310,102 @@ declare type Locale = {
341
1310
  };
342
1311
  };
343
1312
 
1313
+ /**
1314
+ * 方法映射
1315
+ */
1316
+ declare const methodMap: {
1317
+ findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
1318
+ setFormDisabled: (key: string, disabled: boolean) => void;
1319
+ clearValidate: (key: string, names?: string | string[]) => void;
1320
+ validate: (keys: string[] | string) => Promise<boolean | undefined>;
1321
+ getData: (keys?: string[] | string) => any;
1322
+ resetFields: (keys?: string[] | string) => void;
1323
+ emit: {
1324
+ (e: "doneParent", data?: any): void;
1325
+ (e: "done", data?: any): void;
1326
+ (e: "refresh"): void;
1327
+ (e: "changeTab", tabKey: string, params?: any): void;
1328
+ (e: "changeMixMode", tabKey: string, mode: boolean): void;
1329
+ (e: "addPageParams", data: any): void;
1330
+ };
1331
+ setData: (key: string, dataModel: any, isAssign?: boolean) => void;
1332
+ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
1333
+ getPageParams: typeof getPageParams;
1334
+ setHidden: (key: string, hiddenState: boolean) => void;
1335
+ setBtnHidden: (key: string, hiddenState: boolean) => void;
1336
+ setBtnStateByKey: (key: string, stateType: "hidden" | "disabled" | "condition", state: boolean | string) => void;
1337
+ setBtnDisabled: (key: string, disabled: boolean) => void;
1338
+ addPageParams: (params: any) => void;
1339
+ setPageParams: (params: any) => void;
1340
+ setGlobalParams: (params: any) => void;
1341
+ getGlobalParams: () => any;
1342
+ setBtnState: setBtnStateFn;
1343
+ setReadMode: (key: string, readMode: boolean) => void;
1344
+ getParentPageFun: () => {
1345
+ findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
1346
+ setFormDisabled: (key: string, disabled: boolean) => void;
1347
+ clearValidate: (key: string, names?: string | string[]) => void;
1348
+ validate: (keys: string[] | string) => Promise<boolean | undefined>;
1349
+ getData: (keys?: string[] | string) => any;
1350
+ resetFields: (keys?: string[] | string) => void;
1351
+ emit: {
1352
+ (e: "doneParent", data?: any): void;
1353
+ (e: "done", data?: any): void;
1354
+ (e: "refresh"): void;
1355
+ (e: "changeTab", tabKey: string, params?: any): void;
1356
+ (e: "changeMixMode", tabKey: string, mode: boolean): void;
1357
+ (e: "addPageParams", data: any): void;
1358
+ };
1359
+ setData: (key: string, dataModel: any, isAssign?: boolean) => void;
1360
+ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
1361
+ getPageParams: typeof getPageParams;
1362
+ setHidden: (key: string, hiddenState: boolean) => void;
1363
+ setBtnHidden: (key: string, hiddenState: boolean) => void;
1364
+ setBtnStateByKey: (key: string, stateType: "hidden" | "disabled" | "condition", state: boolean | string) => void;
1365
+ setBtnDisabled: (key: string, disabled: boolean) => void;
1366
+ addPageParams: (params: any) => void;
1367
+ setPageParams: (params: any) => void;
1368
+ setGlobalParams: (params: any) => void;
1369
+ getGlobalParams: () => any;
1370
+ setBtnState: setBtnStateFn;
1371
+ setReadMode: (key: string, readMode: boolean) => void;
1372
+ getParentPageFun: any;
1373
+ setPageMask: (mask: boolean) => void;
1374
+ } | undefined;
1375
+ setPageMask: (mask: boolean) => void;
1376
+ };
1377
+
1378
+ declare type NavBarSchema = {
1379
+ expandBottom?: boolean;
1380
+ title: string;
1381
+ back?: boolean;
1382
+ btns: BtnType[];
1383
+ mixMode?: boolean;
1384
+ simple?: boolean;
1385
+ noSticky?: boolean;
1386
+ secondary?: boolean;
1387
+ hidden?: boolean;
1388
+ key: string;
1389
+ rulePath?: string;
1390
+ content: {
1391
+ text: string;
1392
+ ref: string;
1393
+ }[];
1394
+ leftActions?: {
1395
+ icon: {
1396
+ name: string;
1397
+ color?: string;
1398
+ };
1399
+ text: string;
1400
+ key: string;
1401
+ onClick: string;
1402
+ hidden?: boolean;
1403
+ }[];
1404
+ footerBtns?: BtnType[];
1405
+ top?: number;
1406
+ traditionMode?: boolean;
1407
+ };
1408
+
344
1409
  export declare type Options = {
345
1410
  extendElements?: Record<string, FormElement>;
346
1411
  lang?: 'zh' | 'en';
@@ -379,6 +1444,10 @@ export declare type PageSchema = {
379
1444
  btnPosition?: 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'end' | 'start';
380
1445
  };
381
1446
 
1447
+ declare type RefTypeMap = {
1448
+ [K in keyof ComponentType]: InstanceType<ComponentType[K]>;
1449
+ };
1450
+
382
1451
  declare type RouteLocationRaw = string | number | {
383
1452
  path?: string;
384
1453
  query?: Record<string, string | string[] | null | undefined>;
@@ -389,6 +1458,8 @@ declare type RouteLocationRaw = string | number | {
389
1458
  force?: boolean;
390
1459
  };
391
1460
 
1461
+ declare function ruleFunction(funcName: string, ...args: any[]): Promise<any>;
1462
+
392
1463
  declare interface SelectProps {
393
1464
  options?: Record<string, any>[];
394
1465
  defaultOptions?: Record<string, any>[];
@@ -410,6 +1481,25 @@ declare interface SelectProps {
410
1481
  width?: string;
411
1482
  }
412
1483
 
1484
+ declare type setBtnStateFn = (params: {
1485
+ type: 'form';
1486
+ formKey: string;
1487
+ btnKey: string;
1488
+ } | {
1489
+ type: 'table';
1490
+ tableKey: string;
1491
+ btnPosition: 'top' | 'row';
1492
+ btnKey: string;
1493
+ } | {
1494
+ type: 'page';
1495
+ btnKey: string;
1496
+ } | {
1497
+ type: 'card';
1498
+ formKey: string;
1499
+ cardKey: string;
1500
+ btnKey: string;
1501
+ }, stateType: 'hidden' | 'disabled', state: boolean) => void;
1502
+
413
1503
  export declare interface TableColumn {
414
1504
  label: string;
415
1505
  key: string;
@@ -613,7 +1703,7 @@ export declare const useFormInstance: () => FormInstance;
613
1703
 
614
1704
  export declare const useRuleContext: () => {
615
1705
  ruleModule: any;
616
- pageMethodMap: any;
1706
+ pageMethodMap: PageMethods;
617
1707
  };
618
1708
 
619
1709
  export { }