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.
18 lines
403 B
18 lines
403 B
2 months ago
|
import { onMounted, ref, computed, watch, nextTick } from "vue";
|
||
|
|
||
|
const html = (v) => { return v[0] };
|
||
|
|
||
|
export default {
|
||
|
props: ['modelValue'],
|
||
|
setup(props) {
|
||
|
|
||
|
return { window }
|
||
|
},
|
||
|
template: html`
|
||
|
<input class="input element" :value="modelValue"
|
||
|
@input="$emit('update:modelValue', $event.target.value)" @focus="window.setTimeout (function(){
|
||
|
$event.target.select();
|
||
|
},1);">
|
||
|
`
|
||
|
}
|