chore: edit README.md

This commit is contained in:
就眠儀式 2022-02-21 01:36:44 +08:00
parent c133439984
commit 71cae92082
2 changed files with 20 additions and 0 deletions

View File

@ -32,6 +32,16 @@ Use npm to install.
```bash
npm i @layui/layui-vue
```
Before using, you need to mount layui Vue to Vue and introduce index.css style file
```
import App from './App.vue'
import { createApp } from 'vue'
import layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'
createApp(App).use(layui).mount('#app')
```
We have several examples on the [website](http://layui-vue.pearadmin.com). Here is the first one to get you started:

View File

@ -32,6 +32,16 @@ Use npm to install.
```bash
npm i @layui/layui-vue
```
Before using, you need to mount layui Vue to Vue and introduce index.css style file
```
import App from './App.vue'
import { createApp } from 'vue'
import layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'
createApp(App).use(layui).mount('#app')
```
We have several examples on the [website](http://layui-vue.pearadmin.com). Here is the first one to get you started: