no message

Former-commit-id: 90b140d703fb3fce2bef2d98516293854ef9d014
Former-commit-id: a77a9d22757d33850b7366f9d603a920458a29e0
Former-commit-id: d8f16caa59b4ebe374d26c011f967e3dc7e4eef0
This commit is contained in:
liyang
2018-06-10 09:21:26 +08:00
parent 0f37ec5374
commit e256d63b60
28 changed files with 126 additions and 65 deletions

View File

@@ -15,13 +15,13 @@
``` vue
// 基本使用方法
<d2-count-up :end="100"></d2-count-up>
<d2-count-up :end="100"/>
// 设置始末值
<d2-count-up :start="14" :end="100"></d2-count-up>
<d2-count-up :start="14" :end="100"/>
// 设置动画时间
<d2-count-up :end="100" :decimals="2"></d2-count-up>
<d2-count-up :end="100" :decimals="2"/>
```
组件会在页面上渲染 `<span>` 标签

View File

@@ -9,7 +9,7 @@
## 示例
``` vue
<d2-highlight code="alert('Hello')"></d2-highlight>
<d2-highlight code="alert('Hello')"/>
```
::: tip

View File

@@ -13,7 +13,7 @@
然后使用组件
``` vue
<d2-icon-svg name="刚才的svg文件名"></d2-icon-svg>
<d2-icon-svg name="刚才的svg文件名"/>
```
## 获取已经注册的所有图标

View File

@@ -12,22 +12,22 @@
``` vue
// 这样用没有毛病 但是也没什么用
<d2-icon></d2-icon>
<d2-icon/>
// 指定图标名称
<d2-icon name="github"></d2-icon>
<d2-icon name="github"/>
// 设置行内样式
<d2-icon name="github" style="font-size: 100px;"></d2-icon>
<d2-icon name="github" style="font-size: 100px;"/>
// 设置 class
<d2-icon name="github" class="icon-class-demo"></d2-icon>
<d2-icon name="github" class="icon-class-demo"/>
```
这个组件只是简化了写法而已
``` vue
<d2-icon name="github"></d2-icon>
<d2-icon name="github"/>
// 等同于
<i class="fa fa-github" aria-hidden="true"></i>
```