types.vue 633 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div class="demo-type">
  3. <div>
  4. <el-avatar :icon="UserFilled" />
  5. </div>
  6. <div>
  7. <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" />
  8. </div>
  9. <div>
  10. <el-avatar> user </el-avatar>
  11. </div>
  12. </div>
  13. </template>
  14. <script setup lang="ts">
  15. import { UserFilled } from '@element-plus/icons-vue'
  16. </script>
  17. <style scoped>
  18. .demo-type {
  19. display: flex;
  20. }
  21. .demo-type > div {
  22. flex: 1;
  23. text-align: center;
  24. }
  25. .demo-type > div:not(:last-child) {
  26. border-right: 1px solid var(--el-border-color);
  27. }
  28. </style>