Skip to content

Commit

Permalink
feat(docs): support disable open_in_new operate btn
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Nov 13, 2024
1 parent 33a963c commit 8d8cc44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/.vitepress/components/Playground.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
>content_copy{{ copyStatusSuffix }}</span>
<span class="material-symbols-rounded">link</span>
<span class="material-symbols-rounded">report</span>
<span class="material-symbols-rounded">open_in_new</span>
<span class="material-symbols-rounded" v-if="!diableOpenInNew"
>open_in_new</span>
</div>
</div>
<slot />
Expand Down Expand Up @@ -57,8 +58,8 @@
.top-bar, .bottom-bar {
> .left, > .right {
.material-symbols-rounded {
padding: 12px;
font-size: 24px;
padding: 18px;
font-size: 20px;
}
}
}
Expand Down Expand Up @@ -141,6 +142,10 @@ const props = defineProps({
defaultEditable: {
type: Boolean,
default: false
},
diableOpenInNew: {
type: Boolean,
default: false
}
})
const slots = defineSlots<{
Expand Down
1 change: 1 addition & 0 deletions docs/zh-Hans/playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Playground from '#components/Playground.vue'
style="--radius: 0px; margin-top: 0; height: calc(100vh - 64px);"
class="xl"
defaultEditable
diableOpenInNew
>
```ts
Expand Down

0 comments on commit 8d8cc44

Please sign in to comment.