refactor: ele 默认按钮样式和 antd 的保持一致
parent
2baf398c7f
commit
bf44d97e0b
|
@ -241,7 +241,7 @@ async function initComponentAdapter() {
|
||||||
},
|
},
|
||||||
// 自定义默认按钮
|
// 自定义默认按钮
|
||||||
DefaultButton: (props, { attrs, slots }) => {
|
DefaultButton: (props, { attrs, slots }) => {
|
||||||
return h(ElButton, { ...props, attrs, type: 'info' }, slots);
|
return h(ElButton, { ...props, attrs }, slots);
|
||||||
},
|
},
|
||||||
// 自定义主要按钮
|
// 自定义主要按钮
|
||||||
PrimaryButton: (props, { attrs, slots }) => {
|
PrimaryButton: (props, { attrs, slots }) => {
|
||||||
|
|
|
@ -2,7 +2,6 @@ import type { Recordable } from '@vben/types';
|
||||||
|
|
||||||
import { h } from 'vue';
|
import { h } from 'vue';
|
||||||
|
|
||||||
// TODO @puhui999:搜索的重置按钮,颜色不对;antd 是白色的
|
|
||||||
import { IconifyIcon } from '@vben/icons';
|
import { IconifyIcon } from '@vben/icons';
|
||||||
import { $te } from '@vben/locales';
|
import { $te } from '@vben/locales';
|
||||||
import {
|
import {
|
||||||
|
@ -19,7 +18,6 @@ import { $t } from '#/locales';
|
||||||
|
|
||||||
import { useVbenForm } from './form';
|
import { useVbenForm } from './form';
|
||||||
|
|
||||||
// TODO @puhui999:貌似新增、和导出按钮,和 antd 有点点差别,这个是要写样式哇?
|
|
||||||
setupVbenVxeTable({
|
setupVbenVxeTable({
|
||||||
configVxeTable: (vxeUI) => {
|
configVxeTable: (vxeUI) => {
|
||||||
vxeUI.setConfig({
|
vxeUI.setConfig({
|
||||||
|
|
Loading…
Reference in New Issue