Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望u-picker暴露配置API,用户配置是否使用popup功能。 #1090

Open
secondmax opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@secondmax
Copy link

这个功能解决了什么问题?

场景:u-picker如果套在一个u-popup中使用,u-picker显示时会把覆盖原来的u-popup自定义样式。
原因:因为u-picker原码中最外层有一个u-popup,会与业务代码中原来的u-popup冲突。

业务代码示例:

<u-popup
      :zoom="false"
      :safeAreaInsetBottom="false"
      :custom-style="{ 'border-radius': '30rpx 30rpx 0 0' }"
      :round="true"
      mode="bottom"
      :show="show"
      @close="close"
    >
      <view class="popup_content">
        <text>自定义样式与内容</text>
        <u-picker
          :show="true"
          :columns="columns"
          :showToolbar="false"
          :closeOnClickOverlay="true"
          @close="show = false"
        ></u-picker>
      </view>
    </u-popup>

你期望的 API 是怎样的?

期望:提供用户可以选择是否使用popup功能的属性。

<u-picker :popup="false" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant