@hybridui/button
Advanced tools
Comparing version 0.0.30 to 0.0.32
@@ -28,5 +28,2 @@ /** | ||
loading: boolean; | ||
/** | ||
* Styles | ||
*/ | ||
display: string; | ||
@@ -33,0 +30,0 @@ block: boolean; |
@@ -38,5 +38,2 @@ /** | ||
this.loading = false; | ||
/** | ||
* Styles | ||
*/ | ||
this.display = EMPTY_STRING; | ||
@@ -58,10 +55,11 @@ this.block = false; | ||
var _a; | ||
console.log(this.usedas); | ||
const slott = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('#slot'); | ||
const slt = slott === null || slott === void 0 ? void 0 : slott.assignedNodes(); | ||
if (slt.length === 0) { | ||
console.log(slott); | ||
} | ||
else { | ||
this.hasSlot = true; | ||
requestAnimationFrame(() => { | ||
this.hasSlot = true; | ||
this.requestUpdate(); | ||
}); | ||
} | ||
@@ -122,3 +120,3 @@ } | ||
__decorate([ | ||
property({ type: String }) | ||
property({ reflect: true }) | ||
], HyButtonElement.prototype, "usedas", void 0); | ||
@@ -125,0 +123,0 @@ __decorate([ |
{ | ||
"name": "@hybridui/button", | ||
"version": "0.0.30", | ||
"version": "0.0.32", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
33856
475