Skip to content

Fast-Table

Fast Table is a quick table template based on search-form, pagination, table, and form components, designed to support rapid business development.

Basic Usage

INFO

If your business's basic request and the current component's pagination handling are not aligned, you can extract common methods and convert them into a new Promise to adapt to this component. You can also handle other business parameters besides pagination.

Combination Usage

INFO

You can use the header slot to quickly access selected items. The default value for row-key is id, which is essential when handling selected items.

Properties

PropertyDescriptionTypeDefault
apiQuick API servicePromise<Response>-
v-model:columnstable-columns typeTable-Columns-
v-model:loadingAsynchronous request statusboolean-
v-model:paramsQuery parameters for the form, two-way bound with pagination infoSearchParams-
...Other properties, passed directly to ez-table--

INFO

Other attributes of fast-table are passed to ez-table, and finally to el-table.

SearchParams

Property NameDescriptionTypeRequiredDefault
currentCurrent page number, two-way binding with pagination confignumberNo1
sizeNumber of items displayed per page, two-way binding with pagination confignumberNo10
descCustom descending sort fieldstringNo-
ascCustom ascending sort fieldstringNo-
...Other properties, business-specific parametersRecordNo-

Slots

Slot NameDescriptionType
${prop}Data column slot, same as ez-tableobject
formPassed to search-form-
headerArea above the tableobject

Events

Event NameDescriptionParameters
update:loadingMonitor asynchronous request statusFunction
update:paramsMonitor changes in query parametersFunction
changePagePage size or current page changes, can determine the type of change based on valueFunction
...Other events passed directly to ez-table-

INFO

Other events of fast-table are passed to ez-table, and eventually to el-table.

Exposes

Method NameDescriptionType
getTableRefGet el-table instanceFunction
queryDirectly trigger api callFunction
searchTrigger api call, resets current = 1Function

Released under the MIT License