Skip to content

Commit

Permalink
chore(play): improve import (#8468)
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz committed Jun 28, 2022
1 parent 3678a66 commit e0e86a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions play/app.example.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<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" />
</div>
</template>

<script setup lang="ts">
import { Check as CheckIcon, Menu as MenuIcon } from '@element-plus/icons-vue'
// code here
</script>

Expand Down
2 changes: 1 addition & 1 deletion play/main.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit e0e86a4

Please sign in to comment.