小程序
小游戏
企业微信
微信支付
扫描小程序码分享
如图所示,如果我的表单只有一个输入框,开发者工具就不会报错
如果我表单超过一个输入框,就会提示这个
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
<template>
<view class="container">
<!-- 卡片式表单容器 -->
<view class="form-card">
<uni-forms
ref="formRef"
:model="form"
:rules="rules"
label-position="top"
report-submit="false"
>
<!-- 名称字段 -->
<uni-forms-item label="商品名称" name="name" required>
<uni-easyinput
v-model="form.name"
placeholder="请输入商品名称"
class="form-input"
/>
</uni-forms-item>
<!-- 价格字段 -->
<uni-forms-item label="商品价格" name="bidPrice" required>
type="digit"
v-model="form.bidPrice"
placeholder="请输入商品价格"
<!-- 介绍字段 -->
<uni-forms-item label="介绍" required name="description">
<view class="textarea-wrapper">
<textarea maxlength="100" v-model="form.description" placeholder="请输入介绍"></textarea>
</view>
<!-- 剩余字数提示 -->
<text
class="char-count"
:style="{ color: remainingChars <= 10 ? '#FF0000' : '#666' }"
{{ remainingChars }}字剩余
</text>
</uni-forms>
</template>
代码就是只要用form或者uni-app的uni-forms,就会出现这个渲染层错误
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
本回答由AI生成,可能已过期、失效或不适用于当前情形,请谨慎参考
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
<template>
<view class="container">
<!-- 卡片式表单容器 -->
<view class="form-card">
<uni-forms
ref="formRef"
:model="form"
:rules="rules"
label-position="top"
report-submit="false"
>
<!-- 名称字段 -->
<uni-forms-item label="商品名称" name="name" required>
<uni-easyinput
v-model="form.name"
placeholder="请输入商品名称"
class="form-input"
/>
</uni-forms-item>
<!-- 价格字段 -->
<uni-forms-item label="商品价格" name="bidPrice" required>
<uni-easyinput
type="digit"
v-model="form.bidPrice"
placeholder="请输入商品价格"
class="form-input"
/>
</uni-forms-item>
<!-- 介绍字段 -->
<uni-forms-item label="介绍" required name="description">
<view class="textarea-wrapper">
<textarea maxlength="100" v-model="form.description" placeholder="请输入介绍"></textarea>
</view>
</uni-forms-item>
<!-- 剩余字数提示 -->
<text
class="char-count"
:style="{ color: remainingChars <= 10 ? '#FF0000' : '#666' }"
>
{{ remainingChars }}字剩余
</text>
</uni-forms>
</view>
</view>
</template>
代码就是只要用form或者uni-app的uni-forms,就会出现这个渲染层错误