zhanghua
2025-04-14 829f5116884f98643ffc5b2a548a600d40c0cedb
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
<template>
  <div class="userList">
    <myMain :refresh="isFresh" :keyword="keyword" @resetFresh="resetFresh" />
  </div>
</template>
<script>
import myHeader from "./components/header";
import myMain from "./components/main";
export default {
  components: {
    myHeader,
    myMain,
  },
  data() {
    return {
      isFresh: false,
      keyword: "",
    };
  },
  created() {},
  methods: {
    // 获取搜索返回结果
    getSearch({ text }) {
      this.keyword = text;
      this.isFresh = true;
    },
    // 获取刷新结果
    changeDialog({ flag }) {
      this.isFresh = flag;
    },
    // 重置isFresh
    resetFresh({ flag }) {
      this.isFresh = flag;
    },
  },
};
</script>
<style lang="scss" scoped>
.userList {
  text-align: left;
  padding: 10px 20px;
  // color: #4b9bb7;
  border: 1px solid #ccc;
}
</style>