@dolphinweex/weex-vue-render 0.2.35 → 0.2.37
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 +8 -5
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5120,9 +5120,12 @@ var findEnterKeyType = function (key) {
|
|
|
5120
5120
|
|
|
5121
5121
|
var inputCommon = {
|
|
5122
5122
|
methods: {
|
|
5123
|
-
focus: function focus () {
|
|
5123
|
+
focus: function focus (autofocus) {
|
|
5124
|
+
// 当是自动聚焦时才需要主动弹出键盘,否则会导致键盘弹出但是组件失去焦点
|
|
5125
|
+
if (autofocus) {
|
|
5126
|
+
this.$el && weex.requireModule('bridgeModule').commandInterface(JSON.stringify({ operation: 'showKeyboard'}))
|
|
5127
|
+
}
|
|
5124
5128
|
this.$el && this.$el.focus();
|
|
5125
|
-
this.$el && weex.requireModule('bridgeModule').commandInterface(JSON.stringify({ operation: 'showKeyboard'}))
|
|
5126
5129
|
},
|
|
5127
5130
|
blur: function blur () {
|
|
5128
5131
|
this.$el && this.$el.blur();
|
|
@@ -5534,7 +5537,7 @@ function getInput (weex) {
|
|
|
5534
5537
|
|
|
5535
5538
|
mounted: function mounted () {
|
|
5536
5539
|
if (this.autofocus !== 'false' && this.autofocus !== false) {
|
|
5537
|
-
this.focus()
|
|
5540
|
+
this.focus(this.autofocus)
|
|
5538
5541
|
}
|
|
5539
5542
|
},
|
|
5540
5543
|
|
|
@@ -8759,7 +8762,7 @@ function getTextarea (weex) {
|
|
|
8759
8762
|
|
|
8760
8763
|
mounted: function mounted () {
|
|
8761
8764
|
if (this.autofocus !== 'false' && this.autofocus !== false) {
|
|
8762
|
-
this.focus()
|
|
8765
|
+
this.focus(this.autofocus)
|
|
8763
8766
|
}
|
|
8764
8767
|
},
|
|
8765
8768
|
|
|
@@ -10384,7 +10387,7 @@ var dom = {
|
|
|
10384
10387
|
}
|
|
10385
10388
|
else {}
|
|
10386
10389
|
if (options && options.animated === false) {
|
|
10387
|
-
return scrollElement.call(ct, dSuffix,
|
|
10390
|
+
return scrollElement.call(ct, dSuffix, offset)
|
|
10388
10391
|
}
|
|
10389
10392
|
step$1({
|
|
10390
10393
|
scrollable: ct,
|
package/package.json
CHANGED