JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/vue@3.4.22/dist/vue.global.js"></script>
<link rel="stylesheet" href="https://unpkg.com/element-plus@2.7.0/dist/index.css">
<script src="https://unpkg.com/element-plus@2.7.0/dist/index.full.js"></script>
<script src="https://unpkg.com/@element-plus/icons-vue@2.3.1/dist/index.iife.min.js"></script>
<div id="app"></div>
JavaScript
const { createApp, ref, h, resolveComponent } = Vue;
const app = createApp({
template: `
<div v-for="n in items">
<el-date-picker
v-model="n.value"
type="date"
placeholder="hello, world!!"
:prefix-icon="n.icon"
/>
</div>`,
setup() {
const items = ref([
'Delete',
'StarFilled',
'Grid',
'Rank',
'Document',
].map(n => ({
icon: n,
value: '',
})));
return { items };
},
});
Object.entries(ElementPlusIconsVue).forEach(n => app.component(...n));
app.use(ElementPlus).mount('#app');