From 1d5efac3d7afc49d1349ff70aea8019cc156aaa5 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 25 Sep 2023 09:54:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20pr=20#8039=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E9=87=8D=E6=96=B0=E8=A1=A5=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/sdk-test.html | 63 +++++++++++++++++++ .../src/renderers/Table/AutoFilterForm.tsx | 7 ++- packages/amis/src/renderers/Table/index.tsx | 1 + 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 examples/sdk-test.html diff --git a/examples/sdk-test.html b/examples/sdk-test.html new file mode 100644 index 000000000..ee4a3d16f --- /dev/null +++ b/examples/sdk-test.html @@ -0,0 +1,63 @@ + + + + + amis demo + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/packages/amis/src/renderers/Table/AutoFilterForm.tsx b/packages/amis/src/renderers/Table/AutoFilterForm.tsx index 981b59e22..3abb29ef8 100644 --- a/packages/amis/src/renderers/Table/AutoFilterForm.tsx +++ b/packages/amis/src/renderers/Table/AutoFilterForm.tsx @@ -19,6 +19,7 @@ export interface AutoFilterFormProps extends RendererProps { onToggleExpanded?: () => void; query?: any; + popOverContainer?: any; onSearchableFromReset?: any; onSearchableFromSubmit?: any; onSearchableFromInit?: any; @@ -37,7 +38,8 @@ export function AutoFilterForm({ data, onSearchableFromReset, onSearchableFromSubmit, - onSearchableFromInit + onSearchableFromInit, + popOverContainer }: AutoFilterFormProps) { const schema = React.useMemo(() => { const {columnsNum, showBtnToolbar} = @@ -191,7 +193,8 @@ export function AutoFilterForm({ onSubmit: onSearchableFromSubmit, onInit: onSearchableFromInit, formStore: undefined, - data + data, + popOverContainer }); } diff --git a/packages/amis/src/renderers/Table/index.tsx b/packages/amis/src/renderers/Table/index.tsx index 9e60a130a..eb3210584 100644 --- a/packages/amis/src/renderers/Table/index.tsx +++ b/packages/amis/src/renderers/Table/index.tsx @@ -1616,6 +1616,7 @@ export default class Table extends React.Component { onSearchableFromReset={onSearchableFromReset} onSearchableFromSubmit={onSearchableFromSubmit} onSearchableFromInit={onSearchableFromInit} + popOverContainer={this.getPopOverContainer} /> ); }