1、ISO頁面左右滑動
最外層容器定義以下樣式,如果不成功,就挨個排查頁面樣式
.home{
width: 100%;
overflow-x: hidden;
}
2玖详、uni-file-picker不能選擇圖片
修改源碼把介,地址\node_modules@dcloudio\uni-ui\lib\uni-file-picker\choose-and-upload-file.js
chooseAndUploadFile方法添加opts.sourceType = ['album', 'camera']
function chooseAndUploadFile(opts = { type: 'all' }) {
opts.sourceType = ['album', 'camera']
if (opts.type === 'image') {
return uploadFiles(chooseImage(opts), opts);
}
....
}
3勤讽、切換頁面清空表單
- 在onTabItemTap聲明周期觸發(fā)
- 清空uni-file-picker
this.$refs.filePickerRef.files = []
4、this.$fres不能獲取
查看組件是否使用了v-if拗踢,改成v-show
5脚牍、uni-popup獲取不到ref
復(fù)制源碼,把v-if改成v-show
6巢墅、uni-easyinput后邊添加單位
在fom-item里面诸狭,套一層view