primevue-mirror/doc/configuration/ImportDoc.vue

22 lines
538 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Configuration is managed by the <i>PrimeVue</i> instance imported from <i>primevue/config</i>.</p>
</DocSectionText>
2023-02-28 17:40:48 +00:00
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
data() {
return {
code: {
2023-03-02 12:23:54 +00:00
basic: `import PrimeVue from 'primevue/config';
2023-02-28 08:29:30 +00:00
const app = createApp(App);
2023-08-01 10:23:12 +00:00
app.use(PrimeVue, { /* options */ });`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>