mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-02-14 15:38:07 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e15cdfccaa | ||
|
|
c0f45717d4 | ||
|
|
d57f69d4b9 | ||
|
|
1ba54782c0 |
@@ -405,7 +405,7 @@ template: 测试模板(最好引用模板,否则大概率会报错)'>
|
||||
}
|
||||
customElements.define('xiaoshi-ha-info-button-editor', XiaoshiHaInfoButtonEditor);
|
||||
|
||||
export class XiaoshiHaInfoButton extends LitElement {
|
||||
class XiaoshiHaInfoButton extends LitElement {
|
||||
static get properties() {
|
||||
return {
|
||||
hass: Object,
|
||||
|
||||
@@ -153,7 +153,7 @@ class XiaoshiHaInfoCardEditor extends LitElement {
|
||||
}
|
||||
customElements.define('xiaoshi-ha-info-card-editor', XiaoshiHaInfoCardEditor);
|
||||
|
||||
export class XiaoshiHaInfoCard extends LitElement {
|
||||
class XiaoshiHaInfoCard extends LitElement {
|
||||
static get properties() {
|
||||
return {
|
||||
hass: Object,
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
console.info("%c 消逝卡-平板端 \n%c v 0.2.4 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||
console.info("%c 消逝卡-平板端 \n%c v 0.2.5 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||
|
||||
const loadCards = async () => {
|
||||
await import('./xiaoshi-pad-grid-card.js');
|
||||
await import('./xiaoshi-device-balance-card.js');
|
||||
await import('./xiaoshi-device-balance-button.js');
|
||||
await import('./xiaoshi-device-todo-card.js');
|
||||
await import('./xiaoshi-device-todo-button.js');
|
||||
await import('./xiaoshi-device-consumables-card.js');
|
||||
await import('./xiaoshi-device-consumables-button.js');
|
||||
await import('./xiaoshi-device-ha-info-card.js');
|
||||
await import('./xiaoshi-device-ha-info-button.js');
|
||||
const loadCards = () => {
|
||||
import('./xiaoshi-pad-grid-card.js');
|
||||
import('./xiaoshi-device-balance-card.js');
|
||||
import('./xiaoshi-device-balance-button.js');
|
||||
import('./xiaoshi-device-todo-card.js');
|
||||
import('./xiaoshi-device-todo-button.js');
|
||||
import('./xiaoshi-device-consumables-card.js');
|
||||
import('./xiaoshi-device-consumables-button.js');
|
||||
import('./xiaoshi-device-ha-info-card.js');
|
||||
import('./xiaoshi-device-ha-info-button.js');
|
||||
|
||||
window.customCards = window.customCards || [];
|
||||
window.customCards.push(...cardConfigs);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { LitElement, html, css } from "https://unpkg.com/lit-element@2.4.0/lit-element.js?module";
|
||||
|
||||
export class XiaoshiPadGridCard extends LitElement {
|
||||
class XiaoshiPadGridCard extends LitElement {
|
||||
static get properties() {
|
||||
return {
|
||||
hass: Object,
|
||||
|
||||
Reference in New Issue
Block a user