UNPKG

otp-code-component

Version:

Google Authenticator 验证组件

97 lines (96 loc) 2.71 kB
import { h } from "@stencil/core"; import { format } from "../../utils/utils"; export class MyComponent { /** * The first name */ first; /** * The middle name */ middle; /** * The last name */ last; getText() { return format(this.first, this.middle, this.last); } render() { return h("div", { key: '70654fc83039b5f659efe99cc990e9b86d20dbe0' }, "Hello, World! I'm ", this.getText()); } static get is() { return "my-component"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["my-component.css"] }; } static get styleUrls() { return { "$": ["my-component.css"] }; } static get properties() { return { "first": { "type": "string", "attribute": "first", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The first name" }, "getter": false, "setter": false, "reflect": false }, "middle": { "type": "string", "attribute": "middle", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The middle name" }, "getter": false, "setter": false, "reflect": false }, "last": { "type": "string", "attribute": "last", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "The last name" }, "getter": false, "setter": false, "reflect": false } }; } } //# sourceMappingURL=my-component.js.map