feat: gant block table configure

This commit is contained in:
katherinehhh 2023-01-30 10:24:13 +08:00
parent 636ad912f9
commit 3b6b84f8c3
2 changed files with 41 additions and 81 deletions

View File

@ -456,7 +456,7 @@ export const Gantt: any = (props) => {
return (
<div>
<Toolbar />
<div className={styles.wrapper} onKeyDown={handleKeyDown} tabIndex={0} ref={wrapperRef}>
<div>
<TableBlockProvider
service={ctx.service}
{...ctx}
@ -466,6 +466,7 @@ export const Gantt: any = (props) => {
>
<RecursionField name={'table'} schema={fieldSchema.properties.table} />
</TableBlockProvider>
<div className={styles.wrapper} onKeyDown={handleKeyDown} tabIndex={0} ref={wrapperRef}>
<TaskGantt
gridProps={gridProps}
calendarProps={calendarProps}
@ -503,6 +504,7 @@ export const Gantt: any = (props) => {
rtl={rtl}
/>
</div>
</div>
<HorizontalScroll
svgWidth={svgWidth}
taskListWidth={taskListWidth}

View File

@ -1061,7 +1061,8 @@ export const createGanttBlockSchema = (options) => {
'x-decorator': 'div',
'x-decorator-props': {
style: {
display: 'inline-block',
float: 'left',
width: '35%',
},
},
@ -1076,49 +1077,6 @@ export const createGanttBlockSchema = (options) => {
pagination: false,
},
},
// event: {
// type: 'void',
// 'x-component': 'Gantt.Event',
// properties: {
// drawer: {
// type: 'void',
// 'x-component': 'Action.Drawer',
// 'x-component-props': {
// className: 'nb-action-popup',
// },
// title: '{{ t("View record") }}',
// properties: {
// tabs: {
// type: 'void',
// 'x-component': 'Tabs',
// 'x-component-props': {},
// 'x-initializer': 'TabPaneInitializers',
// properties: {
// tab1: {
// type: 'void',
// title: '{{t("Details")}}',
// 'x-component': 'Tabs.TabPane',
// 'x-designer': 'Tabs.Designer',
// 'x-component-props': {},
// properties: {
// grid: {
// type: 'void',
// 'x-component': 'Grid',
// 'x-initializer-props': {
// actionInitializers: 'GanttFormActionInitializers',
// },
// 'x-initializer': 'RecordBlockInitializers',
// properties: {},
// },
// },
// },
// },
// },
// },
// },
// },
// },
},
},
},