32 lines
729 B
Vue
32 lines
729 B
Vue
|
<template>
|
||
|
<DocSectionText v-bind="$attrs">
|
||
|
<p>To start with, Ripple needs to be enabled globally. See the <nuxt-link to="/ripple">Configuration API</nuxt-link> for details.</p>
|
||
|
</DocSectionText>
|
||
|
<DocSectionCode :code="code" import hideCodeSandbox hideStackBlitz />
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
code: {
|
||
|
basic: `
|
||
|
mounted() {
|
||
|
this.$primevue.config.ripple = true;
|
||
|
}`,
|
||
|
options: `
|
||
|
mounted() {
|
||
|
this.$primevue.config.ripple = true;
|
||
|
}`,
|
||
|
composition: `
|
||
|
import { usePrimeVue } from 'primevue/config';
|
||
|
|
||
|
const PrimeVue = usePrimeVue();
|
||
|
|
||
|
PrimeVue.config.ripple = true;`
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|