vxe-table 3.8.20 → 3.8.21
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/lib/edit/src/mixin.js +2 -2
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/mixin.js +1 -1
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +139 -120
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +56 -37
- package/lib/table/src/methods.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +78 -78
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/package.json +1 -1
- package/packages/edit/src/mixin.js +2 -2
- package/packages/export/src/mixin.js +1 -1
- package/packages/table/src/methods.js +46 -23
- package/packages/v-x-e-table/src/renderer.js +78 -78
- /package/lib/icon/style/{iconfont.1724204493937.ttf → iconfont.1724212116436.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1724204493937.woff → iconfont.1724212116436.woff} +0 -0
- /package/lib/icon/style/{iconfont.1724204493937.woff2 → iconfont.1724212116436.woff2} +0 -0
- /package/lib/{iconfont.1724204493937.ttf → iconfont.1724212116436.ttf} +0 -0
- /package/lib/{iconfont.1724204493937.woff → iconfont.1724212116436.woff} +0 -0
- /package/lib/{iconfont.1724204493937.woff2 → iconfont.1724212116436.woff2} +0 -0
|
@@ -665,25 +665,25 @@ function oldFormItemRadioAndCheckboxRender (h, renderOpts, params) {
|
|
|
665
665
|
*/
|
|
666
666
|
const renderMap = {
|
|
667
667
|
input: {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
668
|
+
tableAutofocus: 'input',
|
|
669
|
+
renderTableEdit: nativeEditRender,
|
|
670
|
+
renderTableDefault: nativeEditRender,
|
|
671
|
+
renderTableFilter: nativeFilterRender,
|
|
672
|
+
defaultTableFilterMethod: handleInputFilterMethod,
|
|
673
|
+
renderFormItemContent: nativeItemRender
|
|
674
674
|
},
|
|
675
675
|
textarea: {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
676
|
+
tableAutofocus: 'textarea',
|
|
677
|
+
renderTableEdit: nativeEditRender,
|
|
678
|
+
renderFormItemContent: nativeItemRender
|
|
679
679
|
},
|
|
680
680
|
select: {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
681
|
+
renderTableEdit: nativeSelectEditRender,
|
|
682
|
+
renderTableDefault: nativeSelectEditRender,
|
|
683
|
+
renderTableCell (h, renderOpts, params) {
|
|
684
684
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params))
|
|
685
685
|
},
|
|
686
|
-
|
|
686
|
+
renderTableFilter (h, renderOpts, params) {
|
|
687
687
|
const { column } = params
|
|
688
688
|
return column.filters.map((option, oIndex) => {
|
|
689
689
|
return h('select', {
|
|
@@ -695,8 +695,8 @@ const renderMap = {
|
|
|
695
695
|
renderOpts.optionGroups ? renderNativeOptgroups(h, renderOpts, params, renderNativeOptions) : renderNativeOptions(h, renderOpts.options, renderOpts, params))
|
|
696
696
|
})
|
|
697
697
|
},
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
defaultTableFilterMethod: handleFilterMethod,
|
|
699
|
+
renderFormItemContent (h, renderOpts, params) {
|
|
700
700
|
return [
|
|
701
701
|
h('select', {
|
|
702
702
|
class: 'vxe-default-select',
|
|
@@ -706,12 +706,12 @@ const renderMap = {
|
|
|
706
706
|
renderOpts.optionGroups ? renderNativeOptgroups(h, renderOpts, params, renderNativeFormOptions) : renderNativeFormOptions(h, renderOpts.options, renderOpts, params))
|
|
707
707
|
]
|
|
708
708
|
},
|
|
709
|
-
|
|
709
|
+
tableExportMethod: handleExportSelectMethod
|
|
710
710
|
},
|
|
711
711
|
VxeInput: {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
712
|
+
tableAutofocus: '.vxe-input--inner',
|
|
713
|
+
renderTableEdit: defaultEditRender,
|
|
714
|
+
renderTableCell (h, renderOpts, params) {
|
|
715
715
|
const { props = {} } = renderOpts
|
|
716
716
|
const { row, column } = params
|
|
717
717
|
const digits = props.digits || GlobalConfig.input.digits
|
|
@@ -732,22 +732,22 @@ const renderMap = {
|
|
|
732
732
|
}
|
|
733
733
|
return getCellLabelVNs(h, renderOpts, params, cellValue)
|
|
734
734
|
},
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
735
|
+
renderTableDefault: defaultEditRender,
|
|
736
|
+
renderTableFilter: defaultFilterRender,
|
|
737
|
+
defaultTableFilterMethod: handleInputFilterMethod,
|
|
738
|
+
renderFormItemContent: defaultItemRender
|
|
739
739
|
},
|
|
740
740
|
VxeTextarea: {
|
|
741
|
-
|
|
742
|
-
|
|
741
|
+
tableAutofocus: '.vxe-textarea--inner',
|
|
742
|
+
renderFormItemContent: defaultItemRender
|
|
743
743
|
},
|
|
744
744
|
VxeButton: {
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
renderTableDefault: defaultCellRender,
|
|
746
|
+
renderFormItemContent: defaultFormItemRender
|
|
747
747
|
},
|
|
748
748
|
VxeButtonGroup: {
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
renderTableDefault: defaultCellRender,
|
|
750
|
+
renderFormItemContent (h, renderOpts, params) {
|
|
751
751
|
const { options } = renderOpts
|
|
752
752
|
const { data, property } = params
|
|
753
753
|
const itemValue = XEUtils.get(data, property)
|
|
@@ -761,13 +761,13 @@ const renderMap = {
|
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
763
|
VxeSelect: {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
764
|
+
tableAutofocus: '.vxe-input--inner',
|
|
765
|
+
renderTableEdit: defaultSelectEditRender,
|
|
766
|
+
renderTableDefault: defaultSelectEditRender,
|
|
767
|
+
renderTableCell (h, renderOpts, params) {
|
|
768
768
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params))
|
|
769
769
|
},
|
|
770
|
-
|
|
770
|
+
renderTableFilter (h, renderOpts, params) {
|
|
771
771
|
const { column } = params
|
|
772
772
|
const { options, optionProps, optionGroups, optionGroupProps } = renderOpts
|
|
773
773
|
const nativeOn = getNativeOns(renderOpts, params)
|
|
@@ -781,8 +781,8 @@ const renderMap = {
|
|
|
781
781
|
})
|
|
782
782
|
})
|
|
783
783
|
},
|
|
784
|
-
|
|
785
|
-
|
|
784
|
+
defaultTableFilterMethod: handleFilterMethod,
|
|
785
|
+
renderFormItemContent (h, renderOpts, params) {
|
|
786
786
|
const { data, property } = params
|
|
787
787
|
const { options, optionProps, optionGroups, optionGroupProps } = renderOpts
|
|
788
788
|
const itemValue = XEUtils.get(data, property)
|
|
@@ -794,36 +794,36 @@ const renderMap = {
|
|
|
794
794
|
})
|
|
795
795
|
]
|
|
796
796
|
},
|
|
797
|
-
|
|
797
|
+
tableExportMethod: handleExportSelectMethod
|
|
798
798
|
},
|
|
799
799
|
VxeRadio: {
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
tableAutofocus: '.vxe-radio--input',
|
|
801
|
+
renderFormItemContent: defaultFormItemRender
|
|
802
802
|
},
|
|
803
803
|
VxeRadioGroup: {
|
|
804
|
-
|
|
805
|
-
|
|
804
|
+
tableAutofocus: '.vxe-radio--input',
|
|
805
|
+
renderFormItemContent: formItemRadioAndCheckboxRender
|
|
806
806
|
},
|
|
807
807
|
VxeCheckbox: {
|
|
808
|
-
|
|
809
|
-
|
|
808
|
+
tableAutofocus: '.vxe-checkbox--input',
|
|
809
|
+
renderFormItemContent: defaultFormItemRender
|
|
810
810
|
},
|
|
811
811
|
VxeCheckboxGroup: {
|
|
812
|
-
|
|
813
|
-
|
|
812
|
+
tableAutofocus: '.vxe-checkbox--input',
|
|
813
|
+
renderFormItemContent: formItemRadioAndCheckboxRender
|
|
814
814
|
},
|
|
815
815
|
VxeSwitch: {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
816
|
+
tableAutofocus: '.vxe-switch--button',
|
|
817
|
+
renderTableEdit: defaultEditRender,
|
|
818
|
+
renderTableDefault: defaultEditRender,
|
|
819
|
+
renderFormItemContent: defaultItemRender
|
|
820
820
|
},
|
|
821
821
|
|
|
822
822
|
// 以下已废弃
|
|
823
823
|
$input: {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
824
|
+
tableAutofocus: '.vxe-input--inner',
|
|
825
|
+
renderTableEdit: oldEditRender,
|
|
826
|
+
renderTableCell (h, renderOpts, params) {
|
|
827
827
|
const { props = {} } = renderOpts
|
|
828
828
|
const { row, column } = params
|
|
829
829
|
const digits = props.digits || GlobalConfig.input.digits
|
|
@@ -843,31 +843,31 @@ const renderMap = {
|
|
|
843
843
|
}
|
|
844
844
|
return getCellLabelVNs(h, renderOpts, params, cellValue)
|
|
845
845
|
},
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
846
|
+
renderTableDefault: oldEditRender,
|
|
847
|
+
renderTableFilter: oldFilterRender,
|
|
848
|
+
defaultTableFilterMethod: handleInputFilterMethod,
|
|
849
|
+
renderFormItemContent: oldItemRender
|
|
850
850
|
},
|
|
851
851
|
$textarea: {
|
|
852
|
-
|
|
853
|
-
|
|
852
|
+
tableAutofocus: '.vxe-textarea--inner',
|
|
853
|
+
renderFormItemContent: oldItemRender
|
|
854
854
|
},
|
|
855
855
|
$button: {
|
|
856
|
-
|
|
857
|
-
|
|
856
|
+
renderTableDefault: oldButtonEditRender,
|
|
857
|
+
renderFormItemContent: oldButtonItemRender
|
|
858
858
|
},
|
|
859
859
|
$buttons: {
|
|
860
|
-
|
|
861
|
-
|
|
860
|
+
renderTableDefault: oldButtonsEditRender,
|
|
861
|
+
renderFormItemContent: oldButtonsItemRender
|
|
862
862
|
},
|
|
863
863
|
$select: {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
864
|
+
tableAutofocus: '.vxe-input--inner',
|
|
865
|
+
renderTableEdit: oldSelectEditRender,
|
|
866
|
+
renderTableDefault: oldSelectEditRender,
|
|
867
|
+
renderTableCell (h, renderOpts, params) {
|
|
868
868
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params))
|
|
869
869
|
},
|
|
870
|
-
|
|
870
|
+
renderTableFilter (h, renderOpts, params) {
|
|
871
871
|
const { column } = params
|
|
872
872
|
const { options, optionProps, optionGroups, optionGroupProps } = renderOpts
|
|
873
873
|
const nativeOn = getNativeOns(renderOpts, params)
|
|
@@ -881,8 +881,8 @@ const renderMap = {
|
|
|
881
881
|
})
|
|
882
882
|
})
|
|
883
883
|
},
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
defaultTableFilterMethod: handleFilterMethod,
|
|
885
|
+
renderFormItemContent (h, renderOpts, params) {
|
|
886
886
|
const { data, property } = params
|
|
887
887
|
const { options, optionProps, optionGroups, optionGroupProps } = renderOpts
|
|
888
888
|
const itemValue = XEUtils.get(data, property)
|
|
@@ -894,21 +894,21 @@ const renderMap = {
|
|
|
894
894
|
})
|
|
895
895
|
]
|
|
896
896
|
},
|
|
897
|
-
|
|
897
|
+
tableExportMethod: handleExportSelectMethod
|
|
898
898
|
},
|
|
899
899
|
$radio: {
|
|
900
|
-
|
|
901
|
-
|
|
900
|
+
tableAutofocus: '.vxe-radio--input',
|
|
901
|
+
renderFormItemContent: oldFormItemRadioAndCheckboxRender
|
|
902
902
|
},
|
|
903
903
|
$checkbox: {
|
|
904
|
-
|
|
905
|
-
|
|
904
|
+
tableAutofocus: '.vxe-checkbox--input',
|
|
905
|
+
renderFormItemContent: oldFormItemRadioAndCheckboxRender
|
|
906
906
|
},
|
|
907
907
|
$switch: {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
908
|
+
tableAutofocus: '.vxe-switch--button',
|
|
909
|
+
renderTableEdit: oldEditRender,
|
|
910
|
+
renderTableDefault: oldEditRender,
|
|
911
|
+
renderFormItemContent: oldItemRender
|
|
912
912
|
}
|
|
913
913
|
// 以上已废弃
|
|
914
914
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|