纯空格不让提交

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

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-21 18:19:13
* @LastEditors: ch
* @LastEditTime: 2022-06-28 20:07:56
* @LastEditTime: 2022-06-29 18:08:32
* @Description: file content
-->
<template>
@ -50,7 +50,7 @@
<view class="reply-comment">
<view class="reply-comment--box">
<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>
</template>

Loading…
Cancel
Save