You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/WebMVC/wwwroot/router/shared/edit/string.html

20 lines
516 B

<template>
<div>
<input type="text" :name="name" class="form-control" v-model="currentValue" v-on:change="$emit('change',name)" />
</div>
</template>
<script>
export default {
props: ['name', 'value', 'valid', 'data', 'prefix'],
data: function () {
return {
currentValue: this.value
};
},
watch: {
currentValue(val) {
this.$emit('update:value', val);
},
},
};
</script>