From 5098aaf7f3b14877818d35f1b5974acdf478e198 Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Fri, 2 Apr 2021 06:41:13 +0000 Subject: [PATCH] Fix table row key property --- src/components/Table/STable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Table/STable.vue b/src/components/Table/STable.vue index 7edfd715..3afdd095 100644 --- a/src/components/Table/STable.vue +++ b/src/components/Table/STable.vue @@ -19,7 +19,7 @@ :header-row-style="headerRowStyle" :header-cell-class-name="headerCellClassName" :header-cell-style="headerCellStyle" - :row-key="rowRey" + :row-key="rowKey" :empty-text="emptyText" :default-expand-all="defaultExpandAll" :expand-row-keys="expandRowKeys" @@ -116,6 +116,10 @@ export default class STable extends Mixins(SizeMixin) { * `false` by default */ @Prop({ default: false, type: Boolean }) readonly highlightCurrentRow!: boolean + /** + * A key of the current row. Can be `string` or `number` + */ + @Prop({ type: [Function, String, Number] }) readonly rowKey!: ((row: any) => string | number) | string | number /** * A key of the current row. Can be `string` or `number` */