|
|
|
@ -34946,6 +34946,16 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
return watchers; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var mixinInjection = {}; |
|
|
|
|
|
|
|
|
|
function getMixins(type) { |
|
|
|
|
return mixinInjection[type]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function mixin(xtype, cls) { |
|
|
|
|
mixinInjection[xtype] = _.cloneDeep(cls); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var computedWatcherOptions = { lazy: true }; |
|
|
|
|
|
|
|
|
|
function initState(vm, state) { |
|
|
|
@ -35050,6 +35060,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function initMixins(vm, mixins) { |
|
|
|
|
mixins = mixins || []; |
|
|
|
|
|
|
|
|
|
_.each(mixins.reverse(), function (mixinType) { |
|
|
|
|
var mixin$$1 = getMixins(mixinType); |
|
|
|
|
|
|
|
|
|
for (var key in mixin$$1) { |
|
|
|
|
if (typeof mixin$$1[key] !== "function") continue; |
|
|
|
|
|
|
|
|
|
if (_.has(vm, key)) continue; |
|
|
|
|
|
|
|
|
|
vm[key] = _.bind(mixin$$1[key], vm.$$model ? vm.model : vm); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function defineProps(vm, keys) { |
|
|
|
|
var props = {}; |
|
|
|
|
// if (typeof Proxy === 'function') {
|
|
|
|
@ -35177,6 +35203,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
var watch$$1 = this.watch; |
|
|
|
|
var actions = this.actions; |
|
|
|
|
var keys = _.keys(this.$$model).concat(_.keys(state)).concat(_.keys(computed)).concat(context || []); |
|
|
|
|
var mixins = this.mixins; |
|
|
|
|
defineProps(this, keys); |
|
|
|
|
childContext && defineContext(this, childContext); |
|
|
|
|
this.$$model && (this.model.__ob__ = this.$$model.__ob__); |
|
|
|
@ -35185,6 +35212,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
initComputed(this, computed); |
|
|
|
|
initWatch(this, watch$$1); |
|
|
|
|
initMethods(this, actions); |
|
|
|
|
initMixins(this, mixins); |
|
|
|
|
this.created && this.created(); |
|
|
|
|
if (this.$$model) { |
|
|
|
|
return this.model; |
|
|
|
@ -35241,6 +35269,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
exports.define = define; |
|
|
|
|
exports.version = version; |
|
|
|
|
exports.$$skipArray = $$skipArray; |
|
|
|
|
exports.mixin = mixin; |
|
|
|
|
exports.Model = Model; |
|
|
|
|
exports.observerState = observerState; |
|
|
|
|
exports.Observer = Observer; |
|
|
|
|