Vue.js 2.x - Vuetify 2.6.4 - v-data-table v-text-field 应用于多个字段值之和的验证规则
我需要验证盒子的大小并有 3 个字段:
宽度、长度和高度
我解决为根据这个 codepen
现在我必须添加一条进一步的规则:“边的总和< /代码>” 即:宽度+长度+高度的总和
我创建了包含限制的变量:
sos:{"min":20,"max":45},
但我真的不知道如何应用于保持相同结构的项目..
有人可以提出正确的建议吗方向?
谢谢
I need to validate the size of a box
and have 3 fields:
Width
, Length
and Height
I solved as per this codepen
Now I have to add a further rule: "sum of sides
"
i.e: the sum of Width + Length + Height
I create the variable containing the limits:
sos:{"min":20,"max":45},
But I really do not have any Idea of how apply to the project keeping the same structure..
Can somebody suggest the right Direction?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论