veplayer-mp-wechat
Advanced tools
Comparing version
@@ -24,2 +24,3 @@ "use strict"; | ||
PlayerModes["PORTRAIT"] = "portrait"; | ||
PlayerModes["FULLSCREEN"] = "fullscreen"; | ||
})(PlayerModes = exports.PlayerModes || (exports.PlayerModes = {})); | ||
@@ -26,0 +27,0 @@ /** |
@@ -11,5 +11,24 @@ "use strict"; | ||
value: true | ||
}, | ||
// 不同的模式需要确定是否需要添加底部边距 | ||
mode: { | ||
type: String, | ||
value: "portrait" /* PlayerModes.PORTRAIT */, | ||
observer(newVal, oldVal, _changedPath) { | ||
if (newVal === "portrait" /* PlayerModes.PORTRAIT */ || newVal === "fullscreen" /* PlayerModes.FULLSCREEN */) { | ||
this.setData({ | ||
modeClass: 'xgplayer-controls-portrait' | ||
}); | ||
} | ||
else { | ||
this.setData({ | ||
modeClass: '' | ||
}); | ||
} | ||
} | ||
} | ||
}, | ||
data: {}, | ||
data: { | ||
modeClass: 'xgplayer-controls-portrait' | ||
}, | ||
lifetimes: { | ||
@@ -16,0 +35,0 @@ // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 |
{ | ||
"name": "veplayer-mp-wechat", | ||
"version": "1.2.2-alpha.11", | ||
"version": "1.2.2-alpha.12", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogram": "dist", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
147719
0.57%2489
0.81%