[improvement] SwitchCell: jsx (#2656)

This commit is contained in:
neverland
2019-01-31 14:37:24 +08:00
committed by GitHub
parent 1c70cf6ead
commit 9183849e6a
11 changed files with 82 additions and 118 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
import Icon from '../icon';
import findParent from './find-parent';
export default ({ parent, bem }) => ({
export default (parent, bem) => ({
mixins: [findParent],
props: {
+25
View File
@@ -0,0 +1,25 @@
/**
* Common Switch Props
*/
export default {
props: {
value: null,
loading: Boolean,
disabled: Boolean,
activeColor: String,
inactiveColor: String,
activeValue: {
type: null,
default: true
},
inactiveValue: {
type: null,
default: false
},
size: {
type: String,
default: '30px'
}
}
};