tav-ui
Version:
21 lines (20 loc) • 1.99 kB
TypeScript
import { type FileMode } from '../typings';
export declare function isReadMode(mode: FileMode): boolean;
export declare function isUpdateMode(mode: FileMode): boolean;
export declare function isHyperlinkRow(rowHyperlink?: number): boolean;
export declare function isAutoRow(rowAuto?: number): boolean;
export declare function isOwnerOrAdmin(globalConfigUserInfo: Record<string, any>, owner?: string): any;
/** 是否有下载水印权限,后端判断通过该字段体现 */
export declare function isWatermarkFileDownloadRow(rowWatermarkFileDownload?: number): boolean;
/** 是否有下载水印权限,后端判断通过该字段体现 */
export declare function isSourceFileDownloadRow(rowSourceFileDownload?: number): boolean;
export declare function isFullNameColEdit(enabledRowEdit: boolean, mode: FileMode, enabledOwner: boolean, globalConfigUserInfo: Record<string, any>, owner?: string): any;
export declare function isVersionColVisible(enabledVersion: boolean, rowHyperlink?: number, rowAuto?: number): boolean;
/** 上传节点列,只读默认隐藏,其他模式默认显示。开发可通过 column 控制 */
export declare function isModuleFullNameColVisible(mode: FileMode): boolean;
export declare function isViewBtnVisible(rowHyperlink: number): boolean;
export declare function isUpdateBtnVisible(enabledUpdate: boolean, mode: FileMode, rowHyperlink: number, rowAuto: number, enabledOwner: boolean, globalConfigUserInfo: Record<string, any>, owner?: string): any;
export declare function isDownloadWatermarkBtnVisible(rowHyperlink: number, rowWatermarkFileDownload: number): boolean;
export declare function isDownloadBtnVisible(rowHyperlink: number, rowSourceFileDownload: number): boolean;
export declare function isDeleteBtnVisible(mode: FileMode, enabledOwner: boolean, globalConfigUserInfo: Record<string, any>, owner?: string): any;
export declare function isLogBtnVisible(enabledOwner: boolean, globalConfigUserInfo: Record<string, any>, owner?: string): any;