Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/canvas/render/src/builtin/CanvasRouterLink.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<template>
<span
<a
href="javascript:void(0)"
v-bind="$attrs"
:class="{
[activeClass]: active,
[exactActiveClass]: exactActive
}"
>
<slot :href="to" :isActive="active" :isExactActive="exactActive"></slot>
</span>
</a>
</template>
<script lang="ts">
import { computed, inject, PropType, Ref } from 'vue'
Expand Down
18 changes: 9 additions & 9 deletions packages/canvas/render/src/builtin/builtin.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
"type": "String",
"label": {
"text": {
"zh_CN": "准确激活样式雷"
"zh_CN": "准确激活样式类"
}
},
"cols": 12,
Expand Down Expand Up @@ -658,7 +658,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: inline-flex; gap: 8px; padding: 10px 20px;"
"style": "display: inline-flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand All @@ -680,7 +680,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: inline-flex; gap: 8px; padding: 10px 20px;"
"style": "display: inline-flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand All @@ -702,7 +702,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: inline-flex; gap: 8px; padding: 10px 20px;"
"style": "display: inline-flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand Down Expand Up @@ -739,7 +739,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
"style": "display: flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand All @@ -761,7 +761,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
"style": "display: flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand All @@ -783,7 +783,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
"style": "display: flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand All @@ -805,7 +805,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
"style": "display: flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand All @@ -827,7 +827,7 @@
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
"style": "display: flex; gap: 8px; padding: 10px 20px; color: inherit; text-decoration: none;"
},
"children": [
{
Expand Down
Loading