mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 11:19:16 +00:00
34 lines
772 B
Vue
34 lines
772 B
Vue
![]() |
<template>
|
||
|
<div class="form-group">
|
||
|
<div class="col-sm-12 text-sm">
|
||
|
{{ title }}
|
||
|
</div>
|
||
|
<div class="col-sm-12">
|
||
|
<input type="text" class="form-control" :name="name"
|
||
|
:title="title" autocomplete="off"
|
||
|
ref="str"
|
||
|
:value="value" @input="handleInput"
|
||
|
:placeholder="title">
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "CustomString",
|
||
|
props: {
|
||
|
title: String,
|
||
|
name: String,
|
||
|
value: String
|
||
|
},
|
||
|
methods: {
|
||
|
handleInput(e) {
|
||
|
this.$emit('input', this.$refs.str.value);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
|
||
|
</style>
|