External module "designer/index"
Functions
addCode
- addCode(fullPath: string, route: string, tpl: string): Promise<void>
-
Parameters
-
fullPath: string
-
route: string
-
tpl: string
Returns Promise<void>
addLayout
- addLayout(fullPath: string, route: string, type: string): Promise<void>
-
Parameters
-
fullPath: string
-
route: string
-
type: string
Returns Promise<void>
getViewContent
-
Parameters
Returns Promise<VueFile>
loadViews
- loadViews(fullPath: string, viewType: ViewType): Promise<View[]>
-
Parameters
Returns Promise<View[]>
saveCode
- saveCode(fullPath: string, type: "template" | "script" | "style", content: string): Promise<void>
-
Parameters
-
fullPath: string
-
type: "template" | "script" | "style"
-
content: string
Returns Promise<void>
saveFile
- saveFile(fullPath: string, content: string): Promise<void>
-
Parameters
-
fullPath: string
-
content: string
Returns Promise<void>
saveViewContent
- saveViewContent(fullPath: string, viewType: ViewType, content: string): Promise<void>
-
Parameters
-
fullPath: string
-
-
content: string
Returns Promise<void>
获取页面内容