Files
CRM_Montzar/apps/web/src/components/pipeline/AddDealButton.vue
T

32 lines
682 B
Vue
Raw Normal View History

<script setup lang="ts">
import { PlusOutlined } from '@ant-design/icons-vue';
import { Button as AButton } from 'ant-design-vue';
import type { PipelineAccent } from '@/lib/pipeline-board';
import { PIPELINE_ACCENT } from '@/lib/pipeline-board';
2026-09-15 19:13:30 +03:30
withDefaults(
defineProps<{
accent: PipelineAccent;
label?: string;
}>(),
{ label: 'افزودن معامله' },
);
const emit = defineEmits<{
add: [];
}>();
</script>
<template>
<a-button
type="dashed"
block
:style="{ color: PIPELINE_ACCENT[accent].text }"
2026-09-15 19:13:30 +03:30
:aria-label="label"
@click="emit('add')"
>
<template #icon><PlusOutlined /></template>
2026-09-15 19:13:30 +03:30
{{ label }}
</a-button>
</template>