@weitutech/by-components-v3 1.1.1 → 1.1.3
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.
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 判断是否缓存了表格列宽
|
|
3
|
+
* @param {*} name 表格名称
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
declare const isCachedTableColumns: (name: string) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 删除表格列宽缓存
|
|
9
|
+
* @param {*} name 表格名称
|
|
10
|
+
*/
|
|
11
|
+
declare const removeCachedTableColumns: (name: string) => void;
|
|
12
|
+
/**
|
|
13
|
+
* 缓存列宽
|
|
14
|
+
* @param {*} name 表格名称
|
|
15
|
+
* @param {*} context
|
|
16
|
+
*/
|
|
17
|
+
declare const saveCachedColumns: (name: string, context: any) => void;
|
|
18
|
+
/**
|
|
19
|
+
* 获取列宽缓存
|
|
20
|
+
* @param {*} name 表格名称
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
declare const getCachedColumns: (name: string) => any;
|
|
24
|
+
/**
|
|
25
|
+
* 替换列宽 - 表格列数据替换成缓存中的列宽(若有列宽缓存)
|
|
26
|
+
* @param {*} name
|
|
27
|
+
* @param {*} columns
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
declare const replaceColumnWidthToColumns: (name: string, columns: any[]) => any;
|
|
31
|
+
export { isCachedTableColumns, saveCachedColumns, getCachedColumns, replaceColumnWidthToColumns, removeCachedTableColumns, };
|
|
@@ -450,24 +450,44 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
450
450
|
fixed: string;
|
|
451
451
|
field?: unknown;
|
|
452
452
|
title?: unknown;
|
|
453
|
+
children?: unknown;
|
|
453
454
|
showOverflow?: unknown;
|
|
454
455
|
slots?: unknown;
|
|
456
|
+
minWidth?: unknown;
|
|
455
457
|
} | {
|
|
456
458
|
field: string;
|
|
457
459
|
type: string;
|
|
458
460
|
width: number;
|
|
459
461
|
fixed: string;
|
|
460
462
|
title: string;
|
|
463
|
+
children?: unknown;
|
|
461
464
|
showOverflow?: unknown;
|
|
462
465
|
slots?: unknown;
|
|
466
|
+
minWidth?: unknown;
|
|
467
|
+
} | {
|
|
468
|
+
title: string;
|
|
469
|
+
field: string;
|
|
470
|
+
fixed: string;
|
|
471
|
+
width: number;
|
|
472
|
+
children: {
|
|
473
|
+
field: string;
|
|
474
|
+
title: string;
|
|
475
|
+
width: number;
|
|
476
|
+
}[];
|
|
477
|
+
type?: unknown;
|
|
478
|
+
showOverflow?: unknown;
|
|
479
|
+
slots?: unknown;
|
|
480
|
+
minWidth?: unknown;
|
|
463
481
|
} | {
|
|
464
482
|
field: string;
|
|
465
483
|
title: string;
|
|
466
484
|
width: number;
|
|
467
485
|
type?: unknown;
|
|
468
486
|
fixed?: unknown;
|
|
487
|
+
children?: unknown;
|
|
469
488
|
showOverflow?: unknown;
|
|
470
489
|
slots?: unknown;
|
|
490
|
+
minWidth?: unknown;
|
|
471
491
|
} | {
|
|
472
492
|
field: string;
|
|
473
493
|
title: string;
|
|
@@ -478,6 +498,18 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
478
498
|
};
|
|
479
499
|
type?: unknown;
|
|
480
500
|
fixed?: unknown;
|
|
501
|
+
children?: unknown;
|
|
502
|
+
minWidth?: unknown;
|
|
503
|
+
} | {
|
|
504
|
+
field: string;
|
|
505
|
+
title: string;
|
|
506
|
+
minWidth: number;
|
|
507
|
+
type?: unknown;
|
|
508
|
+
width?: unknown;
|
|
509
|
+
fixed?: unknown;
|
|
510
|
+
children?: unknown;
|
|
511
|
+
showOverflow?: unknown;
|
|
512
|
+
slots?: unknown;
|
|
481
513
|
} | {
|
|
482
514
|
field: string;
|
|
483
515
|
title: string;
|
|
@@ -487,7 +519,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
487
519
|
width: number;
|
|
488
520
|
type?: unknown;
|
|
489
521
|
fixed?: unknown;
|
|
522
|
+
children?: unknown;
|
|
490
523
|
showOverflow?: unknown;
|
|
524
|
+
minWidth?: unknown;
|
|
491
525
|
} | {
|
|
492
526
|
field: string;
|
|
493
527
|
title: string;
|
|
@@ -497,7 +531,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
497
531
|
default: string;
|
|
498
532
|
};
|
|
499
533
|
type?: unknown;
|
|
534
|
+
children?: unknown;
|
|
500
535
|
showOverflow?: unknown;
|
|
536
|
+
minWidth?: unknown;
|
|
501
537
|
})[];
|
|
502
538
|
data: {
|
|
503
539
|
name: string;
|
|
@@ -507,6 +543,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
507
543
|
department_count: number;
|
|
508
544
|
user_count: number;
|
|
509
545
|
};
|
|
546
|
+
user_name: string;
|
|
547
|
+
id_card_no: string;
|
|
548
|
+
department_name: string;
|
|
510
549
|
}[];
|
|
511
550
|
}, {
|
|
512
551
|
align: string;
|
|
@@ -524,24 +563,44 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
524
563
|
fixed: string;
|
|
525
564
|
field?: undefined;
|
|
526
565
|
title?: undefined;
|
|
566
|
+
children?: undefined;
|
|
527
567
|
showOverflow?: undefined;
|
|
528
568
|
slots?: undefined;
|
|
569
|
+
minWidth?: undefined;
|
|
529
570
|
} | {
|
|
530
571
|
field: string;
|
|
531
572
|
type: string;
|
|
532
573
|
width: number;
|
|
533
574
|
fixed: string;
|
|
534
575
|
title: string;
|
|
576
|
+
children?: undefined;
|
|
535
577
|
showOverflow?: undefined;
|
|
536
578
|
slots?: undefined;
|
|
579
|
+
minWidth?: undefined;
|
|
580
|
+
} | {
|
|
581
|
+
title: string;
|
|
582
|
+
field: string;
|
|
583
|
+
fixed: string;
|
|
584
|
+
width: number;
|
|
585
|
+
children: {
|
|
586
|
+
field: string;
|
|
587
|
+
title: string;
|
|
588
|
+
width: number;
|
|
589
|
+
}[];
|
|
590
|
+
type?: undefined;
|
|
591
|
+
showOverflow?: undefined;
|
|
592
|
+
slots?: undefined;
|
|
593
|
+
minWidth?: undefined;
|
|
537
594
|
} | {
|
|
538
595
|
field: string;
|
|
539
596
|
title: string;
|
|
540
597
|
width: number;
|
|
541
598
|
type?: undefined;
|
|
542
599
|
fixed?: undefined;
|
|
600
|
+
children?: undefined;
|
|
543
601
|
showOverflow?: undefined;
|
|
544
602
|
slots?: undefined;
|
|
603
|
+
minWidth?: undefined;
|
|
545
604
|
} | {
|
|
546
605
|
field: string;
|
|
547
606
|
title: string;
|
|
@@ -552,6 +611,18 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
552
611
|
};
|
|
553
612
|
type?: undefined;
|
|
554
613
|
fixed?: undefined;
|
|
614
|
+
children?: undefined;
|
|
615
|
+
minWidth?: undefined;
|
|
616
|
+
} | {
|
|
617
|
+
field: string;
|
|
618
|
+
title: string;
|
|
619
|
+
minWidth: number;
|
|
620
|
+
type?: undefined;
|
|
621
|
+
width?: undefined;
|
|
622
|
+
fixed?: undefined;
|
|
623
|
+
children?: undefined;
|
|
624
|
+
showOverflow?: undefined;
|
|
625
|
+
slots?: undefined;
|
|
555
626
|
} | {
|
|
556
627
|
field: string;
|
|
557
628
|
title: string;
|
|
@@ -561,7 +632,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
561
632
|
width: number;
|
|
562
633
|
type?: undefined;
|
|
563
634
|
fixed?: undefined;
|
|
635
|
+
children?: undefined;
|
|
564
636
|
showOverflow?: undefined;
|
|
637
|
+
minWidth?: undefined;
|
|
565
638
|
} | {
|
|
566
639
|
field: string;
|
|
567
640
|
title: string;
|
|
@@ -571,7 +644,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
571
644
|
default: string;
|
|
572
645
|
};
|
|
573
646
|
type?: undefined;
|
|
647
|
+
children?: undefined;
|
|
574
648
|
showOverflow?: undefined;
|
|
649
|
+
minWidth?: undefined;
|
|
575
650
|
})[];
|
|
576
651
|
data: {
|
|
577
652
|
name: string;
|
|
@@ -581,6 +656,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
581
656
|
department_count: number;
|
|
582
657
|
user_count: number;
|
|
583
658
|
};
|
|
659
|
+
user_name: string;
|
|
660
|
+
id_card_no: string;
|
|
661
|
+
department_name: string;
|
|
584
662
|
}[];
|
|
585
663
|
} | {
|
|
586
664
|
align: string;
|
|
@@ -598,24 +676,44 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
598
676
|
fixed: string;
|
|
599
677
|
field?: unknown;
|
|
600
678
|
title?: unknown;
|
|
679
|
+
children?: unknown;
|
|
601
680
|
showOverflow?: unknown;
|
|
602
681
|
slots?: unknown;
|
|
682
|
+
minWidth?: unknown;
|
|
603
683
|
} | {
|
|
604
684
|
field: string;
|
|
605
685
|
type: string;
|
|
606
686
|
width: number;
|
|
607
687
|
fixed: string;
|
|
608
688
|
title: string;
|
|
689
|
+
children?: unknown;
|
|
690
|
+
showOverflow?: unknown;
|
|
691
|
+
slots?: unknown;
|
|
692
|
+
minWidth?: unknown;
|
|
693
|
+
} | {
|
|
694
|
+
title: string;
|
|
695
|
+
field: string;
|
|
696
|
+
fixed: string;
|
|
697
|
+
width: number;
|
|
698
|
+
children: {
|
|
699
|
+
field: string;
|
|
700
|
+
title: string;
|
|
701
|
+
width: number;
|
|
702
|
+
}[];
|
|
703
|
+
type?: unknown;
|
|
609
704
|
showOverflow?: unknown;
|
|
610
705
|
slots?: unknown;
|
|
706
|
+
minWidth?: unknown;
|
|
611
707
|
} | {
|
|
612
708
|
field: string;
|
|
613
709
|
title: string;
|
|
614
710
|
width: number;
|
|
615
711
|
type?: unknown;
|
|
616
712
|
fixed?: unknown;
|
|
713
|
+
children?: unknown;
|
|
617
714
|
showOverflow?: unknown;
|
|
618
715
|
slots?: unknown;
|
|
716
|
+
minWidth?: unknown;
|
|
619
717
|
} | {
|
|
620
718
|
field: string;
|
|
621
719
|
title: string;
|
|
@@ -626,6 +724,18 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
626
724
|
};
|
|
627
725
|
type?: unknown;
|
|
628
726
|
fixed?: unknown;
|
|
727
|
+
children?: unknown;
|
|
728
|
+
minWidth?: unknown;
|
|
729
|
+
} | {
|
|
730
|
+
field: string;
|
|
731
|
+
title: string;
|
|
732
|
+
minWidth: number;
|
|
733
|
+
type?: unknown;
|
|
734
|
+
width?: unknown;
|
|
735
|
+
fixed?: unknown;
|
|
736
|
+
children?: unknown;
|
|
737
|
+
showOverflow?: unknown;
|
|
738
|
+
slots?: unknown;
|
|
629
739
|
} | {
|
|
630
740
|
field: string;
|
|
631
741
|
title: string;
|
|
@@ -635,7 +745,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
635
745
|
width: number;
|
|
636
746
|
type?: unknown;
|
|
637
747
|
fixed?: unknown;
|
|
748
|
+
children?: unknown;
|
|
638
749
|
showOverflow?: unknown;
|
|
750
|
+
minWidth?: unknown;
|
|
639
751
|
} | {
|
|
640
752
|
field: string;
|
|
641
753
|
title: string;
|
|
@@ -645,7 +757,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
645
757
|
default: string;
|
|
646
758
|
};
|
|
647
759
|
type?: unknown;
|
|
760
|
+
children?: unknown;
|
|
648
761
|
showOverflow?: unknown;
|
|
762
|
+
minWidth?: unknown;
|
|
649
763
|
})[];
|
|
650
764
|
data: {
|
|
651
765
|
name: string;
|
|
@@ -655,6 +769,9 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
655
769
|
department_count: number;
|
|
656
770
|
user_count: number;
|
|
657
771
|
};
|
|
772
|
+
user_name: string;
|
|
773
|
+
id_card_no: string;
|
|
774
|
+
department_name: string;
|
|
658
775
|
}[];
|
|
659
776
|
}>;
|
|
660
777
|
export declare const dialogFormItems: import("vue").Ref<{
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weitutech/by-components-v3",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "/src/main.ts",
|
|
6
6
|
"module": "./dist/by-components-v3.js",
|
|
7
7
|
"types": "dist/types/packages/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"CHANGELOG.md"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|