feat: table component support popup (#5580)

This commit is contained in:
Feng 2024-11-04 16:10:47 +08:00 committed by GitHub
parent fdf8aa6f44
commit eeca3c7bc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -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: {},
}, },
}, },

View File

@ -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')}}",