快速開始
本節將介绍如何在項目中使用 RdnUI。
安裝
bash
npm install @thievesshare/ui用法
完整引入
- 如果你對打包後的檔案大小不是很在乎,那麼使用完整匯入會更方便。
在 Vue 3 專案中 (例如 main.ts) 引入:
vue
import { createApp } from 'vue'
import App from './App.vue'
import RdnUI from '@thievesshare/ui'
import '@thievesshare/ui/style.css'
const app = createApp(App)
app.use(RdnUI)
app.mount('#app')手動導入
vue
<template>
<rdn-button>I am rdnUI</rdn-button>
</template>
<script>
import { rdnButton } from '@thievesshare/ui'
</script>