[new feature] SwitchCell: add active-value & inactive-value prop (#2591)

This commit is contained in:
neverland
2019-01-22 22:23:38 +08:00
committed by GitHub
parent a16786b5ad
commit e81902b4cf
3 changed files with 19 additions and 4 deletions
+9 -1
View File
@@ -24,13 +24,21 @@ export default create({
},
props: {
value: null,
title: String,
value: Boolean,
border: Boolean,
loading: Boolean,
disabled: Boolean,
activeColor: String,
inactiveColor: String,
activeValue: {
type: null,
default: true
},
inactiveValue: {
type: null,
default: false
},
size: {
type: String,
default: '24px'