1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <template>
| <div class="flex-items-center">
| <span class="flex-0 mr-2" v-if="data?.title">{{ data?.title }}</span>
| <el-input :disabled="disabled" v-model="modelValue" @input="stringInputInput" clearable></el-input>
| </div>
| </template>
|
| <script setup lang="ts">
|
| defineOptions({
| inheritAttrs:true
| })
|
| const emit = defineEmits(['change'])
| const props = defineProps(['data','disabled'])
| const modelValue = defineModel({
| type:String,
| default:''
| })
| const stringInputInput = (val) => {
| emit('change',val)
| };
| </script>
| <style scoped lang="scss"></style>
|
|