Browse Source

Merge pull request #49 from ant-design/pagination

Pagination
pull/54/head
偏右 9 years ago
parent
commit
541eca68c1
  1. 16
      package.json
  2. 38
      style/components/pagination.less

16
package.json

@ -15,7 +15,9 @@
"framework", "framework",
"frontend" "frontend"
], ],
"contributors": ["ant"], "contributors": [
"ant"
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/ant-design/ant-design" "url": "https://github.com/ant-design/ant-design"
@ -24,30 +26,32 @@
"url": "https://github.com/ant-design/ant-design/issues" "url": "https://github.com/ant-design/ant-design/issues"
}, },
"main": "lib/index", "main": "lib/index",
"files": ["lib"], "files": [
"lib"
],
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"gregorian-calendar": "~3.0.0", "gregorian-calendar": "~3.0.0",
"gregorian-calendar-format": "~3.0.1", "gregorian-calendar-format": "~3.0.1",
"object-assign": "~3.0.0", "object-assign": "~3.0.0",
"rc-calendar": "~3.10.0", "rc-calendar": "~3.10.0",
"rc-checkbox": "~1.0.6",
"rc-collapse": "~1.2.2", "rc-collapse": "~1.2.2",
"rc-dialog": "~4.4.0", "rc-dialog": "~4.4.0",
"rc-dropdown": "~1.1.1", "rc-dropdown": "~1.1.1",
"rc-input-number": "~2.0.1", "rc-input-number": "~2.0.1",
"rc-menu": "~3.4.2", "rc-menu": "~3.4.2",
"rc-notification": "~1.0.1", "rc-notification": "~1.0.1",
"rc-pagination": "^1.0.0", "rc-pagination": "~1.0.0",
"rc-progress": "~1.0.0", "rc-progress": "~1.0.0",
"rc-radio": "~2.0.0",
"rc-select": "~4.4.0", "rc-select": "~4.4.0",
"rc-slider": "~1.2.6", "rc-slider": "~1.2.6",
"rc-steps": "~1.1.4", "rc-steps": "~1.1.4",
"rc-switch": "~1.2.0", "rc-switch": "~1.2.0",
"rc-table": "~3.1.0", "rc-table": "~3.1.0",
"rc-tabs": "~5.2.0", "rc-tabs": "~5.2.0",
"rc-tooltip": "~2.4.0", "rc-tooltip": "~2.4.0"
"rc-checkbox":"~1.0.0",
"rc-radio":"~2.0.0"
}, },
"devDependencies": { "devDependencies": {
"css-animation": "~1.0.3", "css-animation": "~1.0.3",

38
style/components/pagination.less

@ -53,6 +53,7 @@
} }
&-jump-prev, &-jump-next { &-jump-prev, &-jump-next {
&:after { &:after {
content: "•••"; content: "•••";
display: block; display: block;
@ -65,6 +66,9 @@
&:hover { &:hover {
&:after { &:after {
color: @primary-color; color: @primary-color;
font-size: 8px;
letter-spacing: -1px;
font-family: "anticon";
} }
} }
@ -73,7 +77,8 @@
&-jump-prev { &-jump-prev {
&:hover { &:hover {
&:after { &:after {
content: "‹‹"; content: "\e611\e611";
transform: rotate(180deg);
} }
} }
} }
@ -81,7 +86,7 @@
&-jump-next { &-jump-next {
&:hover { &:hover {
&:after { &:after {
content: "››"; content: "\e611\e611";
} }
} }
} }
@ -112,8 +117,12 @@
color: #666; color: #666;
&:after { &:after {
display: block; display: block;
margin-top: -2px; height: 28px;
line-height: 28px;
font-size: 8px;
font-family: "anticon";
} }
} }
&:hover { &:hover {
@ -126,13 +135,21 @@
} }
&-prev { &-prev {
a:after { a {
content: "‹"; &:after {
content: "\e611";
display: block;
transform: rotate(180deg);
}
} }
} }
&-next { &-next {
a:after { a {
content: "›"; &:after {
content: "\e611";
display: block;
}
} }
} }
@ -225,6 +242,13 @@
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
border: none; border: none;
a {
&:after {
height: 20px;
line-height: 20px;
}
}
} }
&.mini &-jump-prev, &.mini &-jump-next { &.mini &-jump-prev, &.mini &-jump-next {

Loading…
Cancel
Save