New file |
| | |
| | | /* eslint-disable */ |
| | | /* prettier-ignore */ |
| | | // @ts-nocheck |
| | | // noinspection JSUnusedGlobalSymbols |
| | | // Generated by unplugin-auto-import |
| | | export {} |
| | | declare global { |
| | | |
| | | } |
New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-nocheck |
| | | // Generated by unplugin-vue-components |
| | | // Read more: https://github.com/vuejs/core/pull/3399 |
| | | export {} |
| | | |
| | | /* prettier-ignore */ |
| | | declare module 'vue' { |
| | | export interface GlobalComponents { |
| | | ElButton: typeof import('element-plus/es')['ElButton'] |
| | | ElIcon: typeof import('element-plus/es')['ElIcon'] |
| | | ElIconEdit: typeof import('@element-plus/icons-vue')['Edit'] |
| | | ElIconPlus: typeof import('@element-plus/icons-vue')['Plus'] |
| | | ElTable: typeof import('element-plus/es')['ElTable'] |
| | | ElTag: typeof import('element-plus/es')['ElTag'] |
| | | RouterLink: typeof import('vue-router')['RouterLink'] |
| | | RouterView: typeof import('vue-router')['RouterView'] |
| | | } |
| | | } |
| | |
| | | <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> |
| | |
| | | resolvers: [ |
| | | ElementPlusResolver(), |
| | | // 自动导入图标组件 |
| | | IconsResolver({}), |
| | | IconsResolver({ |
| | | prefix: 'el-icon-', |
| | | }), |
| | | ], |
| | | dts: false |
| | | // dts: false, |
| | | dts: "src/typings/auto-imports.d.ts", |
| | | }), |
| | | Components({ |
| | | resolvers: [ |
| | |
| | | enabledCollections: ["ep"], |
| | | }), |
| | | ], |
| | | dts: false |
| | | // dts: false, |
| | | dts: "src/typings/components.d.ts", |
| | | }), |
| | | Icons({ |
| | | // 自动安装图标库 |