Skip to content

引入

ts
import { getMorsePwdMixin, getMsdkFullScreen } from 't-comm';

// 不支持 tree-shaking 的项目
import { getMorsePwdMixin, getMsdkFullScreen} from 't-comm/lib/mixin/index';

// 只支持 ESM 的项目
import { getMorsePwdMixin, getMsdkFullScreen} from 't-comm/es/mixin/index';

getMorsePwdMixin

描述

摩斯密码的 Vue mixin,方便实用

参数

参数名类型描述
pwdarray

密钥

cbfunction

回到函数

返回:

换入内容

示例

ts
getMorsePwdMixin([1, 1, 1, 1, 1], function () {
  if (isInIFrame()) return;
  this.onShowLaunchApp();
}),

getMsdkFullScreen()

描述

msdk 浏览器全屏方法,点击外链时可全屏,返回时退出全屏

参数

示例

ts
mixins: [getMsdkFullScreen()],