refactor: ele 默认按钮样式和 antd 的保持一致

pull/102/head
puhui999 2025-05-13 11:00:13 +08:00
parent 2baf398c7f
commit bf44d97e0b
2 changed files with 1 additions and 3 deletions

View File

@ -241,7 +241,7 @@ async function initComponentAdapter() {
},
// 自定义默认按钮
DefaultButton: (props, { attrs, slots }) => {
return h(ElButton, { ...props, attrs, type: 'info' }, slots);
return h(ElButton, { ...props, attrs }, slots);
},
// 自定义主要按钮
PrimaryButton: (props, { attrs, slots }) => {

View File

@ -2,7 +2,6 @@ import type { Recordable } from '@vben/types';
import { h } from 'vue';
// TODO @puhui999搜索的重置按钮颜色不对antd 是白色的
import { IconifyIcon } from '@vben/icons';
import { $te } from '@vben/locales';
import {
@ -19,7 +18,6 @@ import { $t } from '#/locales';
import { useVbenForm } from './form';
// TODO @puhui999貌似新增、和导出按钮和 antd 有点点差别,这个是要写样式哇?
setupVbenVxeTable({
configVxeTable: (vxeUI) => {
vxeUI.setConfig({