@weitutech/by-components-v3 1.1.2 → 1.1.4

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, };
@@ -453,6 +453,7 @@ export declare const gridOptions: import("vue").Ref<{
453
453
  children?: unknown;
454
454
  showOverflow?: unknown;
455
455
  slots?: unknown;
456
+ minWidth?: unknown;
456
457
  } | {
457
458
  field: string;
458
459
  type: string;
@@ -462,6 +463,7 @@ export declare const gridOptions: import("vue").Ref<{
462
463
  children?: unknown;
463
464
  showOverflow?: unknown;
464
465
  slots?: unknown;
466
+ minWidth?: unknown;
465
467
  } | {
466
468
  title: string;
467
469
  field: string;
@@ -475,6 +477,7 @@ export declare const gridOptions: import("vue").Ref<{
475
477
  type?: unknown;
476
478
  showOverflow?: unknown;
477
479
  slots?: unknown;
480
+ minWidth?: unknown;
478
481
  } | {
479
482
  field: string;
480
483
  title: string;
@@ -484,6 +487,7 @@ export declare const gridOptions: import("vue").Ref<{
484
487
  children?: unknown;
485
488
  showOverflow?: unknown;
486
489
  slots?: unknown;
490
+ minWidth?: unknown;
487
491
  } | {
488
492
  field: string;
489
493
  title: string;
@@ -495,6 +499,17 @@ export declare const gridOptions: import("vue").Ref<{
495
499
  type?: unknown;
496
500
  fixed?: unknown;
497
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;
498
513
  } | {
499
514
  field: string;
500
515
  title: string;
@@ -506,6 +521,7 @@ export declare const gridOptions: import("vue").Ref<{
506
521
  fixed?: unknown;
507
522
  children?: unknown;
508
523
  showOverflow?: unknown;
524
+ minWidth?: unknown;
509
525
  } | {
510
526
  field: string;
511
527
  title: string;
@@ -517,6 +533,7 @@ export declare const gridOptions: import("vue").Ref<{
517
533
  type?: unknown;
518
534
  children?: unknown;
519
535
  showOverflow?: unknown;
536
+ minWidth?: unknown;
520
537
  })[];
521
538
  data: {
522
539
  name: string;
@@ -549,6 +566,7 @@ export declare const gridOptions: import("vue").Ref<{
549
566
  children?: undefined;
550
567
  showOverflow?: undefined;
551
568
  slots?: undefined;
569
+ minWidth?: undefined;
552
570
  } | {
553
571
  field: string;
554
572
  type: string;
@@ -558,6 +576,7 @@ export declare const gridOptions: import("vue").Ref<{
558
576
  children?: undefined;
559
577
  showOverflow?: undefined;
560
578
  slots?: undefined;
579
+ minWidth?: undefined;
561
580
  } | {
562
581
  title: string;
563
582
  field: string;
@@ -571,6 +590,7 @@ export declare const gridOptions: import("vue").Ref<{
571
590
  type?: undefined;
572
591
  showOverflow?: undefined;
573
592
  slots?: undefined;
593
+ minWidth?: undefined;
574
594
  } | {
575
595
  field: string;
576
596
  title: string;
@@ -580,6 +600,7 @@ export declare const gridOptions: import("vue").Ref<{
580
600
  children?: undefined;
581
601
  showOverflow?: undefined;
582
602
  slots?: undefined;
603
+ minWidth?: undefined;
583
604
  } | {
584
605
  field: string;
585
606
  title: string;
@@ -591,6 +612,17 @@ export declare const gridOptions: import("vue").Ref<{
591
612
  type?: undefined;
592
613
  fixed?: undefined;
593
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;
594
626
  } | {
595
627
  field: string;
596
628
  title: string;
@@ -602,6 +634,7 @@ export declare const gridOptions: import("vue").Ref<{
602
634
  fixed?: undefined;
603
635
  children?: undefined;
604
636
  showOverflow?: undefined;
637
+ minWidth?: undefined;
605
638
  } | {
606
639
  field: string;
607
640
  title: string;
@@ -613,6 +646,7 @@ export declare const gridOptions: import("vue").Ref<{
613
646
  type?: undefined;
614
647
  children?: undefined;
615
648
  showOverflow?: undefined;
649
+ minWidth?: undefined;
616
650
  })[];
617
651
  data: {
618
652
  name: string;
@@ -645,6 +679,7 @@ export declare const gridOptions: import("vue").Ref<{
645
679
  children?: unknown;
646
680
  showOverflow?: unknown;
647
681
  slots?: unknown;
682
+ minWidth?: unknown;
648
683
  } | {
649
684
  field: string;
650
685
  type: string;
@@ -654,6 +689,7 @@ export declare const gridOptions: import("vue").Ref<{
654
689
  children?: unknown;
655
690
  showOverflow?: unknown;
656
691
  slots?: unknown;
692
+ minWidth?: unknown;
657
693
  } | {
658
694
  title: string;
659
695
  field: string;
@@ -667,6 +703,7 @@ export declare const gridOptions: import("vue").Ref<{
667
703
  type?: unknown;
668
704
  showOverflow?: unknown;
669
705
  slots?: unknown;
706
+ minWidth?: unknown;
670
707
  } | {
671
708
  field: string;
672
709
  title: string;
@@ -676,6 +713,7 @@ export declare const gridOptions: import("vue").Ref<{
676
713
  children?: unknown;
677
714
  showOverflow?: unknown;
678
715
  slots?: unknown;
716
+ minWidth?: unknown;
679
717
  } | {
680
718
  field: string;
681
719
  title: string;
@@ -687,6 +725,17 @@ export declare const gridOptions: import("vue").Ref<{
687
725
  type?: unknown;
688
726
  fixed?: unknown;
689
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;
690
739
  } | {
691
740
  field: string;
692
741
  title: string;
@@ -698,6 +747,7 @@ export declare const gridOptions: import("vue").Ref<{
698
747
  fixed?: unknown;
699
748
  children?: unknown;
700
749
  showOverflow?: unknown;
750
+ minWidth?: unknown;
701
751
  } | {
702
752
  field: string;
703
753
  title: string;
@@ -709,6 +759,7 @@ export declare const gridOptions: import("vue").Ref<{
709
759
  type?: unknown;
710
760
  children?: unknown;
711
761
  showOverflow?: unknown;
762
+ minWidth?: unknown;
712
763
  })[];
713
764
  data: {
714
765
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weitutech/by-components-v3",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "private": false,
5
5
  "main": "/src/main.ts",
6
6
  "module": "./dist/by-components-v3.js",