安卓键盘模式

使用说明

import { MUtils } from '@yl/super-jssdk';

MUtils.setKeyboardModel(optional);

参数说明

参数 类型 必填 作用
optional Object 非必选参数

optional

参数 类型 必填 作用
mode int 键盘弹出模式. 1:压缩模式,当软键盘弹出时,要对主窗口调整屏幕的大小以便留出软键盘的空间. 2:平移模式.屏幕大小并不会调整来保证软键盘的空间。默认为 1

代码示例

MUtils.setKeyboardModel({ mode: 1 }).then(res => {
  console.log('res', res);
}).catch(err => {
  console.log('err', err);
})

results matching ""

    No results matching ""