(newRawValue: { [key: string]: any })
| 53 | |
| 54 | // 更新UI数据 |
| 55 | const updateRawData = (newRawValue: { [key: string]: any }) => { |
| 56 | setRawData(newRawValue); |
| 57 | setEditValue(JSON.stringify(newRawValue, null, 2)); |
| 58 | setData( |
| 59 | Object.keys(newRawValue).map((key) => { |
| 60 | return { key: key, value: newRawValue[key] }; |
| 61 | }) |
| 62 | ); |
| 63 | }; |
| 64 | |
| 65 | // 删除单个键值 |
| 66 | const deleteData = (key: string) => { |
no test coverage detected