vxe-table 4.23.8 → 4.23.9
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/dist/all.esm.js +5715 -3783
- package/es/components.d.ts +1 -0
- package/es/components.js +2 -7
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +397 -120
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/module/custom/hook.js +49 -42
- package/es/table/module/custom/panel.js +777 -527
- package/es/table/module/edit/hook.js +140 -62
- package/es/table/module/export/export-panel.js +399 -316
- package/es/table/module/export/hook.js +395 -337
- package/es/table/module/export/import-panel.js +152 -123
- package/es/table/module/filter/hook.js +16 -2
- package/es/table/module/filter/panel.js +146 -84
- package/es/table/module/keyboard/hook.js +8 -4
- package/es/table/module/menu/panel.js +197 -126
- package/es/table/render/index.js +151 -98
- package/es/table/src/body.js +355 -233
- package/es/table/src/cell.js +426 -269
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/footer.js +144 -99
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +229 -172
- package/es/table/src/table.js +1503 -1030
- package/es/table/src/util.js +15 -19
- package/es/toolbar/src/toolbar.js +132 -75
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/lib/components.js +2 -7
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +397 -120
- package/lib/index.common.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +5732 -3800
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/custom/hook.js +49 -42
- package/lib/table/module/custom/panel.js +777 -527
- package/lib/table/module/edit/hook.js +140 -62
- package/lib/table/module/export/export-panel.js +399 -316
- package/lib/table/module/export/hook.js +395 -337
- package/lib/table/module/export/import-panel.js +152 -123
- package/lib/table/module/filter/hook.js +16 -2
- package/lib/table/module/filter/panel.js +146 -84
- package/lib/table/module/keyboard/hook.js +8 -4
- package/lib/table/module/menu/panel.js +197 -126
- package/lib/table/render/index.js +151 -98
- package/lib/table/src/body.js +355 -233
- package/lib/table/src/cell.js +426 -269
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/footer.js +144 -99
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +229 -172
- package/lib/table/src/table.js +1471 -1029
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/src/toolbar.js +132 -75
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -44
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -19
- package/packages/grid/src/grid.ts +2229 -1925
- package/packages/grid/src/props.ts +22 -23
- package/packages/index.ts +11 -11
- package/packages/locale/lang/fr-FR.ts +15 -15
- package/packages/locale/lang/it-IT.ts +4 -4
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +13 -13
- package/packages/locale/lang/zh-CN.ts +907 -907
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -503
- package/packages/table/module/custom/panel.ts +2002 -1743
- package/packages/table/module/edit/hook.ts +1224 -1131
- package/packages/table/module/export/export-panel.ts +697 -611
- package/packages/table/module/export/hook.ts +2160 -2059
- package/packages/table/module/export/import-panel.ts +319 -279
- package/packages/table/module/export/util.ts +25 -24
- package/packages/table/module/filter/hook.ts +519 -501
- package/packages/table/module/filter/panel.ts +368 -304
- package/packages/table/module/keyboard/hook.ts +498 -494
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -201
- package/packages/table/module/validator/hook.ts +653 -635
- package/packages/table/render/index.ts +1819 -1744
- package/packages/table/src/body.ts +1078 -955
- package/packages/table/src/cell.ts +1524 -1359
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -380
- package/packages/table/src/group.ts +67 -63
- package/packages/table/src/header.ts +642 -581
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +16011 -15454
- package/packages/table/src/use/cell-view.ts +41 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1216
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -706
- package/packages/ui/index.ts +519 -520
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -463
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
|
@@ -414,7 +414,7 @@ var panel_default = defineVxeComponent({
|
|
|
414
414
|
} else {
|
|
415
415
|
}
|
|
416
416
|
const oldewMatchRest = XEUtils.findTree(collectColumn, (item) => item.id === dragColumn.id);
|
|
417
|
-
if (isSelfToChildStatus &&
|
|
417
|
+
if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
|
|
418
418
|
if (oldewMatchRest) {
|
|
419
419
|
const { items: oCols, index: oIndex } = oldewMatchRest;
|
|
420
420
|
const childList = dragColumn.children || [];
|
|
@@ -601,41 +601,60 @@ var panel_default = defineVxeComponent({
|
|
|
601
601
|
return h("div", {}, [
|
|
602
602
|
h("div", {
|
|
603
603
|
ref: refDragLineElem,
|
|
604
|
-
class: [
|
|
605
|
-
"
|
|
606
|
-
|
|
604
|
+
class: [
|
|
605
|
+
"vxe-table-custom-popup--drag-line",
|
|
606
|
+
{
|
|
607
|
+
"is--guides": columnDragOpts.showGuidesStatus
|
|
608
|
+
}
|
|
609
|
+
]
|
|
607
610
|
}),
|
|
608
|
-
h(
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
h(
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
611
|
+
h(
|
|
612
|
+
"div",
|
|
613
|
+
{
|
|
614
|
+
ref: refDragTipElem,
|
|
615
|
+
class: "vxe-table-custom-popup--drag-tip"
|
|
616
|
+
},
|
|
617
|
+
[
|
|
618
|
+
h(
|
|
619
|
+
"div",
|
|
620
|
+
{
|
|
621
|
+
class: "vxe-table-custom-popup--drag-tip-wrapper"
|
|
622
|
+
},
|
|
623
|
+
[
|
|
624
|
+
h(
|
|
625
|
+
"div",
|
|
626
|
+
{
|
|
627
|
+
class: "vxe-table-custom-popup--drag-tip-status"
|
|
628
|
+
},
|
|
629
|
+
[
|
|
630
|
+
h("span", {
|
|
631
|
+
class: ["vxe-table-custom-popup--drag-tip-normal-status", getIcon().TABLE_DRAG_STATUS_ROW]
|
|
632
|
+
}),
|
|
633
|
+
h("span", {
|
|
634
|
+
class: ["vxe-table-custom-popup--drag-tip-sub-status", getIcon().TABLE_DRAG_STATUS_SUB_ROW]
|
|
635
|
+
}),
|
|
636
|
+
h("span", {
|
|
637
|
+
class: ["vxe-table-custom-popup--drag-tip-group-status", getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
|
|
638
|
+
}),
|
|
639
|
+
h("span", {
|
|
640
|
+
class: ["vxe-table-custom-popup--drag-tip-values-status", getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
|
|
641
|
+
}),
|
|
642
|
+
h("span", {
|
|
643
|
+
class: ["vxe-table-custom-popup--drag-tip-disabled-status", getIcon().TABLE_DRAG_DISABLED]
|
|
644
|
+
})
|
|
645
|
+
]
|
|
646
|
+
),
|
|
647
|
+
h(
|
|
648
|
+
"div",
|
|
649
|
+
{
|
|
650
|
+
class: "vxe-table-custom-popup--drag-tip-content"
|
|
651
|
+
},
|
|
652
|
+
`${dragTipText || ""}`
|
|
653
|
+
)
|
|
654
|
+
]
|
|
655
|
+
)
|
|
656
|
+
]
|
|
657
|
+
)
|
|
639
658
|
]);
|
|
640
659
|
};
|
|
641
660
|
const renderSimplePanel = () => {
|
|
@@ -686,234 +705,347 @@ var panel_default = defineVxeComponent({
|
|
|
686
705
|
const isHidden = !isChecked;
|
|
687
706
|
const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
|
|
688
707
|
colVNs.push(
|
|
689
|
-
h(
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
allowVisible ? h("div", {
|
|
701
|
-
class: ["vxe-table-custom--checkbox-option", {
|
|
702
|
-
"is--checked": isChecked,
|
|
703
|
-
"is--indeterminate": isIndeterminate,
|
|
704
|
-
"is--disabled": isDisabled
|
|
705
|
-
}],
|
|
706
|
-
title: getI18n("vxe.custom.setting.colVisible"),
|
|
707
|
-
onClick: (evnt) => {
|
|
708
|
-
if (!isDisabled) {
|
|
709
|
-
changeCheckboxOption(column, evnt);
|
|
708
|
+
h(
|
|
709
|
+
"li",
|
|
710
|
+
{
|
|
711
|
+
key: column.id,
|
|
712
|
+
colid: column.id,
|
|
713
|
+
class: [
|
|
714
|
+
"vxe-table-custom--option",
|
|
715
|
+
`level--${column.level}`,
|
|
716
|
+
{
|
|
717
|
+
"is--hidden": isDisabled || isHidden,
|
|
718
|
+
"is--group": isColGroup
|
|
710
719
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
720
|
+
],
|
|
721
|
+
onDragstart: sortDragstartEvent,
|
|
722
|
+
onDragend: sortDragendEvent,
|
|
723
|
+
onDragover: sortDragoverEvent
|
|
724
|
+
},
|
|
725
|
+
[
|
|
726
|
+
allowVisible ? h(
|
|
727
|
+
"div",
|
|
728
|
+
{
|
|
729
|
+
class: [
|
|
730
|
+
"vxe-table-custom--checkbox-option",
|
|
731
|
+
{
|
|
732
|
+
"is--checked": isChecked,
|
|
733
|
+
"is--indeterminate": isIndeterminate,
|
|
734
|
+
"is--disabled": isDisabled
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
title: getI18n("vxe.custom.setting.colVisible"),
|
|
738
|
+
onClick: (evnt) => {
|
|
739
|
+
if (!isDisabled) {
|
|
740
|
+
changeCheckboxOption(column, evnt);
|
|
741
|
+
}
|
|
731
742
|
}
|
|
732
|
-
},
|
|
733
|
-
|
|
734
|
-
|
|
743
|
+
},
|
|
744
|
+
[
|
|
745
|
+
h("span", {
|
|
746
|
+
class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
735
747
|
})
|
|
736
|
-
]
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
748
|
+
]
|
|
749
|
+
) : renderEmptyElement($xeTable),
|
|
750
|
+
h(
|
|
751
|
+
"div",
|
|
752
|
+
{
|
|
753
|
+
class: "vxe-table-custom--name-option"
|
|
754
|
+
},
|
|
755
|
+
[
|
|
756
|
+
allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? h(
|
|
757
|
+
"div",
|
|
758
|
+
{
|
|
759
|
+
class: "vxe-table-custom--sort-option"
|
|
760
|
+
},
|
|
761
|
+
[
|
|
762
|
+
h(
|
|
763
|
+
"span",
|
|
764
|
+
{
|
|
765
|
+
class: [
|
|
766
|
+
"vxe-table-custom--sort-btn",
|
|
767
|
+
{
|
|
768
|
+
"is--disabled": isHidden
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
title: getI18n("vxe.custom.setting.sortHelpTip"),
|
|
772
|
+
...isHidden ? {} : {
|
|
773
|
+
onMousedown: sortMousedownEvent,
|
|
774
|
+
onMouseup: sortMouseupEvent
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
[
|
|
778
|
+
h("i", {
|
|
779
|
+
class: getIcon().TABLE_CUSTOM_SORT
|
|
780
|
+
})
|
|
781
|
+
]
|
|
782
|
+
)
|
|
783
|
+
]
|
|
784
|
+
) : renderEmptyElement($xeTable) : renderEmptyElement($xeTable),
|
|
785
|
+
column.type === "html" ? h("div", {
|
|
786
|
+
key: "1",
|
|
787
|
+
class: "vxe-table-custom--checkbox-label",
|
|
788
|
+
innerHTML: colTitle
|
|
789
|
+
}) : h(
|
|
790
|
+
"div",
|
|
791
|
+
{
|
|
792
|
+
key: "0",
|
|
793
|
+
class: "vxe-table-custom--checkbox-label"
|
|
794
|
+
},
|
|
795
|
+
colTitle
|
|
796
|
+
)
|
|
797
|
+
]
|
|
798
|
+
),
|
|
799
|
+
showSortBtn && (showSortMoveButton || showSortPutButton) ? h(
|
|
800
|
+
"div",
|
|
801
|
+
{
|
|
802
|
+
class: "vxe-table-custom--move-btn-option"
|
|
803
|
+
},
|
|
804
|
+
VxeUIButtonComponent ? [
|
|
805
|
+
showSortMoveButton ? h(VxeUIButtonComponent, {
|
|
806
|
+
mode: "text",
|
|
807
|
+
icon: "vxe-icon-arrows-up",
|
|
808
|
+
title: getI18n("vxe.custom.setting.moveUpTitle"),
|
|
809
|
+
disabled: index <= 0,
|
|
810
|
+
onClick(evntParame) {
|
|
811
|
+
sortMoveUpEvent(evntParame, column);
|
|
812
|
+
}
|
|
813
|
+
}) : renderEmptyElement($xeTable),
|
|
814
|
+
showSortMoveButton ? h(VxeUIButtonComponent, {
|
|
815
|
+
mode: "text",
|
|
816
|
+
icon: "vxe-icon-arrows-down",
|
|
817
|
+
title: getI18n("vxe.custom.setting.moveDnTitle"),
|
|
818
|
+
disabled: index >= items.length - 1,
|
|
819
|
+
onClick(evntParame) {
|
|
820
|
+
sortMoveDnEvent(evntParame, column);
|
|
821
|
+
}
|
|
822
|
+
}) : renderEmptyElement($xeTable),
|
|
823
|
+
showSortPutButton && !parentItem ? h(VxeUIButtonComponent, {
|
|
824
|
+
mode: "text",
|
|
825
|
+
icon: "vxe-icon-top",
|
|
826
|
+
title: getI18n("vxe.custom.setting.putTopTitle"),
|
|
827
|
+
disabled: index <= 0,
|
|
828
|
+
onClick(evntParame) {
|
|
829
|
+
sortMoveTopEvent(evntParame, column);
|
|
830
|
+
}
|
|
831
|
+
}) : renderEmptyElement($xeTable),
|
|
832
|
+
showSortPutButton && !parentItem ? h(VxeUIButtonComponent, {
|
|
833
|
+
mode: "text",
|
|
834
|
+
icon: "vxe-icon-bottom",
|
|
835
|
+
title: getI18n("vxe.custom.setting.putBottomTitle"),
|
|
836
|
+
disabled: index >= items.length - 1,
|
|
837
|
+
onClick(evntParame) {
|
|
838
|
+
sortMoveBottomEvent(evntParame, column);
|
|
839
|
+
}
|
|
840
|
+
}) : renderEmptyElement($xeTable)
|
|
841
|
+
] : []
|
|
842
|
+
) : renderEmptyElement($xeTable),
|
|
843
|
+
!parentItem && allowFixed ? h(
|
|
844
|
+
"div",
|
|
845
|
+
{
|
|
846
|
+
class: "vxe-table-custom--fixed-option"
|
|
847
|
+
},
|
|
848
|
+
VxeUIButtonComponent ? [
|
|
849
|
+
h(VxeUIButtonComponent, {
|
|
850
|
+
mode: "text",
|
|
851
|
+
icon: column.renderFixed === "left" ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
|
|
852
|
+
status: column.renderFixed === "left" ? "primary" : "",
|
|
853
|
+
disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
854
|
+
title: getI18n(column.renderFixed === "left" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedLeft"),
|
|
855
|
+
onClick: ({ $event }) => {
|
|
856
|
+
changeFixedOption(column, "left", $event);
|
|
857
|
+
}
|
|
858
|
+
}),
|
|
859
|
+
h(VxeUIButtonComponent, {
|
|
860
|
+
mode: "text",
|
|
861
|
+
icon: column.renderFixed === "right" ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
|
|
862
|
+
status: column.renderFixed === "right" ? "primary" : "",
|
|
863
|
+
disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
864
|
+
title: getI18n(column.renderFixed === "right" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedRight"),
|
|
865
|
+
onClick: ({ $event }) => {
|
|
866
|
+
changeFixedOption(column, "right", $event);
|
|
867
|
+
}
|
|
868
|
+
})
|
|
869
|
+
] : []
|
|
870
|
+
) : renderEmptyElement($xeTable)
|
|
871
|
+
]
|
|
872
|
+
)
|
|
812
873
|
);
|
|
813
874
|
}
|
|
814
875
|
});
|
|
815
|
-
return h(
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
h(
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
h(
|
|
839
|
-
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
876
|
+
return h(
|
|
877
|
+
"div",
|
|
878
|
+
{
|
|
879
|
+
ref: refElem,
|
|
880
|
+
key: "simple",
|
|
881
|
+
class: [
|
|
882
|
+
"vxe-table-custom-wrapper",
|
|
883
|
+
`placement--${placement}`,
|
|
884
|
+
{
|
|
885
|
+
[`size--${vSize}`]: vSize,
|
|
886
|
+
"is--active": customStore.visible
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
style: defPopupStyle
|
|
890
|
+
},
|
|
891
|
+
customStore.visible ? [
|
|
892
|
+
h(
|
|
893
|
+
"div",
|
|
894
|
+
{
|
|
895
|
+
ref: refBodyWrapperElem,
|
|
896
|
+
class: "vxe-table-custom-simple--body-wrapper"
|
|
897
|
+
},
|
|
898
|
+
[
|
|
899
|
+
!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? h($xeTable.getPivotTableAggregateSimplePanel(), {
|
|
900
|
+
customStore
|
|
901
|
+
}) : renderEmptyElement($xeTable),
|
|
902
|
+
h(
|
|
903
|
+
"div",
|
|
904
|
+
{
|
|
905
|
+
ref: refCustomBodyElem,
|
|
906
|
+
class: "vxe-table-custom--handle-wrapper"
|
|
907
|
+
},
|
|
908
|
+
[
|
|
909
|
+
h(
|
|
910
|
+
"div",
|
|
911
|
+
{
|
|
912
|
+
class: "vxe-table-custom--header"
|
|
913
|
+
},
|
|
914
|
+
headerSlot ? $xeTable.callSlot(headerSlot, params) : [
|
|
915
|
+
h(
|
|
916
|
+
"ul",
|
|
917
|
+
{
|
|
918
|
+
class: "vxe-table-custom--panel-list"
|
|
919
|
+
},
|
|
920
|
+
[
|
|
921
|
+
h(
|
|
922
|
+
"li",
|
|
923
|
+
{
|
|
924
|
+
class: "vxe-table-custom--option"
|
|
925
|
+
},
|
|
926
|
+
[
|
|
927
|
+
allowVisible ? h(
|
|
928
|
+
"div",
|
|
929
|
+
{
|
|
930
|
+
class: [
|
|
931
|
+
"vxe-table-custom--checkbox-option",
|
|
932
|
+
{
|
|
933
|
+
"is--checked": isAllChecked,
|
|
934
|
+
"is--indeterminate": isAllIndeterminate
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
title: getI18n("vxe.table.allTitle"),
|
|
938
|
+
onClick: allOptionEvent
|
|
939
|
+
},
|
|
940
|
+
[
|
|
941
|
+
h("span", {
|
|
942
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
943
|
+
}),
|
|
944
|
+
h(
|
|
945
|
+
"span",
|
|
946
|
+
{
|
|
947
|
+
class: "vxe-checkbox--label"
|
|
948
|
+
},
|
|
949
|
+
getI18n("vxe.toolbar.customAll")
|
|
950
|
+
)
|
|
951
|
+
]
|
|
952
|
+
) : h(
|
|
953
|
+
"span",
|
|
954
|
+
{
|
|
955
|
+
class: "vxe-checkbox--label"
|
|
956
|
+
},
|
|
957
|
+
getI18n("vxe.table.customTitle")
|
|
958
|
+
)
|
|
959
|
+
]
|
|
960
|
+
)
|
|
961
|
+
]
|
|
962
|
+
)
|
|
963
|
+
]
|
|
964
|
+
),
|
|
965
|
+
h(
|
|
966
|
+
"div",
|
|
967
|
+
{
|
|
968
|
+
class: "vxe-table-custom--body"
|
|
969
|
+
},
|
|
970
|
+
[
|
|
971
|
+
topSlot ? h(
|
|
972
|
+
"div",
|
|
973
|
+
{
|
|
974
|
+
class: "vxe-table-custom--panel-top"
|
|
975
|
+
},
|
|
976
|
+
$xeTable.callSlot(topSlot, params)
|
|
977
|
+
) : renderEmptyElement($xeTable),
|
|
978
|
+
defaultSlot ? h(
|
|
979
|
+
"div",
|
|
980
|
+
{
|
|
981
|
+
class: "vxe-table-custom--panel-body"
|
|
982
|
+
},
|
|
983
|
+
$xeTable.callSlot(defaultSlot, params)
|
|
984
|
+
) : h(
|
|
985
|
+
TransitionGroup,
|
|
986
|
+
{
|
|
987
|
+
class: "vxe-table-custom--panel-list",
|
|
988
|
+
name: isCustomDragStatus ? "vxe-table-custom--list" : "",
|
|
989
|
+
tag: "ul",
|
|
990
|
+
...customWrapperOns
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
default: () => colVNs
|
|
994
|
+
}
|
|
995
|
+
),
|
|
996
|
+
bottomSlot ? h(
|
|
997
|
+
"div",
|
|
998
|
+
{
|
|
999
|
+
class: "vxe-table-custom--panel-bottom"
|
|
1000
|
+
},
|
|
1001
|
+
$xeTable.callSlot(bottomSlot, params)
|
|
1002
|
+
) : renderEmptyElement($xeTable)
|
|
1003
|
+
]
|
|
1004
|
+
),
|
|
1005
|
+
customOpts.showFooter ? h(
|
|
1006
|
+
"div",
|
|
1007
|
+
{
|
|
1008
|
+
class: "vxe-table-custom--footer"
|
|
1009
|
+
},
|
|
1010
|
+
footerSlot ? $xeTable.callSlot(footerSlot, params) : [
|
|
1011
|
+
h(
|
|
1012
|
+
"div",
|
|
1013
|
+
{
|
|
1014
|
+
class: "vxe-table-custom--footer-buttons"
|
|
1015
|
+
},
|
|
1016
|
+
[
|
|
1017
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1018
|
+
mode: "text",
|
|
1019
|
+
content: customOpts.resetButtonText || getI18n("vxe.table.customRestore"),
|
|
1020
|
+
disabled: !isCustomStatus,
|
|
1021
|
+
onClick: resetCustomEvent
|
|
1022
|
+
}) : renderEmptyElement($xeTable),
|
|
1023
|
+
immediate ? VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1024
|
+
mode: "text",
|
|
1025
|
+
content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
|
|
1026
|
+
onClick: cancelCloseEvent
|
|
1027
|
+
}) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1028
|
+
mode: "text",
|
|
1029
|
+
content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
|
|
1030
|
+
onClick: cancelCustomEvent
|
|
1031
|
+
}) : renderEmptyElement($xeTable),
|
|
1032
|
+
immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1033
|
+
mode: "text",
|
|
1034
|
+
status: "primary",
|
|
1035
|
+
content: customOpts.confirmButtonText || getI18n("vxe.table.customConfirm"),
|
|
1036
|
+
onClick: confirmCustomEvent
|
|
1037
|
+
}) : renderEmptyElement($xeTable)
|
|
1038
|
+
]
|
|
1039
|
+
)
|
|
1040
|
+
]
|
|
1041
|
+
) : null
|
|
1042
|
+
]
|
|
1043
|
+
),
|
|
1044
|
+
renderDragTip()
|
|
1045
|
+
]
|
|
1046
|
+
)
|
|
1047
|
+
] : []
|
|
1048
|
+
);
|
|
917
1049
|
};
|
|
918
1050
|
const renderPopupBodys = () => {
|
|
919
1051
|
const { resizable: allResizable } = tableProps;
|
|
@@ -965,128 +1097,166 @@ var panel_default = defineVxeComponent({
|
|
|
965
1097
|
const tdVNs = [];
|
|
966
1098
|
if (allowVisible) {
|
|
967
1099
|
tdVNs.push(
|
|
968
|
-
h(
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
"
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1100
|
+
h(
|
|
1101
|
+
"td",
|
|
1102
|
+
{
|
|
1103
|
+
key: "av",
|
|
1104
|
+
class: "vxe-table-custom-popup--column-td col--visible"
|
|
1105
|
+
},
|
|
1106
|
+
[
|
|
1107
|
+
h(
|
|
1108
|
+
"div",
|
|
1109
|
+
{
|
|
1110
|
+
class: [
|
|
1111
|
+
"vxe-table-custom--checkbox-option",
|
|
1112
|
+
{
|
|
1113
|
+
"is--checked": isChecked,
|
|
1114
|
+
"is--indeterminate": isIndeterminate,
|
|
1115
|
+
"is--disabled": isDisabled
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
title: getI18n("vxe.custom.setting.colVisible"),
|
|
1119
|
+
onClick: (evnt) => {
|
|
1120
|
+
if (!isDisabled) {
|
|
1121
|
+
changeCheckboxOption(column, evnt);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
[
|
|
1126
|
+
h("span", {
|
|
1127
|
+
class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
1128
|
+
})
|
|
1129
|
+
]
|
|
1130
|
+
)
|
|
1131
|
+
]
|
|
1132
|
+
)
|
|
990
1133
|
);
|
|
991
1134
|
}
|
|
992
1135
|
tdVNs.push(
|
|
993
|
-
h(
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1136
|
+
h(
|
|
1137
|
+
"td",
|
|
1138
|
+
{
|
|
1139
|
+
key: "at",
|
|
1140
|
+
class: "vxe-table-custom-popup--column-td col--name"
|
|
1141
|
+
},
|
|
1142
|
+
[
|
|
1143
|
+
h(
|
|
1144
|
+
"div",
|
|
1145
|
+
{
|
|
1146
|
+
class: "vxe-table-custom-popup--name"
|
|
1147
|
+
},
|
|
1148
|
+
[
|
|
1149
|
+
allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? h(
|
|
1150
|
+
"div",
|
|
1151
|
+
{
|
|
1152
|
+
class: [
|
|
1153
|
+
"vxe-table-custom-popup--column-sort-btn",
|
|
1154
|
+
{
|
|
1155
|
+
"is--disabled": isHidden
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
title: getI18n("vxe.custom.setting.sortHelpTip"),
|
|
1159
|
+
...isHidden ? {} : {
|
|
1160
|
+
onMousedown: sortMousedownEvent,
|
|
1161
|
+
onMouseup: sortMouseupEvent
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
[
|
|
1165
|
+
h("i", {
|
|
1166
|
+
class: getIcon().TABLE_CUSTOM_SORT
|
|
1167
|
+
})
|
|
1168
|
+
]
|
|
1169
|
+
) : h("div", {
|
|
1170
|
+
class: "vxe-table-custom-popup--column-sort-placeholder"
|
|
1171
|
+
}) : renderEmptyElement($xeTable),
|
|
1172
|
+
column.type === "html" ? h("div", {
|
|
1173
|
+
key: "1",
|
|
1174
|
+
class: "vxe-table-custom-popup--title",
|
|
1175
|
+
innerHTML: colTitle
|
|
1176
|
+
}) : h(
|
|
1177
|
+
"div",
|
|
1178
|
+
{
|
|
1179
|
+
key: "0",
|
|
1180
|
+
class: "vxe-table-custom-popup--title",
|
|
1181
|
+
title: colTitle
|
|
1182
|
+
},
|
|
1183
|
+
colTitle
|
|
1184
|
+
),
|
|
1185
|
+
showSortBtn && (showSortMoveButton || showSortPutButton) ? h(
|
|
1186
|
+
"div",
|
|
1187
|
+
{
|
|
1188
|
+
class: "vxe-table-custom-popup--move-btn"
|
|
1189
|
+
},
|
|
1190
|
+
VxeUIButtonComponent ? [
|
|
1191
|
+
showSortMoveButton ? h(VxeUIButtonComponent, {
|
|
1192
|
+
mode: "text",
|
|
1193
|
+
icon: "vxe-icon-arrows-up",
|
|
1194
|
+
title: getI18n("vxe.custom.setting.moveUpTitle"),
|
|
1195
|
+
disabled: index <= 0,
|
|
1196
|
+
onClick(evntParame) {
|
|
1197
|
+
sortMoveUpEvent(evntParame, column);
|
|
1198
|
+
}
|
|
1199
|
+
}) : renderEmptyElement($xeTable),
|
|
1200
|
+
showSortMoveButton ? h(VxeUIButtonComponent, {
|
|
1201
|
+
mode: "text",
|
|
1202
|
+
icon: "vxe-icon-arrows-down",
|
|
1203
|
+
title: getI18n("vxe.custom.setting.moveDnTitle"),
|
|
1204
|
+
disabled: index >= items.length - 1,
|
|
1205
|
+
onClick(evntParame) {
|
|
1206
|
+
sortMoveDnEvent(evntParame, column);
|
|
1207
|
+
}
|
|
1208
|
+
}) : renderEmptyElement($xeTable),
|
|
1209
|
+
showSortPutButton && !parentItem ? h(VxeUIButtonComponent, {
|
|
1210
|
+
mode: "text",
|
|
1211
|
+
icon: "vxe-icon-top",
|
|
1212
|
+
title: getI18n("vxe.custom.setting.putTopTitle"),
|
|
1213
|
+
disabled: index <= 0,
|
|
1214
|
+
onClick(evntParame) {
|
|
1215
|
+
sortMoveTopEvent(evntParame, column);
|
|
1216
|
+
}
|
|
1217
|
+
}) : renderEmptyElement($xeTable),
|
|
1218
|
+
showSortPutButton && !parentItem ? h(VxeUIButtonComponent, {
|
|
1219
|
+
mode: "text",
|
|
1220
|
+
icon: "vxe-icon-bottom",
|
|
1221
|
+
title: getI18n("vxe.custom.setting.putBottomTitle"),
|
|
1222
|
+
disabled: index >= items.length - 1,
|
|
1223
|
+
onClick(evntParame) {
|
|
1224
|
+
sortMoveBottomEvent(evntParame, column);
|
|
1225
|
+
}
|
|
1226
|
+
}) : renderEmptyElement($xeTable)
|
|
1227
|
+
] : []
|
|
1228
|
+
) : renderEmptyElement($xeTable)
|
|
1229
|
+
]
|
|
1230
|
+
)
|
|
1231
|
+
]
|
|
1232
|
+
)
|
|
1067
1233
|
);
|
|
1068
1234
|
if (allowResizable) {
|
|
1069
1235
|
tdVNs.push(
|
|
1070
|
-
h(
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1236
|
+
h(
|
|
1237
|
+
"td",
|
|
1238
|
+
{
|
|
1239
|
+
key: "aw",
|
|
1240
|
+
class: "vxe-table-custom-popup--column-td col--resizable"
|
|
1241
|
+
},
|
|
1242
|
+
[
|
|
1243
|
+
column.children && column.children.length || !(XEUtils.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? h("span", "-") : VxeUINumberInputComponent ? h(VxeUINumberInputComponent, {
|
|
1244
|
+
type: "integer",
|
|
1245
|
+
immediate: false,
|
|
1246
|
+
disabled: isHidden,
|
|
1247
|
+
modelValue: column.renderResizeWidth,
|
|
1248
|
+
min: customMinWidth || 0,
|
|
1249
|
+
max: customMaxWidth || 9999,
|
|
1250
|
+
"onUpdate:modelValue"(value) {
|
|
1251
|
+
const width = Math.max(0, Number(value));
|
|
1252
|
+
column.renderResizeWidth = width;
|
|
1253
|
+
},
|
|
1254
|
+
onChange() {
|
|
1255
|
+
changeColumnWidth(column);
|
|
1256
|
+
}
|
|
1257
|
+
}) : renderEmptyElement($xeTable)
|
|
1258
|
+
]
|
|
1259
|
+
)
|
|
1090
1260
|
);
|
|
1091
1261
|
}
|
|
1092
1262
|
if (allowFixed) {
|
|
@@ -1190,16 +1360,23 @@ var panel_default = defineVxeComponent({
|
|
|
1190
1360
|
);
|
|
1191
1361
|
}
|
|
1192
1362
|
trVNs.push(
|
|
1193
|
-
h(
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1363
|
+
h(
|
|
1364
|
+
"tr",
|
|
1365
|
+
{
|
|
1366
|
+
key: column.id,
|
|
1367
|
+
colid: column.id,
|
|
1368
|
+
class: [
|
|
1369
|
+
`vxe-table-custom-popup--row level--${column.level}`,
|
|
1370
|
+
{
|
|
1371
|
+
"is--group": isColGroup
|
|
1372
|
+
}
|
|
1373
|
+
],
|
|
1374
|
+
onDragstart: sortDragstartEvent,
|
|
1375
|
+
onDragend: sortDragendEvent,
|
|
1376
|
+
onDragover: sortDragoverEvent
|
|
1377
|
+
},
|
|
1378
|
+
tdVNs
|
|
1379
|
+
)
|
|
1203
1380
|
);
|
|
1204
1381
|
}
|
|
1205
1382
|
});
|
|
@@ -1249,26 +1426,37 @@ var panel_default = defineVxeComponent({
|
|
|
1249
1426
|
})
|
|
1250
1427
|
);
|
|
1251
1428
|
headVNs.push(
|
|
1252
|
-
h(
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1429
|
+
h(
|
|
1430
|
+
"th",
|
|
1431
|
+
{
|
|
1432
|
+
key: "av",
|
|
1433
|
+
class: "vxe-table-custom-popup--column-th col--checkbox"
|
|
1434
|
+
},
|
|
1435
|
+
[
|
|
1436
|
+
h(
|
|
1437
|
+
"div",
|
|
1438
|
+
{
|
|
1439
|
+
class: [
|
|
1440
|
+
"vxe-table-custom--checkbox-option",
|
|
1441
|
+
{
|
|
1442
|
+
"is--checked": isAllChecked,
|
|
1443
|
+
"is--indeterminate": isAllIndeterminate
|
|
1444
|
+
}
|
|
1445
|
+
],
|
|
1446
|
+
title: getI18n("vxe.table.allTitle"),
|
|
1447
|
+
onClick: allOptionEvent
|
|
1448
|
+
},
|
|
1449
|
+
[
|
|
1450
|
+
h("span", {
|
|
1451
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
1452
|
+
})
|
|
1453
|
+
// h('span', {
|
|
1454
|
+
// class: 'vxe-checkbox--label'
|
|
1455
|
+
// }, getI18n('vxe.toolbar.customAll'))
|
|
1456
|
+
]
|
|
1457
|
+
)
|
|
1458
|
+
]
|
|
1459
|
+
)
|
|
1272
1460
|
);
|
|
1273
1461
|
}
|
|
1274
1462
|
colVNs.push(
|
|
@@ -1278,10 +1466,14 @@ var panel_default = defineVxeComponent({
|
|
|
1278
1466
|
})
|
|
1279
1467
|
);
|
|
1280
1468
|
headVNs.push(
|
|
1281
|
-
h(
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1469
|
+
h(
|
|
1470
|
+
"th",
|
|
1471
|
+
{
|
|
1472
|
+
key: "at",
|
|
1473
|
+
class: "vxe-table-custom-popup--column-th col--title"
|
|
1474
|
+
},
|
|
1475
|
+
getI18n("vxe.custom.setting.colTitle")
|
|
1476
|
+
)
|
|
1285
1477
|
);
|
|
1286
1478
|
if (allowResizable) {
|
|
1287
1479
|
colVNs.push(
|
|
@@ -1291,10 +1483,14 @@ var panel_default = defineVxeComponent({
|
|
|
1291
1483
|
})
|
|
1292
1484
|
);
|
|
1293
1485
|
headVNs.push(
|
|
1294
|
-
h(
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1486
|
+
h(
|
|
1487
|
+
"th",
|
|
1488
|
+
{
|
|
1489
|
+
key: "aw",
|
|
1490
|
+
class: "vxe-table-custom-popup--column-th col--width"
|
|
1491
|
+
},
|
|
1492
|
+
getI18n("vxe.custom.setting.colResizable")
|
|
1493
|
+
)
|
|
1298
1494
|
);
|
|
1299
1495
|
}
|
|
1300
1496
|
if (allowFixed) {
|
|
@@ -1305,10 +1501,14 @@ var panel_default = defineVxeComponent({
|
|
|
1305
1501
|
})
|
|
1306
1502
|
);
|
|
1307
1503
|
headVNs.push(
|
|
1308
|
-
h(
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1504
|
+
h(
|
|
1505
|
+
"th",
|
|
1506
|
+
{
|
|
1507
|
+
key: "af",
|
|
1508
|
+
class: "vxe-table-custom-popup--column-th col--fixed"
|
|
1509
|
+
},
|
|
1510
|
+
getI18n(`vxe.custom.setting.${maxFixedSize ? "colFixedMax" : "colFixed"}`, [maxFixedSize])
|
|
1511
|
+
)
|
|
1312
1512
|
);
|
|
1313
1513
|
}
|
|
1314
1514
|
if (allowAlign) {
|
|
@@ -1319,10 +1519,14 @@ var panel_default = defineVxeComponent({
|
|
|
1319
1519
|
})
|
|
1320
1520
|
);
|
|
1321
1521
|
headVNs.push(
|
|
1322
|
-
h(
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1522
|
+
h(
|
|
1523
|
+
"th",
|
|
1524
|
+
{
|
|
1525
|
+
key: "aa",
|
|
1526
|
+
class: "vxe-table-custom-popup--column-th col--align"
|
|
1527
|
+
},
|
|
1528
|
+
getI18n("vxe.custom.setting.colAlign")
|
|
1529
|
+
)
|
|
1326
1530
|
);
|
|
1327
1531
|
}
|
|
1328
1532
|
if (allowHeaderAlign) {
|
|
@@ -1333,10 +1537,14 @@ var panel_default = defineVxeComponent({
|
|
|
1333
1537
|
})
|
|
1334
1538
|
);
|
|
1335
1539
|
headVNs.push(
|
|
1336
|
-
h(
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1540
|
+
h(
|
|
1541
|
+
"th",
|
|
1542
|
+
{
|
|
1543
|
+
key: "aha",
|
|
1544
|
+
class: "vxe-table-custom-popup--column-th col--header-align"
|
|
1545
|
+
},
|
|
1546
|
+
getI18n("vxe.custom.setting.colHeadAlign")
|
|
1547
|
+
)
|
|
1340
1548
|
);
|
|
1341
1549
|
}
|
|
1342
1550
|
if (allowFooterAlign) {
|
|
@@ -1347,131 +1555,173 @@ var panel_default = defineVxeComponent({
|
|
|
1347
1555
|
})
|
|
1348
1556
|
);
|
|
1349
1557
|
headVNs.push(
|
|
1350
|
-
h(
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1558
|
+
h(
|
|
1559
|
+
"th",
|
|
1560
|
+
{
|
|
1561
|
+
key: "afa",
|
|
1562
|
+
class: "vxe-table-custom-popup--column-th col--footer-align"
|
|
1563
|
+
},
|
|
1564
|
+
getI18n("vxe.custom.setting.colFootAlign")
|
|
1565
|
+
)
|
|
1354
1566
|
);
|
|
1355
1567
|
}
|
|
1356
1568
|
const scopedSlots = {
|
|
1357
1569
|
default: () => {
|
|
1358
|
-
return h(
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}
|
|
1375
|
-
h(
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1570
|
+
return h(
|
|
1571
|
+
"div",
|
|
1572
|
+
{
|
|
1573
|
+
ref: refBodyWrapperElem,
|
|
1574
|
+
class: [
|
|
1575
|
+
"vxe-table-custom-popup--body-wrapper",
|
|
1576
|
+
`agg-layout--${aggPlacement}`,
|
|
1577
|
+
{
|
|
1578
|
+
[`size--${vSize}`]: vSize
|
|
1579
|
+
}
|
|
1580
|
+
],
|
|
1581
|
+
style: panePopupStyle
|
|
1582
|
+
},
|
|
1583
|
+
defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
|
|
1584
|
+
!isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1585
|
+
customStore
|
|
1586
|
+
}) : renderEmptyElement($xeTable),
|
|
1587
|
+
h(
|
|
1588
|
+
"div",
|
|
1589
|
+
{
|
|
1590
|
+
ref: refCustomBodyElem,
|
|
1591
|
+
class: "vxe-table-custom-popup--handle-wrapper"
|
|
1592
|
+
},
|
|
1593
|
+
[
|
|
1594
|
+
topSlot ? h(
|
|
1595
|
+
"div",
|
|
1596
|
+
{
|
|
1597
|
+
class: "vxe-table-custom-popup--table-top"
|
|
1598
|
+
},
|
|
1599
|
+
$xeTable.callSlot(topSlot, params)
|
|
1600
|
+
) : renderEmptyElement($xeTable),
|
|
1601
|
+
h(
|
|
1602
|
+
"div",
|
|
1603
|
+
{
|
|
1604
|
+
class: "vxe-table-custom-popup--table-wrapper"
|
|
1605
|
+
},
|
|
1606
|
+
[
|
|
1607
|
+
h("table", {}, [
|
|
1608
|
+
h("colgroup", {}, colVNs),
|
|
1609
|
+
h("thead", {}, [h("tr", {}, headVNs)]),
|
|
1610
|
+
h(
|
|
1611
|
+
TransitionGroup,
|
|
1612
|
+
{
|
|
1613
|
+
class: "vxe-table-custom--panel-list",
|
|
1614
|
+
tag: "tbody",
|
|
1615
|
+
name: "vxe-table-custom--list"
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
default: () => renderPopupBodys()
|
|
1619
|
+
}
|
|
1620
|
+
)
|
|
1621
|
+
])
|
|
1622
|
+
]
|
|
1623
|
+
),
|
|
1624
|
+
bottomSlot ? h(
|
|
1625
|
+
"div",
|
|
1626
|
+
{
|
|
1627
|
+
class: "vxe-table-custom-popup--table-bottom"
|
|
1628
|
+
},
|
|
1629
|
+
$xeTable.callSlot(bottomSlot, params)
|
|
1630
|
+
) : renderEmptyElement($xeTable),
|
|
1631
|
+
renderDragTip()
|
|
1632
|
+
]
|
|
1633
|
+
),
|
|
1634
|
+
isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1635
|
+
customStore
|
|
1636
|
+
}) : renderEmptyElement($xeTable)
|
|
1637
|
+
]
|
|
1638
|
+
);
|
|
1401
1639
|
},
|
|
1402
1640
|
footer: () => {
|
|
1403
1641
|
if (footerSlot) {
|
|
1404
1642
|
return $xeTable.callSlot(footerSlot, params);
|
|
1405
1643
|
}
|
|
1406
|
-
return h(
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1644
|
+
return h(
|
|
1645
|
+
"div",
|
|
1646
|
+
{
|
|
1647
|
+
class: "vxe-table-custom-popup--footer"
|
|
1648
|
+
},
|
|
1649
|
+
[
|
|
1650
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1651
|
+
content: customOpts.resetButtonText || getI18n("vxe.custom.cstmRestore"),
|
|
1652
|
+
disabled: !isCustomStatus,
|
|
1653
|
+
onClick: resetCustomEvent
|
|
1654
|
+
}) : renderEmptyElement($xeTable),
|
|
1655
|
+
immediate ? VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1656
|
+
status: "primary",
|
|
1657
|
+
content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
|
|
1658
|
+
onClick: cancelCloseEvent
|
|
1659
|
+
}) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1660
|
+
content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
|
|
1661
|
+
onClick: cancelCustomEvent
|
|
1662
|
+
}) : renderEmptyElement($xeTable),
|
|
1663
|
+
immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
1664
|
+
status: "primary",
|
|
1665
|
+
content: customOpts.confirmButtonText || getI18n("vxe.custom.cstmConfirm"),
|
|
1666
|
+
onClick: confirmCustomEvent
|
|
1667
|
+
}) : renderEmptyElement($xeTable)
|
|
1668
|
+
]
|
|
1669
|
+
);
|
|
1428
1670
|
}
|
|
1429
1671
|
};
|
|
1430
1672
|
if (headerSlot) {
|
|
1431
1673
|
scopedSlots.header = () => $xeTable.callSlot(headerSlot, params);
|
|
1432
1674
|
}
|
|
1433
1675
|
if (mode === "drawer") {
|
|
1434
|
-
return VxeUIDrawerComponent ? h(
|
|
1435
|
-
|
|
1436
|
-
|
|
1676
|
+
return VxeUIDrawerComponent ? h(
|
|
1677
|
+
VxeUIDrawerComponent,
|
|
1678
|
+
{
|
|
1679
|
+
key: "drawer",
|
|
1680
|
+
className: ["vxe-table-custom-drawer-wrapper", "vxe-table--ignore-clear", drawerOpts.className || ""].join(" "),
|
|
1681
|
+
modelValue: customStore.visible,
|
|
1682
|
+
title: drawerOpts.title || getI18n("vxe.custom.cstmTitle"),
|
|
1683
|
+
width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
|
|
1684
|
+
position: drawerOpts.position,
|
|
1685
|
+
resize: !!drawerOpts.resize,
|
|
1686
|
+
escClosable: !!drawerOpts.escClosable,
|
|
1687
|
+
maskClosable: !!drawerOpts.maskClosable,
|
|
1688
|
+
destroyOnClose: true,
|
|
1689
|
+
showFooter: true,
|
|
1690
|
+
"onUpdate:modelValue"(value) {
|
|
1691
|
+
customStore.visible = value;
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
scopedSlots
|
|
1695
|
+
) : renderEmptyElement($xeTable);
|
|
1696
|
+
}
|
|
1697
|
+
return VxeUIModalComponent ? h(
|
|
1698
|
+
VxeUIModalComponent,
|
|
1699
|
+
{
|
|
1700
|
+
key: "modal",
|
|
1701
|
+
className: ["vxe-table-custom-modal-wrapper", "vxe-table--ignore-clear", modalOpts.className || ""].join(" "),
|
|
1437
1702
|
modelValue: customStore.visible,
|
|
1438
|
-
title:
|
|
1439
|
-
width:
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1703
|
+
title: modalOpts.title || getI18n("vxe.custom.cstmTitle"),
|
|
1704
|
+
width: modalOpts.width || Math.min(1e3, document.documentElement.clientWidth),
|
|
1705
|
+
minWidth: modalOpts.minWidth || 800,
|
|
1706
|
+
height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
|
|
1707
|
+
minHeight: modalOpts.minHeight || 400,
|
|
1708
|
+
showZoom: modalOpts.showZoom,
|
|
1709
|
+
showMaximize: modalOpts.showMaximize,
|
|
1710
|
+
showMinimize: modalOpts.showMinimize,
|
|
1711
|
+
mask: modalOpts.mask,
|
|
1712
|
+
lockView: modalOpts.lockView,
|
|
1713
|
+
resize: modalOpts.resize,
|
|
1714
|
+
transfer: modalOpts.transfer,
|
|
1715
|
+
escClosable: !!modalOpts.escClosable,
|
|
1716
|
+
maskClosable: !!modalOpts.maskClosable,
|
|
1444
1717
|
destroyOnClose: true,
|
|
1445
1718
|
showFooter: true,
|
|
1446
1719
|
"onUpdate:modelValue"(value) {
|
|
1447
1720
|
customStore.visible = value;
|
|
1448
1721
|
}
|
|
1449
|
-
},
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
key: "modal",
|
|
1453
|
-
className: ["vxe-table-custom-modal-wrapper", "vxe-table--ignore-clear", modalOpts.className || ""].join(" "),
|
|
1454
|
-
modelValue: customStore.visible,
|
|
1455
|
-
title: modalOpts.title || getI18n("vxe.custom.cstmTitle"),
|
|
1456
|
-
width: modalOpts.width || Math.min(1e3, document.documentElement.clientWidth),
|
|
1457
|
-
minWidth: modalOpts.minWidth || 800,
|
|
1458
|
-
height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
|
|
1459
|
-
minHeight: modalOpts.minHeight || 400,
|
|
1460
|
-
showZoom: modalOpts.showZoom,
|
|
1461
|
-
showMaximize: modalOpts.showMaximize,
|
|
1462
|
-
showMinimize: modalOpts.showMinimize,
|
|
1463
|
-
mask: modalOpts.mask,
|
|
1464
|
-
lockView: modalOpts.lockView,
|
|
1465
|
-
resize: modalOpts.resize,
|
|
1466
|
-
transfer: modalOpts.transfer,
|
|
1467
|
-
escClosable: !!modalOpts.escClosable,
|
|
1468
|
-
maskClosable: !!modalOpts.maskClosable,
|
|
1469
|
-
destroyOnClose: true,
|
|
1470
|
-
showFooter: true,
|
|
1471
|
-
"onUpdate:modelValue"(value) {
|
|
1472
|
-
customStore.visible = value;
|
|
1473
|
-
}
|
|
1474
|
-
}, scopedSlots) : renderEmptyElement($xeTable);
|
|
1722
|
+
},
|
|
1723
|
+
scopedSlots
|
|
1724
|
+
) : renderEmptyElement($xeTable);
|
|
1475
1725
|
};
|
|
1476
1726
|
const renderVN = () => {
|
|
1477
1727
|
const customOpts = computeCustomOpts.value;
|