UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

103 lines (102 loc) 4.82 kB
/// <reference types="shell" /> /// <reference types="custom" /> export declare const eventStation: { publish: <T = any>(eventName: string, detail?: T, target?: HTMLElement | Window) => boolean; subscription: <T_1>(eventName: string, handler: (detail: T_1) => void, target?: HTMLElement | Window) => Function; }; export declare class RuleTypes { static readonly DT_NUMBER = "10"; static readonly DT_MONEY = "11"; static readonly DT_DATETIME = "12"; static readonly DT_TIME = "13"; static readonly DT_PERCENT = "14"; static readonly DT_FRACTION = "15"; static readonly DT_TEXT = "16"; static readonly DT_BOOL = "17"; static readonly DT_TEXT_AREA = "18"; static readonly DT_IMAGE = "20"; static readonly DT_SIGN_IMAGE = "26"; static readonly DT_UNI_IMAGE = "27"; static readonly DT_UNI_MUL_IMAGE = "28"; static readonly DT_HTML = "30"; static readonly DT_MULTI_TEXT = "31"; static readonly DT_MULTI_URL = "32"; static readonly DT_HTML2 = "36"; static readonly DT_EXTERNAL_URL = "37"; static readonly DT_BLOB_FILE = "40"; static readonly DT_CLOB_FILE = "41"; static readonly DT_FILE = "43"; static readonly DT_UNI_FILE = "47"; static readonly DT_UNI_MUL_FILE = "48"; static readonly DT_MEDIA_MIX = "50"; static readonly DT_MEDIA_IMAGE = "51"; static readonly DT_WIFI_SYMBOL = "60"; static readonly DT_POINT = "77"; static readonly DT_OTHER_SYMBOL = "90"; static readonly STORAGE_UI = "storage_ui"; static readonly STORAGE_FIELD = "storage_field"; static readonly STORAGE_DATA = "storage_data"; static readonly STORAGE_LOOKUP = "storage_lookup"; static readonly CHAT_ROOM = "chatroom"; static readonly CHAT_ROOM_LIST = "chatroomList"; static readonly STORAGE_CACHE = "storage_cache"; static readonly MINIMIZE = "minimize"; static readonly BASEINFO = "baseInfo"; static readonly USERINFO = "userInfo"; static readonly EDITEXPRESS = "EDITEXPRESS"; static readonly pseudoField = "__pseudo_column_field_name__"; static readonly pseudoFieldNumber = "__pseudo_column_field_name_number__"; static readonly REFRESHSCROLL = "scrollscroll"; static readonly AUTOCALCWIDTH = "autoCalcWidth"; static readonly COMPUTEDCOL = "computeCol"; static readonly LINKCLICK = "linkClick"; static readonly RESETPOSITION = "resetPosition"; static readonly REFRESHDATA = "refreshData"; static readonly APPLICATIONHELP = "_applicationHelp_"; static readonly TOKEN = "accessToken"; static readonly ISERRORPAGE = "__is_in_errorPage__"; static readonly REFRESHMENU = "refreshMenu"; static readonly REFRESHSUBITEM = "refreshSubItem"; static readonly localLookupData = "__local_lookup_data__"; static readonly RESETSCROLLMB = "RESETSCROLLMB"; static readonly disabledSort: string[]; static readonly ShellCode = "getBarCode"; static readonly tableNamePre = "offline_table"; static readonly REFRESHCONNECT = "refreshConnect"; static readonly ROUTEPARENT = "routeParent"; static readonly FINDBTN = "findBtn"; static readonly LABELBTN = "labelBtn"; static readonly FILEPRINTBTN = "filePrintBtn"; static readonly SORTBTN = "sortbtn"; static readonly ToggleMBTOOLS = "toggleMbTools"; static readonly TimeZoneMode = "timezoneMode"; static readonly RESETSORTANDFILTER = "RESETSORTANDFILTER"; static readonly ISPUSHLOCKTAB = "isPushLockTab"; static readonly PAGEFULLSCREEN = "pageFullScreen"; static readonly FULLSCREENHEADER = "fullScreenHeader"; static readonly TOGGLEHEADER = "toggleHeader"; static readonly CLOSECHATTOOL = "closeChatTool"; static readonly SENDMSG = "contact"; static readonly FONTFAMILY = "\"Microsoft YaHei\", Arial, Helvetica, sans-serif, \u5B8B\u4F53"; static readonly FIXPAGEREFRESH = "FixedPageRefresh"; static readonly REPACETAB = "replaceTab"; static readonly CHANGETABNAME = "changeTabName"; } export declare class FLRule { protected constructor(); /** * 打开分享的链接 */ static openShareLink: () => Promise<void>; } /**有info过程调用,必须得传入success与fail函数,如果不是的话,可以promise调用 */ declare type DoneResult<T> = { success: true; } & ShellDoneResult<T>; declare type FailResult = { success: false; } & ShellFailResult; export declare type ShellResult<T> = DoneResult<T> | FailResult; declare function shellHandler<R, T = {}, Info = R>(options: IShellSetting<T, R, Info>): boolean; declare function shellHandler<R, T = {}>(options: TOmit<IShellSetting<T, R>, "success" | "fail" | "info">): Promise<ShellResult<R>>; export { shellHandler };