SelMune.vue 679 Bytes
Newer Older
唐贵贤 committed
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
<template>
  <el-table
    :data="data"
    border
    stripe
    :show-header="false"
    :cell-style="cellSttyle"
  >
    <el-table-column prop="title" align="center">
      <template slot-scope="scope">
        <el-link
          :disabled="scope.row.disabled"
          :href="scope.row.url"
          v-if="scope.row.title"
          >{{ scope.row.title }}</el-link
        >
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: ["data"],
  data() {
    return {
      cellSttyle: { height: "25px" },
    };
  },
};
</script>

<style>
a {
  text-decoration-line: none;
  color: #606266;
}
a:hover {
  color: blue;
}
</style>