1 | import { Vue } from './vue';
|
2 | export function Options(options) {
|
3 | return Component => {
|
4 | Component.__vccBase = options;
|
5 | return Component;
|
6 | };
|
7 | }
|
8 | export function createDecorator(factory) {
|
9 | return (target, key, index) => {
|
10 | const Ctor = typeof target === 'function'
|
11 | ? target
|
12 | : target.constructor;
|
13 | if (!Ctor.__vccDecorators) {
|
14 | Ctor.__vccDecorators = [];
|
15 | }
|
16 | if (typeof index !== 'number') {
|
17 | index = undefined;
|
18 | }
|
19 | Ctor.__vccDecorators.push(options => factory(options, key, index));
|
20 | };
|
21 | }
|
22 | export function mixins(...Ctors) {
|
23 | var _a;
|
24 | return _a = class MixedVue extends Vue {
|
25 | },
|
26 | _a.__vccMixins = Ctors.map(Ctor => Ctor.__vccOpts),
|
27 | _a;
|
28 | }
|