# Text field Bone
# Introducción
Componente lógico.
# Código fuente
<script>
const props = {
id_resolver:{
type: String
}
}
import { normalizeProps, assignCamelToSnake } from '../../../helpers/propsGenerator';
const mergedProps = normalizeProps(props)
import { rangeComponentName } from '../../../constants'
export default {
name: rangeComponentName + 'Bone',
props: mergedProps,
data(){
return {
structureError: false
}
},
created() {
assignCamelToSnake(mergedProps, this)
},
mounted() {
this.structureError = this.$propError(props, this.$props, rangeComponentName)
if (this.structureError) {
this.$iclstore.commit('updateSnack', {text: 'Ha ocurrido un error al cargar algunos campos del formulario', active: true, color:'warning'})
}
},
render() {
if (this.structureError) {
return
}
return this.$scopedSlots.default({
id_resolver: this.id_resolver
})
}
}
</script>← Componente Componente →