wangrong
2021-11-24 130b72d6c5734f8acaac0214b6dfe5c8bfa319c3
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
<template>
  <el-dropdown @command="handleCommand">
    <span class="el-dropdown-link">
      其他操作<i class="el-icon-arrow-down el-icon--right"></i>
    </span>
    <el-dropdown-menu slot="dropdown">
      <el-dropdown-item
        v-for="(dropInfo, key) in dropOption"
        :key="key"
        :command="dropInfo"
        :value="dropInfo"
        >{{ dropInfo.item }}</el-dropdown-item
      >
    </el-dropdown-menu>
  </el-dropdown>
</template>
 
<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  props: ["dropOption"],
  methods: {
    handleCommand(command) {
      this.$emit("handleAct", command);
    },
  },
};
</script>