# kusafe-ui

> ## Install ```shell yarn add kusafe-ui or npm install kusafe-ui -S ```

Latest version **1.0.2** (published 2023-10-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install kusafe-ui
pnpm add kusafe-ui
yarn add kusafe-ui
bun add kusafe-ui
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-10-07 |
| First published | 2023-10-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kusafe |
| Maintainers | hannahjx |

## Links

- npm: https://www.npmjs.com/package/kusafe-ui
- npm.io page: https://npm.io/package/kusafe-ui

## Dependencies (6)

- [core-js](https://npm.io/package/core-js.md) 3.17.2
- [deepmerge](https://npm.io/package/deepmerge.md) 1.2.0
- [vue-lottie](https://npm.io/package/vue-lottie.md) 0.2.1
- [async-validator](https://npm.io/package/async-validator.md) 1.11.5
- [throttle-debounce](https://npm.io/package/throttle-debounce.md) 1.1.0
- [resize-observer-polyfill](https://npm.io/package/resize-observer-polyfill.md) 1.5.0

## Recent versions

- 1.0.2 (latest) — 2023-10-07
- 1.0.1 — 2023-10-07
- 1.0.0 — 2023-10-07

## README

# kusafe-ui

## Install
```shell
yarn add kusafe-ui
or
npm install kusafe-ui -S
```

### Quick Start
```javascript
import Vue from 'vue'
import Element from 'kusafe-ui'
import 'kusafe-ui/lib/style/index.css'

Vue.use(Element)
// or
import {
  KsButton
  // ...
} from 'kusafe-ui'

Vue.use(KsButton)
```

## 本地开发

### 运行

```shell
#例子
npm run dev

#文档
npm run docs:dev

```

### 发布npm

```shell
#打包
npm run lib

#发布
npm publish
```
== 注意：发布新版本时，需更新 `package.json` 的 `version` ==

### 测试
```shell
npm run test
```

### 开发新组件时，应符合开发规范
1. 样式统一到 `src/style/` 文件夹内，`index.less` 为入口
2. 颜色类需要考虑主题切换 `src/style/color.less`



#### 全部脚本

```json
{
    "scripts": {
        "dev": "vue-cli-service serve", // 本地开发调试
        "docslib": "npm run lib & npm run docs:dev", // 打包组件并本地文档调试
        "docs:dev": "vuepress dev docs", // 本地文档调试
        "docs:build": "vuepress build docs",  // 打包文档
        "lib": "npm run libjs & npm run libcss", // 打包组件，包含css
        "libjs": "vue-cli-service build --target lib --name index --dest lib packages/index.js", // 打包组件，仅js
        "libcss": "npx lessc ./src/style/index.less ./lib/style/index.css --clean-css=\"advanced\"", // 打包组件，仅css
        "test": "vue-cli-service test:unit --coverage", // 单元测试
        "patch": "node ./setVersion.js patch & npm run lib", // 升级小版本
        "minor": "node ./setVersion.js minor & npm run lib", // 升级中版本
        "major": "node ./setVersion.js major & npm run lib", // 升级大版本
        "t": "node ./template.js" // 新建模板, 需要输入参数：[具体组件名]
    }
}
```

---
_Source: https://npm.io/package/kusafe-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
