Răsfoiți Sursa

Table: add min-width prop doc.

furybean 8 ani în urmă
părinte
comite
a9830be46c
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      examples/docs/zh-cn/table.md

+ 1 - 0
examples/docs/zh-cn/table.md

@@ -924,6 +924,7 @@
 | label | 显示的标题 | string | — | — |
 | prop | 对应列内容的字段名,也可以使用 property 属性 | string | — | — |
 | width | 对应列的宽度 | string | — | — |
+| min-width | 对应列的最小宽度,与 width 的区别是 width 是固定的,min-width 会把剩余宽度按比例分配给设置了 min-width 的列 | string | — | — |
 | fixed | 列是否固定在左侧或者右侧,true 表示固定在左侧 | string, boolean | true, left, right | - |
 | sortable | 对应列是否可以排序,如果设置为 'custom',则代表用户希望远程排序,需要监听 Table 的 sort-change 事件 | boolean, string | true, false, 'custom' | false |
 | sort-method | 对数据进行排序的时候使用的方法,仅当 sortable 设置为 true 的时候有效 | Function(a, b) | - | - |