[breaking change] Cell: show active color when clicked (#497)

This commit is contained in:
neverland
2017-12-29 17:09:50 +08:00
committed by GitHub
parent b8ccd48648
commit 98ece3ab8f
15 changed files with 48 additions and 27 deletions

View File

@@ -78,6 +78,8 @@ Vue.use(CellGroup);
| url | Link | `String` | - | - |
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |
| border | Whether to show inner border | `Boolean` | `true` | - |
| clickable | Whether to show click feedback when clicked | `Boolean` | `false` | - |
| is-link | Whether to show link icon | `Boolean` | `false` | - |
| required | Whether to show required mark | `Boolean` | `false` | - |

View File

@@ -85,7 +85,9 @@ Vue.use(CellGroup);
| url | 跳转链接 | `String` | - | - |
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - |
| replace | 跳转时是否替换当前 history | `String` | `false` | - |
| is-link | 是否展示右侧箭头 | `Boolean` | `false` | - |
| border | 是否显示内边框 | `Boolean` | `true` | - |
| clickable | 是否开启点击反馈 | `Boolean` | `false` | - |
| is-link | 是否展示右侧箭头并开启点击反馈 | `Boolean` | `false` | - |
| required | 是否显示表单必填符号 | `Boolean` | `false` | - |
### Slot

View File

@@ -80,6 +80,10 @@ export default {
position: relative;
user-select: none;
&:active {
background-color: $active-color;
}
&--open {
color: #999;
}