Skip to content

Commit

Permalink
fix(ui/collapse): 重命名组件名
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Apr 6, 2021
1 parent 650f4fa commit c418cc0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion packages/varlet-ui/docs/quickstart.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
# 快速开始
# 快速开始

## 介绍

这里为您介绍常见开发模式下接入组件库的最基本方式。

## 安装

### CDN
varlet.js包含组件库的所有样式和逻辑, 引入即可。

```html
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/vue@next"></script>
<script src="https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js"></script>
<script>
const app = Vue.createApp({
template: '<var-button>按钮</var-button>'
})
app.use(Varlet).mount('#app')
</script>
```

### Webpack/Vite
```shell
# 通过npm或yarn安装
# npm
npm i @varlet/ui -S
# yarn
yarn add @varlet/ui
```

```js
import Vue from 'vue'
import Varlet from '@varlet/ui'

```

0 comments on commit c418cc0

Please sign in to comment.