mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-02-12 14:43:49 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
995c1d023f | ||
|
|
d53396235f |
@@ -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');
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user