primevue-mirror/doc/configuration/PTDoc.vue

31 lines
703 B
Vue
Raw Normal View History

2023-07-09 21:13:49 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Defines the shared pass through properties per component type. Visit the <NuxtLink to="/passthrough">Pass Through Props</NuxtLink> documentation for more information.</p>
</DocSectionText>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
2023-07-09 21:13:49 +00:00
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
import { createApp } from "vue";
2023-07-09 21:13:49 +00:00
import PrimeVue from "primevue/config";
const app = createApp(App);
2024-01-30 08:16:35 +00:00
app.use(PrimeVue, {
2023-07-09 21:13:49 +00:00
pt: {
slider: {
2023-07-10 12:34:02 +00:00
handle: { class: 'bg-primary' }
2023-07-09 21:13:49 +00:00
}
2024-01-30 08:16:35 +00:00
}
2023-09-22 12:54:14 +00:00
});
`
2023-07-09 21:13:49 +00:00
}
};
}
};
</script>