1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| <template>
| <PageWrapper title="Ripple示例">
| <div class="demo-box" v-ripple>content</div>
| </PageWrapper>
| </template>
| <script lang="ts">
| import { defineComponent } from 'vue';
| import RippleDirective from '/@/directives/ripple';
| import { PageWrapper } from '/@/components/Page';
|
| export default defineComponent({
| components: { PageWrapper },
| directives: {
| Ripple: RippleDirective,
| },
| });
| </script>
|
| <style lang="less" scoped>
| .demo-box {
| display: flex;
| align-items: center;
| justify-content: center;
| width: 300px;
| height: 300px;
| border-radius: 10px;
| background-color: #408ede;
| color: #fff;
| font-size: 24px;
| }
| </style>
|
|