Commit 5977dcad by fukai

支持checkbox的X转换

parent 360bbfdc
...@@ -19,10 +19,13 @@ export default { ...@@ -19,10 +19,13 @@ export default {
computed: { computed: {
model: { model: {
get () { get () {
return this.value if(this.value)
return true
else
return false
}, },
set (newVal) { set (newVal) {
this.$emit('input', newVal) this.$emit('input', newVal?"X":"")
} }
}, },
mode () { mode () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment