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