view-ui-plus-derive 0.2.0 → 0.2.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.
- package/README.md +43 -12
- package/dist/index.d.ts +77 -481
- package/dist/index.js +686 -645
- package/dist/iview-mod.js +1 -0
- package/dist/iview-mods/index.d.ts +4 -0
- package/dist/iview-mods/table-cache-cols.js +48 -0
- package/dist/umd/en-US.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/iview-mod.js +1 -1
- package/dist/umd/zh-CN.js +1 -1
- package/package.json +20 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,14 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
|
-
import { ComponentCustomProperties } from 'vue';
|
|
4
|
-
import { ComponentCustomProps } from 'vue';
|
|
5
|
-
import { ComponentInternalInstance } from 'vue';
|
|
6
|
-
import { ComponentOptionsBase } from 'vue';
|
|
7
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
8
3
|
import { ComponentProvideOptions } from 'vue';
|
|
9
|
-
import { ComponentPublicInstance } from 'vue';
|
|
10
|
-
import { ComputedOptions } from 'vue';
|
|
11
|
-
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
12
|
-
import { DebuggerEvent } from 'vue';
|
|
13
4
|
import { DefineComponent } from 'vue';
|
|
14
5
|
import { Directive } from 'vue';
|
|
15
6
|
import { ExtractPropTypes } from 'vue';
|
|
16
|
-
import { GlobalComponents } from 'vue';
|
|
17
|
-
import { GlobalDirectives } from 'vue';
|
|
18
7
|
import { JSX } from 'vue/jsx-runtime';
|
|
19
|
-
import { MethodOptions } from 'vue';
|
|
20
|
-
import { nextTick } from 'vue';
|
|
21
|
-
import { OnCleanup } from '@vue/reactivity';
|
|
22
8
|
import { PropType } from 'vue';
|
|
23
9
|
import { PublicProps } from 'vue';
|
|
24
10
|
import { Ref } from 'vue';
|
|
25
11
|
import { ShallowReactive } from 'vue';
|
|
26
|
-
import { ShallowUnwrapRef } from 'vue';
|
|
27
|
-
import { Slot } from 'vue';
|
|
28
|
-
import { VNodeProps } from 'vue';
|
|
29
|
-
import { WatchOptions } from 'vue';
|
|
30
|
-
import { WatchStopHandle } from 'vue';
|
|
31
12
|
|
|
32
13
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
14
|
new (): {
|
|
@@ -318,276 +299,7 @@ default: string;
|
|
|
318
299
|
}>, {
|
|
319
300
|
cacheId: string;
|
|
320
301
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
321
|
-
sel:
|
|
322
|
-
$: ComponentInternalInstance;
|
|
323
|
-
$data: {};
|
|
324
|
-
$props: Partial<{
|
|
325
|
-
all: boolean;
|
|
326
|
-
multiple: boolean;
|
|
327
|
-
valueKey: string;
|
|
328
|
-
labelKey: string;
|
|
329
|
-
keyMap: Record<string, any>;
|
|
330
|
-
valueAsKey: boolean;
|
|
331
|
-
autoGet: boolean;
|
|
332
|
-
textMode: boolean;
|
|
333
|
-
cache: boolean;
|
|
334
|
-
strict: boolean;
|
|
335
|
-
getSelected: Function;
|
|
336
|
-
}> & Omit<{
|
|
337
|
-
readonly all: boolean;
|
|
338
|
-
readonly multiple: boolean;
|
|
339
|
-
readonly valueKey: string;
|
|
340
|
-
readonly labelKey: string;
|
|
341
|
-
readonly keyMap: Record<string, any>;
|
|
342
|
-
readonly valueAsKey: boolean;
|
|
343
|
-
readonly autoGet: boolean;
|
|
344
|
-
readonly textMode: boolean;
|
|
345
|
-
readonly cache: boolean;
|
|
346
|
-
readonly strict: boolean;
|
|
347
|
-
readonly getSelected: Function;
|
|
348
|
-
readonly list?: Obj[] | undefined;
|
|
349
|
-
readonly modelValue?: SelectValue | undefined;
|
|
350
|
-
readonly param?: string | Function | Record<string, any> | undefined;
|
|
351
|
-
readonly method?: Function | undefined;
|
|
352
|
-
readonly refresh?: Function | undefined;
|
|
353
|
-
readonly process?: Function | undefined;
|
|
354
|
-
readonly textFormat?: Function | undefined;
|
|
355
|
-
readonly optionDisabled?: Function | undefined;
|
|
356
|
-
readonly optionTag?: Function | undefined;
|
|
357
|
-
readonly loader?: Function | undefined;
|
|
358
|
-
readonly chosen?: Record<string, any> | unknown[] | undefined;
|
|
359
|
-
readonly formatLabel?: Function | undefined;
|
|
360
|
-
readonly check?: Function | undefined;
|
|
361
|
-
readonly parentCode?: string | number | unknown[] | undefined;
|
|
362
|
-
readonly "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
|
|
363
|
-
readonly "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
|
|
364
|
-
readonly "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
|
|
365
|
-
readonly "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
|
|
366
|
-
readonly onLoad?: ((val: any) => any) | undefined;
|
|
367
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "all" | "multiple" | "valueKey" | "labelKey" | "keyMap" | "valueAsKey" | "autoGet" | "textMode" | "cache" | "strict" | "getSelected">;
|
|
368
|
-
$attrs: {
|
|
369
|
-
[x: string]: unknown;
|
|
370
|
-
};
|
|
371
|
-
$refs: {
|
|
372
|
-
[x: string]: unknown;
|
|
373
|
-
};
|
|
374
|
-
$slots: Readonly<{
|
|
375
|
-
[name: string]: Slot<any> | undefined;
|
|
376
|
-
}>;
|
|
377
|
-
$root: ComponentPublicInstance | null;
|
|
378
|
-
$parent: ComponentPublicInstance | null;
|
|
379
|
-
$host: Element | null;
|
|
380
|
-
$emit: ((event: "update:modelValue", val: SelectValue) => void) & ((event: "update:chosen", item: Obj) => void) & ((event: "update:list", list: Obj[]) => void) & ((event: "update:refresh", handle: () => Promise<void>) => void) & ((event: "load", val: any) => void);
|
|
381
|
-
$el: any;
|
|
382
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
383
|
-
modelValue: PropType<SelectValue>;
|
|
384
|
-
list: PropType<Obj[]>;
|
|
385
|
-
multiple: BooleanConstructor;
|
|
386
|
-
valueAsKey: BooleanConstructor;
|
|
387
|
-
valueKey: {
|
|
388
|
-
type: StringConstructor;
|
|
389
|
-
default: string;
|
|
390
|
-
};
|
|
391
|
-
labelKey: {
|
|
392
|
-
type: StringConstructor;
|
|
393
|
-
default: string;
|
|
394
|
-
};
|
|
395
|
-
keyMap: {
|
|
396
|
-
type: ObjectConstructor;
|
|
397
|
-
default(props: Obj): {
|
|
398
|
-
value: any;
|
|
399
|
-
label: any;
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
method: FunctionConstructor;
|
|
403
|
-
refresh: FunctionConstructor;
|
|
404
|
-
process: FunctionConstructor;
|
|
405
|
-
param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
|
|
406
|
-
chosen: (ArrayConstructor | ObjectConstructor)[];
|
|
407
|
-
autoGet: BooleanConstructor;
|
|
408
|
-
formatLabel: {
|
|
409
|
-
type: FunctionConstructor;
|
|
410
|
-
};
|
|
411
|
-
check: {
|
|
412
|
-
type: FunctionConstructor;
|
|
413
|
-
};
|
|
414
|
-
textMode: BooleanConstructor;
|
|
415
|
-
textFormat: FunctionConstructor;
|
|
416
|
-
parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
|
|
417
|
-
optionDisabled: FunctionConstructor;
|
|
418
|
-
optionTag: FunctionConstructor;
|
|
419
|
-
getSelected: {
|
|
420
|
-
type: FunctionConstructor;
|
|
421
|
-
default({ multiple, keyMap, list, value }: {
|
|
422
|
-
multiple: boolean;
|
|
423
|
-
keyMap: {
|
|
424
|
-
value: string;
|
|
425
|
-
};
|
|
426
|
-
list: Obj[];
|
|
427
|
-
value: SelectValue;
|
|
428
|
-
}): Obj | Obj[];
|
|
429
|
-
};
|
|
430
|
-
cache: BooleanConstructor;
|
|
431
|
-
loader: FunctionConstructor;
|
|
432
|
-
strict: BooleanConstructor;
|
|
433
|
-
all: {
|
|
434
|
-
type: BooleanConstructor;
|
|
435
|
-
default: boolean;
|
|
436
|
-
};
|
|
437
|
-
}>> & Readonly<{
|
|
438
|
-
"onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
|
|
439
|
-
"onUpdate:chosen"?: ((item: Obj) => any) | undefined;
|
|
440
|
-
"onUpdate:list"?: ((list: Obj[]) => any) | undefined;
|
|
441
|
-
"onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
|
|
442
|
-
onLoad?: ((val: any) => any) | undefined;
|
|
443
|
-
}>, {
|
|
444
|
-
code: Ref<SelectValue, SelectValue>;
|
|
445
|
-
changeCode: (val: SelectValue) => void;
|
|
446
|
-
loaded: Ref<boolean, boolean>;
|
|
447
|
-
codes: Ref<Obj[], Obj[]>;
|
|
448
|
-
search: () => Promise<void>;
|
|
449
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
450
|
-
"update:modelValue": (val: SelectValue) => any;
|
|
451
|
-
"update:chosen": (item: Obj) => any;
|
|
452
|
-
"update:list": (list: Obj[]) => any;
|
|
453
|
-
"update:refresh": (handle: () => Promise<void>) => any;
|
|
454
|
-
load: (val: any) => any;
|
|
455
|
-
}, string, {
|
|
456
|
-
all: boolean;
|
|
457
|
-
multiple: boolean;
|
|
458
|
-
valueKey: string;
|
|
459
|
-
labelKey: string;
|
|
460
|
-
keyMap: Record<string, any>;
|
|
461
|
-
valueAsKey: boolean;
|
|
462
|
-
autoGet: boolean;
|
|
463
|
-
textMode: boolean;
|
|
464
|
-
cache: boolean;
|
|
465
|
-
strict: boolean;
|
|
466
|
-
getSelected: Function;
|
|
467
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
468
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
469
|
-
created?: (() => void) | (() => void)[];
|
|
470
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
471
|
-
mounted?: (() => void) | (() => void)[];
|
|
472
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
473
|
-
updated?: (() => void) | (() => void)[];
|
|
474
|
-
activated?: (() => void) | (() => void)[];
|
|
475
|
-
deactivated?: (() => void) | (() => void)[];
|
|
476
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
477
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
478
|
-
destroyed?: (() => void) | (() => void)[];
|
|
479
|
-
unmounted?: (() => void) | (() => void)[];
|
|
480
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
481
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
482
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
483
|
-
};
|
|
484
|
-
$forceUpdate: () => void;
|
|
485
|
-
$nextTick: typeof nextTick;
|
|
486
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
487
|
-
} & Readonly<{
|
|
488
|
-
all: boolean;
|
|
489
|
-
multiple: boolean;
|
|
490
|
-
valueKey: string;
|
|
491
|
-
labelKey: string;
|
|
492
|
-
keyMap: Record<string, any>;
|
|
493
|
-
valueAsKey: boolean;
|
|
494
|
-
autoGet: boolean;
|
|
495
|
-
textMode: boolean;
|
|
496
|
-
cache: boolean;
|
|
497
|
-
strict: boolean;
|
|
498
|
-
getSelected: Function;
|
|
499
|
-
}> & Omit<Readonly<ExtractPropTypes< {
|
|
500
|
-
modelValue: PropType<SelectValue>;
|
|
501
|
-
list: PropType<Obj[]>;
|
|
502
|
-
multiple: BooleanConstructor;
|
|
503
|
-
valueAsKey: BooleanConstructor;
|
|
504
|
-
valueKey: {
|
|
505
|
-
type: StringConstructor;
|
|
506
|
-
default: string;
|
|
507
|
-
};
|
|
508
|
-
labelKey: {
|
|
509
|
-
type: StringConstructor;
|
|
510
|
-
default: string;
|
|
511
|
-
};
|
|
512
|
-
keyMap: {
|
|
513
|
-
type: ObjectConstructor;
|
|
514
|
-
default(props: Obj): {
|
|
515
|
-
value: any;
|
|
516
|
-
label: any;
|
|
517
|
-
};
|
|
518
|
-
};
|
|
519
|
-
method: FunctionConstructor;
|
|
520
|
-
refresh: FunctionConstructor;
|
|
521
|
-
process: FunctionConstructor;
|
|
522
|
-
param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
|
|
523
|
-
chosen: (ArrayConstructor | ObjectConstructor)[];
|
|
524
|
-
autoGet: BooleanConstructor;
|
|
525
|
-
formatLabel: {
|
|
526
|
-
type: FunctionConstructor;
|
|
527
|
-
};
|
|
528
|
-
check: {
|
|
529
|
-
type: FunctionConstructor;
|
|
530
|
-
};
|
|
531
|
-
textMode: BooleanConstructor;
|
|
532
|
-
textFormat: FunctionConstructor;
|
|
533
|
-
parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
|
|
534
|
-
optionDisabled: FunctionConstructor;
|
|
535
|
-
optionTag: FunctionConstructor;
|
|
536
|
-
getSelected: {
|
|
537
|
-
type: FunctionConstructor;
|
|
538
|
-
default({ multiple, keyMap, list, value }: {
|
|
539
|
-
multiple: boolean;
|
|
540
|
-
keyMap: {
|
|
541
|
-
value: string;
|
|
542
|
-
};
|
|
543
|
-
list: Obj[];
|
|
544
|
-
value: SelectValue;
|
|
545
|
-
}): Obj | Obj[];
|
|
546
|
-
};
|
|
547
|
-
cache: BooleanConstructor;
|
|
548
|
-
loader: FunctionConstructor;
|
|
549
|
-
strict: BooleanConstructor;
|
|
550
|
-
all: {
|
|
551
|
-
type: BooleanConstructor;
|
|
552
|
-
default: boolean;
|
|
553
|
-
};
|
|
554
|
-
}>> & Readonly<{
|
|
555
|
-
"onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
|
|
556
|
-
"onUpdate:chosen"?: ((item: Obj) => any) | undefined;
|
|
557
|
-
"onUpdate:list"?: ((list: Obj[]) => any) | undefined;
|
|
558
|
-
"onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
|
|
559
|
-
onLoad?: ((val: any) => any) | undefined;
|
|
560
|
-
}>, "code" | "search" | "changeCode" | "loaded" | "codes" | ("all" | "multiple" | "valueKey" | "labelKey" | "keyMap" | "valueAsKey" | "autoGet" | "textMode" | "cache" | "strict" | "getSelected")> & ShallowUnwrapRef< {
|
|
561
|
-
code: Ref<SelectValue, SelectValue>;
|
|
562
|
-
changeCode: (val: SelectValue) => void;
|
|
563
|
-
loaded: Ref<boolean, boolean>;
|
|
564
|
-
codes: Ref<Obj[], Obj[]>;
|
|
565
|
-
search: () => Promise<void>;
|
|
566
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
567
|
-
$slots: Readonly<{
|
|
568
|
-
default(_: {
|
|
569
|
-
item: Obj;
|
|
570
|
-
index: number;
|
|
571
|
-
}): any;
|
|
572
|
-
dropdown(_: {
|
|
573
|
-
list: Obj[];
|
|
574
|
-
}): any;
|
|
575
|
-
text(_: {
|
|
576
|
-
text: string;
|
|
577
|
-
}): any;
|
|
578
|
-
}> & {
|
|
579
|
-
default(_: {
|
|
580
|
-
item: Obj;
|
|
581
|
-
index: number;
|
|
582
|
-
}): any;
|
|
583
|
-
dropdown(_: {
|
|
584
|
-
list: Obj[];
|
|
585
|
-
}): any;
|
|
586
|
-
text(_: {
|
|
587
|
-
text: string;
|
|
588
|
-
}): any;
|
|
589
|
-
};
|
|
590
|
-
}) | null;
|
|
302
|
+
sel: any
|
|
591
303
|
}, any>, {
|
|
592
304
|
default?(_: {
|
|
593
305
|
item: Obj;
|
|
@@ -687,11 +399,11 @@ maxDisabled: BooleanConstructor;
|
|
|
687
399
|
/**
|
|
688
400
|
* 最小值组件class
|
|
689
401
|
*/
|
|
690
|
-
minClass: (
|
|
402
|
+
minClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
691
403
|
/**
|
|
692
404
|
* 最大值组件class
|
|
693
405
|
*/
|
|
694
|
-
maxClass: (
|
|
406
|
+
maxClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
695
407
|
/**
|
|
696
408
|
* 最小值占位文本
|
|
697
409
|
*/
|
|
@@ -725,7 +437,7 @@ maxAttr: ObjectConstructor;
|
|
|
725
437
|
/**
|
|
726
438
|
* 中间连接部分class
|
|
727
439
|
*/
|
|
728
|
-
joinerClass: (
|
|
440
|
+
joinerClass: (ObjectConstructor | StringConstructor)[];
|
|
729
441
|
/**
|
|
730
442
|
* 是否隐藏连接部分
|
|
731
443
|
*/
|
|
@@ -780,11 +492,11 @@ maxDisabled: BooleanConstructor;
|
|
|
780
492
|
/**
|
|
781
493
|
* 最小值组件class
|
|
782
494
|
*/
|
|
783
|
-
minClass: (
|
|
495
|
+
minClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
784
496
|
/**
|
|
785
497
|
* 最大值组件class
|
|
786
498
|
*/
|
|
787
|
-
maxClass: (
|
|
499
|
+
maxClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
788
500
|
/**
|
|
789
501
|
* 最小值占位文本
|
|
790
502
|
*/
|
|
@@ -818,7 +530,7 @@ maxAttr: ObjectConstructor;
|
|
|
818
530
|
/**
|
|
819
531
|
* 中间连接部分class
|
|
820
532
|
*/
|
|
821
|
-
joinerClass: (
|
|
533
|
+
joinerClass: (ObjectConstructor | StringConstructor)[];
|
|
822
534
|
/**
|
|
823
535
|
* 是否隐藏连接部分
|
|
824
536
|
*/
|
|
@@ -897,6 +609,7 @@ actionText: StringConstructor;
|
|
|
897
609
|
actionCol: {
|
|
898
610
|
type: ObjectConstructor;
|
|
899
611
|
default(props: Obj): {
|
|
612
|
+
key: string;
|
|
900
613
|
slot: string;
|
|
901
614
|
width: any;
|
|
902
615
|
align: any;
|
|
@@ -1021,6 +734,7 @@ actionText: StringConstructor;
|
|
|
1021
734
|
actionCol: {
|
|
1022
735
|
type: ObjectConstructor;
|
|
1023
736
|
default(props: Obj): {
|
|
737
|
+
key: string;
|
|
1024
738
|
slot: string;
|
|
1025
739
|
width: any;
|
|
1026
740
|
align: any;
|
|
@@ -1096,9 +810,9 @@ onAdd?: ((row: Obj) => any) | undefined;
|
|
|
1096
810
|
onRemove?: ((row: Obj) => any) | undefined;
|
|
1097
811
|
}>, {
|
|
1098
812
|
disabled: boolean;
|
|
1099
|
-
modelValue: Obj[];
|
|
1100
|
-
border: boolean;
|
|
1101
813
|
columns: Obj[];
|
|
814
|
+
border: boolean;
|
|
815
|
+
modelValue: Obj[];
|
|
1102
816
|
addable: boolean;
|
|
1103
817
|
actionWidth: number;
|
|
1104
818
|
actionAlign: string;
|
|
@@ -1167,8 +881,8 @@ limitBegin: {
|
|
|
1167
881
|
type: BooleanConstructor;
|
|
1168
882
|
default: boolean;
|
|
1169
883
|
};
|
|
1170
|
-
beginClass: (
|
|
1171
|
-
endClass: (
|
|
884
|
+
beginClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
885
|
+
endClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
1172
886
|
/**
|
|
1173
887
|
* 开始时间placeholder
|
|
1174
888
|
*/
|
|
@@ -1188,7 +902,7 @@ endAttr: ObjectConstructor;
|
|
|
1188
902
|
/**
|
|
1189
903
|
* 中间连接符的class
|
|
1190
904
|
*/
|
|
1191
|
-
joinerClass: (
|
|
905
|
+
joinerClass: (ObjectConstructor | StringConstructor)[];
|
|
1192
906
|
/**
|
|
1193
907
|
* 是否禁止选择今天
|
|
1194
908
|
*/
|
|
@@ -1254,8 +968,8 @@ limitBegin: {
|
|
|
1254
968
|
type: BooleanConstructor;
|
|
1255
969
|
default: boolean;
|
|
1256
970
|
};
|
|
1257
|
-
beginClass: (
|
|
1258
|
-
endClass: (
|
|
971
|
+
beginClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
972
|
+
endClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
1259
973
|
/**
|
|
1260
974
|
* 开始时间placeholder
|
|
1261
975
|
*/
|
|
@@ -1275,7 +989,7 @@ endAttr: ObjectConstructor;
|
|
|
1275
989
|
/**
|
|
1276
990
|
* 中间连接符的class
|
|
1277
991
|
*/
|
|
1278
|
-
joinerClass: (
|
|
992
|
+
joinerClass: (ObjectConstructor | StringConstructor)[];
|
|
1279
993
|
/**
|
|
1280
994
|
* 是否禁止选择今天
|
|
1281
995
|
*/
|
|
@@ -2198,9 +1912,9 @@ onReload?: (() => any) | undefined;
|
|
|
2198
1912
|
"onMaximize-change"?: ((val: boolean) => any) | undefined;
|
|
2199
1913
|
}>, {
|
|
2200
1914
|
transfer: boolean;
|
|
2201
|
-
modelValue: Obj[];
|
|
2202
|
-
border: boolean;
|
|
2203
1915
|
columns: Obj[];
|
|
1916
|
+
border: boolean;
|
|
1917
|
+
modelValue: Obj[];
|
|
2204
1918
|
isLocal: boolean;
|
|
2205
1919
|
autoRemain: boolean;
|
|
2206
1920
|
usePageNum: boolean;
|
|
@@ -2217,178 +1931,8 @@ autoMaxHeight: boolean;
|
|
|
2217
1931
|
maximizeHeightType: "height" | "maxHeight";
|
|
2218
1932
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
2219
1933
|
elRef: HTMLDivElement;
|
|
2220
|
-
tableRef:
|
|
2221
|
-
|
|
2222
|
-
columns?: any[];
|
|
2223
|
-
stripe?: boolean;
|
|
2224
|
-
border?: boolean;
|
|
2225
|
-
'show-header'?: boolean;
|
|
2226
|
-
width?: number | string;
|
|
2227
|
-
height?: number | string;
|
|
2228
|
-
'max-height'?: number | string;
|
|
2229
|
-
loading?: boolean;
|
|
2230
|
-
'disabled-hover'?: boolean;
|
|
2231
|
-
'highlight-row'?: boolean;
|
|
2232
|
-
'row-class-name'?: Function;
|
|
2233
|
-
size?: string;
|
|
2234
|
-
'no-data-text'?: string;
|
|
2235
|
-
'no-filtered-data-text'?: string;
|
|
2236
|
-
draggable?: boolean;
|
|
2237
|
-
'tooltip-theme'?: string;
|
|
2238
|
-
'tooltip-max-width'?: number;
|
|
2239
|
-
'row-key'?: boolean | string;
|
|
2240
|
-
'span-method'?: Function;
|
|
2241
|
-
'show-summary'?: boolean;
|
|
2242
|
-
'sum-text'?: string;
|
|
2243
|
-
'summary-method'?: Function;
|
|
2244
|
-
'indent-size'?: number;
|
|
2245
|
-
'load-data'?: Function;
|
|
2246
|
-
'update-show-children'?: boolean;
|
|
2247
|
-
'context-menu'?: boolean;
|
|
2248
|
-
'show-context-menu'?: boolean;
|
|
2249
|
-
'fixed-shadow'?: string;
|
|
2250
|
-
'auto-close-contextmenu'?: boolean;
|
|
2251
|
-
onOnCurrentChange?: (event?: any) => any;
|
|
2252
|
-
onOnSelect?: (event?: any) => any;
|
|
2253
|
-
onOnSelectCancel?: (event?: any) => any;
|
|
2254
|
-
onOnSelectAll?: (event?: any) => any;
|
|
2255
|
-
onOnSelectAllCancel?: (event?: any) => any;
|
|
2256
|
-
onOnSelectionChange?: (event?: any) => any;
|
|
2257
|
-
onOnSortChange?: (event?: any) => any;
|
|
2258
|
-
onOnFilterChange?: (event?: any) => any;
|
|
2259
|
-
onOnRowClick?: (event?: any) => any;
|
|
2260
|
-
onOnRowDblclick?: (event?: any) => any;
|
|
2261
|
-
onOnCellClick?: (event?: any) => any;
|
|
2262
|
-
onOnExpand?: (event?: any) => any;
|
|
2263
|
-
onOnDragDrop?: (event?: any) => any;
|
|
2264
|
-
onOnColumnWidthResize?: (event?: any) => any;
|
|
2265
|
-
onOnContextmenu?: (event?: any) => any;
|
|
2266
|
-
onOnExpandTree?: (event?: any) => any;
|
|
2267
|
-
'v-slots'?: {
|
|
2268
|
-
header?: () => any;
|
|
2269
|
-
footer?: () => any;
|
|
2270
|
-
loading?: () => any;
|
|
2271
|
-
contextMenu?: () => any;
|
|
2272
|
-
};
|
|
2273
|
-
}>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2274
|
-
P: {};
|
|
2275
|
-
B: {};
|
|
2276
|
-
D: {};
|
|
2277
|
-
C: {};
|
|
2278
|
-
M: {};
|
|
2279
|
-
Defaults: {};
|
|
2280
|
-
}, Readonly<{
|
|
2281
|
-
data?: any[];
|
|
2282
|
-
columns?: any[];
|
|
2283
|
-
stripe?: boolean;
|
|
2284
|
-
border?: boolean;
|
|
2285
|
-
'show-header'?: boolean;
|
|
2286
|
-
width?: number | string;
|
|
2287
|
-
height?: number | string;
|
|
2288
|
-
'max-height'?: number | string;
|
|
2289
|
-
loading?: boolean;
|
|
2290
|
-
'disabled-hover'?: boolean;
|
|
2291
|
-
'highlight-row'?: boolean;
|
|
2292
|
-
'row-class-name'?: Function;
|
|
2293
|
-
size?: string;
|
|
2294
|
-
'no-data-text'?: string;
|
|
2295
|
-
'no-filtered-data-text'?: string;
|
|
2296
|
-
draggable?: boolean;
|
|
2297
|
-
'tooltip-theme'?: string;
|
|
2298
|
-
'tooltip-max-width'?: number;
|
|
2299
|
-
'row-key'?: boolean | string;
|
|
2300
|
-
'span-method'?: Function;
|
|
2301
|
-
'show-summary'?: boolean;
|
|
2302
|
-
'sum-text'?: string;
|
|
2303
|
-
'summary-method'?: Function;
|
|
2304
|
-
'indent-size'?: number;
|
|
2305
|
-
'load-data'?: Function;
|
|
2306
|
-
'update-show-children'?: boolean;
|
|
2307
|
-
'context-menu'?: boolean;
|
|
2308
|
-
'show-context-menu'?: boolean;
|
|
2309
|
-
'fixed-shadow'?: string;
|
|
2310
|
-
'auto-close-contextmenu'?: boolean;
|
|
2311
|
-
onOnCurrentChange?: (event?: any) => any;
|
|
2312
|
-
onOnSelect?: (event?: any) => any;
|
|
2313
|
-
onOnSelectCancel?: (event?: any) => any;
|
|
2314
|
-
onOnSelectAll?: (event?: any) => any;
|
|
2315
|
-
onOnSelectAllCancel?: (event?: any) => any;
|
|
2316
|
-
onOnSelectionChange?: (event?: any) => any;
|
|
2317
|
-
onOnSortChange?: (event?: any) => any;
|
|
2318
|
-
onOnFilterChange?: (event?: any) => any;
|
|
2319
|
-
onOnRowClick?: (event?: any) => any;
|
|
2320
|
-
onOnRowDblclick?: (event?: any) => any;
|
|
2321
|
-
onOnCellClick?: (event?: any) => any;
|
|
2322
|
-
onOnExpand?: (event?: any) => any;
|
|
2323
|
-
onOnDragDrop?: (event?: any) => any;
|
|
2324
|
-
onOnColumnWidthResize?: (event?: any) => any;
|
|
2325
|
-
onOnContextmenu?: (event?: any) => any;
|
|
2326
|
-
onOnExpandTree?: (event?: any) => any;
|
|
2327
|
-
'v-slots'?: {
|
|
2328
|
-
header?: () => any;
|
|
2329
|
-
footer?: () => any;
|
|
2330
|
-
loading?: () => any;
|
|
2331
|
-
contextMenu?: () => any;
|
|
2332
|
-
};
|
|
2333
|
-
}>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
2334
|
-
pageRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2335
|
-
'model-value'?: number;
|
|
2336
|
-
total?: number;
|
|
2337
|
-
'page-size'?: number;
|
|
2338
|
-
'page-size-opts'?: any[];
|
|
2339
|
-
placement?: string;
|
|
2340
|
-
size?: string;
|
|
2341
|
-
simple?: boolean;
|
|
2342
|
-
'show-total'?: boolean;
|
|
2343
|
-
'show-elevator'?: boolean;
|
|
2344
|
-
'show-sizer'?: boolean;
|
|
2345
|
-
'class-name'?: string;
|
|
2346
|
-
styles?: object;
|
|
2347
|
-
transfer?: boolean;
|
|
2348
|
-
'prev-text'?: string;
|
|
2349
|
-
'next-text'?: string;
|
|
2350
|
-
disabled?: boolean;
|
|
2351
|
-
'events-enabled'?: boolean;
|
|
2352
|
-
onOnChange?: (event?: any) => any;
|
|
2353
|
-
onOnPageSizeChange?: (event?: any) => any;
|
|
2354
|
-
onOnPrev?: (event?: any) => any;
|
|
2355
|
-
onOnNext?: (event?: any) => any;
|
|
2356
|
-
'v-slots'?: {
|
|
2357
|
-
default?: () => any;
|
|
2358
|
-
};
|
|
2359
|
-
}>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2360
|
-
P: {};
|
|
2361
|
-
B: {};
|
|
2362
|
-
D: {};
|
|
2363
|
-
C: {};
|
|
2364
|
-
M: {};
|
|
2365
|
-
Defaults: {};
|
|
2366
|
-
}, Readonly<{
|
|
2367
|
-
'model-value'?: number;
|
|
2368
|
-
total?: number;
|
|
2369
|
-
'page-size'?: number;
|
|
2370
|
-
'page-size-opts'?: any[];
|
|
2371
|
-
placement?: string;
|
|
2372
|
-
size?: string;
|
|
2373
|
-
simple?: boolean;
|
|
2374
|
-
'show-total'?: boolean;
|
|
2375
|
-
'show-elevator'?: boolean;
|
|
2376
|
-
'show-sizer'?: boolean;
|
|
2377
|
-
'class-name'?: string;
|
|
2378
|
-
styles?: object;
|
|
2379
|
-
transfer?: boolean;
|
|
2380
|
-
'prev-text'?: string;
|
|
2381
|
-
'next-text'?: string;
|
|
2382
|
-
disabled?: boolean;
|
|
2383
|
-
'events-enabled'?: boolean;
|
|
2384
|
-
onOnChange?: (event?: any) => any;
|
|
2385
|
-
onOnPageSizeChange?: (event?: any) => any;
|
|
2386
|
-
onOnPrev?: (event?: any) => any;
|
|
2387
|
-
onOnNext?: (event?: any) => any;
|
|
2388
|
-
'v-slots'?: {
|
|
2389
|
-
default?: () => any;
|
|
2390
|
-
};
|
|
2391
|
-
}>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
1934
|
+
tableRef: any;
|
|
1935
|
+
pageRef: any;
|
|
2392
1936
|
}, HTMLDivElement>, Partial<Record<any, (_: any) => any>> & {
|
|
2393
1937
|
title?(_: {}): any;
|
|
2394
1938
|
headerAction?(_: {}): any;
|
|
@@ -2428,8 +1972,8 @@ label: any;
|
|
|
2428
1972
|
method: FunctionConstructor;
|
|
2429
1973
|
refresh: FunctionConstructor;
|
|
2430
1974
|
process: FunctionConstructor;
|
|
2431
|
-
param: (
|
|
2432
|
-
chosen: (
|
|
1975
|
+
param: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
|
|
1976
|
+
chosen: (ObjectConstructor | ArrayConstructor)[];
|
|
2433
1977
|
autoGet: BooleanConstructor;
|
|
2434
1978
|
formatLabel: {
|
|
2435
1979
|
type: FunctionConstructor;
|
|
@@ -2520,8 +2064,8 @@ label: any;
|
|
|
2520
2064
|
method: FunctionConstructor;
|
|
2521
2065
|
refresh: FunctionConstructor;
|
|
2522
2066
|
process: FunctionConstructor;
|
|
2523
|
-
param: (
|
|
2524
|
-
chosen: (
|
|
2067
|
+
param: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
|
|
2068
|
+
chosen: (ObjectConstructor | ArrayConstructor)[];
|
|
2525
2069
|
autoGet: BooleanConstructor;
|
|
2526
2070
|
formatLabel: {
|
|
2527
2071
|
type: FunctionConstructor;
|
|
@@ -2641,8 +2185,33 @@ transfer: BooleanConstructor;
|
|
|
2641
2185
|
* @example
|
|
2642
2186
|
* // 组件会尝试将显示状态读写至 localStorage.app.main.cols
|
|
2643
2187
|
* storeAt='app.main.cols'
|
|
2188
|
+
*
|
|
2189
|
+
* 特殊情况:如读写至 localStorage.app.page1['part1.list'].cols
|
|
2190
|
+
* storeAt='app.page1.[part1.list].cols'
|
|
2644
2191
|
*/
|
|
2645
2192
|
storeAt: StringConstructor;
|
|
2193
|
+
/**
|
|
2194
|
+
* 最小可见列数
|
|
2195
|
+
*/
|
|
2196
|
+
minVisible: {
|
|
2197
|
+
type: NumberConstructor;
|
|
2198
|
+
default: number;
|
|
2199
|
+
};
|
|
2200
|
+
/**
|
|
2201
|
+
* 切换列时是否实时读取本地存储
|
|
2202
|
+
*
|
|
2203
|
+
* 在启用storeAt时,默认只在初始化时从本地读取一次之前保存的状态 \
|
|
2204
|
+
* 若需要每次切换列时都实时从本地获取最新的数据,则可以开启此项 \
|
|
2205
|
+
* 一般在搭配其它逻辑共享同一数据结构时适用,如拖拽列宽后需要将列宽存至同一对象中以节省存储空间 \
|
|
2206
|
+
* 当在循环中使用(即存在cacheId)时,建议开启此项,否则可能会出现列显示异常的情况
|
|
2207
|
+
*
|
|
2208
|
+
* @default
|
|
2209
|
+
* !!props.storeAt && !!props.cacheId
|
|
2210
|
+
*/
|
|
2211
|
+
realtime: {
|
|
2212
|
+
type: BooleanConstructor;
|
|
2213
|
+
default: (props: Obj) => boolean;
|
|
2214
|
+
};
|
|
2646
2215
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2647
2216
|
"update:modelValue": (val: Obj[]) => any;
|
|
2648
2217
|
change: (val: Obj | Obj[]) => any;
|
|
@@ -2673,14 +2242,41 @@ transfer: BooleanConstructor;
|
|
|
2673
2242
|
* @example
|
|
2674
2243
|
* // 组件会尝试将显示状态读写至 localStorage.app.main.cols
|
|
2675
2244
|
* storeAt='app.main.cols'
|
|
2245
|
+
*
|
|
2246
|
+
* 特殊情况:如读写至 localStorage.app.page1['part1.list'].cols
|
|
2247
|
+
* storeAt='app.page1.[part1.list].cols'
|
|
2676
2248
|
*/
|
|
2677
2249
|
storeAt: StringConstructor;
|
|
2250
|
+
/**
|
|
2251
|
+
* 最小可见列数
|
|
2252
|
+
*/
|
|
2253
|
+
minVisible: {
|
|
2254
|
+
type: NumberConstructor;
|
|
2255
|
+
default: number;
|
|
2256
|
+
};
|
|
2257
|
+
/**
|
|
2258
|
+
* 切换列时是否实时读取本地存储
|
|
2259
|
+
*
|
|
2260
|
+
* 在启用storeAt时,默认只在初始化时从本地读取一次之前保存的状态 \
|
|
2261
|
+
* 若需要每次切换列时都实时从本地获取最新的数据,则可以开启此项 \
|
|
2262
|
+
* 一般在搭配其它逻辑共享同一数据结构时适用,如拖拽列宽后需要将列宽存至同一对象中以节省存储空间 \
|
|
2263
|
+
* 当在循环中使用(即存在cacheId)时,建议开启此项,否则可能会出现列显示异常的情况
|
|
2264
|
+
*
|
|
2265
|
+
* @default
|
|
2266
|
+
* !!props.storeAt && !!props.cacheId
|
|
2267
|
+
*/
|
|
2268
|
+
realtime: {
|
|
2269
|
+
type: BooleanConstructor;
|
|
2270
|
+
default: (props: Obj) => boolean;
|
|
2271
|
+
};
|
|
2678
2272
|
}>> & Readonly<{
|
|
2679
2273
|
"onUpdate:modelValue"?: ((val: Obj[]) => any) | undefined;
|
|
2680
2274
|
onChange?: ((val: Obj | Obj[]) => any) | undefined;
|
|
2681
2275
|
}>, {
|
|
2682
2276
|
all: boolean;
|
|
2683
2277
|
transfer: boolean;
|
|
2278
|
+
minVisible: number;
|
|
2279
|
+
realtime: boolean;
|
|
2684
2280
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
2685
2281
|
default?(_: {}): any;
|
|
2686
2282
|
}>;
|