优化 quickEdit 样式

This commit is contained in:
2betop 2020-06-23 12:09:29 +08:00
parent c38895e794
commit bb283b136c
3 changed files with 8 additions and 9 deletions

View File

@ -427,8 +427,10 @@ export class CardItemFieldRenderer extends TableCell {
static propsList = [
'quickEdit',
'quickEditEnabledOn',
'popOver',
'copyable',
'inline',
...TableCell.propsList
];

View File

@ -1113,8 +1113,10 @@ export class ListItemFieldRenderer extends TableCell {
};
static propsList = [
'quickEdit',
'quickEditEnabledOn',
'popOver',
'copyable',
'inline',
...TableCell.propsList
];

View File

@ -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
}
]
};