<commit_before># 行点击事件

- order: 17
- hidden: true

通过传入 `onRowClick` 处理表格行点击事件，函数的两个参数为 `record` 和 `index`，`index` 代表当前行在其兄弟节点中的次序

---

````jsx
import { Table } from 'antd';

const onRowClick = function(record, index) {
  alert(`u click the nth(${index}) element of yourFather.children, record.name: ${record.name}`);
};

const onOperationClick = function(text, record) {
  alert(`u click ${text}, record.name is ${record.name}`);
};

const columns = [{
  title: '姓名',
  dataIndex: 'name',
  key: 'name',
}, {
  title: '年龄',
  dataIndex: 'age',<commit_msg>rm alert<commit_after># 行点击事件

- order: 17
- hidden: true

通过传入 `onRowClick` 处理表格行点击事件，函数的两个参数为 `record` 和 `index`，`index` 代表当前行在其兄弟节点中的次序

---

````jsx
import { Table } from 'antd';

const onRowClick = function(record, index) {
  console.log(`u click the nth(${index}) element of yourFather.children, record.name: ${record.name}`);
};

const onOperationClick = function(text, record) {
  console.log(`u click ${text}, record.name is ${record.name}`);
};

const columns = [{
  title: '姓名',
  dataIndex: 'name',
  key: 'name',
}, {
  title: '年龄',
  dataIndex: 'age',
{'fraction_non_alphanumeric': 0.1834372217275156, 'fraction_numerical': 0.003561887800534283, 'mean_word_length': 4.62, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5308744', 'n_tokens_mistral': 480, 'n_tokens_neox': 495, 'n_words': 106}