@skb_skb/kb-utils
v2.0.4
Published
Vue3 utilities, directives and composables for KB
Readme
@skb_skb/kb-utils
Vue 3 工具、指令与 composables(含 TypeScript 类型声明)。
npm i @skb_skb/kb-utilsimport KbUtils, { tool, useTable, useSendCode } from '@skb_skb/kb-utils'
app.use(KbUtils) // v-kb-draggable / v-kb-loadmore / v-kb-wheel-xAPI
| 导出 | 说明 |
|---|---|
| tool.* | dateFormat / getValueOrLabelFromDict / isPhone / debounce 等 |
| useTable | 列表分页状态,与 KbTable 的 pages 对齐 |
| useSendCode | 验证码倒计时;startNumberDown / startDown 同义 |
| tailwind-preset | 可选,与 element/uniapp 同款 token preset |
presets: [require('@skb_skb/kb-utils/tailwind-preset')]