<template>
    <div class="common-btn-box1 font12" @click="handleBtnClick()" style="">
        <span>新增</span>
    </div>
</template>

<script setup lang="ts">
const $router = useRouter();
const routeName: string = $router.currentRoute.value.name as string;
// const props = defineProps<{
//     selectionList?: any[];
//     handleChildBtnCallback?: () => void;
//     ruleForm: any;
// }>();
// console.log(props, "=======props========");

const ROUTES: any = {
    boxMarkIndex: "/supplier/code/boxMark/details"
};
// 提交事件
const handleBtnClick = () => {
    $router.push({
        path: ROUTES[routeName],
        query: { sjtag: Math.random() * 36, type: "add", data: null }
    });
};
</script>

<style scoped>
@import "../index.scss";
</style>
