mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix: attachment field storage setting dropdown not displaying options (#6365)
* fix: public form local improve * fix: bug
This commit is contained in:
parent
079401f2dc
commit
6772bdb873
@ -72,7 +72,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
|||||||
} = props;
|
} = props;
|
||||||
const dataSource = useDataSourceKey();
|
const dataSource = useDataSourceKey();
|
||||||
const headers = useDataSourceHeaders(propsDataSource || dataSource);
|
const headers = useDataSourceHeaders(propsDataSource || dataSource);
|
||||||
const [open, setOpen] = useState(false);
|
|
||||||
const firstRun = useRef(false);
|
const firstRun = useRef(false);
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
const isQuickAdd = fieldSchema['x-component-props']?.addMode === 'quickAdd';
|
const isQuickAdd = fieldSchema['x-component-props']?.addMode === 'quickAdd';
|
||||||
@ -197,7 +196,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
|||||||
search={searchData.current}
|
search={searchData.current}
|
||||||
callBack={() => {
|
callBack={() => {
|
||||||
searchData.current = null;
|
searchData.current = null;
|
||||||
setOpen(false);
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@ -244,7 +242,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
|||||||
}, [value, defaultValue, data?.data, fieldNames.value, optionFilter]);
|
}, [value, defaultValue, data?.data, fieldNames.value, optionFilter]);
|
||||||
|
|
||||||
const onDropdownVisibleChange = (visible) => {
|
const onDropdownVisibleChange = (visible) => {
|
||||||
setOpen(visible);
|
|
||||||
searchData.current = null;
|
searchData.current = null;
|
||||||
if (visible) {
|
if (visible) {
|
||||||
run();
|
run();
|
||||||
@ -254,7 +251,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
open={open}
|
|
||||||
popupMatchSelectWidth={popupMatchSelectWidth}
|
popupMatchSelectWidth={popupMatchSelectWidth}
|
||||||
autoClearSearchValue
|
autoClearSearchValue
|
||||||
filterOption={false}
|
filterOption={false}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
export const editActionSchema = {
|
export const editActionSchema = {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
title: 'Edit',
|
title: "{{t('Edit')}}",
|
||||||
'x-component': 'Action.Link',
|
'x-component': 'Action.Link',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
openMode: 'drawer',
|
openMode: 'drawer',
|
||||||
|
@ -238,7 +238,7 @@ export const publicFormsSchema: ISchema = {
|
|||||||
editActionSchema,
|
editActionSchema,
|
||||||
delete: {
|
delete: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
title: 'Delete',
|
title: "{{t('Delete')}}",
|
||||||
'x-component': 'Action.Link',
|
'x-component': 'Action.Link',
|
||||||
'x-use-component-props': 'useDeleteActionProps',
|
'x-use-component-props': 'useDeleteActionProps',
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user