@biaomeng/site-ui
v1.0.4
Published
``` // npm npm install @biaomeng/site-ui -- save
Downloads
15
Readme
安装
// npm
npm install @biaomeng/site-ui -- save
// yarn
yarn add @biaomeng/site-ui
// pnpm
pnpm install @biaomeng/site-ui
完整引入
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import siteUi from '@biaomeng/site-ui'
import '@biaomeng/site-ui/ui/es/style.css'
createApp(App).use(siteUi).mount('#app')
手动引入
// app.vue
<template>
<s-button>我是button</s-button>
</template>
<script>
import { SButton } from '@biaomeng/site-ui'
export default {
components: { SButton },
}
</script>
辅助函数
import siteUi from '@biaomeng/site-ui'
siteUi.sendCaptcha()
// or
import { sendCaptcha } from '@biaomeng/site-ui/ui/es/src/utils/captcha'