SchedulerView düzenlemesi
This commit is contained in:
parent
a09f71521f
commit
5ded5d1229
1 changed files with 8 additions and 3 deletions
|
|
@ -39,7 +39,12 @@ import {
|
||||||
getMobilePopupPosition,
|
getMobilePopupPosition,
|
||||||
shouldUseMobileEditPopup,
|
shouldUseMobileEditPopup,
|
||||||
} from './shared/editPopup'
|
} from './shared/editPopup'
|
||||||
import { getValueByField, resolveEditorType, withEditorTypeDefaults } from './shared/editingForm'
|
import {
|
||||||
|
getValueByField,
|
||||||
|
resolveEditorType,
|
||||||
|
translateCaption,
|
||||||
|
withEditorTypeDefaults,
|
||||||
|
} from './shared/editingForm'
|
||||||
import { flattenGridColumns } from './shared/columns'
|
import { flattenGridColumns } from './shared/columns'
|
||||||
import {
|
import {
|
||||||
useListFormCustomSources,
|
useListFormCustomSources,
|
||||||
|
|
@ -678,7 +683,7 @@ const SchedulerView = (props: SchedulerViewProps) => {
|
||||||
itemType: e.itemType,
|
itemType: e.itemType,
|
||||||
colCount: e.colCount || 1,
|
colCount: e.colCount || 1,
|
||||||
colSpan: e.colSpan || 1,
|
colSpan: e.colSpan || 1,
|
||||||
caption: e.caption,
|
caption: translateCaption(translate, e.caption),
|
||||||
items: groupItems,
|
items: groupItems,
|
||||||
})
|
})
|
||||||
} else if (e.itemType === 'tabbed' && tabbedItems.length > 0 && e === tabbedItems[0]) {
|
} else if (e.itemType === 'tabbed' && tabbedItems.length > 0 && e === tabbedItems[0]) {
|
||||||
|
|
@ -690,7 +695,7 @@ const SchedulerView = (props: SchedulerViewProps) => {
|
||||||
const effectiveColCount = tabbedItem.colCount || 1
|
const effectiveColCount = tabbedItem.colCount || 1
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: tabbedItem.caption,
|
title: translateCaption(translate, tabbedItem.caption),
|
||||||
colCount: effectiveColCount,
|
colCount: effectiveColCount,
|
||||||
items: tabbedItem.items
|
items: tabbedItem.items
|
||||||
?.sort((a: any, b: any) =>
|
?.sort((a: any, b: any) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue