summaryrefslogtreecommitdiffstats
path: root/test-scheduler/ui/src/components/env_component/base_input.vue
blob: f4bbde5cfbd8e2cf2b1073f6ed8f9f8f00b03397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<template>
    <div class="form-group">
        <label class="col-lg-3 control-label">{{ name }}</label>
        <div class="col-lg-7">
            <input type="text" class="form-control" v-bind:value="value" v-on:input="$emit('input', $event.target.value)">
        </div>
    </div>
</template>
<script>
export default {
    props: ['name', 'value'],
    data: function() {
        return {
            inputName: this.name,
            inputValue: this.value,
            fake: "abc"
        }
    }
}
</script>