Skip to content

Commit

Permalink
docs:modify start.md 、 lazyload.md
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Nov 6, 2019
1 parent 1989e7e commit 82b8d73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ yarn add @nutui/nutui

当然你也可以通过 CDN 的方式引入, 可以在 **jsdelivr****unpkg** 等公共 CDN 上获取到 NutUI。我们推荐链接到一个你可以手动更新的指定版本号。

```html 开发环境版本,包含了有帮助的命令行警告
<!-- 开发环境版本,包含了有帮助的命令行警告 -->
<!-- 引入样式 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@nutui/nutui@latest/dist/nutui.css">
<!-- 引入Vue -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- 引入组件库 -->
<script src="https://cdn.jsdelivr.net/npm/@nutui/nutui@latest/dist/nutui.js"></script>
```
或者
```html
<!-- 生产环境版本,优化了尺寸和速度 -->
<!-- 引入样式 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@nutui/nutui@latest/dist/nutui.min.css">
<!-- 引入Vue -->
Expand Down
2 changes: 1 addition & 1 deletion src/packages/lazyload/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h4>背景图懒加载</h4>
<div v-lazy:background-image="imageArray[1]"></div>
<h4>懒加载模块</h4>
<lazy-component @show="handler">
<lazy-component>
<img :src="imageArray[2]" />
</lazy-component>
<h4>错误、加载中 图片设置</h4>
Expand Down

0 comments on commit 82b8d73

Please sign in to comment.