devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
112 lines (110 loc) • 3.24 kB
JavaScript
/*!
* devextreme-vue
* Version: 19.2.6
* Build date: Thu Jan 30 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var VueType = require("vue");
var Vue = VueType.default || VueType;
var slider_1 = require("devextreme/ui/slider");
var component_1 = require("./core/component");
var configuration_component_1 = require("./core/configuration-component");
var DxSlider = Vue.extend({
extends: component_1.DxComponent,
props: {
accessKey: String,
activeStateEnabled: Boolean,
disabled: Boolean,
elementAttr: Object,
focusStateEnabled: Boolean,
height: [Function, Number, String],
hint: String,
hoverStateEnabled: Boolean,
isValid: Boolean,
keyStep: Number,
label: Object,
max: Number,
min: Number,
name: String,
onContentReady: Function,
onDisposing: Function,
onInitialized: Function,
onOptionChanged: Function,
onValueChanged: Function,
readOnly: Boolean,
rtlEnabled: Boolean,
showRange: Boolean,
step: Number,
tabIndex: Number,
tooltip: Object,
validationError: Object,
validationErrors: Array,
validationMessageMode: String,
validationStatus: String,
value: Number,
visible: Boolean,
width: [Function, Number, String]
},
model: { prop: "value", event: "update:value" },
computed: {
instance: function () {
return this.$_instance;
}
},
beforeCreate: function () {
this.$_WidgetClass = slider_1.default;
this.$_expectedChildren = {
label: { isCollectionItem: false, optionName: "label" },
tooltip: { isCollectionItem: false, optionName: "tooltip" }
};
}
});
exports.DxSlider = DxSlider;
var DxFormat = Vue.extend({
extends: configuration_component_1.DxConfiguration,
props: {
currency: String,
formatter: Function,
parser: Function,
precision: Number,
type: String
}
});
exports.DxFormat = DxFormat;
DxFormat.$_optionName = "format";
var DxLabel = Vue.extend({
extends: configuration_component_1.DxConfiguration,
props: {
format: [Object, Function, String],
position: String,
visible: Boolean
}
});
exports.DxLabel = DxLabel;
DxLabel.$_optionName = "label";
DxLabel.$_expectedChildren = {
format: { isCollectionItem: false, optionName: "format" }
};
var DxTooltip = Vue.extend({
extends: configuration_component_1.DxConfiguration,
props: {
enabled: Boolean,
format: [Object, Function, String],
position: String,
showMode: String
}
});
exports.DxTooltip = DxTooltip;
DxTooltip.$_optionName = "tooltip";
DxTooltip.$_expectedChildren = {
format: { isCollectionItem: false, optionName: "format" }
};
exports.default = DxSlider;