@red-code-mp/mp-builder
Version:
* [Structure](#Structure) * [Route](#Route) * [Endpoints](#Endpoints) * [Table](#Table) * [Lang](#Lang) * [Menu](#Menu) * [Toast](#Toast)
41 lines (39 loc) • 818 B
JavaScript
import Base from './base'
export default {
mixins: [Base],
props: {
field: {
required: true,
default: () => {
return {}
}
}
},
computed: {
component$() {
return this.field;
},
/**
* @author khalid
* @private
* input type
*/
__type() {
return this.component$.type ?? 'text'
},
__is(){
return this.field.is;
}
},
methods: {
onCreated() {
}
},
watch: {
// __model: {
// handler: function (newVal, oldVal) {
// // FormBuilder.$emit(this.component$.field, newVal)
// }
// }
}
}