Files
persionalBrand/apps/miniapp/components/ui/brand-field/brand-field.js
T

20 lines
446 B
JavaScript

Component({
options: { addGlobalClass: true },
properties: {
label: String,
value: { type: String, value: "" },
placeholder: String,
type: { type: String, value: "text" },
required: Boolean,
maxlength: { type: Number, value: -1 },
},
methods: {
handleChange(event) {
this.triggerEvent("change", event.detail);
},
handleBlur(event) {
this.triggerEvent("blur", event.detail);
},
},
});