Skip to content

Commit d054bfd

Browse files
committed
Merge branch '2.0.x' into feat-onroute
2 parents 0b5818e + 71ebedf commit d054bfd

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22

33
node_js:
4-
- "8"
4+
- '10'
55

66
matrix:
77
include:
@@ -11,19 +11,19 @@ matrix:
1111
sudo: false
1212

1313
before_install:
14-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get -qq update ; fi
15-
- if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which expect) ]] ; then sudo apt-get install -y expect ; fi
16-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then stty cols 80 ; fi
17-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew update ; fi
18-
- if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(which expect) ]] ; then brew install expect ; fi
14+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get -qq update ; fi
15+
- if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which expect) ]] ; then sudo apt-get install -y expect ; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then stty cols 80 ; fi
17+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew update ; fi
18+
- if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(which expect) ]] ; then brew install expect ; fi
1919

2020
install:
21-
- "npm install"
22-
- "npm run bootstrap"
21+
- 'npm install'
22+
- 'npm run bootstrap'
2323

2424
script:
25-
- "npm run test"
26-
- "npm run bootstrap:prod"
27-
- "npm run test:build"
28-
29-
after_script: "npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
25+
- 'npm run test'
26+
- 'npm run bootstrap:prod'
27+
- 'npm run test:build'
28+
29+
after_script: 'npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"babel-preset-stage-1": "^6.16.0",
4040
"chai": "^4.1.2",
4141
"chalk": "^1.1.3",
42+
"chokidar": "^3.4.0",
4243
"commitizen": "^3.1.1",
4344
"cz-conventional-changelog": "^2.1.0",
4445
"enquirer": "^2.3.0",

packages/cli/core/plugins/template/directives/v-on.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ exports = module.exports = function() {
198198
* </template>
199199
*/
200200
const eventCallee = parsedEvent.parsed.callee;
201-
if (eventCallee && eventCallee.name) {
201+
if (!modifiers.wxs && eventCallee && eventCallee.name) {
202202
const calleeChunks = eventCallee.name.split('.');
203203
const wxsBlock = ctx.sfc.wxs;
204204

@@ -209,7 +209,6 @@ exports = module.exports = function() {
209209
wxsBlock.find(item => item.attrs.module === calleeChunks[0])
210210
) {
211211
modifiers.wxs = true;
212-
213212
this.hookUnique(
214213
'error-handler',
215214
'template',

0 commit comments

Comments
 (0)