8***@qq.com
8***@qq.com
  • 发布:2024-12-20 17:23
  • 更新:2024-12-20 17:38
  • 阅读:23

#插件讨论# 为啥我的校验过不去啊

分类:uni-app

为什么我的校验规则被卡了啊?

    const rules = reactive({  
        'name': {  
            type: 'string',  
            message: '请输入阶段名称',  
            trigger: ['blur'],  
            required: true,  
        }  
    })  

        <up-popup mode="bottom" round="15rpx" closeable :show="isShow" @close="close">  
            <view class="popup">  
                <text>{{ popupTitle }}</text>  
                <view>  
                    <up-form :rules="rules" ref="uFormRef" :model="popupData" labelPosition="left" labelWidth="75px">  
                        <up-form-item prop="name" required label="阶段名称:">  
                            <up-input v-model="popupData.title" placeholder="请输入阶段名称"></up-input>  
                        </up-form-item>  
                    </up-form>  
                </view>  
                <up-button style="margin-top: 30rpx;" type="primary" shape="circle" text="确认" @click="submit" />  
            </view>  
        </up-popup>  

2024-12-20 17:23 负责人:无 分享
已邀请:

要回复问题请先登录注册