@xpyjs/vue-ease
v0.0.1
Published
XiaoPangYing Vue easy-to-use library
Readme
Vue-Ease Library
This is a library of Vue 3.x components and hooks.
Installation
npm install @xpyjs/vue-ease --saveUsage
Example of using the useTable method:
import { useTable } from '@xpyjs/vue-ease';
const { dataList, totalCount, pageSize, currentPage, loading, getData, onSearch } = useTable({
api: () =>
Promise.resolve({
list: [], // This is the table data in the current page
total: 1 // This is the total number of table data
})
});