Skip to content

Instantly share code, notes, and snippets.

@feifeiwuxian
Created January 6, 2020 05:21
Show Gist options
  • Save feifeiwuxian/e796124128e89cdc16b72b8fb66bf815 to your computer and use it in GitHub Desktop.
Save feifeiwuxian/e796124128e89cdc16b72b8fb66bf815 to your computer and use it in GitHub Desktop.
app.json使用"style": "v2"配置后弹窗组件的button大小不对
wxml:
<van-dialog
use-slot
title="标题"
show="{{ show }}"
show-cancel-button
confirm-button-open-type="getUserInfo"
bind:close="onClose"
bind:getuserinfo="getUserInfo"
>
<image src="https://img.yzcdn.cn/vant/apple-3.jpg" />
</van-dialog>
js:
showPopup() {
this.setData({ show: true });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment