2022-09-09 20:41:18 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-12-19 11:57:07 +00:00
|
|
|
<Head>
|
|
|
|
<Title>Vue Chip Component</Title>
|
|
|
|
<Meta name="description" content="Chip represents entities using icons, labels and images." />
|
|
|
|
</Head>
|
|
|
|
|
2022-09-09 20:41:18 +00:00
|
|
|
<div class="content-section introduction">
|
|
|
|
<div class="feature-intro">
|
|
|
|
<h1>Chip</h1>
|
|
|
|
<p>Chip represents entities using icons, labels and images.</p>
|
|
|
|
</div>
|
|
|
|
<AppDemoActions />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content-section implementation">
|
|
|
|
<div class="card">
|
|
|
|
<h5>Basic</h5>
|
|
|
|
<div class="flex align-items-center">
|
|
|
|
<Chip label="Action" class="mr-2" />
|
|
|
|
<Chip label="Comedy" class="mr-2" />
|
|
|
|
<Chip label="Mystery" class="mr-2" />
|
|
|
|
<Chip label="Thriller" removable />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Icon</h5>
|
|
|
|
<div class="flex align-items-center">
|
|
|
|
<Chip label="Apple" icon="pi pi-apple" class="mr-2" />
|
|
|
|
<Chip label="Facebook" icon="pi pi-facebook" class="mr-2" />
|
|
|
|
<Chip label="Google" icon="pi pi-google" class="mr-2" />
|
|
|
|
<Chip label="Microsoft" icon="pi pi-microsoft" removable />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Image</h5>
|
|
|
|
<div class="flex align-items-center">
|
2022-12-09 20:47:59 +00:00
|
|
|
<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 />
|
2022-09-09 20:41:18 +00:00
|
|
|
</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" />
|
2022-12-09 20:47:59 +00:00
|
|
|
<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 />
|
2022-09-09 20:41:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ChipDoc />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import ChipDoc from './ChipDoc';
|
|
|
|
|
|
|
|
export default {
|
2022-12-09 20:47:59 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
baseUrl: '/'
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
|
|
|
},
|
2022-09-09 20:41:18 +00:00
|
|
|
components: {
|
|
|
|
ChipDoc: ChipDoc
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.p-chip.custom-chip {
|
|
|
|
background: var(--primary-color);
|
|
|
|
color: var(--primary-color-text);
|
|
|
|
}
|
|
|
|
</style>
|