mirror of https://github.com/ElemeFE/element
remove obsolete migrating hints (#2055)
parent
119188a634
commit
bdd0604bd0
|
@ -1,14 +1,11 @@
|
||||||
import Pager from './pager.vue';
|
import Pager from './pager.vue';
|
||||||
import ElSelect from 'element-ui/packages/select';
|
import ElSelect from 'element-ui/packages/select';
|
||||||
import ElOption from 'element-ui/packages/option';
|
import ElOption from 'element-ui/packages/option';
|
||||||
import Migrating from 'element-ui/src/mixins/migrating';
|
|
||||||
import Locale from 'element-ui/src/mixins/locale';
|
import Locale from 'element-ui/src/mixins/locale';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ElPagination',
|
name: 'ElPagination',
|
||||||
|
|
||||||
mixins: [Migrating],
|
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
pageSize: {
|
pageSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
@ -235,16 +232,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getMigratingConfig() {
|
|
||||||
return {
|
|
||||||
props: {},
|
|
||||||
events: {
|
|
||||||
'currentchange': 'Pagination: currentchange has been renamed to current-change',
|
|
||||||
'sizechange': 'Pagination: sizechange has been renamed to size-change'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
this.internalCurrentPage = this.getValidCurrentPage(val);
|
this.internalCurrentPage = this.getValidCurrentPage(val);
|
||||||
},
|
},
|
||||||
|
|
|
@ -106,7 +106,6 @@
|
||||||
|
|
||||||
<script type="text/babel">
|
<script type="text/babel">
|
||||||
import ElCheckbox from 'element-ui/packages/checkbox';
|
import ElCheckbox from 'element-ui/packages/checkbox';
|
||||||
import Migrating from 'element-ui/src/mixins/migrating';
|
|
||||||
import throttle from 'throttle-debounce/throttle';
|
import throttle from 'throttle-debounce/throttle';
|
||||||
import debounce from 'throttle-debounce/debounce';
|
import debounce from 'throttle-debounce/debounce';
|
||||||
import { addResizeListener, removeResizeListener } from 'element-ui/src/utils/resize-event';
|
import { addResizeListener, removeResizeListener } from 'element-ui/src/utils/resize-event';
|
||||||
|
@ -122,7 +121,7 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'el-table',
|
name: 'el-table',
|
||||||
|
|
||||||
mixins: [Migrating, Locale],
|
mixins: [Locale],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
data: {
|
data: {
|
||||||
|
@ -180,24 +179,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getMigratingConfig() {
|
|
||||||
return {
|
|
||||||
props: {
|
|
||||||
'allow-no-selection': 'Table: allow-no-selection has been removed.',
|
|
||||||
'selection-mode': 'Table: selection-mode has been removed.',
|
|
||||||
'fixed-column-count': 'Table: fixed-column-count has been removed. Use fixed prop in TableColumn instead.',
|
|
||||||
'custom-criteria': 'Table: custom-criteria has been removed. Use row-class-name instead.',
|
|
||||||
'custom-background-colors': 'custom-background-colors has been removed. Use row-class-name instead.'
|
|
||||||
},
|
|
||||||
events: {
|
|
||||||
selectionchange: 'Table: selectionchange has been renamed to selection-change.',
|
|
||||||
cellmouseenter: 'Table: cellmouseenter has been renamed to cell-mouse-enter.',
|
|
||||||
cellmouseleave: 'Table: cellmouseleave has been renamed to cell-mouse-leave.',
|
|
||||||
cellclick: 'Table: cellclick has been renamed to cell-click.'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
toggleRowSelection(row, selected) {
|
toggleRowSelection(row, selected) {
|
||||||
this.store.toggleRowSelection(row, selected);
|
this.store.toggleRowSelection(row, selected);
|
||||||
this.store.updateAllSelected();
|
this.store.updateAllSelected();
|
||||||
|
|
Loading…
Reference in New Issue