style.vue 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div>
  3. <el-table :data="tableData" style="width: 100%">
  4. <el-table-column prop="date" label="item enabled 属性值" width="180"></el-table-column>
  5. <el-table-column prop="name" label="item selected 属性值" width="180"></el-table-column>
  6. <el-table-column prop="address" label="item 当前状态"></el-table-column>
  7. </el-table>
  8. </div>
  9. </template>
  10. <script lang="ts">
  11. import { Component, Vue } from "vue-property-decorator";
  12. @Component
  13. export default class StyleCanvas extends Vue {
  14. tableData = [
  15. {
  16. date: 'false',
  17. name: 'false',
  18. address: 'Disabled'
  19. }, {
  20. date: 'false',
  21. name: 'true',
  22. address: 'Disabled'
  23. }, {
  24. date: 'true',
  25. name: 'false',
  26. address: 'Default'
  27. }, {
  28. date: 'true',
  29. name: 'true',
  30. address: 'Selected'
  31. },
  32. ];
  33. }
  34. </script>
  35. <style scoped>
  36. </style>