Files
CRM_Montzar/apps/web/src/components/UiIcon.vue
T
MahdiandCursor 6c6e32e099 feat(web): adopt vuesax icons and shared skeleton loading
Replace the inline SVG icon set with the vuesax linear pack, add skeleton primitives for loading states, and keep page scroll inside the app shell.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-05 14:46:35 +03:30

100 lines
1.6 KiB
Vue

<script setup lang="ts">
/**
* آیکون‌های legacy — حالا از پک vuesax-linear رندر می‌شوند.
* API نام‌ها برای سازگاری با صفحات قدیمی حفظ شده.
*/
import VsIcon from '@/components/VsIcon.vue';
defineProps<{
name:
| 'home'
| 'users'
| 'briefcase'
| 'check'
| 'box'
| 'chart'
| 'settings'
| 'search'
| 'sparkle'
| 'bell'
| 'calendar'
| 'calendar-plus'
| 'mail'
| 'megaphone'
| 'send'
| 'fire'
| 'warning'
| 'trend'
| 'phone'
| 'trophy'
| 'chat'
| 'dots'
| 'dots-v'
| 'document'
| 'bag'
| 'clock'
| 'user-plus'
| 'plus'
| 'chevron'
| 'star'
| 'pin'
| 'filter'
| 'funnel'
| 'lightbulb'
| 'building'
| 'user'
| 'flag'
| 'refresh'
| 'x'
| 'x-circle'
| 'mic'
| 'trash'
| 'stop'
| 'check-plain'
| 'calendar-sun'
| 'calendar-edit'
| 'minus'
| 'dollar'
| 'layers'
| 'target'
| 'pencil'
| 'edit'
| 'grid'
| 'list'
| 'eye'
| 'eye-off'
| 'lock'
| 'truck'
| 'grip'
| 'apps-plus'
| 'crown'
| 'gift'
| 'medal'
| 'logout'
| 'pulse'
| 'sliders'
| 'camera'
| 'clip'
| 'download'
| 'upload'
| 'arrow-right'
| 'arrow-left'
| 'chevron-right'
| 'chevron-left'
| 'chevrons-right'
| 'chevrons-left';
size?: number;
}>();
</script>
<template>
<VsIcon class="ico" :name="name" map="ui" :size="size ?? 20" />
</template>
<style scoped>
.ico {
display: block;
flex-shrink: 0;
}
</style>