From 2174dcfcfe976573403130241ad50af71ebb5bd1 Mon Sep 17 00:00:00 2001 From: lingbopro Date: Sun, 8 Dec 2024 17:01:22 +0800 Subject: [PATCH] perf(ripple): remove unused stuff --- src/components/ripple/ripple.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/ripple/ripple.ts b/src/components/ripple/ripple.ts index 0213297..290a081 100644 --- a/src/components/ripple/ripple.ts +++ b/src/components/ripple/ripple.ts @@ -13,11 +13,6 @@ export class Ripple extends useElement({ const containerEl = shadowRoot.querySelector('.container') as HTMLDivElement; const rippleTemplateEl = shadowRoot.querySelector('.ripple-template') as HTMLDivElement; - // 获取文字颜色 - const computedTextColor = getComputedStyle(this).color; - const textColor = computedTextColor.replace(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g, '$1, $2, $3'); - containerEl.style.setProperty('--mm-internal-text-color', textColor); - /** 波纹点击开始 */ const rippleTouchStart = (event: MouseEvent, node?: HTMLElement) => { if (!node) {