refactor: update shared components

This commit is contained in:
Łukasz Holeczek
2021-08-30 14:51:44 +02:00
parent d9fc9e5502
commit 447c7d9d2f
3 changed files with 15 additions and 12 deletions
+5 -5
View File
@@ -22,9 +22,9 @@
</template>
<script>
import packageJson from "../../package.json";
import pkg from '../../package.json'
export default {
name: "DocsExample",
name: 'DocsExample',
props: {
href: {
type: String,
@@ -33,11 +33,11 @@ export default {
},
},
setup(props) {
const href = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.href}`;
const href = `https://coreui.io/vue/docs/${pkg.config.coreui_library_short_version}/${props.href}`
return {
href,
};
}
},
};
}
</script>