Co-authored-by: hello@lv <2256334253@qq.com> Co-authored-by: wjh <wwwjh0710@163.com> Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#719
20 lines
592 B
TypeScript
20 lines
592 B
TypeScript
import React from 'react';
|
|
import { ActionInitializer } from '@tachybase/client';
|
|
|
|
export const BulkEditSubmitActionInitializer = (props) => {
|
|
const schema = {
|
|
title: '{{ t("Submit") }}',
|
|
'x-action': 'submit',
|
|
'x-component': 'Action',
|
|
'x-use-component-props': 'useCustomizeBulkEditActionProps',
|
|
// 'x-designer': 'Action.Designer',
|
|
'x-toolbar': 'ActionSchemaToolbar',
|
|
'x-settings': 'actionSettings:updateSubmit',
|
|
'x-component-props': {
|
|
type: 'primary',
|
|
htmlType: 'submit',
|
|
},
|
|
};
|
|
return <ActionInitializer {...props} schema={schema} />;
|
|
};
|