src/views/home-page/index.vue
@@ -1,12 +1,19 @@ <script setup lang="ts"> import {ref} from "vue"; const edit = ref('plus'); </script> <template> <el-button type="primary">123</el-button> <el-tag>123</el-tag> <el-table></el-table> <el-icon><CirclePlus /></el-icon> <el-icon> <component :is="edit"></component> </el-icon> <el-icon> <component :is="edit"></component> </el-icon> </template> <style scoped>