From 100adfc69ac2b6af240b03026e9dbcc69cb47835 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 10 Oct 2015 11:35:31 +0800 Subject: [PATCH] update row select argument name --- components/table/demo/row-selection-props.md | 8 ++++---- components/table/demo/row-selection-radio-props.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/table/demo/row-selection-props.md b/components/table/demo/row-selection-props.md index b7920622b3..8f8b2699d7 100644 --- a/components/table/demo/row-selection-props.md +++ b/components/table/demo/row-selection-props.md @@ -40,11 +40,11 @@ var data = [{ // 通过 rowSelection 对象表明需要行选择 var rowSelection = { - getCheckboxProps: function (value) { + getCheckboxProps: function(record) { return { - defaultValue: value.name === '李大嘴', // 配置默认勾选的列 - disabled: value.name === '胡彦祖' // 配置无法勾选的列 - } + defaultValue: record.name === '李大嘴', // 配置默认勾选的列 + disabled: record.name === '胡彦祖' // 配置无法勾选的列 + }; }, onSelect: function(record, selected, selectedRows) { console.log(record, selected, selectedRows); diff --git a/components/table/demo/row-selection-radio-props.md b/components/table/demo/row-selection-radio-props.md index d392a3bc03..796ce910a8 100644 --- a/components/table/demo/row-selection-radio-props.md +++ b/components/table/demo/row-selection-radio-props.md @@ -41,12 +41,12 @@ var data = [{ // 通过 rowSelection 对象表明需要行选择 var rowSelection = { type: 'radio', - getCheckboxProps: function (value) { + getCheckboxProps: function(record) { return { - defaultValue: value.name === '李大嘴', // 配置默认勾选的列 - disabled: value.name === '胡彦祖' // 配置无法勾选的列 - } - }, + defaultValue: record.name === '李大嘴', // 配置默认勾选的列 + disabled: record.name === '胡彦祖' // 配置无法勾选的列 + }; + }, onSelect: function(record, selected, selectedRows) { console.log(record, selected, selectedRows); },