tabbar底部导航栏
"tabBar": {
"color": "#333333",
"selectedColor": "#557AD6",
"borderStyle": "white",
"backgroundColor": "#FFFFFF",
"position": "bottom",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/home11.png",
"selectedIconPath": "static/home1.png",
"text": "首页"
},
{
"pagePath": "pages/gongneng/GongNeng",
"iconPath": "static/home22.png",
"selectedIconPath": "static/home2.png",
"text": "功能"
}
]
}
uniapp自定义验证规则
<uni-forms ref="myForm" :modelValue="submitData"></uni-forms>
//rules这个东西不要写在标签里了,自定义验证不会触发,卸载下面的生命周期中
onReady() {
// 需要在onReady中设置规则
this.$refs.myForm.setRules(this.formRules)
},