Comments (8)
终于知道是啥问题了,跟详情页数据不会重置的解决方案(如下所示)冲突了。
Vue.mixin({
onUnload () {
if (this.$options.data) {
this._watchers = []
this._watcher.teardown()
Object.assign(this, this.$options.data)
}
}
})
from mpvue-picker.
可以,下次迭代就加上了这个事件,如果你现在这个需求比较急的话,你可以自己先自改一下源码,添加一个pickerCancel 事件。
from mpvue-picker.
v2.0.1 已支持
from mpvue-picker.
1、在pageA的onUnload调用pickerCancel,
2、再次进入showPicker依然是true,
3、然后调用this.$refs.mpvuePicker.show(),便不会再弹出picker
请问这个如何解决呢?
from mpvue-picker.
你是怎样调用的 pickerCancel ,方便提供一下代码不
from mpvue-picker.
@KuangPF 这用调用有问题吗
onUnload () {
console.log('关闭日历....onUnload', this.$refs)
this.$refs.mpvuePicker.pickerCancel()
}
from mpvue-picker.
我测试了下,在 onUnload 里面调用 pickerCancel 方法,然后再次进入页面显示正常,不知道方不方便提供一下更多的代码,好排查问题。
from mpvue-picker.
不好意思,那个是公司项目。
用最新mpvue-quickstart新建了一个项目(老项目是俩个月之前创建的),将老工程源代码考进去,就可以了,具体为啥还不清楚。
其实,这段时间mpvue-quickstart只是更新了下mpvue-loader,从1.0.12升级到1.1.2。
from mpvue-picker.
Related Issues (20)
- 使用picker mode为selector并且多次调用时 pickerValueDefault改变,视图不更新 HOT 5
- date
- IOS12.2 苹果8出现bug? HOT 8
- 直接复制mpvue-picker.vue代码到项目,uni-app编译到手机上报错 HOT 2
- 取消又显示的问题 HOT 5
- mode为dateSelector时的问题 HOT 7
- 关于月份选择的问题 HOT 1
- [BUG] dateSelector 模式第一次加载出错 HOT 5
- 在页面底部可以看到确定取消按钮 HOT 1
- mode = "multiSelector"时,视图显示数据缺乏第一列数据,且视图滚动列往前推一列。 HOT 1
- 动态修改数据没有实时渲染 HOT 3
- 多级联动value值有误 HOT 1
- 在 iOS 9.x 中导致页面空白 HOT 1
- 奉献一个整理好的城市三级联动数据JSON HOT 1
- pickerValueArrayChange 默认为true了 HOT 1
- 您好,我想问下您我一个vue界面中想调用两次,第二次数据出不来而且并没有报错 HOT 4
- 怎么修改各级选择之后的连接符? HOT 1
- 使用picker mode为selector,pickerValueDefault改变,视图默认选中的不对,很随机,也没有发现规律 HOT 3
- 鸿蒙系统不显示弹窗,手机弹窗权限已开启
- 快速滑动选择再点确定选择无变化 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpvue-picker.