Skip to content

Commit

Permalink
perf(ripple): remove unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lingbopro committed Dec 8, 2024
1 parent 1367ed3 commit 2174dcf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/ripple/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2174dcf

Please sign in to comment.