<template>
	<el-checkbox v-model="editValue"/>
</template>

<script>
	export default {
		name: "EnabledSetter",
		props: ['target'],
		computed: {
			editValue: {
				get() {
					return !this.target.disabled;
				},
				set(v) {
					this.$set(this.target, 'disabled', !v);
				}
			}
		},
		methods: {}
	}
</script>

<style scoped>

</style>