Skip to content

Commit 3313d1f

Browse files
committed
更新Card文档
1 parent 791bcd7 commit 3313d1f

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed
16.2 KB
Loading
10 KB
Loading

docs/components.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ style(['width'=>'100px']);
88
```
99
## 展示组件
1010

11-
## Steps 步骤条
11+
### Card 卡片
12+
13+
将信息聚合在卡片容器中展示。
14+
15+
```php
16+
Card::make()->content();
17+
```
18+
19+
20+
21+
### Steps 步骤条
1222

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

@@ -50,6 +60,14 @@ Steps::make()
5060
Html::make()->html("<div>......</div>");
5161
```
5262

63+
### Text
64+
65+
组件使用`v-bind`渲染
66+
67+
```php
68+
Text::make()->html("我是纯文本");
69+
```
70+
5371
### Alert警告
5472

5573
用于页面中展示重要的提示信息。

resources/js/components/grid/ColumnDisplay.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default {
3636
allData = this._.flattenDeep(allData);
3737
return allData;
3838
} catch (error) {
39-
console.error("获取数组数据失败:" + error);
4039
return "-";
4140
}
4241
},
@@ -46,7 +45,7 @@ export default {
4645
return item.prop == this.columnKey;
4746
})[0];
4847
} catch (e) {
49-
console.error("找不到column,请检查Column 的prop参数设置");
48+
console.warn("找不到column,请检查Column 的prop参数设置");
5049
}
5150
},
5251
row() {

0 commit comments

Comments
 (0)