mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-21 01:45:24 -04:00
Signed-off-by: lixingchi1 <lixingchi1@huawei.com>
This commit is contained in:
@@ -58,8 +58,7 @@ export const defineFn = function(page: Page, packageName: string, name?: string,
|
|||||||
const pageRequire = (name: string) : any => {
|
const pageRequire = (name: string) : any => {
|
||||||
if (isModule(name)) {
|
if (isModule(name)) {
|
||||||
const appFunction = (): Page => {
|
const appFunction = (): Page => {
|
||||||
const appPage: Page = appMap[packageName].getAppInstance();
|
return page || appMap[packageName].getAppInstance();
|
||||||
return appPage || page;
|
|
||||||
};
|
};
|
||||||
return requireModule(appFunction, removePrefix(name));
|
return requireModule(appFunction, removePrefix(name));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export function appCreate(page: Page, options: Options, data: object, services:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// require in top app(instance)
|
// require in top app(instance)
|
||||||
const appRequireModule = name => requireModule(appPage, removePrefix(name));
|
const appRequireModule = name => requireModule(page || appPage, removePrefix(name));
|
||||||
const parseOptions: ParseOptions = {
|
const parseOptions: ParseOptions = {
|
||||||
$app_define$: appDefine,
|
$app_define$: appDefine,
|
||||||
$app_bootstrap$: appBootstrap,
|
$app_bootstrap$: appBootstrap,
|
||||||
|
|||||||
@@ -649,10 +649,6 @@ class Element extends Node {
|
|||||||
if (this.attr[key] === value && silent !== false) {
|
if (this.attr[key] === value && silent !== false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Because the data has been addressed in SetData
|
|
||||||
if (key === 'data') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.attr[key] = value;
|
this.attr[key] = value;
|
||||||
const taskCenter = this.getTaskCenter(this.docId);
|
const taskCenter = this.getTaskCenter(this.docId);
|
||||||
if (!silent && taskCenter) {
|
if (!silent && taskCenter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user