Skip to content

Commit

Permalink
add: picker组件增加zIndex属性
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Nov 30, 2024
1 parent 57ac281 commit 0250a77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uni_modules/uview-plus/components/u-picker/picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default {
keyName: 'text',
closeOnClickOverlay: false,
defaultIndex: [],
immediateChange: true
immediateChange: true,
zIndex: 10076,
}
}
5 changes: 5 additions & 0 deletions src/uni_modules/uview-plus/components/u-picker/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,10 @@ export const props = defineMixin({
type: Boolean,
default: false
},
// 层级
zIndex: {
type: [String, Number],
default: () => defProps.picker.zIndex
},
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<u-popup
:show="show || (hasInput && showByClickInput)"
:mode="popupMode"
:zIndex="zIndex"
@close="closeHandler"
>
<view class="u-picker">
Expand Down

0 comments on commit 0250a77

Please sign in to comment.