how to use the icon of elementplus in browser ? #8925
-
Hi everybody, i import the elementplus and vue3 with script tag and then
全国
<script src="{% static 'web/plugins/elementplus-2.2.26/js/index.js' %}"></script>
<script src="{% static 'web/plugins/elementplus-2.2.26/js/elementplus-icon.js' %}"></script>
<script>
const main = {
setup() {
const {Edit} = 'ElementPlus/icon-vue'
return {Edit}
}
}
const app = Vue.createApp(main)
app.config.compilerOptions.delimiters = ['${', '}']
app.use(ElementPlus)
app.mount("#app")
</script>
However, the icon of Edit can not be correctly showed on the html. |
Beta Was this translation helpful? Give feedback.
Answered by
chenxch
Aug 7, 2023
Replies: 2 comments 2 replies
-
refer to element-plus/element-plus#13147 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sxzz
-
#solved It solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
refer to element-plus/element-plus#13147