Skip to content

Commit f24a7a3

Browse files
committed
fix: uni-data-picker 无法加载云端数据的问题
1 parent 4e5d971 commit f24a7a3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

uni_modules/uni-data-picker/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.3.5(2021-06-04)
2+
- 修复 无法加载云端数据的问题
13
## 0.3.4(2021-05-28)
24
- 修复 v-model无效问题
35
- 修复 loaddata 为空数据组时加载时间过长问题

uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default {
102102
},
103103
computed: {
104104
isLocaldata() {
105-
return (this.localdata && Array.isArray(this.localdata))
105+
return !this.collection.length
106106
},
107107
postField() {
108108
let fields = [this.field];

uni_modules/uni-data-picker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-data-picker",
33
"displayName": "uni-data-picker 数据驱动的picker选择器",
4-
"version": "0.3.4",
4+
"version": "0.3.5",
55
"description": "Picker选择器",
66
"keywords": [
77
"uni-ui",

0 commit comments

Comments
 (0)