mirror of
https://gitee.com/openharmony/arkui_advanced_ui_component
synced 2024-11-27 01:10:42 +00:00
修改部件名&&分包路由问题修改
Signed-off-by: humeng <humeng13@huawei.com>
This commit is contained in:
parent
1c5ebbedcd
commit
8622b92e3e
2
BUILD.gn
2
BUILD.gn
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
group("as_advanced_ui_component") {
|
||||
group("advanced_ui_component") {
|
||||
deps = [
|
||||
"atomicservicenavigation/interfaces:atomicservicenavigation",
|
||||
"atomicservicetabs/interfaces:atomicservicetabs",
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "@ohos/as_advanced_ui_component",
|
||||
"name": "@ohos/advanced_ui_component",
|
||||
"version": "1.0.0",
|
||||
"description": "as_advanced_ui_component",
|
||||
"description": "advanced_ui_component",
|
||||
"publishAs": "code-segment",
|
||||
"segment": {
|
||||
"destPath": "foundation/arkui/as_advanced_ui_component"
|
||||
"destPath": "foundation/arkui/advanced_ui_component"
|
||||
},
|
||||
"component": {
|
||||
"name": "as_advanced_ui_component",
|
||||
"name": "advanced_ui_component",
|
||||
"subsystem": "arkui",
|
||||
"syscap": [],
|
||||
"features": [],
|
||||
|
@ -34,7 +34,7 @@ export class NavPushPathHelper {
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
navPushPathHelperApi.silentInstall(moduleName, () => {
|
||||
navPushPathHelperApi.initRouteMap();
|
||||
navPushPathHelperApi.updateRouteMap();
|
||||
this.navPathStack_?.pushPath(info, optionParam);
|
||||
resolve();
|
||||
},
|
||||
@ -54,7 +54,7 @@ export class NavPushPathHelper {
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
navPushPathHelperApi.silentInstall(moduleName, () => {
|
||||
navPushPathHelperApi.initRouteMap();
|
||||
navPushPathHelperApi.updateRouteMap();
|
||||
this.navPathStack_?.pushDestination(info, optionParam)
|
||||
.then(resolve).catch(reject);
|
||||
}, (error) => {
|
||||
@ -73,7 +73,8 @@ export class NavPushPathHelper {
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
navPushPathHelperApi.silentInstall(moduleName, () => {
|
||||
navPushPathHelperApi.initRouteMap();
|
||||
hilog.info(0x3900, tag, `silentInstall success`);
|
||||
navPushPathHelperApi.updateRouteMap();
|
||||
this.navPathStack_?.pushPathByName(name, param, onPop, optionParam);
|
||||
resolve();
|
||||
}, (error) => {
|
||||
@ -92,7 +93,7 @@ export class NavPushPathHelper {
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
navPushPathHelperApi.silentInstall(moduleName, () => {
|
||||
navPushPathHelperApi.initRouteMap();
|
||||
navPushPathHelperApi.updateRouteMap();
|
||||
this.navPathStack_?.pushDestinationByName(name, param, onPop, optionParam)
|
||||
.then(resolve).catch(reject);
|
||||
}, (error) => {
|
||||
@ -111,7 +112,7 @@ export class NavPushPathHelper {
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
navPushPathHelperApi.silentInstall(moduleName, () => {
|
||||
navPushPathHelperApi.initRouteMap();
|
||||
navPushPathHelperApi.updateRouteMap();
|
||||
this.navPathStack_?.replacePath(info, optionParam);
|
||||
resolve();
|
||||
}, (error) => {
|
||||
@ -131,7 +132,7 @@ export class NavPushPathHelper {
|
||||
return new Promise((resolve, reject) => {
|
||||
navPushPathHelperApi.silentInstall(moduleName, () => {
|
||||
hilog.info(0x3900, tag, `silentInstall success`);
|
||||
navPushPathHelperApi.initRouteMap();
|
||||
navPushPathHelperApi.updateRouteMap();
|
||||
this.navPathStack_?.replacePathByName(name, param, optionParam);
|
||||
resolve();
|
||||
}, (error) => {
|
||||
|
@ -106,7 +106,7 @@ bool HspSilentInstall::IsHspExist(const std::string &moduleName, const std::stri
|
||||
return false;
|
||||
}
|
||||
|
||||
void HspSilentInstall::InitRouteMap()
|
||||
void HspSilentInstall::UpdateRouteMap()
|
||||
{
|
||||
auto container = OHOS::Ace::Container::CurrentSafely();
|
||||
CHECK_NULL_VOID(container);
|
||||
|
@ -56,9 +56,9 @@ napi_value HspSilentInstallNapi::IsHspExist(napi_env env, napi_callback_info inf
|
||||
return jsResult;
|
||||
}
|
||||
|
||||
napi_value HspSilentInstallNapi::InitRouteMap(napi_env env, napi_callback_info info)
|
||||
napi_value HspSilentInstallNapi::UpdateRouteMap(napi_env env, napi_callback_info info)
|
||||
{
|
||||
HspSilentInstall::InitRouteMap();
|
||||
HspSilentInstall::UpdateRouteMap();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ namespace OHOS::NavPushPathHelper {
|
||||
napi_property_descriptor desc[] = {
|
||||
DECLARE_NAPI_FUNCTION("silentInstall", HspSilentInstallNapi::SilentInstall),
|
||||
DECLARE_NAPI_FUNCTION("isHspExist", HspSilentInstallNapi::IsHspExist),
|
||||
DECLARE_NAPI_FUNCTION("initRouteMap", HspSilentInstallNapi::InitRouteMap),
|
||||
DECLARE_NAPI_FUNCTION("updateRouteMap", HspSilentInstallNapi::UpdateRouteMap),
|
||||
};
|
||||
NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc));
|
||||
return exports;
|
||||
|
Loading…
Reference in New Issue
Block a user