|
openTabLayout中有一个参数,scrollEnabled: false,设置false可以直接禁止打开的frame左右滑动。
- api.openTabLayout({
- name: "tabLayout",
- url: "widget://html/home.html",
- hideTabBar: false,
- tabBar: {
- height: 50,
- selectedColor: "#1296db",
- shadow: "#B6B6B6",
- fontSize: 12,
- textOffset: 6,
- [color=Red] scrollEnabled: false,[/color]
- index: 0,
- preload: 1,
- list: [],
- frames: [],
- },
- });
复制代码 |
|