1.1.0 • Published 2 days ago

cyndi v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 days ago

Cyndi

GitHub GitHub Workflow Status (with event) Coverage Status GitHub Repo stars

主页

github.io主页

使用

1. 安装cyndi

npm i cyndi

2. cyndi依赖的库

lodash

上述依赖,打包时不包含,需要使用的项目自行引入。

功能

getPrefixNs

/**
 * 获取控件css前缀
 * @param componentName 控件名称 {string}
 * @param customizePrefix 用户自定义前缀 {string}
 * @param defaultPrefix 默认前缀 {string}
 * @returns prefix 控件css类前缀 {string}
 */
export declare function getPrefixNs(componentName: string, customizePrefix?: string, defaultPrefix?: string): string;

isEmptyString

/**
 * 检测是否是空字符串
 * @param 需要判断的值 {any}
 * @returns isString 是否是空字符串 {boolean}
 */
export declare function isEmptyString(str: unknown): boolean;

printArrayItem

/**
 * 遍历对象数组,将对象的每个属性输出成字符串,不递归遍历对象属性的子属性
 * @param list 待遍历的数组
 * @returns 遍历后拼装的字符串
 */
export declare function printArrayItem(list?: object[]): string;

如果你想请我喝一杯咖啡(Buy Me a Coffee)

1.1.0

2 days ago

1.0.0

12 days ago

0.2.1

26 days ago

0.2.0

30 days ago

0.1.2

1 month ago

0.1.3

1 month ago

0.1.1

1 month ago

0.0.1

1 month ago