import { ElPopconfirm } from 'element-plus' import CipButtonText from '../cip-button-text' import { defineComponent } from 'vue' export default defineComponent({ name: 'CipButtonPop', props: { popTitle: String, popPlacement: String }, inheritAttrs: false, setup (props, { attrs, slots }) { /* 修改danger类型的按钮 转换为primary [注: UI标准中无颜色区分] */ return () => { const { onClick, ...inheritAttrs } = attrs as { onClick: (e?: MouseEvent, bool?: boolean) => T} // 将按钮的click设置为noop return onClick(e, true)} > {{ reference: () => {} } > {slots.default?.()} }} } } })