Skip to content

Commit 0503b03

Browse files
committed
fix: add demo of style
1 parent a1f4944 commit 0503b03

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

examples/sites/demos/pc/app/modal/default-grid-composition-api.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<tiny-button @click="visible = !visible" :reset-time="0">默认插槽</tiny-button>
44
<tiny-modal v-model="visible" :lock-scroll="false" show-footer width="1000">
55
<template #default>
6-
<p>test</p>
6+
<p class="test">test</p>
77
<tiny-grid :tooltip-config="{ 'append-to-body': true }" :data="tableData" :auto-resize="true">
88
<tiny-grid-column type="index" width="60"></tiny-grid-column>
99
<tiny-grid-column type="selection" width="60"></tiny-grid-column>
@@ -46,3 +46,9 @@ const tableData = ref([
4646
}
4747
])
4848
</script>
49+
50+
<style scoped>
51+
.test {
52+
margin-bottom: 16px;
53+
}
54+
</style>

examples/sites/demos/pc/app/modal/default-grid.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<tiny-button @click="visible = !visible" :reset-time="0">默认插槽</tiny-button>
44
<tiny-modal v-model="visible" :lock-scroll="false" show-footer width="1000">
55
<template #default>
6-
<p>test</p>
6+
<p class="test">test</p>
77
<tiny-grid :tooltip-config="{ 'append-to-body': true }" :data="tableData" :auto-resize="true">
88
<tiny-grid-column type="index" width="60"></tiny-grid-column>
99
<tiny-grid-column type="selection" width="60"></tiny-grid-column>
@@ -57,3 +57,9 @@ export default {
5757
}
5858
}
5959
</script>
60+
61+
<style scoped>
62+
.test {
63+
margin-bottom: 16px;
64+
}
65+
</style>

0 commit comments

Comments
 (0)