devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
137 lines (135 loc) • 4.24 kB
JavaScript
/*!
* devextreme-vue
* Version: 25.1.5
* Build date: Wed Sep 03 2025
*
* Copyright (c) 2012 - 2025 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
*/
import { defineComponent } from "vue";
import { prepareComponentConfig } from "./core/index";
import TextArea from "devextreme/ui/text_area";
const componentConfig = {
props: {
accessKey: String,
activeStateEnabled: Boolean,
autoResizeEnabled: Boolean,
disabled: Boolean,
elementAttr: Object,
focusStateEnabled: Boolean,
height: [Number, String],
hint: String,
hoverStateEnabled: Boolean,
inputAttr: {},
isDirty: Boolean,
isValid: Boolean,
label: String,
labelMode: String,
maxHeight: [Number, String],
maxLength: [Number, String],
minHeight: [Number, String],
name: String,
onChange: Function,
onContentReady: Function,
onCopy: Function,
onCut: Function,
onDisposing: Function,
onEnterKey: Function,
onFocusIn: Function,
onFocusOut: Function,
onInitialized: Function,
onInput: Function,
onKeyDown: Function,
onKeyUp: Function,
onOptionChanged: Function,
onPaste: Function,
onValueChanged: Function,
placeholder: String,
readOnly: Boolean,
rtlEnabled: Boolean,
spellcheck: Boolean,
stylingMode: String,
tabIndex: Number,
text: String,
validationError: {},
validationErrors: Array,
validationMessageMode: String,
validationMessagePosition: String,
validationStatus: String,
value: String,
valueChangeEvent: String,
visible: Boolean,
width: [Number, String]
},
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:accessKey": null,
"update:activeStateEnabled": null,
"update:autoResizeEnabled": null,
"update:disabled": null,
"update:elementAttr": null,
"update:focusStateEnabled": null,
"update:height": null,
"update:hint": null,
"update:hoverStateEnabled": null,
"update:inputAttr": null,
"update:isDirty": null,
"update:isValid": null,
"update:label": null,
"update:labelMode": null,
"update:maxHeight": null,
"update:maxLength": null,
"update:minHeight": null,
"update:name": null,
"update:onChange": null,
"update:onContentReady": null,
"update:onCopy": null,
"update:onCut": null,
"update:onDisposing": null,
"update:onEnterKey": null,
"update:onFocusIn": null,
"update:onFocusOut": null,
"update:onInitialized": null,
"update:onInput": null,
"update:onKeyDown": null,
"update:onKeyUp": null,
"update:onOptionChanged": null,
"update:onPaste": null,
"update:onValueChanged": null,
"update:placeholder": null,
"update:readOnly": null,
"update:rtlEnabled": null,
"update:spellcheck": null,
"update:stylingMode": null,
"update:tabIndex": null,
"update:text": null,
"update:validationError": null,
"update:validationErrors": null,
"update:validationMessageMode": null,
"update:validationMessagePosition": null,
"update:validationStatus": null,
"update:value": null,
"update:valueChangeEvent": null,
"update:visible": null,
"update:width": null,
},
model: { prop: "value", event: "update:value" },
computed: {
instance() {
return this.$_instance;
}
},
beforeCreate() {
this.$_WidgetClass = TextArea;
this.$_hasAsyncTemplate = true;
}
};
prepareComponentConfig(componentConfig);
const DxTextArea = defineComponent(componentConfig);
export default DxTextArea;
export { DxTextArea };