import { defineVxeComponent } from '../../ui/src/comp';
import XEUtils from 'xe-utils';
import { getConfig, createEvent, globalMixins } from '../../ui';
export default {
    name: 'VxeTour',
    mixins: [
        globalMixins.sizeMixin
    ],
    props: {
        size: {
            type: String,
            default: () => getConfig().tour.size || getConfig().size
        }
    },
    data() {
        const reactData = {};
        return {
            xID: XEUtils.uniqueId(),
            reactData
        };
    },
    computed: Object.assign({}, {}),
    methods: {
        //
        // Method
        //
        dispatchEvent(type, params, evnt) {
            const $xeTour = this;
            $xeTour.$emit(type, createEvent(evnt, { $tour: $xeTour }, params));
        },
        //
        // Render
        //
        renderVN(h) {
            return h('div', {
                ref: 'refElem',
                class: 'vxe-tour'
            });
        }
    },
    render(h) {
        return this.renderVN(h);
    }
};
