mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-02-27 22:16:36 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d052410ad | ||
|
|
995c1d023f | ||
|
|
d53396235f |
10
README.md
10
README.md
@@ -5,7 +5,15 @@
|
|||||||
type: module
|
type: module
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## 功能1:分布卡(温度分布、湿度分布)
|
## 功能1:空调卡/加湿器卡/热水器卡/水暖毯卡
|
||||||
|
**引用示例**
|
||||||
|
**详细配置参照可视化编辑器
|
||||||
|
~~~
|
||||||
|
type: custom:xiaoshi-pad-climate-card
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
||||||
|
## 功能2:分布卡(温度分布、湿度分布)
|
||||||
**引用示例**
|
**引用示例**
|
||||||
~~~
|
~~~
|
||||||
type: custom:xiaoshi-pad-grid-card
|
type: custom:xiaoshi-pad-grid-card
|
||||||
|
|||||||
@@ -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 = () => {
|
const loadCards = () => {
|
||||||
import('./xiaoshi-pad-climate-card.js');
|
import('./xiaoshi-pad-climate-card.js');
|
||||||
|
|||||||
@@ -2890,8 +2890,14 @@ class XiaoshiPadClimateCard extends LitElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
_handleClick() {
|
_handleClick(){
|
||||||
navigator.vibrate(50);
|
const hapticEvent = new Event('haptic', {
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: false,
|
||||||
|
composed: true
|
||||||
|
});
|
||||||
|
hapticEvent.detail = 'light';
|
||||||
|
this.dispatchEvent(hapticEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
_formatSeconds(totalSeconds) {
|
_formatSeconds(totalSeconds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user