8 lines
5.0 KiB
JavaScript
8 lines
5.0 KiB
JavaScript
define("local_treestudyplan/vue-easy-dnd/vue-class-component",["exports","../vue/vue"],(function(_exports,_vue){var obj;
|
|
/**
|
|
* vue-class-component v7.2.6
|
|
* (c) 2015-present Evan You
|
|
* @license MIT
|
|
*/function forwardMetadata(to,from,propertyKey){(propertyKey?Reflect.getOwnMetadataKeys(from,propertyKey):Reflect.getOwnMetadataKeys(from)).forEach((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(target,key,index)=>{var Ctor="function"==typeof target?target:target.constructor;Ctor.__decorators__||(Ctor.__decorators__=[]),"number"!=typeof index&&(index=void 0),Ctor.__decorators__.push((options=>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:()=>({[key]:descriptor.value})}):(descriptor.get||descriptor.set)&&((options.computed||(options.computed={}))[key]={get:descriptor.get,set:descriptor.set})}})),(options.mixins||(options.mixins=[])).push({data(){return function(vm,Component){var originalInit=Component.prototype._init;Component.prototype._init=function(){var keys=Object.getOwnPropertyNames(vm);if(vm.$options.props)for(var key in vm.$options.props)vm.hasOwnProperty(key)||keys.push(key);keys.forEach((key=>{Object.defineProperty(this,key,{get:()=>vm[key],set:value=>{vm[key]=value},configurable:!0})}))};var data=new Component;Component.prototype._init=originalInit;var plainData={};return Object.keys(data).forEach((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((fn=>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((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((key=>{forwardMetadata(to.prototype,from.prototype,key)})),Object.getOwnPropertyNames(from).forEach((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(...keys)}}));
|
|
|
|
//# sourceMappingURL=vue-class-component.min.js.map
|