
Security News
Insecure Agents Podcast: How to Keep AI Agents From Bypassing Security Controls
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.
igroot-edit-table
Advanced tools
简单的可编辑表格配置 ```jsx import React, { Component } from 'react' import EditTable from 'igroot-edit-table';
简单的可编辑表格配置
import React, { Component } from 'react'
import EditTable from 'igroot-edit-table';
class Example extends Component {
state = {
dataSource: [{
input: '1',
select: '1',
num: '1',
checkbox: true,
text: 'dadwadw'
}]
}
render() {
return (
<EditTable
columns={[
{
title: '输入框',
dataIndex: 'input',
type: 'input',
require: true
},
{
title: '下拉框',
dataIndex: 'select',
type: 'select',
selectOption: [
{
label: '测试',
value: '1'
}
],
width: 200
},
{
title: '数字输入框',
dataIndex: 'num',
type: 'num'
},
{
title: '多选框',
dataIndex: 'checkbox',
type: 'checkbox'
},
{
title: '纯文本',
dataIndex: 'text',
}
]}
dataModule={{
input: '1',
select: '1',
num: '1',
checkbox: true,
text: 'dadwadw'
}}
dataSource={this.state.dataSource}
onChange={(dataSource) => { this.setState({ dataSource }) }}
/>
)
}
}
ReactDOM.render(<Example />, mountNode)
| props | 类型 | 说明 |
|---|---|---|
| dataSource | array | 表格数据源 |
| columns | array | 表头配置 |
| onChange | functions | 必填项,会抛出一个更新完之后的数据 |
| dataModule | object | 新增行的行数据 |
| remove | boolean | 是否可以删除行 |
| add | boolean | 是否可以增加行 |
| handle | object | 自定义操作 |
渲染的表单类型声明集成到了columns 里面进行处理
| key | 类型 | 说明 |
|---|---|---|
| type | string | 声明表单类型(input/num/select/checkout) |
| selectOption | array | select的下拉框列表,只接受 label和value形式 |
| require | boolean | 是否为必填 |
FAQs
component for react
The npm package igroot-edit-table receives a total of 0 weekly downloads. As such, igroot-edit-table popularity was classified as not popular.
We found that igroot-edit-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.

Security News
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.