<template>
    <div>
        <el-dialog v-dialog-drag class="dialog" title="新建设备类别" :visible.sync="dialogVisible" width="25%" center>
            <el-divider></el-divider>
            <el-form :model="form" label-position="left" label-width="80px">
                <el-form-item :model="form.typeName" label="类别名称：">
                    <el-select v-model="value" placeholder="请输入">
                        <el-option value="test"></el-option>
                    </el-select>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="dialogVisible = false">取消</el-button>
                <el-button type="primary" @click="addType">确认</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
export default {
    data() {
        return {
            value: '',
            dialogVisible: false,
            form: {
                typeName: '',
            },
        }
    },
    methods: {
        addType() {

        },
    }

}
</script>
<style lang="less" scoped>
/deep/.el-dialog {
    height: 350px !important;
}

.el-select {
    width: 280px;
}

.el-form {
    margin: 40px 0 0 20px;

    .el-form-item {
        padding-top: 20px;
        margin-inline: 20px;
        margin-bottom: 0;
    }

    /deep/.el-form-item__label {
        padding: 0;
    }

    /deep/.el-form-item__content {
        display: flex;
    }
}


/deep/.el-dialog {
    height: 30vh;
}

/deep/.el-dialog__title {
    margin-right: 330px;
}

/deep/.el-dialog__headerbtn {
    font-size: 25px;
}

/deep/.el-dialog__body {
    padding: 0;
}

/deep/.el-divider--horizontal {
    display: block;
    height: 1px;
    width: 95%;
    margin: 0;
    margin-left: 2.5%;
}

/deep/.el-dialog__footer {
    margin-top: 80px;
}

.el-button {
    width: 100px;
    height: 30px;
    text-align: center;
    margin: 30px;
    padding: 5px;
}
</style>