2023-10-25 03:17:40 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Configures the global pass through import path.</p>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
|
|
|
|
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
|
2023-10-25 03:17:40 +00:00
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
|
|
|
basic: `
|
2024-01-30 08:16:35 +00:00
|
|
|
primevue: {
|
2024-03-26 14:12:37 +00:00
|
|
|
importPT: { as: 'MyCustomPreset', from: path.resolve(__dirname, './presets/mypreset.js')}
|
2023-10-25 03:17:40 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
|
|
|
basic: `
|
|
|
|
const MyPreset = {
|
|
|
|
...
|
|
|
|
button: {
|
|
|
|
root: 'my-button',
|
|
|
|
...
|
|
|
|
},
|
|
|
|
...
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyPreset;
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|