From 8d8cc44b0b79cd2943bdb1457275deaf36adae3b Mon Sep 17 00:00:00 2001 From: YiJie Date: Thu, 14 Nov 2024 00:58:10 +0800 Subject: [PATCH] feat(docs): support disable open_in_new operate btn --- docs/.vitepress/components/Playground.client.vue | 11 ++++++++--- docs/zh-Hans/playground.md | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/components/Playground.client.vue b/docs/.vitepress/components/Playground.client.vue index d5bfe62..6b77e41 100644 --- a/docs/.vitepress/components/Playground.client.vue +++ b/docs/.vitepress/components/Playground.client.vue @@ -13,7 +13,8 @@ >content_copy{{ copyStatusSuffix }} link report - open_in_new + open_in_new @@ -57,8 +58,8 @@ .top-bar, .bottom-bar { > .left, > .right { .material-symbols-rounded { - padding: 12px; - font-size: 24px; + padding: 18px; + font-size: 20px; } } } @@ -141,6 +142,10 @@ const props = defineProps({ defaultEditable: { type: Boolean, default: false + }, + diableOpenInNew: { + type: Boolean, + default: false } }) const slots = defineSlots<{ diff --git a/docs/zh-Hans/playground.md b/docs/zh-Hans/playground.md index a30cd2c..8289b30 100644 --- a/docs/zh-Hans/playground.md +++ b/docs/zh-Hans/playground.md @@ -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