[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

@@ -73,6 +73,7 @@
<script>
import create from '../utils/create';
import CellMixin from '../mixins/cell';
import { isObj } from '../utils';
export default create({
@@ -80,16 +81,12 @@ export default create({
inheritAttrs: false,
mixins: [CellMixin],
props: {
value: [String, Number],
icon: String,
label: String,
error: Boolean,
center: Boolean,
isLink: Boolean,
leftIcon: String,
readonly: Boolean,
required: Boolean,
clearable: Boolean,
labelAlign: String,
inputAlign: String,
@@ -99,10 +96,6 @@ export default create({
type: {
type: String,
default: 'text'
},
border: {
type: Boolean,
default: true
}
},