From c16b02fd2342358072925258e019b1261a9a14c0 Mon Sep 17 00:00:00 2001 From: RickCole Date: Fri, 13 Nov 2020 11:56:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCRUD=20searchable=E6=97=B6?= =?UTF-8?q?=EF=BC=8Cquery=E6=A0=BC=E5=BC=8F=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#1065)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Iframe 联动时导致 iframe 刷新问题 * src过期判断有问题 * iframe message事件监听器判断优化 * 修复 DiffEditor 显示 [Object object] 的问题 * 修复 Picker 中排序操作触发 Form initApi的问题 * 修复 submitApi 获取数据链数据失效问题 * fix doc * 修复CRUD searchable时,query格式异常的问题 --- src/renderers/Table/HeadCellSearchDropdown.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderers/Table/HeadCellSearchDropdown.tsx b/src/renderers/Table/HeadCellSearchDropdown.tsx index 5539bc3ea..c65fd3a44 100644 --- a/src/renderers/Table/HeadCellSearchDropdown.tsx +++ b/src/renderers/Table/HeadCellSearchDropdown.tsx @@ -6,6 +6,7 @@ import Overlay from '../../components/Overlay'; import {findDOMNode} from 'react-dom'; import PopOver from '../../components/PopOver'; import {ITableStore} from '../../store/table'; +import {setVariable} from '../../utils/helper'; export interface QuickSearchConfig { type?: string; @@ -180,7 +181,7 @@ export class HeadCellSearchDropDown extends React.Component< handleReset() { const {onQuery, data, name} = this.props; const values = {...data}; - this.formItems.forEach(key => (values[key] = undefined)); + this.formItems.forEach(key => setVariable(values, key, undefined)); if (values.orderBy === name) { values.orderBy = '';