primevue-mirror/apps/showcase/doc/iconfield/pt/PTViewer.vue

32 lines
720 B
Vue
Raw Normal View History

2024-09-19 07:01:02 +00:00
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="docs">
<IconField>
<InputIcon class="pi pi-search" />
<InputText v-model="value" placeholder="Search" />
</IconField>
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
value: null,
docs: [
{
data: getPTOptions('IconField'),
key: 'IconField'
},
{
data: getPTOptions('InputIcon'),
key: 'InputIcon'
}
]
};
}
};
</script>