<template>
  <div>
    <el-form-item label="是否禁用">
      <el-switch v-model="main.activeOption.disabled"></el-switch>
    </el-form-item>
    <el-form-item label="开关宽度">
      <el-input-number v-model="main.activeOption.width" :min="20"></el-input-number>
    </el-form-item>
    <el-form-item label="打开时文字">
      <el-input v-model="main.activeOption.activeText"></el-input>
    </el-form-item>
    <el-form-item label="关闭时文字">
      <el-input v-model="main.activeOption.inactiveText"></el-input>
    </el-form-item>
    <el-form-item label="打开时的值">
      <el-input v-model="main.activeOption.activeValue"></el-input>
    </el-form-item>
    <el-form-item label="关闭时的值">
      <el-input v-model="main.activeOption.inactiveValue"></el-input>
    </el-form-item>
    <el-form-item label="打开时背景色">
      <el-color-picker v-model="main.activeOption.activeColor"></el-color-picker>
    </el-form-item>
    <el-form-item label="关闭时背景色">
      <el-color-picker v-model="main.activeOption.inactiveColor"></el-color-picker>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: 'switch',
  inject: ["main"]
}
</script> 