mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-06 14:27:11 -04:00
feat(ui-lib): demo pages for c-lib components
This commit is contained in:
parent
e88c1d5f2c
commit
92bd83536f
14 changed files with 294 additions and 248 deletions
|
@ -16,7 +16,15 @@ const props = defineProps<{
|
|||
const { href, to } = toRefs(props);
|
||||
|
||||
const theme = useTheme();
|
||||
const tag = computed(() => (href?.value ? 'a' : RouterLink));
|
||||
const tag = computed(() => {
|
||||
if (href?.value) {
|
||||
return 'a';
|
||||
}
|
||||
if (to?.value) {
|
||||
return RouterLink;
|
||||
}
|
||||
return 'span';
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue