earthsdkui-for-xe2
v0.0.11
Published
### yarn
Downloads
2
Readme
安装
yarn
yarn add earthsdkui-for-xe2 --save
npm
npm i earthsdkui-for-xe2 --save
cdn
unpkg
<link
rel="stylesheet"
href="//unpkg.com/earthsdkui-for-xe2/lib/style.css"
/>
<script src="//unpkg.com/earthsdkui-for-xe2"></script>
jsdelivr
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/earthsdkui-for-xe2/lib/style.css"
/>
<script src="//cdn.jsdelivr.net/npm/earthsdkui-for-xe2"></script>
使用
全局引入
在main.js
中
import { createApp } from 'vue';
import App from './App.vue';
// 完整引入组件库
import 'earthsdkui-for-xe2/lib/style.css';
import ESUIForXe2 from 'earthsdkui-for-xe2';
const app = createApp(App);
// 全局安装
app.use(ESUIForXe2);
app.mount('#app');
组件当中
<es-icon name="shouye" color="red"></es-icon>
按需引入
组件当中
<script setup>
import { ESIcon } from 'earthsdkui-for-xe2';
</script>
<template>
<es-icon name="shouye" color="red"></es-icon>
</template>
<style scoped>
</style>