Blame view

src/views/demo/comp/strength-meter/index.vue 695 Bytes
陈文彬 authored
1
2
<template>
  <div class="p-4 flex justify-center">
3
    <div class="demo-wrap p-10">
陈文彬 authored
4
5
6
7
8
9
10
11
12
13
      <StrengthMeter placeholder="默认" />
      <StrengthMeter placeholder="禁用" disabled />
      <br />
      <StrengthMeter placeholder="隐藏input" :show-input="false" value="!@#qwe12345" />
    </div>
  </div>
</template>

<script lang="ts">
  import { defineComponent } from 'vue';
vben authored
14
  import { StrengthMeter } from '/@/components/StrengthMeter';
陈文彬 authored
15
16
17
18
19
20
21
22
23
  export default defineComponent({
    components: {
      StrengthMeter,
    },
    setup() {
      return {};
    },
  });
</script>
24
25
26
27
28
29
30
<style lang="less" scoped>
  .demo-wrap {
    width: 50%;
    background: #fff;
    border-radius: 10px;
  }
</style>