Skip to content

Commit b93f327

Browse files
authored
fix(drawer): [drawer] modify drawer demo of design (#2385)
1 parent 2d47f95 commit b93f327

25 files changed

+36
-54
lines changed

examples/sites/demos/pc/app/drawer/confirm-event.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@update:visible="visible = $event"
99
@confirm="confirm"
1010
>
11-
<div style="padding: 32px">内容区域</div>
11+
<div>内容区域</div>
1212
</tiny-drawer>
1313
</div>
1414
</template>

examples/sites/demos/pc/app/drawer/dragable-composition-api.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ const drag = ({ width, height }) => {
3939
<style scoped>
4040
.content {
4141
height: 300px;
42-
padding: 16px 0;
4342
}
4443
</style>

examples/sites/demos/pc/app/drawer/dragable.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,5 @@ export default {
4848
<style scoped>
4949
.content {
5050
height: 300px;
51-
padding: 16px 0;
5251
}
5352
</style>

examples/sites/demos/pc/app/drawer/events-composition-api.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@close="onClose"
1111
@confirm="onConfirm"
1212
>
13-
<div class="content">
13+
<div>
1414
<span>内容区域</span>
1515
</div>
1616
</tiny-drawer>
@@ -37,9 +37,3 @@ const onConfirm = () => {
3737
Modal.message({ message: '确定事件', status: 'info' })
3838
}
3939
</script>
40-
41-
<style scoped>
42-
.content {
43-
padding: 20px 0;
44-
}
45-
</style>

examples/sites/demos/pc/app/drawer/events.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div class="demo-drawer">
33
<tiny-button type="primary" @click="showDrawer"> 点击打开抽屉 </tiny-button>
4-
<p>{{ visible }}</p>
54
<tiny-drawer
65
title="事件示例"
76
:show-footer="true"
@@ -11,7 +10,7 @@
1110
@close="onClose"
1211
@confirm="onConfirm"
1312
>
14-
<div class="content">
13+
<div>
1514
<span>内容区域</span>
1615
</div>
1716
</tiny-drawer>
@@ -47,9 +46,3 @@ export default {
4746
}
4847
}
4948
</script>
50-
51-
<style scoped>
52-
.content {
53-
padding: 20px 0;
54-
}
55-
</style>

examples/sites/demos/pc/app/drawer/header-right-slot-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span>自定义头部右侧</span>
88
</div>
99
</template>
10-
<div style="padding: 32px">内容区域</div>
10+
<div>内容区域</div>
1111
</tiny-drawer>
1212
</div>
1313
</template>

examples/sites/demos/pc/app/drawer/header-right-slot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span>自定义头部右侧</span>
88
</div>
99
</template>
10-
<div style="padding: 32px">内容区域</div>
10+
<div>内容区域</div>
1111
</tiny-drawer>
1212
</div>
1313
</template>

examples/sites/demos/pc/app/drawer/header-slot-composition-api.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@ function openDrawer() {
2626

2727
<style scoped>
2828
.my-header {
29-
padding: 0 32px;
30-
border-bottom: 1px solid #ccc;
29+
padding: 32px 32px 24px;
30+
}
31+
32+
.my-header h3 {
33+
font-size: 16px;
34+
font-weight: bold;
35+
line-height: 1.7;
36+
}
37+
38+
.my-header p {
39+
font-size: 12px;
40+
line-height: 1.5;
3141
}
3242
</style>

examples/sites/demos/pc/app/drawer/header-slot.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export default {
3636

3737
<style scoped>
3838
.my-header {
39-
padding: 0 32px;
40-
border-bottom: 1px solid #ccc;
39+
padding: 32px 32px 24px;
4140
}
4241
4342
.my-header h3 {

examples/sites/demos/pc/app/drawer/mask-closable-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<tiny-button @click="openDrawer" type="primary" style="max-width: 200px">单击遮罩层不关闭抽屉</tiny-button>
44
<tiny-drawer title="标题" :mask-closable="false" :visible="visible" @update:visible="visible = $event">
5-
<div style="padding: 32px">单击遮罩层, 不关闭抽屉</div>
5+
<div>单击遮罩层, 不关闭抽屉</div>
66
</tiny-drawer>
77
</div>
88
</template>

0 commit comments

Comments
 (0)