Files
ruoyi-plus-vben5-h/apps/web-antd/src/components/global/button.ts

27 lines
514 B
TypeScript

import { defineComponent, h } from 'vue';
import { Button } from 'antdv-next';
import { omit } from 'lodash-es';
/**
* 表格操作列按钮专用
*/
export const GhostButton = defineComponent({
name: 'GhostButton',
props: omit({}, ['type', 'ghost', 'size']),
setup(props, { attrs, slots }) {
return () =>
h(
Button,
{
...props,
...attrs,
type: 'link',
// ghost: true,
size: 'small',
},
slots,
);
},
});