element-plus-extend
v0.0.10
Published
elementplus组件封装
Downloads
1
Maintainers
Readme
element-plus-extend
- 💪 Vue 3
- 🔥 TypeScript
文档
安装
pnpm install element-plus-extend
// main.ts
import { createApp } from 'vue'
import ElementPlus from "element-plus";
import ElementPlusExtend from "element-plus-crx";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import App from './App.vue'
const app = createApp(App)
app.use(ElementPlus);
app.use(ElementPlusExtend);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
app.mount('#app')
使用
<template>
<lc-input v-model="val"></lc-input>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const val = ref('');
</script>