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 1db1012 commit d96fa2dCopy full SHA for d96fa2d
src/index.js
@@ -1,6 +1,7 @@
1
/* 参考文档: https://github.com/IceApriler/miniprogram-picker */
2
3
Component({
4
+ externalClasses: ['picker-class'],
5
/**
6
* 组件的属性列表
7
*/
@@ -141,6 +142,10 @@ Component({
141
142
multiIndex,
143
multiArray
144
})
145
+
146
+ if (this.data.autoSelect) {
147
+ this.processData()
148
+ }
149
}
150
},
151
src/index.wxml
@@ -1,4 +1,5 @@
<picker
+ class="picker picker-class"
mode="multiSelector"
bindchange="pickerChange"
bindcolumnchange="pickerColumnChange"
src/index.wxss
@@ -1 +1,5 @@
+.picker {
+ width: 100%;
+ height: 100%;
+}
0 commit comments