- Define table height full screen
- Add foreground paging function.
- Customize the header and output the overall table structure in a circular way.
- In table editing (input box and drop-down selection box).
- Custom buttons and click events in the form.
- Add filter function for each column.
- Formable number
- You can check the checkbox in multiple pages, save or delete it at the same time, and keep the checkbox selected after switching pages.
- Automatically select the row after editing in the table.
- The parent component prints the checked lines.
- Custom sorting function, sorting by number size
- npm install,
- npm run dev
1.data format:
[ { "bh": 1, "xmid": "5463562", "xmmc": "Test name", "Nsrsbh": "325423523542352345", "dwmc": "Name of testing unit", "yskze": "89787.66", "srze": "345345.35", "kcze": "56566.56", "zze": "345345", "zsfs_mc": "Calculation method 1", "xmxs": "Projects under construction" }, { "bh": 1, "xmid": "5463562", "xmmc": "Test name", "Nsrsbh": "325423523542352345", "dwmc": "Name of testing unit", "yskze": "0.00", "srze": "345345.35", "kcze": "56566.56", "zze": "345345", "zsfs_mc": "Calculation method 1", "xmxs": "Projects under construction" } ]
2. Format of columns header array:
[ , , , }, , , , ,],style:'text-align:right;'}, , ,]}, ]
3. Column header parameter description
name: 'Header name', desc: 'Field name', width: 'Cell width', click: 'Is the cell clickable',Trigger component binding function btnClickFunc,parameter url: 'Click to jump url' sortable: 'Sortable or not', format: 'Format amount', fixed: 'Fixed column', edit: 'Editable or not', editType: 'Editing type',['inpput','select'] editSelOptions: 'When the editing type is select Initial data at'. style: 'Cell data style' btns: 'Button in cell, multiple'. Trigger component binding function handleBtnClick,Parameters: name: Button name, btnType:Button style, clickType:Button event ID. templet: 'The judgment function of whether a cell can be clicked can be used for complex function judgment'. Parameter: data of this line row.Vi. component screenshot