refactor: export

master
xiaojunnuo 2021-02-09 19:01:15 +08:00
parent 105a1b80ae
commit 136983cf14
5 changed files with 2 additions and 19 deletions

BIN
doc/step3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
its ok
</body>
</html>

View File

@ -1,8 +0,0 @@
body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00B7FF;
}

View File

@ -21,6 +21,7 @@ const icons = {
} }
export default function (app) { export default function (app) {
_.forEach(icons, item => { _.forEach(icons, item => {
console.log('icons:', item.name)
app.component(item.name, item) app.component(item.name, item)
}) })
} }

View File

@ -10,7 +10,7 @@ import components from './components'
const app = createApp(App) const app = createApp(App)
app.config.productionTip = false app.config.productionTip = false
app.use(i18n) app.use(i18n)
app.use(Antd)
icons(app) icons(app)
app.use(Antd)
app.use(components) app.use(components)
app.use(router).mount('#app') app.use(router).mount('#app')