纯空格不让提交

feature/comment-0620-ch
ch 3 years ago
parent efdf803082
commit f6c4182e68

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-21 18:19:13 * @Date: 2022-06-21 18:19:13
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-28 20:07:56 * @LastEditTime: 2022-06-29 18:08:32
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -50,7 +50,7 @@
<view class="reply-comment"> <view class="reply-comment">
<view class="reply-comment--box"> <view class="reply-comment--box">
<input class="reply-comment--input" maxlength="500" v-model="commentContent" :placeholder="placeholder" /> <input class="reply-comment--input" maxlength="500" v-model="commentContent" :placeholder="placeholder" />
<UiButton type="gradual" :disable="!commentContent" @click="handleSubmit"></UiButton> <UiButton type="gradual" :disable="!commentContent.trim()" @click="handleSubmit"></UiButton>
</view> </view>
</view> </view>
</template> </template>

Loading…
Cancel
Save