2024-04-28 10:10:03 +08:00
|
|
|
<template>
|
2025-05-13 16:17:16 +08:00
|
|
|
<uni-easyinput :inputBorder="false" class="w-form-input" :maxlength="-1" v-if="!readonly" type="textarea" v-model="_value" :placeholder="props.formProps.placeholder || '请输入内容'"/>
|
2024-04-28 10:10:03 +08:00
|
|
|
<text class="w-form-input-rv" v-else>{{_value}}</text>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import {computed} from 'vue'
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
formProps: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => {
|
|
|
|
|
return {}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
modelValue: String,
|
|
|
|
|
readonly: Boolean
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const _value = computed({
|
|
|
|
|
get() {
|
|
|
|
|
return props.modelValue
|
|
|
|
|
},
|
|
|
|
|
set(val) {
|
|
|
|
|
emits('update:modelValue', val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const emits = defineEmits(['update:modelValue'])
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
</style>
|