iview rate 评分验证

<FormItem label="您的评价" prop="level" v-if="typeModal == 3">
            <Rate v-model="shenhemodal.level" clearable />
          </FormItem>
shenhemodal: {
   
        level: 0,
      
      },
level: [
          {
            required: true,
            message: "请输入评分",
            trigger: "change",
            type: "number",
            min: 0.5, //关键
          },
        ],

 

posted @ 2022-05-25 17:49  abcByme  阅读(53)  评论(0编辑  收藏  举报