优化 quickEdit 样式
This commit is contained in:
parent
c38895e794
commit
bb283b136c
|
@ -427,8 +427,10 @@ export class CardItemFieldRenderer extends TableCell {
|
|||
|
||||
static propsList = [
|
||||
'quickEdit',
|
||||
'quickEditEnabledOn',
|
||||
'popOver',
|
||||
'copyable',
|
||||
'inline',
|
||||
...TableCell.propsList
|
||||
];
|
||||
|
||||
|
|
|
@ -1113,8 +1113,10 @@ export class ListItemFieldRenderer extends TableCell {
|
|||
};
|
||||
static propsList = [
|
||||
'quickEdit',
|
||||
'quickEditEnabledOn',
|
||||
'popOver',
|
||||
'copyable',
|
||||
'inline',
|
||||
...TableCell.propsList
|
||||
];
|
||||
|
||||
|
|
|
@ -335,11 +335,8 @@ export const HocQuickEdit = (config: Partial<QuickEditConfig> = {}) => (
|
|||
schema = {
|
||||
title: '',
|
||||
autoFocus: (quickEdit as QuickEditConfig).mode !== 'inline',
|
||||
mode:
|
||||
(quickEdit as QuickEditConfig).mode === 'inline'
|
||||
? 'inline'
|
||||
: 'normal',
|
||||
...quickEdit,
|
||||
mode: 'noraml',
|
||||
type: 'form'
|
||||
};
|
||||
} else {
|
||||
|
@ -348,15 +345,13 @@ export const HocQuickEdit = (config: Partial<QuickEditConfig> = {}) => (
|
|||
className: quickEdit.formClassName,
|
||||
type: 'form',
|
||||
autoFocus: (quickEdit as QuickEditConfig).mode !== 'inline',
|
||||
mode:
|
||||
(quickEdit as QuickEditConfig).mode === 'inline'
|
||||
? 'inline'
|
||||
: 'normal',
|
||||
mode: 'normal',
|
||||
controls: [
|
||||
{
|
||||
type: quickEdit.type || 'text',
|
||||
name: quickEdit.name || name,
|
||||
...quickEdit
|
||||
...quickEdit,
|
||||
mode: undefined
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue