You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
448 B
29 lines
448 B
2 years ago
|
/**
|
||
|
* 布局处理服务
|
||
|
*/
|
||
|
|
||
|
export class layoutService {
|
||
|
private data = {
|
||
|
title: "",
|
||
|
hasHeader: false,
|
||
|
hasFooter: false,
|
||
|
background: "",
|
||
|
};
|
||
|
constructor() {}
|
||
|
|
||
|
init() {}
|
||
|
|
||
|
setMetaData(inputData: {
|
||
|
title: string;
|
||
|
hasHeader: boolean;
|
||
|
hasFooter: boolean;
|
||
|
background: string;
|
||
|
}) {
|
||
|
this.data = { ...this.data, ...inputData };
|
||
|
}
|
||
|
|
||
|
getMetaData() {
|
||
|
return JSON.parse(JSON.stringify(this.data));
|
||
|
}
|
||
|
}
|