Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
bdd0604b
Commit
bdd0604b
authored
Dec 29, 2016
by
杨奕
Committed by
FuryBean
Dec 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove obsolete migrating hints (#2055)
parent
119188a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
33 deletions
+1
-33
packages/pagination/src/pagination.js
packages/pagination/src/pagination.js
+0
-13
packages/table/src/table.vue
packages/table/src/table.vue
+1
-20
No files found.
packages/pagination/src/pagination.js
View file @
bdd0604b
import
Pager
from
'
./pager.vue
'
;
import
ElSelect
from
'
element-ui/packages/select
'
;
import
ElOption
from
'
element-ui/packages/option
'
;
import
Migrating
from
'
element-ui/src/mixins/migrating
'
;
import
Locale
from
'
element-ui/src/mixins/locale
'
;
export
default
{
name
:
'
ElPagination
'
,
mixins
:
[
Migrating
],
props
:
{
pageSize
:
{
type
:
Number
,
...
...
@@ -235,16 +232,6 @@ export default {
},
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
)
{
this
.
internalCurrentPage
=
this
.
getValidCurrentPage
(
val
);
},
...
...
packages/table/src/table.vue
View file @
bdd0604b
...
...
@@ -106,7 +106,6 @@
<
script
type=
"text/babel"
>
import
ElCheckbox
from
'
element-ui/packages/checkbox
'
;
import
Migrating
from
'
element-ui/src/mixins/migrating
'
;
import
throttle
from
'
throttle-debounce/throttle
'
;
import
debounce
from
'
throttle-debounce/debounce
'
;
import
{
addResizeListener
,
removeResizeListener
}
from
'
element-ui/src/utils/resize-event
'
;
...
...
@@ -122,7 +121,7 @@
export
default
{
name
:
'
el-table
'
,
mixins
:
[
Migrating
,
Locale
],
mixins
:
[
Locale
],
props
:
{
data
:
{
...
...
@@ -180,24 +179,6 @@
},
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
)
{
this
.
store
.
toggleRowSelection
(
row
,
selected
);
this
.
store
.
updateAllSelected
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment