mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +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: {
|
grid: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Grid',
|
'x-component': 'Grid',
|
||||||
'x-initializer': 'popup:common:addBlock',
|
'x-initializer': props?.['x-initializer'] || 'popup:common:addBlock',
|
||||||
properties: {},
|
properties: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -42,6 +42,19 @@ const commonOptions = {
|
|||||||
},
|
},
|
||||||
useVisible: () => useActionAvailable('create'),
|
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',
|
type: 'item',
|
||||||
title: "{{t('Delete')}}",
|
title: "{{t('Delete')}}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user