Skip to content

Commit

Permalink
fix(timeselect): add lock-scroll props(jd-opensource#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
szg2008 committed Jun 1, 2022
1 parent 66ce0b8 commit e69ebba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/__VUE/timeselect/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
| title | Bomb layer title | String | `Pickup Time`
| current-key | Unique identification | String、Number | `0`
| current-time | The currently selected time, the array element contains:key: string; list: string[] | Array | `[]`
| lock-scroll | Whether the background is locked | Boolean | `false` |

### TimePannel Prop

Expand Down
1 change: 1 addition & 0 deletions src/packages/__VUE/timeselect/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
| title | 弹层标题 | String | `取件时间`
| current-key | 唯一标识 | String、Number | `0`
| current-time | 当前选择的时间,数组元素包含:key: string; list: string[] | Array | `[]`
| lock-scroll | 背景是否锁定 | Boolean | `false` |

### TimePannel Prop

Expand Down
5 changes: 5 additions & 0 deletions src/packages/__VUE/timeselect/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
round
:visible="visible"
:style="popStyle"
:lock-scroll="lockScroll"
@click-overlay="close"
@click-close-icon="close"
>
Expand Down Expand Up @@ -56,6 +57,10 @@ export default create({
muti: {
type: [Boolean],
default: false
},
lockScroll: {
type: [Boolean],
default: false
}
},
emits: ['update:visible', 'select'],
Expand Down
5 changes: 5 additions & 0 deletions src/packages/__VUE/timeselect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:isWrapTeleport="isWrapTeleport"
:visible="visible"
:style="popStyle"
:lock-scroll="lockScroll"
@click-overlay="close"
@click-close-icon="close"
>
Expand Down Expand Up @@ -54,6 +55,10 @@ export default create({
return [];
}
},
lockScroll: {
type: [Boolean],
default: false
},
isWrapTeleport: {
type: Boolean,
default: false
Expand Down

0 comments on commit e69ebba

Please sign in to comment.