2026-09-05 00:18:39 +03:30
|
|
|
<script setup lang="ts">
|
2026-10-18 19:39:59 +03:30
|
|
|
import { PlusOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
import { Button as AButton } from 'ant-design-vue';
|
2026-09-05 00:18:39 +03:30
|
|
|
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: 'افزودن معامله' },
|
|
|
|
|
);
|
2026-09-05 00:18:39 +03:30
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
|
add: [];
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-10-18 19:39:59 +03:30
|
|
|
<a-button
|
|
|
|
|
type="dashed"
|
2026-09-10 01:22:24 +03:30
|
|
|
block
|
|
|
|
|
:style="{ color: PIPELINE_ACCENT[accent].text }"
|
2026-09-15 19:13:30 +03:30
|
|
|
:aria-label="label"
|
2026-09-05 00:18:39 +03:30
|
|
|
@click="emit('add')"
|
|
|
|
|
>
|
2026-10-18 19:39:59 +03:30
|
|
|
<template #icon><PlusOutlined /></template>
|
2026-09-15 19:13:30 +03:30
|
|
|
{{ label }}
|
2026-10-18 19:39:59 +03:30
|
|
|
</a-button>
|
2026-09-05 00:18:39 +03:30
|
|
|
</template>
|