mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-07 10:41:26 +08:00
27 lines
514 B
TypeScript
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,
|
|
);
|
|
},
|
|
});
|