mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
core/bumping-dependency-vue-version (#729)
* bumping version * build(core): bumping vue version - Bumping up vue version from ^3.0.0 to ^3.0.3 due to the change of `emitOptions` * Remove transition mock/Add before-enter and before-leave hook emitter for popper
This commit is contained in:
parent
03848ed70f
commit
de0696b4f6
@ -27,7 +27,7 @@
|
||||
"upgrade:vue": "bash ./scripts/update-versions.sh"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.12.1",
|
||||
@ -46,7 +46,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^3.10.1",
|
||||
"@typescript-eslint/parser": "^3.10.1",
|
||||
"@vue/babel-plugin-jsx": "^1.0.0-rc.3",
|
||||
"@vue/compiler-sfc": "^3.0.0",
|
||||
"@vue/compiler-sfc": "^3.0.3",
|
||||
"@vue/component-compiler-utils": "^3.2.0",
|
||||
"algoliasearch": "^4.4.0",
|
||||
"babel-jest": "^26.3.0",
|
||||
@ -92,8 +92,8 @@
|
||||
"ts-loader": "^8.0.3",
|
||||
"typescript": "^4.0.2",
|
||||
"url-loader": "^4.1.0",
|
||||
"vue-jest": "5.0.0-alpha.1",
|
||||
"vue-loader": "16.0.0-beta.7",
|
||||
"vue-jest": "5.0.0-alpha.5",
|
||||
"vue-loader": "^16.1.0",
|
||||
"vue-router": "^4.0.0-beta.4",
|
||||
"vue-template-compiler": "^2.6.12",
|
||||
"webpack": "^4.44.1",
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@element-plus/button": "^0.0.0",
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -8,7 +8,7 @@
|
||||
"@element-plus/utils": "^0.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0-rc.9"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0-rc.7"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0-rc.1"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0-rc.1"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import * as Vue from 'vue'
|
||||
import * as popperExports from '@popperjs/core'
|
||||
import { rAF } from '@element-plus/test-utils/tick'
|
||||
import ElPopper from '../src/index.vue'
|
||||
|
||||
import type { VueWrapper } from '@vue/test-utils'
|
||||
@ -24,8 +25,7 @@ const DISPLAY_NONE = 'display: none'
|
||||
const Wrapped = (props: UnknownProps, { slots }) => {
|
||||
return h('div', h(ElPopper, props, slots))
|
||||
}
|
||||
const Transition = (_: UnknownProps, { attrs, slots }) => h('div', attrs, slots)
|
||||
Transition.displayName = 'Transition'
|
||||
|
||||
// eslint-disable-next-line
|
||||
const _mount = (props: UnknownProps = {}, slots = {}): VueWrapper<any> =>
|
||||
mount(Wrapped, {
|
||||
@ -51,14 +51,9 @@ const popperMock = jest
|
||||
}))
|
||||
|
||||
describe('Popper.vue', () => {
|
||||
const oldTransition = Vue.Transition
|
||||
beforeAll(() => {
|
||||
(Vue as any).Transition = Transition
|
||||
})
|
||||
|
||||
afterAll(() => {
|
||||
popperMock.mockReset()
|
||||
;(Vue as any).Transition = oldTransition
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
@ -218,10 +213,15 @@ describe('Popper.vue', () => {
|
||||
})
|
||||
const $trigger = wrapper.find(`.${TEST_TRIGGER}`)
|
||||
await $trigger.trigger(MOUSE_ENTER_EVENT)
|
||||
await rAF()
|
||||
await nextTick()
|
||||
expect(wrapper.find(selector).attributes('style')).not.toContain(
|
||||
DISPLAY_NONE,
|
||||
)
|
||||
|
||||
await $trigger.trigger(MOUSE_LEAVE_EVENT)
|
||||
jest.runOnlyPendingTimers()
|
||||
await rAF()
|
||||
await nextTick()
|
||||
expect(wrapper.find(selector).attributes('style')).toContain(DISPLAY_NONE)
|
||||
})
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -25,12 +25,10 @@ import { ClickOutside } from '@element-plus/directives'
|
||||
const compName = 'ElPopper'
|
||||
const UPDATE_VISIBLE_EVENT = 'update:visible'
|
||||
|
||||
const emits = [UPDATE_VISIBLE_EVENT, 'after-enter', 'after-leave']
|
||||
|
||||
export default defineComponent({
|
||||
name: compName,
|
||||
props: defaultProps,
|
||||
emits,
|
||||
emits: [UPDATE_VISIBLE_EVENT, 'after-enter', 'after-leave', 'before-enter', 'before-leave'],
|
||||
setup(props, ctx) {
|
||||
if (!ctx.slots.trigger) {
|
||||
throwError(compName, 'Trigger must be provided')
|
||||
@ -61,6 +59,8 @@ export default defineComponent({
|
||||
onPopperMouseLeave,
|
||||
onAfterEnter,
|
||||
onAfterLeave,
|
||||
onBeforeEnter,
|
||||
onBeforeLeave,
|
||||
popperClass,
|
||||
popperId,
|
||||
popperStyle,
|
||||
@ -86,6 +86,8 @@ export default defineComponent({
|
||||
onMouseLeave: onPopperMouseLeave,
|
||||
onAfterEnter,
|
||||
onAfterLeave,
|
||||
onBeforeEnter,
|
||||
onBeforeLeave,
|
||||
visibility,
|
||||
},
|
||||
[
|
||||
|
@ -20,6 +20,8 @@ interface IRenderPopperProps {
|
||||
onMouseLeave: () => void
|
||||
onAfterEnter: () => void
|
||||
onAfterLeave: () => void
|
||||
onBeforeEnter: () => void
|
||||
onBeforeLeave: () => void
|
||||
}
|
||||
|
||||
export default function renderPopper(
|
||||
@ -40,6 +42,8 @@ export default function renderPopper(
|
||||
onMouseLeave,
|
||||
onAfterEnter,
|
||||
onAfterLeave,
|
||||
onBeforeEnter,
|
||||
onBeforeLeave,
|
||||
} = props
|
||||
|
||||
const kls = [
|
||||
@ -62,8 +66,10 @@ export default function renderPopper(
|
||||
Transition,
|
||||
{
|
||||
name,
|
||||
'onAfter-enter': onAfterEnter,
|
||||
'onAfter-leave': onAfterLeave,
|
||||
'onAfterEnter': onAfterEnter,
|
||||
'onAfterLeave': onAfterLeave,
|
||||
'onBeforeEnter': onBeforeEnter,
|
||||
'onBeforeLeave': onBeforeLeave,
|
||||
},
|
||||
{
|
||||
default: withCtx(() => [withDirectives(
|
||||
@ -97,6 +103,6 @@ export default function renderPopper(
|
||||
[[vShow, visibility]],
|
||||
)]),
|
||||
},
|
||||
PatchFlags.PROPS, ['name', 'onAfter-enter', 'onAfter-leave'],
|
||||
PatchFlags.PROPS, ['name', 'onAfterEnter', 'onAfterLeave', 'onBeforeEnter', 'onBeforeLeave'],
|
||||
)
|
||||
}
|
||||
|
@ -259,7 +259,7 @@ export default function(
|
||||
if (isArray(props.trigger)) {
|
||||
Object.values(props.trigger).map(mapEvents)
|
||||
} else {
|
||||
mapEvents(props.trigger)
|
||||
mapEvents(props.trigger as TriggerType)
|
||||
}
|
||||
}
|
||||
|
||||
@ -285,6 +285,12 @@ export default function(
|
||||
detachPopper()
|
||||
emit('after-leave')
|
||||
},
|
||||
onBeforeEnter: () => {
|
||||
emit('before-enter')
|
||||
},
|
||||
onBeforeLeave: () => {
|
||||
emit('before-leave')
|
||||
},
|
||||
initializePopper,
|
||||
isManualMode,
|
||||
arrowRef,
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0-rc.9"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"vue": "^3.0.0",
|
||||
"vue": "^3.0.3",
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
}
|
||||
}
|
||||
|
@ -7,3 +7,13 @@ const tick = async (times: number) => {
|
||||
}
|
||||
|
||||
export default tick
|
||||
|
||||
// in order to test transitions, we need to use
|
||||
// await rAF() after firing transition events.
|
||||
export const rAF = async () => {
|
||||
return new Promise(res => {
|
||||
requestAnimationFrame(() => {
|
||||
requestAnimationFrame(res)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0-rc.9"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -139,6 +139,7 @@ export default defineComponent({
|
||||
ElPopper,
|
||||
{
|
||||
ref: 'popper',
|
||||
appendToBody: true,
|
||||
class: this.class,
|
||||
disabled,
|
||||
effect,
|
||||
|
@ -4,7 +4,7 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.0"
|
||||
|
@ -68,6 +68,8 @@ import { useMove } from './useMove'
|
||||
import { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'
|
||||
import { elFormItemKey } from '@element-plus/form'
|
||||
|
||||
import { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT } from './useCheckedChange'
|
||||
|
||||
import type { PropType, VNode } from 'vue'
|
||||
import type { ElFormItemContext } from '@element-plus/form'
|
||||
import type {
|
||||
@ -76,8 +78,6 @@ import type {
|
||||
} from './transfer'
|
||||
|
||||
export const CHANGE_EVENT = 'change'
|
||||
export const LEFT_CHECK_CHANGE_EVENT = 'left-check-change'
|
||||
export const RIGHT_CHECK_CHANGE_EVENT = 'right-check-change'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ElTransfer',
|
||||
|
@ -64,9 +64,7 @@ import { t } from '@element-plus/locale'
|
||||
import ElCheckbox from '@element-plus/checkbox'
|
||||
import ElCheckboxGroup from '@element-plus/checkbox-group'
|
||||
import ElInput from '@element-plus/input'
|
||||
import { useCheck } from './useCheck'
|
||||
|
||||
export const CHECKED_CHANGE_EVENT = 'checked-change'
|
||||
import { useCheck, CHECKED_CHANGE_EVENT } from './useCheck'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ElTransferPanel',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { VNode } from 'vue'
|
||||
import type { VNode } from 'vue'
|
||||
|
||||
export type Key = string | number
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { computed, watch } from 'vue'
|
||||
import { TransferPanelProps, TransferPanelState, Key } from './transfer'
|
||||
|
||||
import { CHECKED_CHANGE_EVENT } from './transfer-panel.vue'
|
||||
export const CHECKED_CHANGE_EVENT = 'checked-change'
|
||||
|
||||
|
||||
export const useCheck = (props: TransferPanelProps, panelState: TransferPanelState, emit) => {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { TransferCheckedState, Key } from './transfer'
|
||||
|
||||
import { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT } from './index.vue'
|
||||
export const LEFT_CHECK_CHANGE_EVENT = 'left-check-change'
|
||||
export const RIGHT_CHECK_CHANGE_EVENT = 'right-check-change'
|
||||
|
||||
import type { TransferCheckedState, Key } from './transfer'
|
||||
export const useCheckedChange = (checkedState: TransferCheckedState, emit) => {
|
||||
const onSourceCheckedChange = (val: Key[], movedKeys: Key[]) => {
|
||||
checkedState.leftChecked = val
|
||||
|
@ -7,7 +7,7 @@
|
||||
"@element-plus/utils": "^0.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^3.0.0"
|
||||
"vue": "^3.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/test-utils": "^2.0.0-beta.3"
|
||||
|
@ -753,13 +753,13 @@ describe('Tree.vue', () => {
|
||||
return resolve([{ label: 'region1' }, { label: 'region2' }])
|
||||
}
|
||||
if (node.level > 4) return resolve([])
|
||||
setTimeout(() => {
|
||||
nextTick(() => {
|
||||
resolve([{
|
||||
label: 'zone' + this.count++,
|
||||
}, {
|
||||
label: 'zone' + this.count++,
|
||||
}])
|
||||
}, 50)
|
||||
})
|
||||
},
|
||||
handleNodeOpen(data) {
|
||||
this.currentNode = data
|
||||
@ -778,13 +778,17 @@ describe('Tree.vue', () => {
|
||||
expect(firstNodeWrapper.find('.el-tree-node__children').exists()).toBe(false)
|
||||
|
||||
await firstNodeContentWrapper.trigger('click')
|
||||
await sleep(100)
|
||||
await nextTick() // first next tick for UI update
|
||||
await nextTick() // second next tick for triggering loadNode
|
||||
await nextTick() // third next tick for updating props.node.expanded
|
||||
|
||||
expect(vm.nodeExpended).toEqual(true)
|
||||
expect(vm.currentNode.label).toEqual('region1')
|
||||
|
||||
await firstNodeContentWrapper.trigger('click')
|
||||
await sleep(100)
|
||||
await nextTick()
|
||||
await nextTick()
|
||||
await nextTick()
|
||||
|
||||
expect(vm.nodeExpended).toEqual(false)
|
||||
expect(vm.currentNode.label).toEqual('region1')
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user