Blame view

src/views/demo/feat/ripple/index.vue 692 Bytes
vben authored
1
<template>
2
  <PageWrapper title="Ripple示例">
vben authored
3
    <div class="demo-box" v-ripple>content</div>
4
  </PageWrapper>
vben authored
5
6
7
8
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import RippleDirective from '/@/directives/ripple';
9
10
  import { PageWrapper } from '/@/components/Page';
vben authored
11
  export default defineComponent({
12
    components: { PageWrapper },
vben authored
13
14
15
16
17
18
19
20
21
22
23
24
25
    directives: {
      Ripple: RippleDirective,
    },
  });
</script>

<style lang="less" scoped>
  .demo-box {
    display: flex;
    width: 300px;
    height: 300px;
    font-size: 24px;
    color: #fff;
26
    background-color: #408ede;
vben authored
27
28
29
30
31
    border-radius: 10px;
    justify-content: center;
    align-items: center;
  }
</style>