|
- api.openTabLayout({
- name: "tabLayout",
- url: "widget://html/home.html",
- hideTabBar: false,
- tabBar: {
- height: 50,
- selectedColor: "#1296db",
- shadow: "#B6B6B6",
- fontSize: 12,
- textOffset: 6,
- scrollEnabled: false,
- preload: 1,
- list: [
- {
- text: "首页",
- iconPath: "widget://image/icon/home.png",
- selectedIconPath: "widget://image/icon/home_selected.png",
- },
- {
- text: "我的",
- iconPath: "widget://image/icon/my.png",
- selectedIconPath: "widget://image/icon/my_selected.png",
- },
- ],
- frames: [
- {
- name: "home_default",
- url: "widget://html/home.html",
- },
- {
- name: "my",
- url: "widget://html/my.html",
- },
- ],
- },
- });
复制代码
它是直接将底部导航栏抬起来了,例如我用opentablayout打开了两个页面,底部有个导航栏,高度为50px。在首页中有个弹框,上面有个input,键盘弹出时直接把底部的导航栏顶起来了。影藏导航栏也只是把icon和文字影藏掉了,高度依然存在。 |
|