2021-07-13 12:27:40 +00:00
|
|
|
import { LitElement, html } from 'lit';
|
|
|
|
|
|
|
|
export const tagName = 'calc-add';
|
|
|
|
|
|
|
|
class CalcAdd extends LitElement {
|
|
|
|
static get properties() {
|
|
|
|
return {
|
|
|
|
num: {
|
2021-07-13 12:28:50 +00:00
|
|
|
type: Number,
|
|
|
|
},
|
2021-07-13 12:27:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2021-07-13 12:28:50 +00:00
|
|
|
return html` <div>Number: ${this.num}</div> `;
|
2021-07-13 12:27:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-13 12:28:50 +00:00
|
|
|
customElements.define(tagName, CalcAdd);
|