Skip to content

Commit

Permalink
更新Card文档
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallRuralDog committed Mar 30, 2020
1 parent 791bcd7 commit 3313d1f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ style(['width'=>'100px']);
```
## 展示组件

## Steps 步骤条
### Card 卡片

将信息聚合在卡片容器中展示。

```php
Card::make()->content();
```



### Steps 步骤条

引导用户按照流程完成任务的分步导航条,可根据实际应用场景设定步骤,步骤不得少于 2 步。

Expand Down Expand Up @@ -50,6 +60,14 @@ Steps::make()
Html::make()->html("<div>......</div>");
```

### Text

组件使用`v-bind`渲染

```php
Text::make()->html("我是纯文本");
```

### Alert警告

用于页面中展示重要的提示信息。
Expand Down
3 changes: 1 addition & 2 deletions resources/js/components/grid/ColumnDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default {
allData = this._.flattenDeep(allData);
return allData;
} catch (error) {
console.error("获取数组数据失败:" + error);
return "-";
}
},
Expand All @@ -46,7 +45,7 @@ export default {
return item.prop == this.columnKey;
})[0];
} catch (e) {
console.error("找不到column,请检查Column 的prop参数设置");
console.warn("找不到column,请检查Column 的prop参数设置");
}
},
row() {
Expand Down

0 comments on commit 3313d1f

Please sign in to comment.