zhangxiaoxu123
2023-05-05 f51896f6358a60ab83456358446ac48085b48298
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<template>
  <div>
    <Divider class="component-blue" orientation="left"
      >密码强度提示输入框</Divider
    >
    <setPassword v-model="password" style="width: 300px" />
    <h3 class="component-article">基础用法</h3>
    基本用法,使用 <code>v-model</code> 实现数据的双向绑定。
    <h3 class="component-article">props</h3>
    <Table
      :columns="props"
      :data="data1"
      border
      size="small"
      width="1000"
    ></Table>
    <h3 class="component-article">events</h3>
    <Table
      :columns="events"
      :data="data2"
      border
      size="small"
      width="1000"
    ></Table>
  </div>
</template>
<script>
import { props, events, methods } from "./columns";
import setPassword from "@/views/my-components/xboot/set-password";
export default {
  components: {
    setPassword,
  },
  data() {
    return {
      password: "",
      props: props,
      events: events,
      methods: methods,
      data1: [
        {
          name: "value",
          desc: "绑定的值,可使用 v-model 双向绑定",
          type: "String",
          value: "空",
        },
        {
          name: "size",
          desc: "输入框尺寸,可选值为large、small、default或者不设置",
          type: "String",
          value: "-",
        },
        {
          name: "placeholder",
          desc: "占位文本",
          type: "String",
          value: "请输入密码,长度为6-20个字符",
        },
        {
          name: "disabled",
          desc: "设置输入框和上传按钮为禁用状态",
          type: "Boolean",
          value: "false",
        },
        {
          name: "readonly",
          desc: "设置输入框为只读",
          type: "Boolean",
          value: "false",
        },
        {
          name: "maxlength",
          desc: "设置输入框最大输入长度,默认20",
          type: "Number",
          value: "20",
        },
      ],
      data2: [
        {
          name: "on-change",
          type:
            "强度等级得分0-5,包含数字、小写字母、大写字母、特殊字符、长度≥10各累加1分,≤1分强度为弱、2-4分强度为中、5分强度为强",
          value:
            "第一个参数为返回用户输入的内容,第二个参数为强度等级得分0-5,第三个参数为强度汉字",
        },
      ],
    };
  },
  methods: {},
  mounted() {},
};
</script>