江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
787 B

<template>
<u-checkbox-group
v-model="value"
placement="row"
@change="checkboxChange"
>
<u-checkbox
:customStyle="{marginRight: '8px'}"
v-for="(item, index) in checkData"
:key="index"
:label="item.name"
:name="item.id"
>
</u-checkbox>
</u-checkbox-group>
</template>
<script>
export default {
props: {
checkData: {
type: Array,
default: []
}
},
data() {
return {
value: []
}
},
mounted() {
this.$on('upDateCheck',(val)=>{
this.value = val
})
},
methods: {
checkboxChange(val) {
this.$emit('changeCheck', val)
}
}
}
</script>
<style>
</style>