diff --git a/packages/vue-cli-plugin-uni/lib/env.js b/packages/vue-cli-plugin-uni/lib/env.js index 1c7ca9a7e808c6b8c3a3597c62fc64342fce9674..760d4cfb6eebe2bc7b49a59050ca2719aecd1084 100644 --- a/packages/vue-cli-plugin-uni/lib/env.js +++ b/packages/vue-cli-plugin-uni/lib/env.js @@ -25,8 +25,8 @@ global.uniPlugin.validate.forEach(validate => { }) process.UNI_MANIFEST = manifestJsonObj - -process.env.UNI_USING_V3_SCOPED = true + +process.env.UNI_USING_V3_SCOPED = true process.UNI_CLOUD = false process.UNI_CLOUD_TCB = false @@ -410,6 +410,10 @@ global.uniPlugin.configureEnv.forEach(configureEnv => { configureEnv() }) +if (process.env.UNI_PLATFORM.startsWith('mp-')) { + console.log('小程序各家浏览器内核及自定义组件实现机制存在差异,可能存在样式布局兼容问题,参考:https://uniapp.dcloud.io/matter?id=mp') +} + runByHBuilderX && console.log('正在编译中...') module.exports = { diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index 7f9b42e7baceeec4bf785242931e03cd9a79faf8..dc248592c7149b6c4091d30045e245f7a6902d87 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -107,6 +107,10 @@ export default { UniViewJSBridge.unsubscribe('hideKeyboard', this.hideKeyboardTemp) document.removeEventListener('click', iosHideKeyboard, false) this.resetSoftinputNavBar() + // 修复ios端显示与点击位置错位的Bug by:wyq + if (document.body.scrollIntoView) { + document.body.scrollIntoView() + } } } } diff --git a/src/platforms/app-plus/view/framework/plugins/data.js b/src/platforms/app-plus/view/framework/plugins/data.js index 121df62080cf95e70dd26f10612b4157e9977647..94c47c949bbd28c7655293d207047ed11355a039 100644 --- a/src/platforms/app-plus/view/framework/plugins/data.js +++ b/src/platforms/app-plus/view/framework/plugins/data.js @@ -127,7 +127,7 @@ function getData (id, name) { try { return this.$r[id][name] } catch (e) { - console.error(this.$options.__file + `:[${this._$id}]$r[${id}][${name}] is undefined`) + // console.error(this.$options.__file + `:[${this._$id}]$r[${id}][${name}] is undefined`) } } /** @@ -143,7 +143,7 @@ function getChangeData (id, name) { this.$set(this.wxsProps, wxsPropName, value) return value } catch (e) { - console.error(this.$options.__file + `:[${this._$id}]$r[${id}][${name}] is undefined`) + // console.error(this.$options.__file + `:[${this._$id}]$r[${id}][${name}] is undefined`) } }