Browse Source

无JIRA任务 更新fix

es6
windy 3 years ago
parent
commit
4cb767f920
  1. 5
      dist/fix/fix.js
  2. 11
      dist/fix/fix.proxy.js

5
dist/fix/fix.js vendored

@ -904,6 +904,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
return target; return target;
} }
function freeze() {
return Object.freeze.apply(null, arguments);
}
/** /**
* Delete a property and trigger change if necessary. * Delete a property and trigger change if necessary.
*/ */
@ -1519,6 +1523,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
exports.notify = notify; exports.notify = notify;
exports.defineReactive = defineReactive; exports.defineReactive = defineReactive;
exports.set = set; exports.set = set;
exports.freeze = freeze;
exports.del = del; exports.del = del;
exports.Watcher = Watcher; exports.Watcher = Watcher;
exports.pushTarget = pushTarget; exports.pushTarget = pushTarget;

11
dist/fix/fix.proxy.js vendored

@ -1838,6 +1838,7 @@
if (!runner.effect.active) { if (!runner.effect.active) {
return; return;
} }
if (cb) { if (cb) {
// watch(source, cb) // watch(source, cb)
var newValue = runner(); var newValue = runner();
@ -2404,6 +2405,15 @@
} }
target[key] = val; target[key] = val;
return target;
}
function freeze(value) {
Object.defineProperty(value, '__v_skip', {
configurable: true,
enumerable: false,
value: value
});
return value;
} }
function del(target, key) { function del(target, key) {
if (_.isArray(target)) { if (_.isArray(target)) {
@ -2456,6 +2466,7 @@
exports.config = config; exports.config = config;
exports.define = define; exports.define = define;
exports.del = del; exports.del = del;
exports.freeze = freeze;
exports.mixin = mixin; exports.mixin = mixin;
exports.set = set; exports.set = set;
exports.toJSON = toJSON; exports.toJSON = toJSON;

Loading…
Cancel
Save