替换掉ant-design的字体图标

This commit is contained in:
pipipi-pikachu 2021-01-14 20:47:08 +08:00
parent 6f66b298d0
commit f923af91b4
6 changed files with 567 additions and 585 deletions

1113
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,6 @@
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
"@ant-design/icons-vue": "^5.1.9",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"ant-design-vue": "^2.0.0-rc.3", "ant-design-vue": "^2.0.0-rc.3",
"chart.js": "^2.9.4", "chart.js": "^2.9.4",

View File

@ -14,5 +14,7 @@
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script src="//at.alicdn.com/t/font_2317509_skpetzgttwg.js"></script>
</body> </body>
</html> </html>

View File

@ -1,7 +0,0 @@
/* eslint-disable */
import { createFromIconfontCN } from '@ant-design/icons-vue'
export default createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/font_2317509_skpetzgttwg.js',
}) as any

View File

@ -0,0 +1,27 @@
<template>
<svg class="icon-font" aria-hidden="true">
<use :xlink:href="`#${type}`"></use>
</svg>
</template>
<script lang="ts">
export default {
name: 'icon-font',
props: {
type: {
type: String,
required: true,
},
},
}
</script>
<style lang="scss" scoped>
.icon-font {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>

View File

@ -11,7 +11,7 @@ import 'animate.css'
import Contextmenu from './plugins/contextmenu' import Contextmenu from './plugins/contextmenu'
import ClickOutside from './plugins/clickOutside' import ClickOutside from './plugins/clickOutside'
import IconFont from '@/components/IconFont' import IconFont from '@/components/IconFont.vue'
import FileInput from '@/components/FileInput.vue' import FileInput from '@/components/FileInput.vue'
import SvgWrapper from '@/components/SvgWrapper.vue' import SvgWrapper from '@/components/SvgWrapper.vue'
import CheckboxButton from '@/components/CheckboxButton.vue' import CheckboxButton from '@/components/CheckboxButton.vue'