schema2code 生成的 list.vue 、add.vue,在 uniForm 中使用 uni-file-picker 组件
 
                                        
                                    
                                    - 发布:2022-07-04 00:10
- 更新:2022-07-04 15:04
- 阅读:1887
产品分类: uniCloud/App
操作步骤:
                                    
                                         
                                
                                                                                                预期结果:
                                    
                                    
                                        uni-file-picker 正常显示
                                     
                                
                                                                                                uni-file-picker 正常显示
实际结果:
                                    
                                    
                                        uni-file-picker 不报错无法使用
                                     
                                
                                                            uni-file-picker 不报错无法使用
bug描述:
uni-file-picker
1、schema2code 生成的 list.vue  uni-file-picker  不显示,原因:缺少 v-model ,请修复,把value 换成 v-model
2、在 uniForm 中使用报错 uni-file-picker.vue:249 Uncaught (in promise) TypeError: Cannot read property 'push' of undefined  ,原因以及修复方案如下:  
打开 uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue ,把249行,改成
this.form.childrens.push(this)3、在 uniForm 中使用,没报错但不显示,修复方案如下
.uni-file-picker { width: 100%; height: auto; }4、在 uniForm 中使用报错 uni-file-picker.vue:315 Uncaught (in promise) TypeError: this.formItem.setValue is not a function
打开 uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue ,把315行,改成this.formItem.itemSetValue(this.localValue)
 
             
             
             
			 
                                                                     
                                                                    
 
            
5***@qq.com (作者)
是的 因为 uniForm 组件一些方法名改了,而扩展组件的没改导致的
2022-07-04 11:16