mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-13 09:21:05 +08:00
Compare commits
No commits in common. "ef8331bd2312c775a19143fd6f7ae575cc63aebd" and "8a1f7872c5dff8720277b549ab13a63e99d32ac1" have entirely different histories.
ef8331bd23
...
8a1f7872c5
@ -16,15 +16,6 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
## Details
|
||||
|
||||
### [v2.12.54](https://github.com/vant-ui/vant/compare/v2.12.53...v2.12.54)
|
||||
|
||||
`2023-02-11`
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Popover: location update after transition [#11558](https://github.com/vant-ui/vant/issues/11558)
|
||||
- Search: @search-left-icon-color var not work [#11299](https://github.com/vant-ui/vant/issues/11299)
|
||||
|
||||
### [v2.12.53](https://github.com/vant-ui/vant/compare/v2.12.52...v2.12.53)
|
||||
|
||||
`2022-11-17`
|
||||
|
||||
@ -25,15 +25,6 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
## 更新内容
|
||||
|
||||
### [v2.12.54](https://github.com/vant-ui/vant/compare/v2.12.53...v2.12.54)
|
||||
|
||||
`2023-02-11`
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Popover: 修复过渡动画后位置错误的问题 [#11558](https://github.com/vant-ui/vant/issues/11558)
|
||||
- Search: 修复 @search-left-icon-color 样式变量不生效的问题 [#11299](https://github.com/vant-ui/vant/issues/11299)
|
||||
|
||||
### [v2.12.53](https://github.com/vant-ui/vant/compare/v2.12.52...v2.12.53)
|
||||
|
||||
`2022-11-17`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vant",
|
||||
"version": "2.12.54",
|
||||
"version": "2.12.53",
|
||||
"description": "Mobile UI Components built on Vue",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { createPopper, offsetModifier } from '@vant/popperjs';
|
||||
import { createNamespace, isServer } from '../utils';
|
||||
import { createNamespace } from '../utils';
|
||||
import { BORDER_BOTTOM } from '../utils/constant';
|
||||
|
||||
// Mixins
|
||||
@ -60,10 +60,6 @@ export default createComponent({
|
||||
|
||||
beforeDestroy() {
|
||||
if (this.popper) {
|
||||
if (!isServer) {
|
||||
window.removeEventListener('animationend', this.updateLocation);
|
||||
window.removeEventListener('transitionend', this.updateLocation);
|
||||
}
|
||||
this.popper.destroy();
|
||||
this.popper = null;
|
||||
}
|
||||
@ -71,7 +67,7 @@ export default createComponent({
|
||||
|
||||
methods: {
|
||||
createPopper() {
|
||||
const popper = createPopper(this.$refs.wrapper, this.$refs.popover.$el, {
|
||||
return createPopper(this.$refs.wrapper, this.$refs.popover.$el, {
|
||||
placement: this.placement,
|
||||
modifiers: [
|
||||
{
|
||||
@ -89,11 +85,6 @@ export default createComponent({
|
||||
},
|
||||
],
|
||||
});
|
||||
if (!isServer) {
|
||||
window.addEventListener('animationend', this.updateLocation);
|
||||
window.addEventListener('transitionend', this.updateLocation);
|
||||
}
|
||||
return popper;
|
||||
},
|
||||
|
||||
updateLocation() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user