Compare commits

..

2 Commits

Author SHA1 Message Date
xiaoshi
995c1d023f Update xiaoshi-pad-card.js 2026-01-29 18:17:48 +08:00
xiaoshi
d53396235f Update xiaoshi-pad-climate-card.js 2026-01-29 18:17:32 +08:00
2 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
console.info("%c 消逝卡-平板端 \n%c v 1.0.8 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
console.info("%c 消逝卡-平板端 \n%c v 1.0.9 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
const loadCards = () => {
import('./xiaoshi-pad-climate-card.js');

View File

@@ -2890,8 +2890,14 @@ class XiaoshiPadClimateCard extends LitElement {
`;
}
_handleClick() {
navigator.vibrate(50);
_handleClick(){
const hapticEvent = new Event('haptic', {
bubbles: true,
cancelable: false,
composed: true
});
hapticEvent.detail = 'light';
this.dispatchEvent(hapticEvent);
}
_formatSeconds(totalSeconds) {