<template>
  <div>
    <el-form-item label="最小值">
      <el-input-number v-model="main.activeOption.min"></el-input-number>
    </el-form-item>
    <el-form-item label="最大值">
      <el-input-number v-model="main.activeOption.max"></el-input-number>
    </el-form-item>
    <el-form-item label="步长">
      <el-input-number v-model="main.activeOption.step" :min="1"></el-input-number>
    </el-form-item>
    <el-form-item label="是否禁用">
      <el-switch v-model="main.activeOption.disabled"></el-switch>
    </el-form-item>
    <el-form-item label="显示输入框">
      <el-switch v-model="main.activeOption.showInput"></el-switch>
    </el-form-item>
    <el-form-item label="范围选择">
      <el-switch v-model="main.activeOption.range"></el-switch>
    </el-form-item>
    <el-form-item label="竖向模式">
      <el-switch v-model="main.activeOption.vertical"></el-switch>
    </el-form-item>
    <el-form-item label="显示间断点">
      <el-switch v-model="main.activeOption.showStops"></el-switch>
    </el-form-item>
    <el-form-item label="显示提示">
      <el-switch v-model="main.activeOption.showTooltip"></el-switch>
    </el-form-item>
    <el-form-item label="高度" v-if="main.activeOption.vertical">
      <el-input v-model="main.activeOption.height"></el-input>
    </el-form-item>
  </div>
</template>

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