使用ag-grid-vue的cellEditor时,如果要使用文本类型,可以在配置中设置"type"为"text"。例如:
{
headerName: "Name",
field: "name",
cellEditor: "agTextCellEditor",
type: "text"
}
需要注意的是,在使用agTextCellEditor的时候你需要确保这个组件已经被注册到了你的vue实例中。
使用ag-grid-vue的cellEditor时,如果要使用文本类型,可以在配置中设置"type"为"text"。例如:
{
headerName: "Name",
field: "name",
cellEditor: "agTextCellEditor",
type: "text"
}
需要注意的是,在使用agTextCellEditor的时候你需要确保这个组件已经被注册到了你的vue实例中。