earthsdk-ui
v1.0.81
Published
基于 vue3、element-plus、earthsdk3 构建的 EarthSDK UI 组件库,提供丰富的 UI 组件和指令,支持按需引入和全局引入。
Readme
安装
文档
yarn
yarn add earthsdk-ui --save
npm
npm i earthsdk-ui --save
使用
全局引入
在main.js中
import { createApp } from 'vue';
import App from './App.vue';
// 完整引入组件库
import 'earthsdk-ui/lib/style.css';
import EarthSDKUI from 'earthsdk-ui';
const app = createApp(App);
// 全局注册
app.use(EarthSDKUI);
app.mount('#app');组件当中
<es-icon name="shouye" color="red"></es-icon>按需引入
组件当中
<script setup>
import { ESIcon } from 'earthsdk-ui';
</script>
<template>
<es-icon name="shouye" color="red"></es-icon>
</template>
<style scoped>
</style>