Skip to content

Commit 55eca46

Browse files
committed
fix: fix half screen dialog buttons. close #158
1 parent 72d0fe5 commit 55eca46

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/half-screen-dialog/half-screen-dialog.less

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@
2020
.weui-half-screen-dialog {
2121
transform: translateY(0%);
2222
}
23-
}
23+
}
24+
25+
.weui-half-screen-dialog__ft {
26+
display: flex;
27+
}

tools/demo/example/half-screen-dialog/half-screen-dialog.wxml

+7-11
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,20 @@
1212
<mp-halfScreenDialog show="{{typeF}}">
1313
<view slot="title">测试标题A</view>
1414
<view slot="desc">这是自定义描述区</view>
15-
<view slot="footer">
16-
<button type="default" class="weui-btn">按钮A</button>
17-
<button type="primary" class="weui-btn">按钮B</button>
18-
</view>
15+
<button slot="footer" type="default" class="weui-btn">按钮A</button>
16+
<button slot="footer" type="primary" class="weui-btn">按钮B</button>
1917
</mp-halfScreenDialog>
2018
<mp-halfScreenDialog show="{{typeT}}" closabled="{{false}}">
2119
<view slot="title">测试标题A</view>
2220
<view slot="desc">这是自定义描述区</view>
23-
<view slot="footer">
24-
<button type="default" class="weui-btn">按钮A</button>
25-
<button type="primary" class="weui-btn">按钮B</button>
26-
</view>
21+
<button slot="footer" type="default" class="weui-btn">按钮A</button>
22+
<button slot="footer" type="primary" class="weui-btn">按钮B</button>
2723
</mp-halfScreenDialog>
28-
<mp-halfScreenDialog
24+
<mp-halfScreenDialog
2925
bindbuttontap="buttontap"
3026
show="{{typeS}}"
31-
maskClosable="{{false}}"
32-
title="测试标题B"
27+
maskClosable="{{false}}"
28+
title="测试标题B"
3329
subTitle="测试标题B的副标题"
3430
desc="辅助描述内容,可根据实际需要安排"
3531
tips="辅助提示内容,可根据实际需要安排"

0 commit comments

Comments
 (0)