Replies: 3 comments 2 replies
-
this code not work :
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Here is a workaround demo, please check it. @r0zbeh <div id="app">
<arrow-left-outlined />
</div> <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.js"></script>
<script type="importmap">
{
"imports": {
"@ant-design/icons-vue": "https://cdn.jsdelivr.net/npm/@ant-design/[email protected]/+esm"
}
}
</script>
<script type="module">
import { ArrowLeftOutlined } from "@ant-design/icons-vue";
const { createApp, ref } = Vue;
createApp({
components: {
ArrowLeftOutlined,
},
setup() {
return {};
},
})
.use(antd)
.mount("#app");
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks alot ! its work fine ! but i forgot to update ant_design_vue version to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How its possible to use icon when Directly import ant design to browser with <script>tag and import css ,js file(ant design v 3.2.2) ?
when import lib by global script ,You should use antd. for use the features ! but how use icons ??? i open the .js file and icons is exist in the file !
Beta Was this translation helpful? Give feedback.
All reactions