[improvement] add Cell props mixin (#2189)

This commit is contained in:
neverland
2018-11-30 15:45:50 +08:00
committed by GitHub
parent fe805af905
commit d8ff9f3d34
8 changed files with 45 additions and 38 deletions

View File

@@ -52,6 +52,7 @@
<script>
import Icon from '../icon';
import CellMixin from '../mixins/cell';
import RouterLink from '../mixins/router-link';
import create from '../utils/create-basic';
@@ -62,26 +63,12 @@ export default create({
Icon
},
mixins: [RouterLink],
mixins: [CellMixin, RouterLink],
props: {
icon: String,
size: String,
center: Boolean,
isLink: Boolean,
required: Boolean,
clickable: Boolean,
titleClass: String,
valueClass: String,
labelClass: String,
title: [String, Number],
value: [String, Number],
label: [String, Number],
arrowDirection: String,
border: {
type: Boolean,
default: true
}
arrowDirection: String
},
computed: {