# ddjk-ui

> ddjk组件库

Latest version **0.1.3** (published 2020-10-26) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-10-26 |
| First published | 2020-10-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 98.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | pzt_1995 |
| Keywords | ddjkui, ddjk-ui, ddjk |

## Links

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

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5

## Recent versions

- 0.1.3 (latest) — 2020-10-26
- 0.1.2 — 2020-10-26
- 0.1.1 — 2020-10-26
- 0.1.0 — 2020-10-24

## README

# 组件库搭建流程地址参考
# https://www.cnblogs.com/dongwei1/p/13285281.html
# https://blog.csdn.net/mate_ge/article/details/100077130

# app

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

### 全局引入
```
import Ddjk from 'ddjk-ui'
Vue.use(Ddjk)
```
### 按需加载需配置babel.config.js 参考如下
```
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',
    ["@babel/preset-env", { "modules": false }]
  ],
  plugins: [
    ['import', {
      libraryName: 'vant',
      libraryDirectory: 'es',
      style: true
    }, 'vant'],
    [
      "import", {
      "libraryName": "ddjk-ui",
      "camel2DashComponentName": false,//关闭驼峰自动转链式
      "camel2UnderlineComponentName": false,//关闭蛇形自动转链式
      "style": (name) =>{
        const cssName = name.split('/')[2];
        return `ddjk-ui/lib/${cssName}/style.css`
      }
      }, 'ddjk-ui']
  ]
}
```

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