1 | import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2 | import { listeners } from './mixins/listeners';
|
3 | import { refs } from './mixins/refs';
|
4 | export default function createComponent(name) {
|
5 | var classNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
6 | return {
|
7 | name: name,
|
8 | mixins: [listeners, refs],
|
9 | props: ['nativeProps'],
|
10 | render: function render(createElement) {
|
11 | return createElement("".concat(name, "-core"), {
|
12 | class: ['hydrated'].concat(_toConsumableArray(classNames)),
|
13 | domProps: {
|
14 | nativeProps: this.nativeProps
|
15 | },
|
16 | attrs: this.$attrs,
|
17 | on: this.listeners
|
18 | }, this.$slots.default);
|
19 | }
|
20 | };
|
21 | } |
\ | No newline at end of file |