devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
84 lines (82 loc) • 2.49 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 radio_group_1 = require("devextreme/ui/radio_group");
var component_1 = require("./core/component");
var configuration_component_1 = require("./core/configuration-component");
var DxRadioGroup = Vue.extend({
extends: component_1.DxComponent,
props: {
accessKey: String,
activeStateEnabled: Boolean,
dataSource: [Array, Object, String],
disabled: Boolean,
displayExpr: [Function, String],
elementAttr: Object,
focusStateEnabled: Boolean,
height: [Function, Number, String],
hint: String,
hoverStateEnabled: Boolean,
isValid: Boolean,
items: Array,
itemTemplate: {},
layout: String,
name: String,
onContentReady: Function,
onDisposing: Function,
onInitialized: Function,
onOptionChanged: Function,
onValueChanged: Function,
readOnly: Boolean,
rtlEnabled: Boolean,
tabIndex: Number,
validationError: Object,
validationErrors: Array,
validationMessageMode: String,
validationStatus: String,
value: {},
valueExpr: [Function, String],
visible: Boolean,
width: [Function, Number, String]
},
model: { prop: "value", event: "update:value" },
computed: {
instance: function () {
return this.$_instance;
}
},
beforeCreate: function () {
this.$_WidgetClass = radio_group_1.default;
this.$_expectedChildren = {
item: { isCollectionItem: true, optionName: "items" }
};
}
});
exports.DxRadioGroup = DxRadioGroup;
var DxItem = Vue.extend({
extends: configuration_component_1.DxConfiguration,
props: {
disabled: Boolean,
html: String,
template: {},
text: String,
visible: Boolean
}
});
exports.DxItem = DxItem;
DxItem.$_optionName = "items";
DxItem.$_isCollectionItem = true;
exports.default = DxRadioGroup;