Skip to content

Commit 1654c84

Browse files
committed
feat(table-sortable-field): update table static docs about sortable
1 parent d860eff commit 1654c84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/table-static/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ Table use local CSS variables for enhanced real-time customization.
577577
| `table-class` | `String` | `-` | Add class to table element |
578578
| `tr-class` | `String` | `-` | Add class to table row element |
579579
| `scrollable` | `Boolean` | `true` | Enable scroll when table overflow |
580+
| `sortable` | `Boolean` | `false` | Enable sort items by field name |
580581

581582
In props `fields` contain
582583

@@ -588,6 +589,7 @@ In props `fields` contain
588589
| `formatter?` | `Function` | Field's formatter, it receives `value` and `item` params and returning string value |
589590
| `thClass?` | `HTMLAttributes` | `HTMLAttributes` of `class` to use in table column cell |
590591
| `tdClass?` | `HTMLAttributes` | `HTMLAttributes` of `class` to use in table head cell |
592+
| `sortable?` | `Boolean` | Enable field sorting. Eventhough table have `sortable` prop, but the field not set `sortable`, sort function not able to use |
591593

592594

593595
### Slots

0 commit comments

Comments
 (0)