quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
19 lines (17 loc) • 832 B
TypeScript
import { CommonObj, PopconfirmAttrs, PopconfirmType } from '../../_types';
import { BaseBtnType, BtnItem, EndBtnItem, BtnAttrs } from './_types';
/**
* 获取popconfirm的属性对象
* @param {string | boolean | PopconfirmAttrs} popconfirm
* @param {string} text 按钮文字
*/
export declare function getPopconfirmAttrs(popconfirm: PopconfirmType, btnObj: BtnItem): PopconfirmAttrs;
/**
* 根据按钮名或按钮对象获取按钮对象
* @param {string | object | Function} btn 按钮名或按钮对象或方法函数
* @param {CommonObj} baseBtnAttrs 额外添加的属性,用来覆盖
* @param {boolean} isStand 是否是标准的按钮属性
*/
export declare function getBtnObj(btn: BaseBtnType, row?: CommonObj, baseBtnAttrs?: {
[key: string]: BtnAttrs;
}, isStand?: boolean): EndBtnItem;