Skip to content

EditTable Attributes Documentation

EditTable

ParameterDescriptionType
optionTable configurationEditTableOptionDetails
modelValueData bound to the tableArray
isViewWhether to read-only modeBoolean
propData property name bound to the table. If this component is nested in an XForm component and form validation is required, this parameter must be configured. Configuration rule (if modelValue (data bound to the table form) is bound to form.arr, then prop='arr')string

Option

ParameterDescriptionTypeDefault Value
rowKeyKey of row data, used to optimize table rendering; Required when using copyBtn functionality, this property must correspond to a unique identifier of the datastringid
copyBtnWhether to display the copy button. When copyBtn is true, the rowKey property must correspond to a unique identifier of the databooleanfalse
delBtnWhether to display the delete buttonbooleanfalse
addBtnWhether to display the add buttonbooleanfalse
sortableWhether drag-and-drop sorting is allowedbooleanfalse
borderWhether to have vertical bordersbooleanfalse
indexWhether to show sequence numbersbooleanfalse
columnColumn configuration itemsArrayDetails-

Column

ParameterDescriptionTypeDefault Value
labelColumn headerstring | VNode-
propProperty name for column header contentstring-
typeColumn type
enum
input
dicDataDictionary dataArray-
widthColumn widthstring | number90
minWidthMinimum column width. The difference with width is that width is fixed, while min-width distributes the remaining width proportionally to columns with min-width setnumber | string-
rulesForm validation rulesArray-
tipHelper text for contentstring-
tipPlacementPosition of helper text
enum
-
hideWhether to hideBooleantrue
onEvent
Function
-

Events

Event NameDescriptionTypeCallback Parameters
addChangeAdd button click event
Function
-
delChangeDelete button click event
Function
-
copyChangeCopy button click event
Function
-
sortableChangeEvent triggered by drag sorting
Function
-

Slot

Slot NameDescriptionScope Parameters
headerMenuTable header operation bar slot-
menuOperation bar slot-
propTable slot, using the prop from Column as the slot name. For example, if column: [{prop: 'test'}], the slot name is #test{ row, $index }