mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] update detail (#1554)
* [bugfix] Stepper: optimize input strategy * [Doc] update detail
This commit is contained in:
parent
f164cb13f7
commit
35bf6447bc
@ -96,7 +96,7 @@ Setting `type` to `flex` to enable flex layout
|
||||
| justify | Flex main axis,can be set to end/center/space-around/space-between | `String` | `start` |
|
||||
| align | Flex cross axis, be set to center/bottom | `String` | `top` |
|
||||
|
||||
#### Column
|
||||
#### Col
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
|
@ -97,7 +97,7 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
|
||||
| justify | Flex 主轴对齐方式,可选值为 end/center/space-around/space-between | `String` | `start` |
|
||||
| align | Flex 交叉轴对齐方式,可选值为 center/bottom | `String` | `top` |
|
||||
|
||||
#### Column
|
||||
#### Col
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
|
@ -10,6 +10,7 @@ Vue.use(Icon);
|
||||
### 代码演示
|
||||
|
||||
#### 基础用法
|
||||
|
||||
设置`name`属性为对应的图标名称即可,所有可用的图标名称见右侧列表
|
||||
|
||||
```html
|
||||
@ -17,6 +18,7 @@ Vue.use(Icon);
|
||||
```
|
||||
|
||||
#### 使用本地字体文件
|
||||
|
||||
Icon 组件默认引用 `yzcdn.cn` 域名下的字体文件,如果想要使用本地字体文件,请引入下面的 css 文件
|
||||
|
||||
```js
|
||||
@ -24,6 +26,7 @@ import 'vant/lib/vant-css/icon-local.css';
|
||||
```
|
||||
|
||||
#### 自定义图标
|
||||
|
||||
如果需要在现有 Icon 的基础上使用更多图标,可以引入你需要的 iconfont 对应的 ttf 文件和样式,之后就可以在 Icon 组件中直接使用
|
||||
|
||||
```css
|
||||
@ -49,10 +52,9 @@ import 'vant/lib/vant-css/icon-local.css';
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| name | 图标名称 | `String` | `''` |
|
||||
| info | 图标右上角文字提示 | `String | Number` | `''` |
|
||||
| color | 图标颜色 | `String` | `''` | - |
|
||||
|
||||
| name | 图标名称 | `String` | - |
|
||||
| info | 图标右上角文字提示 | `String | Number` | - |
|
||||
| color | 图标颜色 | `String` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user