From c3b08bd3703ff4f258c1acdcf042954b9c306eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 26 Dec 2022 19:20:31 +0300 Subject: [PATCH] alias for images --- pages/autocomplete/index.vue | 4 ++-- pages/button/ButtonDoc.vue | 4 ++-- pages/cascadeselect/CascadeSelectDoc.vue | 2 +- pages/cascadeselect/index.vue | 2 +- pages/datatable/Filter.vue | 4 ++-- pages/datatable/RowGroup.vue | 6 +++--- pages/datatable/Scroll.vue | 2 +- pages/datatable/State.vue | 4 ++-- pages/datatable/index.vue | 2 +- pages/dock/index.vue | 2 +- pages/dropdown/index.vue | 6 +++--- pages/filterservice/index.vue | 2 +- pages/landing/ThemeSection.vue | 4 ++-- pages/listbox/index.vue | 4 ++-- pages/menubar/index.vue | 2 +- pages/multiselect/index.vue | 6 +++--- pages/setup/index.vue | 10 +++++----- pages/splitbutton/SplitButtonDoc.vue | 2 +- pages/splitbutton/index.vue | 2 +- pages/theming/index.vue | 4 ++-- 20 files changed, 37 insertions(+), 37 deletions(-) diff --git a/pages/autocomplete/index.vue b/pages/autocomplete/index.vue index 83d29c0b6..52e88a181 100755 --- a/pages/autocomplete/index.vue +++ b/pages/autocomplete/index.vue @@ -22,7 +22,7 @@ @@ -32,7 +32,7 @@ diff --git a/pages/button/ButtonDoc.vue b/pages/button/ButtonDoc.vue index 9b7b5442f..af6dbbbcc 100755 --- a/pages/button/ButtonDoc.vue +++ b/pages/button/ButtonDoc.vue @@ -136,11 +136,11 @@ import Button from 'primevue/button';

Custom content such as icons, images and text can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.


 <Button type="button" class="px-3">
-    <img alt="logo" src="../../assets/images/logo.svg" style="width: 1.5rem"/>
+    <img alt="logo" src="@/assets/images/logo.svg" style="width: 1.5rem"/>
 </Button>
 
 <Button type="button" class="p-button-outlined p-button-success">
-    <img alt="logo" src="../../assets/images/logo.svg" style="width: 1.5rem" />
+    <img alt="logo" src="@/assets/images/logo.svg" style="width: 1.5rem" />
     <span class="ml-2 font-bold">PrimeVue</span>
 </Button>
 
diff --git a/pages/cascadeselect/CascadeSelectDoc.vue b/pages/cascadeselect/CascadeSelectDoc.vue
index 12d4c2693..921207df8 100644
--- a/pages/cascadeselect/CascadeSelectDoc.vue
+++ b/pages/cascadeselect/CascadeSelectDoc.vue
@@ -118,7 +118,7 @@ data() {
         :optionGroupChildren="['states', 'cities']" style="minWidth: 14rem">
     <template #option="slotProps">
         <div class="country-item">
-            <img src="../../assets/images/flag_placeholder.png" :class="'flag flag-' + slotProps.option.code.toLowerCase()" v-if="slotProps.option.states" />
+            <img src="@/assets/images/flag_placeholder.png" :class="'flag flag-' + slotProps.option.code.toLowerCase()" v-if="slotProps.option.states" />
             <i class="pi pi-compass mr-2" v-if="slotProps.option.cities"></i>
             <i class="pi pi-map-marker mr-2" v-if="slotProps.option.cname"></i>
             <span>{{slotProps.option.cname || slotProps.option.name}}</span>
diff --git a/pages/cascadeselect/index.vue b/pages/cascadeselect/index.vue
index e6bf78bba..8834f1a44 100644
--- a/pages/cascadeselect/index.vue
+++ b/pages/cascadeselect/index.vue
@@ -22,7 +22,7 @@