Skip to content

Commit d96fa2d

Browse files
committed
Add: external classes
1 parent 1db1012 commit d96fa2d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* 参考文档: https://github.com/IceApriler/miniprogram-picker */
22

33
Component({
4+
externalClasses: ['picker-class'],
45
/**
56
* 组件的属性列表
67
*/
@@ -141,6 +142,10 @@ Component({
141142
multiIndex,
142143
multiArray
143144
})
145+
146+
if (this.data.autoSelect) {
147+
this.processData()
148+
}
144149
}
145150
},
146151
/**

src/index.wxml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<picker
2+
class="picker picker-class"
23
mode="multiSelector"
34
bindchange="pickerChange"
45
bindcolumnchange="pickerColumnChange"

src/index.wxss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11

2+
.picker {
3+
width: 100%;
4+
height: 100%;
5+
}

0 commit comments

Comments
 (0)