<template>
    <div class="add-node-wrap">
        <div class="add-btn" @click="handleAddApprove">
            <span> <i class="el-icon-circle-plus-outline"></i></span>
            <span>添加审批人</span>
        </div>
    </div>
</template>

<script>
export default {
    props:["node"],
    data() {
        return {
            visible:false,
        };
    },
    methods: {
        handleAddApprove(){
            this.visible = false
            const data = {
                nodeType:2,
                ApproveType:1,
                nodeName:'ApproveNode',
                approvers:[],
                prevNode:this.node
            }
            this.$emit("addNode",data)
        }
    },
};
</script>

<style scoped lang="scss">
.add-node-wrap{
    margin: 20px 0;
    .add-btn{
        user-select: none;
        cursor: pointer;
        color:#0052D9;
        display: inline-block;
    }
}
</style>
