import { __decorate } from "tslib";
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '../../../decorators';
import { EditorBase } from '../editor-base/editor-base';
/**
 * 滑动输入条编辑器
 *
 * @export
 * @class SliderEditor
 * @extends {EditorBase}
 */
let SliderEditor = class SliderEditor extends EditorBase {
    /**
     * 绘制内容
     *
     * @returns {*}
     * @memberof SliderEditor
     */
    render() {
        var _a, _b, _c, _d, _e, _f;
        if (!this.editorIsLoaded) {
            return null;
        }
        this.customProps.max = ((_a = this.editorInstance.editorParams) === null || _a === void 0 ? void 0 : _a['max']) ? parseInt((_b = this.editorInstance.editorParams) === null || _b === void 0 ? void 0 : _b['max']) : 100;
        this.customProps.min = ((_c = this.editorInstance.editorParams) === null || _c === void 0 ? void 0 : _c['min']) ? parseInt((_d = this.editorInstance.editorParams) === null || _d === void 0 ? void 0 : _d['min']) : 0;
        this.customProps.step = ((_e = this.editorInstance.editorParams) === null || _e === void 0 ? void 0 : _e['step']) ? parseInt((_f = this.editorInstance.editorParams) === null || _f === void 0 ? void 0 : _f['step']) : 1;
        return this.$createElement(this.editorComponentName, {
            props: Object.assign({ name: this.editorInstance.name, value: this.value, disabled: this.disabled }, this.customProps),
            on: { change: this.editorChange },
            style: this.customStyle
        });
    }
};
SliderEditor = __decorate([
    Component({}),
    VueLifeCycleProcessing()
], SliderEditor);
export default SliderEditor;
