## 安装

### 文档

[earthsdkui官方文档](https://www.earthsdk.com/resource/earthsdkui/index.html)

### yarn

```sh

yarn add earthsdk-ui --save

```

### npm

```sh

npm i earthsdk-ui --save

```

## 使用

### 全局引入

在`main.js`中

```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');
```

组件当中

```vue
<es-icon name="shouye" color="red"></es-icon>
```

### 按需引入

组件当中

```vue
<script setup>

import { ESIcon } from 'earthsdk-ui';

</script>

<template>
 
<es-icon name="shouye" color="red"></es-icon>

</template>

<style scoped>
</style>
```
