image path fix
parent
e772587fbc
commit
60d0fb6d1a
|
@ -32,138 +32,138 @@
|
|||
|
||||
<li class="topbar-submenu-header">BOOTSTRAP</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'bootstrap4-light-blue')"><img src="/demo/images/themes/bootstrap4-light-blue.svg" alt="Blue Light" /><span>Blue Light</span></a>
|
||||
<a @click="changeTheme($event, 'bootstrap4-light-blue')"><img :src="baseUrl + 'demo/images/themes/bootstrap4-light-blue.svg'" alt="Blue Light" /><span>Blue Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'bootstrap4-light-purple')"><img src="/demo/images/themes/bootstrap4-light-purple.svg" alt="Purple Light" /><span>Purple Light</span></a>
|
||||
<a @click="changeTheme($event, 'bootstrap4-light-purple')"><img :src="baseUrl + 'demo/images/themes/bootstrap4-light-purple.svg'" alt="Purple Light" /><span>Purple Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'bootstrap4-dark-blue', true)"><img src="/demo/images/themes/bootstrap4-dark-blue.svg" alt="Blue Dark" /><span>Blue Dark</span></a>
|
||||
<a @click="changeTheme($event, 'bootstrap4-dark-blue', true)"><img :src="baseUrl + 'demo/images/themes/bootstrap4-dark-blue.svg'" alt="Blue Dark" /><span>Blue Dark</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'bootstrap4-dark-purple', true)"><img src="/demo/images/themes/bootstrap4-dark-purple.svg" alt="Purple Dark" /><span>Purple Dark</span></a>
|
||||
<a @click="changeTheme($event, 'bootstrap4-dark-purple', true)"><img :src="baseUrl + 'demo/images/themes/bootstrap4-dark-purple.svg'" alt="Purple Dark" /><span>Purple Dark</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header">MATERIAL DESIGN</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'md-light-indigo')"><img src="/demo/images/themes/md-light-indigo.svg" alt="Indigo Light" /><span>Indigo Light</span></a>
|
||||
<a @click="changeTheme($event, 'md-light-indigo')"><img :src="baseUrl + 'demo/images/themes/md-light-indigo.svg'" alt="Indigo Light" /><span>Indigo Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'md-light-deeppurple')"><img src="/demo/images/themes/md-light-deeppurple.svg" alt="Deep Purple Light" /><span>Deep Purple Light</span></a>
|
||||
<a @click="changeTheme($event, 'md-light-deeppurple')"><img :src="baseUrl + 'demo/images/themes/md-light-deeppurple.svg'" alt="Deep Purple Light" /><span>Deep Purple Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'md-dark-indigo', true)"><img src="/demo/images/themes/md-dark-indigo.svg" alt="Indigo Dark" /><span>Indigo Dark</span></a>
|
||||
<a @click="changeTheme($event, 'md-dark-indigo', true)"><img :src="baseUrl + 'demo/images/themes/md-dark-indigo.svg'" alt="Indigo Dark" /><span>Indigo Dark</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'md-dark-deeppurple', true)"><img src="/demo/images/themes/md-dark-deeppurple.svg" alt="Deep Purple Dark" /><span>Deep Purple Dark</span></a>
|
||||
<a @click="changeTheme($event, 'md-dark-deeppurple', true)"><img :src="baseUrl + 'demo/images/themes/md-dark-deeppurple.svg'" alt="Deep Purple Dark" /><span>Deep Purple Dark</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header">MATERIAL DESIGN COMPACT</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'mdc-light-indigo')"><img src="/demo/images/themes/md-light-indigo.svg" alt="Indigo Light" /><span>Indigo Light</span></a>
|
||||
<a @click="changeTheme($event, 'mdc-light-indigo')"><img :src="baseUrl + 'demo/images/themes/md-light-indigo.svg'" alt="Indigo Light" /><span>Indigo Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'mdc-light-deeppurple')"><img src="/demo/images/themes/md-light-deeppurple.svg" alt="Deep Purple Light" /><span>Deep Purple Light</span></a>
|
||||
<a @click="changeTheme($event, 'mdc-light-deeppurple')"><img :src="baseUrl + 'demo/images/themes/md-light-deeppurple.svg'" alt="Deep Purple Light" /><span>Deep Purple Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'mdc-dark-indigo', true)"><img src="/demo/images/themes/md-dark-indigo.svg" alt="Indigo Dark" /><span>Indigo Dark</span></a>
|
||||
<a @click="changeTheme($event, 'mdc-dark-indigo', true)"><img :src="baseUrl + 'demo/images/themes/md-dark-indigo.svg'" alt="Indigo Dark" /><span>Indigo Dark</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'mdc-dark-deeppurple', true)"><img src="/demo/images/themes/md-dark-deeppurple.svg" alt="Deep Purple Dark" /><span>Deep Purple Dark</span></a>
|
||||
<a @click="changeTheme($event, 'mdc-dark-deeppurple', true)"><img :src="baseUrl + 'demo/images/themes/md-dark-deeppurple.svg'" alt="Deep Purple Dark" /><span>Deep Purple Dark</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header">TAILWIND</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'tailwind-light')"><img src="/demo/images/themes/tailwind-light.png" alt="Tailwind Light" /><span>Tailwind Light</span></a>
|
||||
<a @click="changeTheme($event, 'tailwind-light')"><img :src="baseUrl + 'demo/images/themes/tailwind-light.png'" alt="Tailwind Light" /><span>Tailwind Light</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header">FLUENT UI</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'fluent-light')"><img src="/demo/images/themes/fluent-light.png" alt="Fluent Light" /><span>Fluent Light</span></a>
|
||||
<a @click="changeTheme($event, 'fluent-light')"><img :src="baseUrl + 'demo/images/themes/fluent-light.png'" alt="Fluent Light" /><span>Fluent Light</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header flex align-items-center">PRIMEONE 2022 <Tag class="ml-3" value="NEW" rounded severity="success"></Tag></li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-light-indigo')"><img src="/demo/images/themes/lara-light-indigo.png" alt="Lara Light Indigo" /><span>Lara Light Indigo</span></a>
|
||||
<a @click="changeTheme($event, 'lara-light-indigo')"><img :src="baseUrl + 'demo/images/themes/lara-light-indigo.png'" alt="Lara Light Indigo" /><span>Lara Light Indigo</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-light-blue')"><img src="/demo/images/themes/lara-light-blue.png" alt="Lara Light Blue" /><span>Lara Light Blue</span></a>
|
||||
<a @click="changeTheme($event, 'lara-light-blue')"><img :src="baseUrl + 'demo/images/themes/lara-light-blue.png'" alt="Lara Light Blue" /><span>Lara Light Blue</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-light-purple')"><img src="/demo/images/themes/lara-light-purple.png" alt="Lara Light Purple" /><span>Lara Light Purple</span></a>
|
||||
<a @click="changeTheme($event, 'lara-light-purple')"><img :src="baseUrl + 'demo/images/themes/lara-light-purple.png'" alt="Lara Light Purple" /><span>Lara Light Purple</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-light-teal')"><img src="/demo/images/themes/lara-light-teal.png" alt="Lara Light Teal" /><span>Lara Light Teal</span></a>
|
||||
<a @click="changeTheme($event, 'lara-light-teal')"><img :src="baseUrl + 'demo/images/themes/lara-light-teal.png'" alt="Lara Light Teal" /><span>Lara Light Teal</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-dark-blue')"><img src="/demo/images/themes/lara-dark-blue.png" alt="Lara Dark Blue" /><span>Lara Dark Blue</span></a>
|
||||
<a @click="changeTheme($event, 'lara-dark-blue')"><img :src="baseUrl + 'demo/images/themes/lara-dark-blue.png'" alt="Lara Dark Blue" /><span>Lara Dark Blue</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-dark-indigo')"><img src="/demo/images/themes/lara-dark-indigo.png" alt="Lara Dark Indigo" /><span>Lara Dark Indigo</span></a>
|
||||
<a @click="changeTheme($event, 'lara-dark-indigo')"><img :src="baseUrl + 'demo/images/themes/lara-dark-indigo.png'" alt="Lara Dark Indigo" /><span>Lara Dark Indigo</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-dark-purple')"><img src="/demo/images/themes/lara-dark-purple.png" alt="Lara Dark Purple" /><span>Lara Dark Purple</span></a>
|
||||
<a @click="changeTheme($event, 'lara-dark-purple')"><img :src="baseUrl + 'demo/images/themes/lara-dark-purple.png'" alt="Lara Dark Purple" /><span>Lara Dark Purple</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'lara-dark-teal')"><img src="/demo/images/themes/lara-dark-teal.png" alt="Lara Dark Teal" /><span>Lara Dark Teal</span></a>
|
||||
<a @click="changeTheme($event, 'lara-dark-teal')"><img :src="baseUrl + 'demo/images/themes/lara-dark-teal.png'" alt="Lara Dark Teal" /><span>Lara Dark Teal</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header">PRIMEONE 2021</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'saga-blue')"><img src="/demo/images/themes/saga-blue.png" alt="Saga Blue" /><span>Saga Blue</span></a>
|
||||
<a @click="changeTheme($event, 'saga-blue')"><img :src="baseUrl + 'demo/images/themes/saga-blue.png'" alt="Saga Blue" /><span>Saga Blue</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'saga-green')"><img src="/demo/images/themes/saga-green.png" alt="Saga Green" /><span>Saga Green</span></a>
|
||||
<a @click="changeTheme($event, 'saga-green')"><img :src="baseUrl + 'demo/images/themes/saga-green.png'" alt="Saga Green" /><span>Saga Green</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'saga-orange')"><img src="/demo/images/themes/saga-orange.png" alt="Saga Orange" /><span>Saga Orange</span></a>
|
||||
<a @click="changeTheme($event, 'saga-orange')"><img :src="baseUrl + 'demo/images/themes/saga-orange.png'" alt="Saga Orange" /><span>Saga Orange</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'saga-purple')"><img src="/demo/images/themes/saga-purple.png" alt="Saga Purple" /><span>Saga Purple</span></a>
|
||||
<a @click="changeTheme($event, 'saga-purple')"><img :src="baseUrl + 'demo/images/themes/saga-purple.png'" alt="Saga Purple" /><span>Saga Purple</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'vela-blue', true)"><img src="/demo/images/themes/vela-blue.png" alt="Vela Blue" /><span>Vela Blue</span></a>
|
||||
<a @click="changeTheme($event, 'vela-blue', true)"><img :src="baseUrl + 'demo/images/themes/vela-blue.png'" alt="Vela Blue" /><span>Vela Blue</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'vela-green', true)"><img src="/demo/images/themes/vela-green.png" alt="Vela Green" /><span>Vela Green</span></a>
|
||||
<a @click="changeTheme($event, 'vela-green', true)"><img :src="baseUrl + 'demo/images/themes/vela-green.png'" alt="Vela Green" /><span>Vela Green</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'vela-orange', true)"><img src="/demo/images/themes/vela-orange.png" alt="Vela Orange" /><span>Vela Orange</span></a>
|
||||
<a @click="changeTheme($event, 'vela-orange', true)"><img :src="baseUrl + 'demo/images/themes/vela-orange.png'" alt="Vela Orange" /><span>Vela Orange</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'vela-purple', true)"><img src="/demo/images/themes/vela-purple.png" alt="Vela Purple" /><span>Vela Purple</span></a>
|
||||
<a @click="changeTheme($event, 'vela-purple', true)"><img :src="baseUrl + 'demo/images/themes/vela-purple.png'" alt="Vela Purple" /><span>Vela Purple</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'arya-blue', true)"><img src="/demo/images/themes/arya-blue.png" alt="Arya Blue" /><span>Arya Blue</span></a>
|
||||
<a @click="changeTheme($event, 'arya-blue', true)"><img :src="baseUrl + 'demo/images/themes/arya-blue.png'" alt="Arya Blue" /><span>Arya Blue</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'arya-green', true)"><img src="/demo/images/themes/arya-green.png" alt="Arya Green" /><span>Arya Green</span></a>
|
||||
<a @click="changeTheme($event, 'arya-green', true)"><img :src="baseUrl + 'demo/images/themes/arya-green.png'" alt="Arya Green" /><span>Arya Green</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'arya-orange', true)"><img src="/demo/images/themes/arya-orange.png" alt="Arya Orange" /><span>Arya Orange</span></a>
|
||||
<a @click="changeTheme($event, 'arya-orange', true)"><img :src="baseUrl + 'demo/images/themes/arya-orange.png'" alt="Arya Orange" /><span>Arya Orange</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'arya-purple', true)"><img src="/demo/images/themes/arya-purple.png" alt="Arya Purple" /><span>Arya Purple</span></a>
|
||||
<a @click="changeTheme($event, 'arya-purple', true)"><img :src="baseUrl + 'demo/images/themes/arya-purple.png'" alt="Arya Purple" /><span>Arya Purple</span></a>
|
||||
</li>
|
||||
|
||||
<li class="topbar-submenu-header">PREMIUM</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'soho-light')"><img src="/demo/images/themes/soho-light.png" alt="Soho Light" /><span>Soho Light</span></a>
|
||||
<a @click="changeTheme($event, 'soho-light')"><img :src="baseUrl + 'demo/images/themes/soho-light.png'" alt="Soho Light" /><span>Soho Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'soho-dark', true)"><img src="/demo/images/themes/soho-dark.png" alt="Soho Dark" /><span>Soho Dark</span></a>
|
||||
<a @click="changeTheme($event, 'soho-dark', true)"><img :src="baseUrl + 'demo/images/themes/soho-dark.png'" alt="Soho Dark" /><span>Soho Dark</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'viva-light')"><img src="/demo/images/themes/viva-light.svg" alt="Viva Light" /><span>Viva Light</span></a>
|
||||
<a @click="changeTheme($event, 'viva-light')"><img :src="baseUrl + 'demo/images/themes/viva-light.svg'" alt="Viva Light" /><span>Viva Light</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'viva-dark', true)"><img src="/demo/images/themes/viva-dark.svg" alt="Viva Dark" /><span>Viva Dark</span></a>
|
||||
<a @click="changeTheme($event, 'viva-dark', true)"><img :src="baseUrl + 'demo/images/themes/viva-dark.svg'" alt="Viva Dark" /><span>Viva Dark</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'mira')"><img src="/demo/images/themes/mira.jpg" alt="Mira" /><span>Mira</span></a>
|
||||
<a @click="changeTheme($event, 'mira')"><img :src="baseUrl + 'demo/images/themes/mira.jpg'" alt="Mira" /><span>Mira</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a @click="changeTheme($event, 'nano')"><img src="/demo/images/themes/nano.jpg" alt="Nano" /><span>Nano</span></a>
|
||||
<a @click="changeTheme($event, 'nano')"><img :src="baseUrl + 'demo/images/themes/nano.jpg'" alt="Nano" /><span>Nano</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</transition>
|
||||
|
|
|
@ -67,9 +67,9 @@
|
|||
<div class="col-12 md:col-4">
|
||||
<div class="card">
|
||||
<h5>Image</h5>
|
||||
<Avatar image="/demo/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
||||
<Avatar image="/demo/images/avatar/asiyajavayant.png" class="mr-2" size="large" shape="circle" />
|
||||
<Avatar image="/demo/images/avatar/onyamalimba.png" class="mr-2" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/amyelsner.png'" class="mr-2" size="xlarge" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/asiyajavayant.png'" class="mr-2" size="large" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/onyamalimba.png'" class="mr-2" shape="circle" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -77,11 +77,11 @@
|
|||
<div class="card">
|
||||
<h5>Avatar Group</h5>
|
||||
<AvatarGroup class="mb-3">
|
||||
<Avatar image="/demo/images/avatar/amyelsner.png" size="large" shape="circle" />
|
||||
<Avatar image="/demo/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
||||
<Avatar image="/demo/images/avatar/onyamalimba.png" size="large" shape="circle" />
|
||||
<Avatar image="/demo/images/avatar/ionibowcher.png" size="large" shape="circle" />
|
||||
<Avatar image="/demo/images/avatar/xuxuefeng.png" size="large" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/amyelsner.png'" size="large" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/asiyajavayant.png'" size="large" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/onyamalimba.png'" size="large" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/ionibowcher.png'" size="large" shape="circle" />
|
||||
<Avatar :image="baseUrl + 'demo/images/avatar/xuxuefeng.png'" size="large" shape="circle" />
|
||||
<Avatar label="+2" shape="circle" size="large" style="background-color: #9c27b0; color: #ffffff" />
|
||||
</AvatarGroup>
|
||||
</div>
|
||||
|
@ -90,7 +90,7 @@
|
|||
<div class="col-12 md:col-4">
|
||||
<div class="card">
|
||||
<h5>Image - Badge</h5>
|
||||
<Avatar v-badge.danger="4" image="/demo/images/organization/walter.jpg" size="xlarge" />
|
||||
<Avatar v-badge.danger="4" :image="baseUrl + 'demo/images/organization/walter.jpg'" size="xlarge" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -104,6 +104,14 @@
|
|||
import AvatarDoc from './AvatarDoc';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
components: {
|
||||
AvatarDoc: AvatarDoc
|
||||
}
|
||||
|
|
|
@ -28,18 +28,18 @@
|
|||
|
||||
<h5>Image</h5>
|
||||
<div class="flex align-items-center">
|
||||
<Chip label="Amy Elsner" image="/demo/images/avatar/amyelsner.png" class="mr-2" />
|
||||
<Chip label="Asiya Javayant" image="/demo/images/avatar/asiyajavayant.png" class="mr-2" />
|
||||
<Chip label="Onyama Limba" image="/demo/images/avatar/onyamalimba.png" class="mr-2" />
|
||||
<Chip label="Xuxue Feng" image="/demo/images/avatar/xuxuefeng.png" removable />
|
||||
<Chip label="Amy Elsner" :image="baseUrl + 'demo/images/avatar/amyelsner.png'" class="mr-2" />
|
||||
<Chip label="Asiya Javayant" :image="baseUrl + 'demo/images/avatar/asiyajavayant.png'" class="mr-2" />
|
||||
<Chip label="Onyama Limba" :image="baseUrl + 'demo/images/avatar/onyamalimba.png'" class="mr-2" />
|
||||
<Chip label="Xuxue Feng" :image="baseUrl + 'demo/images/avatar/xuxuefeng.png'" removable />
|
||||
</div>
|
||||
|
||||
<h5>Styling</h5>
|
||||
<div class="flex align-items-center">
|
||||
<Chip label="Action" class="mr-2 custom-chip" />
|
||||
<Chip label="Apple" icon="pi pi-apple" class="mr-2 custom-chip" />
|
||||
<Chip label="Onyama Limba" image="/demo/images/avatar/onyamalimba.png" class="mr-2 custom-chip" />
|
||||
<Chip label="Xuxue Feng" image="/demo/images/avatar/xuxuefeng.png" class="custom-chip" removable />
|
||||
<Chip label="Onyama Limba" :image="baseUrl + 'demo/images/avatar/onyamalimba.png'" class="mr-2 custom-chip" />
|
||||
<Chip label="Xuxue Feng" :image="baseUrl + 'demo/images/avatar/xuxuefeng.png'" class="custom-chip" removable />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -52,6 +52,14 @@
|
|||
import ChipDoc from './ChipDoc';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
components: {
|
||||
ChipDoc: ChipDoc
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<Column field="name" header="Name" :sortable="true" style="min-width: 16rem"></Column>
|
||||
<Column header="Image">
|
||||
<template #body="slotProps">
|
||||
<img :src="'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" />
|
||||
<img :src="baseUrl + 'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="price" header="Price" :sortable="true" style="min-width: 8rem">
|
||||
|
@ -79,7 +79,7 @@
|
|||
</div>
|
||||
|
||||
<Dialog v-model:visible="productDialog" :style="{ width: '450px' }" header="Product Details" :modal="true" class="p-fluid">
|
||||
<img v-if="product.image" :src="'demo/images/product/' + product.image" :alt="product.image" class="product-image" />
|
||||
<img v-if="product.image" :src="'/demo/images/product/' + product.image" :alt="product.image" class="product-image" />
|
||||
<div class="field">
|
||||
<label for="name">Name</label>
|
||||
<InputText id="name" v-model.trim="product.name" required="true" autofocus :class="{ 'p-invalid': submitted && !product.name }" />
|
||||
|
@ -1170,7 +1170,8 @@ export default {
|
|||
</style>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
productService: null,
|
||||
|
@ -1180,6 +1181,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.productService.getProducts().then((data) => (this.products = data));
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
formatCurrency(value) {
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
</Column>
|
||||
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
||||
<template #body="{ data }">
|
||||
<img :alt="data.representative.name" :src="'demo/images/avatar/' + data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="data.representative.name" :src="baseUrl + 'demo/images/avatar/' + data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ data.representative.name }}</span>
|
||||
</template>
|
||||
<template #filter="{ filterModel }">
|
||||
|
@ -72,7 +72,7 @@
|
|||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||
<template #option="slotProps">
|
||||
<div class="p-multiselect-representative-option">
|
||||
<img :alt="slotProps.option.name" :src="'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.option.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.option.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -178,14 +178,14 @@
|
|||
</Column>
|
||||
<Column header="Agent" filterField="representative" :showFilterMenu="false" style="min-width: 14rem">
|
||||
<template #body="{ data }">
|
||||
<img :alt="data.representative.name" :src="'demo/images/avatar/' + data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="data.representative.name" :src="baseUrl + 'demo/images/avatar/' + data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ data.representative.name }}</span>
|
||||
</template>
|
||||
<template #filter="{ filterModel, filterCallback }">
|
||||
<MultiSelect v-model="filterModel.value" @change="filterCallback()" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||
<template #option="slotProps">
|
||||
<div class="p-multiselect-representative-option">
|
||||
<img :alt="slotProps.option.name" :src="'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.option.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.option.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -1315,7 +1315,8 @@ export default {
|
|||
</style>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
@ -1334,6 +1335,8 @@ export default {
|
|||
this.loading2 = false;
|
||||
this.customers2.forEach((customer) => (customer.date = new Date(customer.date)));
|
||||
});
|
||||
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
formatDate(value) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<Column field="name" header="Name" sortable></Column>
|
||||
<Column header="Image">
|
||||
<template #body="slotProps">
|
||||
<img :src="'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" />
|
||||
<img :src="baseUrl + 'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="price" header="Price" sortable>
|
||||
|
@ -48,7 +48,7 @@
|
|||
<Column field="customer" header="Customer" sortable></Column>
|
||||
<Column field="date" header="Date" sortable></Column>
|
||||
<Column field="amount" header="Amount" sortable>
|
||||
<template #body="slotProps" sortable>
|
||||
<template #body="slotProps">
|
||||
{{ formatCurrency(slotProps.data.amount) }}
|
||||
</template>
|
||||
</Column>
|
||||
|
@ -450,7 +450,8 @@ export default {
|
|||
</style>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
productService: null,
|
||||
|
@ -459,6 +460,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.productService.getProductsWithOrdersSmall().then((data) => (this.products = data));
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
onRowExpand(event) {
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</Column>
|
||||
<Column field="date" header="Date" style="min-width: 200px"></Column>
|
||||
<template #groupheader="slotProps">
|
||||
<img :alt="slotProps.data.representative.name" :src="'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.data.representative.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.data.representative.name }}</span>
|
||||
</template>
|
||||
<template #groupfooter="slotProps">
|
||||
|
@ -73,7 +73,7 @@
|
|||
</Column>
|
||||
<Column field="date" header="Date"></Column>
|
||||
<template #groupheader="slotProps">
|
||||
<img :alt="slotProps.data.representative.name" :src="'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.data.representative.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.data.representative.name }}</span>
|
||||
</template>
|
||||
<template #groupfooter="slotProps">
|
||||
|
@ -93,7 +93,7 @@
|
|||
</Column>
|
||||
<Column field="representative.name" header="Representative">
|
||||
<template #body="slotProps">
|
||||
<img :alt="slotProps.data.representative.name" :src="'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="baseUrl + slotProps.data.representative.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.data.representative.name }}</span>
|
||||
</template>
|
||||
</Column>
|
||||
|
@ -631,7 +631,8 @@ export default {
|
|||
</style>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
customerService: null,
|
||||
|
@ -640,6 +641,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.customerService.getCustomersMedium().then((data) => (this.customers = data));
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
onRowGroupExpand(event) {
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
</Column>
|
||||
<Column field="date" header="Date" style="min-width: 200px"></Column>
|
||||
<template #groupheader="slotProps">
|
||||
<img :alt="slotProps.data.representative.name" :src="'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.data.representative.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.data.representative.name }}</span>
|
||||
</template>
|
||||
<template #groupfooter="slotProps">
|
||||
|
@ -825,7 +825,8 @@ export default {
|
|||
</style>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
customerService: null,
|
||||
|
@ -861,6 +862,8 @@ export default {
|
|||
}
|
||||
}
|
||||
];
|
||||
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
openDialog() {
|
||||
|
|
|
@ -45,14 +45,14 @@
|
|||
</Column>
|
||||
<Column header="Representative" :sortable="true" sortField="representative.name" filterField="representative.name" filterMatchMode="in" style="width: 25%">
|
||||
<template #body="slotProps">
|
||||
<img :alt="slotProps.data.representative.name" :src="'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.data.representative.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.data.representative.name }}</span>
|
||||
</template>
|
||||
<template #filter>
|
||||
<MultiSelect v-model="filters1['representative.name']" :options="representatives" optionLabel="name" optionValue="name" placeholder="All" class="p-column-filter">
|
||||
<template #option="slotProps">
|
||||
<div class="p-multiselect-representative-option">
|
||||
<img :alt="slotProps.option.name" :src="'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.option.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.option.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -111,14 +111,14 @@
|
|||
</Column>
|
||||
<Column header="Representative" :sortable="true" sortField="representative.name" filterField="representative.name" filterMatchMode="in" style="width: 25%">
|
||||
<template #body="slotProps">
|
||||
<img :alt="slotProps.data.representative.name" :src="'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.data.representative.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.data.representative.name }}</span>
|
||||
</template>
|
||||
<template #filter>
|
||||
<MultiSelect v-model="filters2['representative.name']" :options="representatives" optionLabel="name" optionValue="name" placeholder="All" class="p-column-filter">
|
||||
<template #option="slotProps">
|
||||
<div class="p-multiselect-representative-option">
|
||||
<img :alt="slotProps.option.name" :src="'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.option.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.option.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -694,7 +694,8 @@ export default {
|
|||
<\\/script>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
customerService: null,
|
||||
|
@ -705,6 +706,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.customerService.getCustomersMedium().then((data) => (this.customers = data));
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
initFilters1() {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<Column field="name" header="Name"></Column>
|
||||
<Column header="Image">
|
||||
<template #body="slotProps">
|
||||
<img :src="'/demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" />
|
||||
<img :src="baseUrl + 'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="price" header="Price">
|
||||
|
@ -295,7 +295,8 @@ export default {
|
|||
</style>
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
productService: null,
|
||||
|
@ -304,6 +305,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.productService.getProductsSmall().then((data) => (this.products = data));
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
formatCurrency(value) {
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
</Column>
|
||||
<Column header="Agent" sortable filterField="representative" sortField="representative.name" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
||||
<template #body="{ data }">
|
||||
<img :alt="data.representative.name" :src="'demo/images/avatar/' + data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="data.representative.name" :src="baseUrl + 'demo/images/avatar/' + data.representative.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ data.representative.name }}</span>
|
||||
</template>
|
||||
<template #filter="{ filterModel }">
|
||||
|
@ -66,7 +66,7 @@
|
|||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||
<template #option="slotProps">
|
||||
<div class="p-multiselect-representative-option">
|
||||
<img :alt="slotProps.option.name" :src="'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<img :alt="slotProps.option.name" :src="baseUrl + 'demo/images/avatar/' + slotProps.option.image" width="32" style="vertical-align: middle" />
|
||||
<span class="image-text">{{ slotProps.option.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -163,7 +163,8 @@ export default {
|
|||
{ name: 'Stephen Shaw', image: 'stephenshaw.png' },
|
||||
{ name: 'XuXue Feng', image: 'xuxuefeng.png' }
|
||||
],
|
||||
statuses: ['unqualified', 'qualified', 'new', 'negotiation', 'renewal', 'proposal']
|
||||
statuses: ['unqualified', 'qualified', 'new', 'negotiation', 'renewal', 'proposal'],
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
@ -175,6 +176,8 @@ export default {
|
|||
this.customers.forEach((customer) => (customer.date = new Date(customer.date)));
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
methods: {
|
||||
formatDate(value) {
|
||||
|
|
|
@ -24,11 +24,11 @@
|
|||
:transitionInterval="3000"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" :style="[{ width: !fullScreen ? '100%' : '', display: !fullScreen ? 'block' : '' }]" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" :style="[{ width: !fullScreen ? '100%' : '', display: !fullScreen ? 'block' : '' }]" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<div class="grid grid-nogutter justify-content-center">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</div>
|
||||
</template>
|
||||
<template #footer>
|
||||
|
@ -243,7 +243,8 @@ export default {
|
|||
images: null,
|
||||
activeIndex: 0,
|
||||
showThumbnails: false,
|
||||
fullScreen: false
|
||||
fullScreen: false,
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -253,6 +254,7 @@ export default {
|
|||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.bindDocumentListeners();
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
},
|
||||
methods: {
|
||||
onThumbnailButtonClick() {
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
<div class="card">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px" :circular="true" :autoPlay="true" :transitionInterval="2000">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -95,7 +95,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -104,6 +105,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
<div class="card">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px">
|
||||
<template #item="{ item }">
|
||||
<img :src="item.itemImageSrc" :alt="item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + item.itemImageSrc" :alt="item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="{ item }">
|
||||
<div class="grid grid-nogutter justify-content-center">
|
||||
<img :src="item.thumbnailImageSrc" :alt="item.alt" style="display: block" />
|
||||
<img :src="baseUrl + item.thumbnailImageSrc" :alt="item.alt" style="display: block" />
|
||||
</div>
|
||||
</template>
|
||||
<template #caption="{ item }">
|
||||
|
@ -106,7 +106,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -115,6 +116,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
<h5>With Thumbnails</h5>
|
||||
<Galleria v-model:visible="displayBasic" :value="images" :responsiveOptions="responsiveOptions2" :numVisible="9" containerStyle="max-width: 50%" :circular="true" :fullScreen="true" :showItemNavigators="true">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
|
||||
|
@ -26,10 +26,10 @@
|
|||
<h5>Without Thumbnails</h5>
|
||||
<Galleria v-model:visible="displayBasic2" :value="images" :responsiveOptions="responsiveOptions" :numVisible="7" containerStyle="max-width: 850px" :circular="true" :fullScreen="true" :showItemNavigators="true" :showThumbnails="false">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
|
||||
|
@ -51,16 +51,16 @@
|
|||
:showThumbnails="false"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
|
||||
<div v-if="images" class="grid" style="max-width: 400px">
|
||||
<div v-for="(image, index) of images" :key="index" class="col-3">
|
||||
<img :src="image.thumbnailImageSrc" :alt="image.alt" style="cursor: pointer" @click="imageClick(index)" />
|
||||
<img :src="baseUrl + image.thumbnailImageSrc" :alt="image.alt" style="cursor: pointer" @click="imageClick(index)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -224,7 +224,8 @@ export default {
|
|||
],
|
||||
displayBasic: false,
|
||||
displayBasic2: false,
|
||||
displayCustom: false
|
||||
displayCustom: false,
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -233,6 +234,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
},
|
||||
methods: {
|
||||
imageClick(index) {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<h5>Indicators with Click Event</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px" :showThumbnails="false" :showIndicators="true">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<h5>Indicators with Hover Event</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px" :showThumbnails="false" :showIndicators="true" :changeItemOnIndicatorHover="true">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -30,7 +30,7 @@
|
|||
<h5>Inside Content</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px" :showThumbnails="false" :showIndicators="true" :changeItemOnIndicatorHover="true" :showIndicatorsOnItem="true">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -49,7 +49,7 @@
|
|||
indicatorsPosition="top"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -68,7 +68,7 @@
|
|||
indicatorsPosition="left"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -87,7 +87,7 @@
|
|||
indicatorsPosition="right"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -107,7 +107,7 @@
|
|||
indicatorsPosition="left"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #indicator="{ index }">
|
||||
<span class="indicator-text">
|
||||
|
@ -265,7 +265,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -277,6 +278,8 @@ export default {
|
|||
this.images = data;
|
||||
this.images2 = data.slice(0, 5);
|
||||
});
|
||||
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
<h5>Item Navigators and Thumbnails</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" :circular="true" containerStyle="max-width: 640px" :showItemNavigators="true">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -24,10 +24,10 @@
|
|||
<h5>Item Navigators without Thumbnails</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" :circular="true" containerStyle="max-width: 640px" :showItemNavigators="true" :showThumbnails="false">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -36,10 +36,10 @@
|
|||
<h5>Item Navigators on Hover</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" :circular="true" containerStyle="max-width: 640px" :showItemNavigators="true" :showItemNavigatorsOnHover="true">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -58,10 +58,10 @@
|
|||
:showIndicators="true"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -176,7 +176,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -185,6 +186,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
|
||||
<Galleria v-model:activeIndex="activeIndex" :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -114,7 +114,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -123,6 +124,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
},
|
||||
methods: {
|
||||
next() {
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
<div class="card">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="7" :circular="true" style="max-width: 800px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" style="display: block" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -102,7 +102,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -111,6 +112,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
<h5>Positioned at Bottom</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -24,11 +24,11 @@
|
|||
<h5>Positioned at Left</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="left" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<div class="grid grid-nogutter justify-content-center">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
</div>
|
||||
</template>
|
||||
</Galleria>
|
||||
|
@ -38,11 +38,11 @@
|
|||
<h5>Positioned at Right</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions2" :numVisible="4" thumbnailsPosition="right" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<div class="grid grid-nogutter justify-content-center">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
</div>
|
||||
</template>
|
||||
</Galleria>
|
||||
|
@ -52,10 +52,10 @@
|
|||
<h5>Positioned at Top</h5>
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" thumbnailsPosition="top" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%; display: block" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" tyle="width: 100%; display: block;" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -190,7 +190,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -199,6 +200,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
<div class="card">
|
||||
<Galleria :value="images" :responsiveOptions="responsiveOptions" :numVisible="5" containerStyle="max-width: 640px">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%" />
|
||||
<img :src="baseUrl + slotProps.item.itemImageSrc" :alt="slotProps.item.alt" style="width: 100%" />
|
||||
</template>
|
||||
<template #thumbnail="slotProps">
|
||||
<img :src="slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" />
|
||||
<img :src="baseUrl + slotProps.item.thumbnailImageSrc" :alt="slotProps.item.alt" />
|
||||
</template>
|
||||
</Galleria>
|
||||
</div>
|
||||
|
@ -45,7 +45,8 @@ export default {
|
|||
breakpoint: '560px',
|
||||
numVisible: 1
|
||||
}
|
||||
]
|
||||
],
|
||||
baseUrl: ''
|
||||
};
|
||||
},
|
||||
galleriaService: null,
|
||||
|
@ -54,6 +55,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.galleriaService.getImages().then((data) => (this.images = data));
|
||||
this.baseUrl = process.dev ? '' : '/primevue-nuxt';
|
||||
},
|
||||
components: {
|
||||
GalleriaDoc: GalleriaDoc
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
<div class="content-section implementation">
|
||||
<div class="card">
|
||||
<h5>Basic</h5>
|
||||
<Image src="/demo/images/galleria/galleria1.jpg" alt="Image" width="250" />
|
||||
<Image :src="baseUrl + 'demo/images/galleria/galleria1.jpg'" alt="Image" width="250" />
|
||||
|
||||
<h5>Preview</h5>
|
||||
<Image src="/demo/images/galleria/galleria11.jpg" alt="Image" width="250" preview />
|
||||
<Image :src="baseUrl + 'demo/images/galleria/galleria11.jpg'" alt="Image" width="250" preview />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -26,6 +26,14 @@
|
|||
import ImageDoc from './ImageDoc';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
components: {
|
||||
ImageDoc: ImageDoc
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
<div class="flex justify-content-between py-6">
|
||||
<span>
|
||||
<img :src="'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" />
|
||||
<img :src="baseUrl + 'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" />
|
||||
</span>
|
||||
<div class="flex align-items-center">
|
||||
<a href="https://twitter.com/primevue" class="linkbox block w-3rem h-3rem flex align-items-center justify-content-center mr-3">
|
||||
|
@ -85,3 +85,16 @@
|
|||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<section :ref="containerRef" :class="['landing-header pad-section', { 'landing-header-active': menuActive }]">
|
||||
<span>
|
||||
<img :src="'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" class="landing-header-logo" />
|
||||
<img :src="baseUrl + 'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" class="landing-header-logo" />
|
||||
</span>
|
||||
|
||||
<div class="flex align-items-center">
|
||||
|
@ -54,13 +54,15 @@ export default {
|
|||
emits: ['theme-toggle'],
|
||||
data() {
|
||||
return {
|
||||
menuActive: false
|
||||
menuActive: false,
|
||||
baseUrl: '/'
|
||||
};
|
||||
},
|
||||
scrollListener: null,
|
||||
container: null,
|
||||
mounted() {
|
||||
this.bindScrollListener();
|
||||
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||
},
|
||||
beforeUnmount() {
|
||||
if (this.scrollListener) {
|
||||
|
|
Loading…
Reference in New Issue