We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5abc4 commit 44ac97dCopy full SHA for 44ac97d
src/picker/_example/area/index.js
@@ -100,14 +100,18 @@ Component({
100
101
lifetimes: {
102
ready() {
103
+ this.init();
104
+ },
105
106
+
107
+ methods: {
108
+ init() {
109
const { provinces } = this.data;
110
const { cities, counties } = this.getCities(provinces[0].value);
111
112
this.setData({ cities, counties });
113
},
- },
114
- methods: {
115
onColumnChange(e) {
116
console.log('pick:', e.detail);
117
const { column, index } = e.detail;
@@ -159,6 +163,9 @@ Component({
159
163
this.setData({
160
164
areaVisible: false,
161
165
});
166
167
+ if (this.data.areaValue.length) return;
168
162
169
170
171
onAreaPicker() {
0 commit comments