Skip to content

Commit

Permalink
docs(add prop): 📃
Browse files Browse the repository at this point in the history
  • Loading branch information
xpyjs committed Oct 10, 2023
1 parent 6d7ea8a commit 24a3dea
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/docs/root.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,23 @@ Array<{

### gantt-column-size

<DataParameter t="normal | small | large" d="normal" />
<DataParameter t="'normal' | 'small' | 'large' | object" d="'normal'" />

设置甘特图中每一列的列宽,支持 `````` 三种样式。默认为 ``

`v2.1.4+` 增加自定义宽度。允许传递一个对象,分别对每一个单位的列宽进行单独设置(如果没有对应的值,则使用 `normal` 的值)。

```html
<x-gantt
:gantt-column-size="{
hour?: number;
day?: number;
week?: number;
month?: number;
}"
/>
```

### level-color

<DataParameter t="Array" d="[]" />
Expand Down

0 comments on commit 24a3dea

Please sign in to comment.