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} /> ); }