在vxe-table 启用列单选功能,通过参数 column.type = 'radio' 设置类型为单选类型就可以了。 官网:https://vxetable.cn <template><div><vxe-gridv-bind="gridOptions"></vxe-grid></div></template><script>exportdefault{ data () {constgridOptions = {border:true,height:300,showOverflow:true,radioC...
<vxe-table-columntype="radio" width="60"></vxe-table-column> <vxe-table-columnfield="name" title="Name"></vxe-table-column> <vxe-table-columnfield="sex" title="Sex"></vxe-table-column> <vxe-table-columnfield="address" title="Address" show-overflow></vxe-table-column> </vxe-table...
<vxe-table-column type="radio" width="60"></vxe-table-column> <vxe-table-column field="name" title="Name"></vxe-table-column> <vxe-table-column field="sex" title="Sex"></vxe-table-column> <vxe-table-column field="address" title="Address" show-overflow></vxe-table-column> </vxe...
Fluid-height table with fixed header (流体高度) Resize height and width (响应式宽高) Table with fixed header (固定表头) Table with fixed column (固定列) Table with fixed columns and header (固定表头和列) Grouping table head (表头分组) Table sequence (序号) Radio (单选) Checkbox (多选) ...
// 按需导入 vxeTable import { // 核心 VXETable, // 功能模块 Icon, Filter, Menu, Edit, Export, Keyboard, Validator, Header, Footer, // 可选组件 Column, Colgroup, Grid, Toolbar, Pager, Checkbox, CheckboxGroup, Radio, RadioGroup,
radio.scss select.scss switch.scss table.scss textarea.scss toolbar.scss tooltip.scss v-x-e-table.scss validator.scss variable.scss vxe-table.scss types .editorconfig .eslintrc.js .gitignore .travis.yml LICENSE README.en.md README.md ...
1 import { VXETableModule } from './component' 2 3 /** 4 * 单选框 5 */ 6 export declare class Radio extends VXETableModule { 7 /** 8 * 绑定值 9 */ 10 value?: string | number; 11 /** 12 * 值 13 */ 14 label?: string | number; 15 /** 16 * ...
import TableTemplate from '../views/table/advanced/Template.vue' import TableDynamic from '../views/table/advanced/Dynamic.vue' import TableCustomCheckbox from '../views/table/advanced/CustomCheckbox.vue' import TableCustomRadio from '../views/table/advanced/CustomRadio.vue' import TableSortIcon ...
69 showFooterOverflow?: TableOverflow; 70 /** 71 * 给单元格附加 className 72 */ 73 className?: string | ((params: ColumnCellRenderParams) => string | any[] | { [key: string]: boolean }); 74 /** 75 * 给表头单元格附加 className 76 */ 77 headerClassName?: string |...
使用过 Element UI 树形表格的都知道当我们为表格数据进行刷新时,它的行的展开状态是不变的,而当我使用 vxe-table 时,默认情况下展开状态是不保留的,需要进行额外的设置,可在expand-config设置项里配置reserve属性为true,另外要使之生效,还得设置row-config里面的keyField属性。