@checkbox-all="selectAllEvent" @checkbox-change="selectChangeEvent" > <!--自定义表格内容--> </vxe-grid> 因为项目都用到vxe-table,所有这里使用vue的混入应用的项目的所有页面表格中,在混入文件中写复选框的事件: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ...
:data="tyData" //表格数据 @selectionchange="selectionchange" //复选框多选 @getTableData="getdata" //获取列表数据 @showdialog="showdialog" //打开弹框 @editpro="editpro" //启动编辑 @selectAll="selectionAll" //全选 @handleRowClick="handleRowClick" //无复选框时单选 ref="districtTable" > /...
value.push(obj); } }) function selectChange(sel: any, row: any){ // console.log('sel138',sel) } // 删除 function removeEvent(row: any) { xTable.value.remove(row); } // 提交 const validAllEvent = async () => { const $table = xTable.value const errMap = await $table....
--><vxe-table:class="{ isNoBorder: !border }":border="border":data="tableData":max-height="height":show-header="showHeader":loading="loading"cell-class-name="cellStyle"@checkbox-all="selectAllChangeEvent"@checkbox-change="onSelectChange"header-row-class-name="headerStyle":span-method="m...
data="tableData2"@cell-click="click":edit-config="{ trigger: 'dblclick', mode: 'cell' }"><vxe-table-columntitle="是否主职"field="isMainJob":edit-render="{name:'$select',options:[{value:true,label:'是'},{value:false,label:'否'}],events:{change:selectChange}}"></vxe-table-...
<!-- tow :data-size="tableData.length"--> <!-- 大数据 --> <vxe-table ref="tableDataRef" border resizable stripe highlight-hover-row highlight-current-row show-header-overflow :height="tableDataHeight" @selection-change="selectFn" @select="handleSelection" @select-all="handleSelectionAll...
@sort-change="sortChangeHandle" :sort-config="{ remote: true }" :expand-config="{ accordion: true, lazy: true }" :data="dataList" :checkbox-config="{}" > <vxe-column type="seq" width="40"></vxe-column> <vxe-column type="checkbox" width="40px"></vxe-column> ...
1.跨页选中,回填 <m-table:height="tableHeight":row-config="{ isHover: true }"show-overflow:data="fileList"ref="xTable"border @checkbox-all="selectAllChangeEvent"@checkbox-change="selectChangeEvent"><vxe-column type="checkbox"width="60"></vxe-column></m-table><script setup lang="ts">co...
9 changes: 5 additions & 4 deletions 9 src/components/VxeTable/src/components/AApiSelect.tsx Original file line numberDiff line numberDiff line change @@ -1,20 +1,21 @@ import XEUtils from 'xe-utils'; import { createDefaultRender, createEditRender, createFormItemRender } from './common...
{field1:index%20,field2:index%20,field3:index%20,field4:index%20,field5:index%20,field6:'Lorem',})),});// 表单规则constformRules:FormRules={select:{required:true,message:'Please select',trigger:'change',},input:{required:true,message:'Please input',trigger:'change',},};// 新增一...