refactor: ele 优化列表操作按钮大小
parent
96f5108ded
commit
e298c5bf67
|
@ -138,7 +138,6 @@ setupVbenVxeTable({
|
||||||
vxeUI.renderer.add('CellOperation', {
|
vxeUI.renderer.add('CellOperation', {
|
||||||
renderTableDefault({ attrs, options, props }, { column, row }) {
|
renderTableDefault({ attrs, options, props }, { column, row }) {
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
size: 'small',
|
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
class: '!p-0',
|
class: '!p-0',
|
||||||
...props,
|
...props,
|
||||||
|
@ -167,8 +166,6 @@ setupVbenVxeTable({
|
||||||
text: $t('common.edit'),
|
text: $t('common.edit'),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// TODO @puhui999:貌似按钮相比 antd 版本,小一点?
|
|
||||||
// TODO @puhui999:貌似按钮之间的间距,大了一点?
|
|
||||||
const operations: Array<Recordable<any>> = (
|
const operations: Array<Recordable<any>> = (
|
||||||
options || ['edit', 'delete']
|
options || ['edit', 'delete']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue