mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
feat: table component support popup (#5580)
This commit is contained in:
parent
fdf8aa6f44
commit
eeca3c7bc1
@ -53,7 +53,7 @@ export const PopupActionInitializer = (props) => {
|
||||
grid: {
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'popup:common:addBlock',
|
||||
'x-initializer': props?.['x-initializer'] || 'popup:common:addBlock',
|
||||
properties: {},
|
||||
},
|
||||
},
|
||||
|
@ -42,6 +42,19 @@ const commonOptions = {
|
||||
},
|
||||
useVisible: () => useActionAvailable('create'),
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
title: "{{t('Popup')}}",
|
||||
name: 'popup',
|
||||
Component: 'PopupActionInitializer',
|
||||
componentProps: {
|
||||
'x-component': 'Action',
|
||||
'x-initializer': 'page:addBlock',
|
||||
},
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
title: "{{t('Delete')}}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user