fix(core): update

This commit is contained in:
2021-08-27 13:38:08 +02:00
parent 54ce305cf1
commit 2f52f14cf9
6 changed files with 231 additions and 20 deletions

View File

@@ -28,6 +28,11 @@ export class DeesFormSubmit extends DeesElement {
})
public text: string;
@property({
type: String
})
public status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
constructor() {
super();
}
@@ -36,7 +41,7 @@ export class DeesFormSubmit extends DeesElement {
public render() {
return html`
<dees-button @click="${this.submit}" .disabled="${this.disabled}">
<dees-button status=${this.status} @click=${this.submit} .disabled=${this.disabled}>
${this.text ? this.text : html`<slot></slot>`}
</dees-button>
`;