import { __decorate } from "tslib";
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing, EditorBase } from '@ibizstudio-ex/template-vue';
/**
 * 三态开关插件类
 *
 * @export
 * @class TripleSwitch
 * @extends {EditorBase}
 */
let TripleSwitch = class TripleSwitch extends EditorBase {
    /**
     * 编辑器change事件
     *
     * @param {*} value
     * @memberof SwitchEditor
     */
    handleChange($event) {
        this.editorChange({ name: this.editorInstance.name, value: $event });
    }
    /**
     * 绘制内容
     *
     * @returns {*}
     * @memberof SwitchEditor
     */
    render() {
        if (!this.editorIsLoaded) {
            return null;
        }
        return this.$createElement('app-triple-switch', {
            props: Object.assign({ name: this.editorInstance.name, value: this.value, disabled: this.disabled }, this.customProps),
            on: { change: this.handleChange },
            style: this.customStyle
        });
    }
};
TripleSwitch = __decorate([
    Component({}),
    VueLifeCycleProcessing()
], TripleSwitch);
export { TripleSwitch };
