Commit befb9528 authored by lipengcheng 's avatar lipengcheng

feat: symbol方式引入iconfont

parent 1c267fda
...@@ -17,4 +17,5 @@ ...@@ -17,4 +17,5 @@
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
<script src='https://at.alicdn.com/t/font_225870_1m6sm6jaktk.js'></script>
</html> </html>
// iconfont的基础css样式
.icon {
width: 1em; height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
...@@ -69,4 +69,3 @@ input:-webkit-autofill { ...@@ -69,4 +69,3 @@ input:-webkit-autofill {
-webkit-box-shadow: 0 0 0px 1000px white inset !important; -webkit-box-shadow: 0 0 0px 1000px white inset !important;
} }
...@@ -13,6 +13,7 @@ import globalComponents from '@/components/global/index.js' ...@@ -13,6 +13,7 @@ import globalComponents from '@/components/global/index.js'
import filters from '@/filters/index.js' import filters from '@/filters/index.js'
import directives from '@/directives/index.js' import directives from '@/directives/index.js'
import utils from '@/utils/index.js' import utils from '@/utils/index.js'
console.log('process.env:', process.env) console.log('process.env:', process.env)
// 全局注册layout组件 // 全局注册layout组件
Vue.use(layoutComponents) Vue.use(layoutComponents)
......
...@@ -11,6 +11,16 @@ ...@@ -11,6 +11,16 @@
<!-- <a-button type="primary"> <!-- <a-button type="primary">
Primary Primary
</a-button> --> </a-button> -->
<svg
class="icon iconfont"
aria-hidden="true">
<use xlink:href="#icon-13-5wufayulan"></use>
</svg>
<svg
class="icon iconfont"
aria-hidden="true">
<use xlink:href="#icon-14"></use>
</svg>
</div> </div>
</template> </template>
......
const proxyConf = require('./src/config/proxy.config.js') const proxyConf = require('./src/config/proxy.config.js')
console.log('process.env.NODE_ENV1:', process.env) // console.log('process.env.NODE_ENV1:', process.env)
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin') const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment