<template>
  <div class="info">
    <p class="title">角色信息</p>
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
      <el-form-item label="角色名称:" prop="name">
        <el-input v-model="ruleForm.name"></el-input>
      </el-form-item>
      <el-form-item label="角色描述:" prop="descript">
        <el-input v-model="ruleForm.descript"></el-input>
      </el-form-item>
    </el-form>  
  </div>
</template>

<script>
export default {
  name: 'roleInfoHandle',
  data () {
    return {
      ruleForm:{
        name:'',
        descript:''
      },
      rules:{
        name:[
          { required: true, message: '请输入角色名称', trigger: 'blur' },
        ],
        descript:[
          { required: true, message: '请输入角色描述', trigger: 'blur' },
        ]
      }
    };
  },
  computed: {
  },
  watch: {
  },
  methods: {},
};
</script>

<style scoped>
* {
  box-sizing: border-box;
}
.info {
  width: 100%;
  height: 112px;
  background: #ffffff;
  padding: 16px;
  margin-bottom: 16px;
}
.info .title {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 20px;
}
.el-form {
  display: flex;
}
.el-form-item {
  width: 324px;
  margin-right: 100px;
}
/deep/.el-input__inner {
  height: 32px;
}
</style>
