admin-vben/packages/utils
Li Kui 1d38fb647e
refactor: use @ant-design/fast-color instead (#4070)
* refactor: Use @ant-design/fast-color instead

* fix: test failed

* chore: remove isValidColor

All FastColor objects are valid. So isValid is always true.
FastColor("not-a-color") -> `#000000`

* refactor: rename directory `colorful` to `color`

* fix: ci fail
2024-08-07 21:28:25 +08:00
..
src refactor: use @ant-design/fast-color instead (#4070) 2024-08-07 21:28:25 +08:00
README.md refactor: Integrate the @vben-core/shared package 2024-07-30 21:05:03 +08:00
package.json chore: update deps 2024-08-01 21:12:34 +08:00
tsconfig.json refactor(project): re-adjust the overall folder 2024-07-23 00:03:59 +08:00

README.md

@vben/utils

用于多个 app 公用的工具包,继承了 @vben-core/shared/utils 的所有能力。业务上有通用的工具函数可以放在这里。

用法

添加依赖

# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/utils --workspace

使用

import { isString } from '@vben/utils';