0.0.11 • Published 5 months ago
earthsdk-ui-next v0.0.11
安装
yarn
yarn add earthsdk-ui-next --save
npm
npm i earthsdk-ui-next --save
cdn
unpkg
<link
rel="stylesheet"
href="//unpkg.com/earthsdk-ui-next/lib/style.css"
/>
<script src="//unpkg.com/earthsdk-ui-next"></script>
jsdelivr
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/earthsdk-ui-next/lib/style.css"
/>
<script src="//cdn.jsdelivr.net/npm/earthsdk-ui-next"></script>
使用
全局引入
在main.js
中
import { createApp } from 'vue';
import App from './App.vue';
// 完整引入组件库
import EarthSDKUI from 'earthsdk-ui-next';
const app = createApp(App);
// 全局安装
app.use(EarthSDKUI);
app.mount('#app');
组件当中
<es-button>按钮组件</es-button>
按需引入
组件当中
<script setup>
import { ESButton } from 'earthsdk-ui-next';
</script>
<template>
<es-button>按钮组件</es-button>
</template>
<style scoped>
</style>