<template>
  <div style="padding: 0px 10px;">
    <el-form :model="opts" label-position="left" :rules="rules" label-width="100px" class="demo-ruleForm">
      <el-form-item label="栅格" prop="span">
        <el-slider v-model="opts.span" :step="1" :min="1" :max="24" />
      </el-form-item>
      <el-form-item label="类型" prop="type">
        <el-select v-model="opts.type">
          <el-option label="slect（默认)" value="select" />
          <el-option label="cascader（级联）" value="cascader" />
        </el-select>
      </el-form-item>
      <el-form-item label="name" prop="name">
        <el-input v-model="opts.name" placeholder="name" />
      </el-form-item>
      <el-form-item label="标签" prop="labelName">
        <el-input v-model="opts.labelName" />
      </el-form-item>
      <el-form-item label="label" prop="label">
        <el-input v-model="opts.label" />
      </el-form-item>
      <el-form-item label="placeholder" prop="placeholder">
        <el-input v-model="opts.placeholder" placeholder="占位文本" />
      </el-form-item>
      <el-form-item label="禁用" prop="disabled">
        <el-switch v-model="opts.disabled" />
      </el-form-item>
      <el-form-item label="显示清空" prop="clearable">
        <el-switch v-model="opts.clearable" />
      </el-form-item>
      <el-form-item label="多选" prop="multiple">
        <el-switch v-model="opts.multiple" />
      </el-form-item>
      <el-form-item label="搜索" prop="filterable">
        <el-switch v-model="opts.filterable" />
      </el-form-item>
      <el-form-item label="折叠tag" prop="tags">
        <el-switch v-model="opts.tags" />
      </el-form-item>
      <el-form-item label="选项分隔符(级联)" prop="separator">
        <el-input v-model="opts.separator" placeholder="默认值为/" />
      </el-form-item>
      <el-form-item label="悬浮触发(级联)" prop="props">
        <el-switch v-model="opts.props" />
      </el-form-item>
      <el-form-item label="显示完整层级(级联)" prop="levels">
        <el-switch v-model="opts.levels" />
      </el-form-item>
      <el-form-item label="选择任意一级选择(级联)" prop="checkStrictly">
        <el-switch v-model="opts.checkStrictly" />
      </el-form-item>

      <el-button>保存</el-button>
    </el-form>
  </div>
</template>

<script>
import ApDevPropBase from './base/ApDevPropBase'
import ElButton from 'element-ui/packages/button/src/button'

export default {
  name: 'ApDevSelectProp',
  components: { ElButton },
  extends: ApDevPropBase,
  data() {
    return {
      rules: {
        type: [
          { required: true, message: 'type必填' }
        ]
      }
    }
  },
  methods: {

  }
}
</script>

<style scoped>

</style>
