chore(play): improve import (#8468)

This commit is contained in:
zz 2022-06-28 16:25:52 +08:00 committed by GitHub
parent 3678a666f4
commit e0e86a4c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<template>
<div class="play-container">
<el-icon color="#409EFC">
<check-icon />
<el-icon-check />
</el-icon>
<el-icon>
<menu-icon />
<el-icon-menu />
</el-icon>
<el-button>test</el-button>
<div v-loading="true" />
@ -12,7 +12,6 @@
</template>
<script setup lang="ts">
import { Check as CheckIcon, Menu as MenuIcon } from '@element-plus/icons-vue'
// code here
</script>

View File

@ -1,5 +1,5 @@
import { createApp } from 'vue'
import '@element-plus/theme-chalk/src/index.scss'
import '@element-plus/theme-chalk/src/dark/css-vars.scss'
;(async () => {
const apps = import.meta.glob('./src/*.vue')
const name = location.pathname.replace(/^\//, '') || 'App'