10/15
1. 工作人员账号添加
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
v-model="inputText"
|
||||
:autosize="{ minRows:5, maxRows:8 }"
|
||||
placeholder="请输入回复内容"
|
||||
:disabled="disable"
|
||||
type="textarea"
|
||||
@keydown="handleKeyDown"
|
||||
/>
|
||||
@@ -27,6 +28,7 @@
|
||||
class="btn-img"
|
||||
plain
|
||||
type="info"
|
||||
:disabled="disable"
|
||||
@click="handleSelectImage"
|
||||
>
|
||||
上传图片
|
||||
@@ -52,6 +54,12 @@ const props = defineProps({
|
||||
sending: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
||||
/** 是否禁用输入框 */
|
||||
disable: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
@@ -68,7 +76,7 @@ const inputText = ref('')
|
||||
|
||||
// 是否可以发送
|
||||
const canSend = computed(() => {
|
||||
return !!inputText.value.trim()
|
||||
return !!inputText.value.trim() && !props.disable
|
||||
})
|
||||
|
||||
// 点击图片图标,唤起文件选择
|
||||
|
||||
Reference in New Issue
Block a user