UNPKG

@zakijs/plugin-compiler-alipay

Version:

mor complier plugin for alipay mini program

87 lines (86 loc) 2.47 kB
export declare const target = "alipay"; export declare const targetDescription = "\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F"; export declare const fileType: { readonly template: ".axml"; readonly style: ".acss"; readonly config: ".json"; readonly script: ".js"; readonly sjs: ".sjs"; }; export declare const globalObject = "my"; export declare const resolveMainFields: string[]; export declare const defaultConditionalFileExt = ".my"; export declare const sjsTagName = "import-sjs"; export declare const sjsSrcAttrName = "from"; export declare const sjsModuleAttrName = "name"; export declare const isSupportSjsContent = false; export declare const defaultOutputDir = "dist/alipay"; export declare const compileModuleKind: "ESNext"; export declare const compileScriptTarget: "ES2015"; export declare const compileSjsTarget: "ES2019"; export declare const projectConfigFiles: string[]; export declare const supportGlobalComponents = true; export declare const templateSingleTagNames: string[]; export declare const templateDirectives: { if: string; elseIf: string; else: string; for: string; forItem: string; forIndex: string; key: string; }; export declare const twoWayBindingComponents: { input: { bindEventName: string; bindEventKey: string; }; textarea: { bindEventName: string; bindEventKey: string; }; swiper: { bindEventName: string; bindEventKey: string; }; switch: { bindEventName: string; bindEventKey: string; }; slider: { bindEventName: string; bindEventKey: string; }; checkbox: { bindEventName: string; bindEventKey: string; }; radio: { bindEventName: string; bindEventKey: string; }; picker: { bindEventName: string; bindEventKey: string; }; 'picker-view': { bindEventName: string; bindEventKey: string; }; }; /** * 判断是否是类似支付宝的小程序 * @param target - 目标平台 * @returns 是否是类似支付宝的小程序 */ export declare function isSimilarTarget(target: string): boolean; /** * 添加类似支付宝小程序的 target * @param target - 目标平台 */ export declare function addSimilarTarget(target: string): void; /** * 添加类似支付宝小程序的 target * @param t - 目标平台 */ export declare function removeSimilarTarget(t: string): void;