|
1
2
|
<template>
<div class="p-4 flex justify-center">
|
nebv
authored
|
3
|
<div class="demo-wrap p-10">
|
|
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';
|
|
15
16
17
18
19
20
21
22
23
|
export default defineComponent({
components: {
StrengthMeter,
},
setup() {
return {};
},
});
</script>
|
nebv
authored
|
24
25
26
27
28
29
30
|
<style lang="less" scoped>
.demo-wrap {
width: 50%;
background: #fff;
border-radius: 10px;
}
</style>
|