Custom column template (自定义模板) Context menu(快捷菜单) Virtual Scroller(虚拟滚动) Expandable row (展开行) Pager(分页) Toolbar(工具栏) Tree table (树形表格) Editable CRUD(增删改查) Editable validate(数据校验) DataProxy(数据代理) Keyboard navigation(全键盘操作) Modules All modules support load...
<vxe-toolbar custom export> Expand Down Expand Up @@ -100,7 +100,11 @@ export default { { name: 'name2', role: 'role2', sex: '1', age: 32, rate: 1 }, { name: 'name3', role: 'role3', sex: '1', age: 26, rate: 1 }, { name: 'name4', role: 'role4', sex:...
import{VxeUI}from'vxe-table'VxeUI.setConfig({version:0,// 版本号,比如使用了相关的浏览器本地储存功能,当组件升级后系统自动重置数据,那么只需要不断增加版本即可zIndex:2000,// 弹出层的层级,一般设置 2000 就够了table:{border:true,// 表格边框showOverflow:true,// 单元格溢出隐藏,大幅提高渲染性能aut...
returnfalse }elseif(item===value) { returnfalse } } array.push(value) returntrue } 生成随机字符串 exportfunctionrandomNumber() { // 生成 最小值 到 最大值 区间的随机数 constrandom= (min,max)=>{ returnMath.floor(Math.random() * (max-min+1) +min) } if(arguments.length===1) { ...
toolbar.zoom, true), props.zoom) as VxeToolbarPropTypes.ZoomOpts }, computeCustomOpts () { const $xeToolbar = this const props = $xeToolbar return Object.assign({}, getConfig().toolbar.custom, props.custom) as VxeToolbarPropTypes.CustomOpts return Object.assign({}, XEUtils.clone(get...
toolbar: { buttons: [ { code: 'insert_actived', name: 'Add' }, { code: 'delete_selection', name: 'Delete' }, { code: 'save', name: 'Save' } ], refresh: true, // 是否显示刷新按钮 custom: true // 是否显示自定义列设置按钮 ...
<vxe-toolbar :refresh="{ query: refreshList }" export print custom> <template #buttons> <el-button type="primary" size="small" icon="el-icon-plus" @click="add()" >新建</el-button > <el-button type="danger" size="small"
customList: [], tableData: [], loading: false, tableHeight: null, // 表格高度 isEdit: false, popMode: "", tableToolbar: { buttons: [ { code: "myInsert", name: "新报价", icon: "fa fa-plus", status: "primary" }, {
template>exportdefault{data() {return{gridOptions: {border:true,keepSource:true,height:500,printConfig: {},importConfig: {},exportConfig: {},columnConfig: {resizable:true},pagerConfig: {perfect:true,pageSize:15},editConfig: {trigger:'click',mode:'row',showStatus:true},toolbarConfig: {button...
toolbarConfig: { buttons: [ { code: 'insert_actived', name: '新增', status: 'perfect', icon: 'vxe-icon--plus' }, { code: 'mark_cancel', name: '标记/取消', status: 'perfect', icon: 'fa fa-trash-o' }, { code: 'save', name: '保存', status: 'perfect', icon: 'fa fa...