fix: action open mode
This commit is contained in:
parent
36e0b0a988
commit
c1128bf150
@ -65,7 +65,7 @@ export const ActionDesigner = (props) => {
|
|||||||
{ label: t('Drawer'), value: 'drawer' },
|
{ label: t('Drawer'), value: 'drawer' },
|
||||||
{ label: t('Dialog'), value: 'modal' },
|
{ label: t('Dialog'), value: 'modal' },
|
||||||
]}
|
]}
|
||||||
value={field.componentProps.openMode}
|
value={fieldSchema?.['x-component-props']?.['openMode']}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
field.componentProps.openMode = value;
|
field.componentProps.openMode = value;
|
||||||
fieldSchema['x-component-props']['openMode'] = value;
|
fieldSchema['x-component-props']['openMode'] = value;
|
||||||
|
@ -69,7 +69,7 @@ export const Action: ComposedAction = observer((props: any) => {
|
|||||||
const {
|
const {
|
||||||
popover,
|
popover,
|
||||||
confirm,
|
confirm,
|
||||||
openMode,
|
// openMode,
|
||||||
containerRefKey,
|
containerRefKey,
|
||||||
component,
|
component,
|
||||||
useAction = useA,
|
useAction = useA,
|
||||||
@ -85,6 +85,7 @@ export const Action: ComposedAction = observer((props: any) => {
|
|||||||
const { run } = useAction();
|
const { run } = useAction();
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
const designerProps = fieldSchema['x-designer-props'];
|
const designerProps = fieldSchema['x-designer-props'];
|
||||||
|
const openMode = fieldSchema?.['x-component-props']?.['openMode'];
|
||||||
const renderButton = () => (
|
const renderButton = () => (
|
||||||
<SortableItem
|
<SortableItem
|
||||||
{...others}
|
{...others}
|
||||||
|
Loading…
Reference in New Issue
Block a user