@umajs/plugin-vue-ssr
Version:
In umajs, Vue is used to develop the plug-in of spa and MPa, which supports server-side rendering and client-side rendering
24 lines (23 loc) • 636 B
TypeScript
import { TPlugin, Result as R } from '@umajs/core';
interface TviewOptions {
ssr?: boolean;
cache?: boolean;
useEngine?: boolean;
}
export interface TssrPluginOptions extends TviewOptions {
rootDir?: string;
rootNode?: string;
defaultRouter?: boolean;
prefixCDN?: string;
prefixRouter?: string;
}
interface IvueViewParms {
viewName: string;
initProps: any;
options: TviewOptions;
}
export declare class Result<T> extends R<T> {
static vue(viewName: string, initProps?: any, options?: TviewOptions): Result<IvueViewParms>;
}
declare const _default: () => TPlugin;
export default _default;