3 lines
6.3 KiB
JavaScript
3 lines
6.3 KiB
JavaScript
define("local_treestudyplan/vue-easy-dnd/vue-class-component",["exports","../vue/vue"],(function(_exports,_vue){var obj;function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function forwardMetadata(to,from,propertyKey){(propertyKey?Reflect.getOwnMetadataKeys(from,propertyKey):Reflect.getOwnMetadataKeys(from)).forEach((function(metaKey){var metadata=propertyKey?Reflect.getOwnMetadata(metaKey,from,propertyKey):Reflect.getOwnMetadata(metaKey,from);propertyKey?Reflect.defineMetadata(metaKey,metadata,to,propertyKey):Reflect.defineMetadata(metaKey,metadata,to)}))}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.Component=Component,_exports.createDecorator=function(factory){return function(target,key,index){var Ctor="function"==typeof target?target:target.constructor;Ctor.__decorators__||(Ctor.__decorators__=[]),"number"!=typeof index&&(index=void 0),Ctor.__decorators__.push((function(options){return factory(options,key,index)}))}},_exports.mixins=function(){for(var _len=arguments.length,Ctors=new Array(_len),_key=0;_key<_len;_key++)Ctors[_key]=arguments[_key];return _vue.default.extend({mixins:Ctors})},_vue=(obj=_vue)&&obj.__esModule?obj:{default:obj};var hasProto={__proto__:[]}instanceof Array;function warn(message){"undefined"!=typeof console&&console.warn("[vue-class-component] "+message)}var $internalHooks=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(Component){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};options.name=options.name||Component._componentTag||Component.name;var proto=Component.prototype;Object.getOwnPropertyNames(proto).forEach((function(key){if("constructor"!==key)if($internalHooks.indexOf(key)>-1)options[key]=proto[key];else{var descriptor=Object.getOwnPropertyDescriptor(proto,key);void 0!==descriptor.value?"function"==typeof descriptor.value?(options.methods||(options.methods={}))[key]=descriptor.value:(options.mixins||(options.mixins=[])).push({data:function(){return function(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},key,descriptor.value)}}):(descriptor.get||descriptor.set)&&((options.computed||(options.computed={}))[key]={get:descriptor.get,set:descriptor.set})}})),(options.mixins||(options.mixins=[])).push({data:function(){return function(vm,Component){var originalInit=Component.prototype._init;Component.prototype._init=function(){var _this=this,keys=Object.getOwnPropertyNames(vm);if(vm.$options.props)for(var key in vm.$options.props)vm.hasOwnProperty(key)||keys.push(key);keys.forEach((function(key){Object.defineProperty(_this,key,{get:function(){return vm[key]},set:function(value){vm[key]=value},configurable:!0})}))};var data=new Component;Component.prototype._init=originalInit;var plainData={};return Object.keys(data).forEach((function(key){void 0!==data[key]&&(plainData[key]=data[key])})),!(Component.prototype instanceof _vue.default)&&Object.keys(plainData).length>0&&warn("Component class must inherit Vue or its descendant class when class property is used."),plainData}(this,Component)}});var decorators=Component.__decorators__;decorators&&(decorators.forEach((function(fn){return fn(options)})),delete Component.__decorators__);var to,from,superProto=Object.getPrototypeOf(Component.prototype),Super=superProto instanceof _vue.default?superProto.constructor:_vue.default,Extended=Super.extend(options);return function(Extended,Original,Super){Object.getOwnPropertyNames(Original).forEach((function(key){if(!shouldIgnore[key]){var extendedDescriptor=Object.getOwnPropertyDescriptor(Extended,key);if(!extendedDescriptor||extendedDescriptor.configurable){var value,type,descriptor=Object.getOwnPropertyDescriptor(Original,key);if(!hasProto){if("cid"===key)return;var superDescriptor=Object.getOwnPropertyDescriptor(Super,key);if(value=descriptor.value,type=_typeof(value),null!=value&&("object"===type||"function"===type)&&superDescriptor&&superDescriptor.value===descriptor.value)return}reservedPropertyNames.indexOf(key)>=0&&warn("Static property name '".concat(key,"' declared on class '").concat(Original.name,"' ")+"conflicts with reserved property name of Vue internal. It may cause unexpected behavior of the component. Consider renaming the property."),Object.defineProperty(Extended,key,descriptor)}}}))}(Extended,Component,Super),"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys&&(forwardMetadata(to=Extended,from=Component),Object.getOwnPropertyNames(from.prototype).forEach((function(key){forwardMetadata(to.prototype,from.prototype,key)})),Object.getOwnPropertyNames(from).forEach((function(key){forwardMetadata(to,from,key)}))),Extended}var reservedPropertyNames=["cid","super","options","superOptions","extendOptions","sealedOptions","component","directive","filter"],shouldIgnore={prototype:!0,arguments:!0,callee:!0,caller:!0};function Component(options){return"function"==typeof options?componentFactory(options):function(Component){return componentFactory(Component,options)}}Component.registerHooks=function(keys){$internalHooks.push.apply($internalHooks,_toConsumableArray(keys))}}));
|
|
|
|
//# sourceMappingURL=vue-class-component.min.js.map
|