kongdeqiang
2022-11-04 98fcbf66162fba0a097a8abcaeba5e1c1e32000e
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
<template>
  <div>
    <Divider class="component-blue" orientation="left"
      >身份验证全屏弹框</Divider
    >
    <Button @click="showCheckPass">开始验证</Button>
    <h3 class="component-article">events</h3>
    <Table
      :columns="events"
      :data="data1"
      border
      size="small"
      width="1000"
    ></Table>
    <h3 class="component-article">methods</h3>
    <Table
      :columns="methods"
      :data="data2"
      border
      size="small"
      width="1000"
    ></Table>
 
    <check-password ref="checkPass" @on-success="checkSuccess" />
  </div>
</template>
<script>
import { props, events, methods } from "./columns";
import checkPassword from "@/views/my-components/xboot/check-password";
export default {
  components: {
    checkPassword,
  },
  data() {
    return {
      props: props,
      events: events,
      methods: methods,
      data1: [
        {
          name: "on-success",
          type: "仅当验证密码正确触发回调",
          value: "true",
        },
      ],
      data2: [
        {
          name: "show",
          type: "显示密码验证组件",
          value: "无",
        },
      ],
    };
  },
  methods: {
    showCheckPass() {
      this.$refs.checkPass.show();
    },
    checkSuccess() {
      this.$Message.success("验证成功");
    },
  },
  mounted() {},
};
</script>