From f4c46c9b1b8a23660d9fe300efd66af611a66ca6 Mon Sep 17 00:00:00 2001 From: 0song <82012629+0song@users.noreply.github.com> Date: Mon, 31 May 2021 14:31:01 +0800 Subject: [PATCH] feat: demo Composition API (#2099) * feat: demo Composition API * chore: update * chore: update * chore: update --- website/components/demo-block.vue | 105 ++++++++++++++++++++++-------- website/docs/zh-CN/radio.md | 12 ++++ website/i18n/component.json | 10 +++ website/util.js | 20 +++++- 4 files changed, 119 insertions(+), 28 deletions(-) diff --git a/website/components/demo-block.vue b/website/components/demo-block.vue index 3b6bcda6e3..c954ebad41 100644 --- a/website/components/demo-block.vue +++ b/website/components/demo-block.vue @@ -28,9 +28,20 @@ {{ controlText }} +
+ + {{ showSetup ? langConfig['switch-button-option-text'] : langConfig['switch-button-setup-text'] }} + +
{ - const result = stripTemplate(code) + const result = removeSetup(stripTemplate(code)) if (result.indexOf('