@dolphinweex/weex-vue-render 0.2.86 → 0.2.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +2 -16
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -4073,7 +4073,7 @@ function initEnv (viewportInfo, envInfo) {
|
|
|
4073
4073
|
weexVersion: '1.0.36',
|
|
4074
4074
|
layoutDirection: 'ltr',
|
|
4075
4075
|
userAgent: navigator.userAgent,
|
|
4076
|
-
appName:
|
|
4076
|
+
appName: device_display.appName,
|
|
4077
4077
|
appVersion: device_display.appVersion,
|
|
4078
4078
|
osName: osName,
|
|
4079
4079
|
osVersion: osVersion,
|
|
@@ -5201,7 +5201,7 @@ var findEnterKeyType = function (key) {
|
|
|
5201
5201
|
};
|
|
5202
5202
|
|
|
5203
5203
|
var inputCommon = {
|
|
5204
|
-
mounted
|
|
5204
|
+
mounted () {
|
|
5205
5205
|
var this$1 = this;
|
|
5206
5206
|
|
|
5207
5207
|
if (this.autofocus !== 'false' && this.autofocus !== false) {
|
|
@@ -5221,15 +5221,6 @@ var inputCommon = {
|
|
|
5221
5221
|
globalEvent.addEventListener('receiveMessageFromApp', this._keyboardHeightChangeHandler);
|
|
5222
5222
|
},
|
|
5223
5223
|
|
|
5224
|
-
beforeDestroy: function beforeDestroy () {
|
|
5225
|
-
// 移除键盘高度变化监听
|
|
5226
|
-
if (this._keyboardHeightChangeHandler) {
|
|
5227
|
-
var globalEvent = weex.requireModule('globalEvent');
|
|
5228
|
-
globalEvent && globalEvent.removeEventListener &&
|
|
5229
|
-
globalEvent.removeEventListener('receiveMessageFromApp', this._keyboardHeightChangeHandler);
|
|
5230
|
-
}
|
|
5231
|
-
},
|
|
5232
|
-
|
|
5233
5224
|
methods: {
|
|
5234
5225
|
focus: function focus (autofocus) {
|
|
5235
5226
|
// 当是自动聚焦时才需要主动弹出键盘,否则会导致键盘弹出但是组件失去焦点
|
|
@@ -5641,11 +5632,6 @@ function getInput (weex) {
|
|
|
5641
5632
|
placeholderColor: String
|
|
5642
5633
|
},
|
|
5643
5634
|
|
|
5644
|
-
mounted: function mounted () {
|
|
5645
|
-
if (this.autofocus === 'true' || this.autofocus === true) {
|
|
5646
|
-
this.focus(this.autofocus)
|
|
5647
|
-
}
|
|
5648
|
-
},
|
|
5649
5635
|
//用watch监听新值,处理可能页面可能通过setimeout重新赋值的情况
|
|
5650
5636
|
watch: {
|
|
5651
5637
|
autofocus: function autofocus(val) {
|
package/package.json
CHANGED