提交 403c4ce9 编写于 作者: fxy060608's avatar fxy060608

feat(mp): composition-api #1839

上级 49e24817
......@@ -5600,6 +5600,15 @@ function cloneWithData(vm) {
ret[key] = vm[key];
return ret
}, ret);
// vue-composition-api
var rawBindings = vm.__secret_vfa_state__ && vm.__secret_vfa_state__.rawBindings;
if (rawBindings) {
Object.keys(rawBindings).forEach(function (key) {
ret[key] = vm[key];
});
}
//TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
Object.assign(ret, vm.$mp.data || {});
if (
......@@ -5804,7 +5813,7 @@ function getTarget(obj, path) {
return getTarget(obj[key], parts.slice(1).join('.'))
}
function internalMixin(Vue ) {
function internalMixin(Vue) {
Vue.config.errorHandler = function(err, vm, info) {
Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册