From f350f191b0e29f0a6f215b4d539b9db3df1fdbd6 Mon Sep 17 00:00:00 2001 From: yajun Date: Wed, 12 Oct 2022 20:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0starbutton=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=9B=BE=E6=A0=87=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=8F=82=E6=95=B0fontsize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/button/button.ts | 10 +++++++++- src/test/panels/button/button.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/button/button.ts b/src/components/button/button.ts index 6b145da..21a791d 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -40,6 +40,7 @@ export class StarButton extends StarBaseElement { @property({type: String}) treatment = '' @property({type: String}) icon = 'bug' @property({type: String}) iconcolor = '' + @property({type: String}) fontsize = '' getBaseButton(): HTMLTemplateResult { return html` @@ -59,9 +60,16 @@ export class StarButton extends StarBaseElement { } getIconOnlyButton(): HTMLTemplateResult { - return html` + if(this.fontsize){ + return html` + + ` + }else { + return html` ` + } + } getConfirmButton(): HTMLTemplateResult { diff --git a/src/test/panels/button/button.ts b/src/test/panels/button/button.ts index b99e107..a2bd6ec 100644 --- a/src/test/panels/button/button.ts +++ b/src/test/panels/button/button.ts @@ -10,7 +10,7 @@ export class PanelButton extends LitElement { return html` - +