# @tntd/antd-cover

> 私有云全家桶样式

Latest version **3.0.4** (published 2021-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @tntd/antd-cover
pnpm add @tntd/antd-cover
yarn add @tntd/antd-cover
bun add @tntd/antd-cover
```

## 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 | 3.0.4 |
| Published | 2021-02-23 |
| First published | 2020-01-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 70.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zefei |
| Maintainers | mingquanliu, td-tnt, bruceliu68, bernardzhang, mizy, zhouzefei, leocmial, xiaofei.wang, anthonyli, xiaocuicui, popoqaq |

## Links

- npm: https://www.npmjs.com/package/@tntd/antd-cover
- Repository: https://gitlab.tongdun.cn/ued/antd-cover
- npm.io page: https://npm.io/package/@tntd/antd-cover

## Recent versions

- 3.0.4 (latest) — 2021-02-23
- 1.0.8 — 2021-01-26
- 1.0.7 — 2021-01-20
- 3.0.3 — 2020-11-12
- 3.0.2 — 2020-11-12
- 3.0.1 — 2020-11-12
- 3.0.0 — 2020-11-12
- 2.0.0 — 2020-09-08
- 1.0.6 — 2020-09-03
- 1.0.5 — 2020-09-01
- 1.0.4 — 2020-03-10
- 1.0.3 — 2020-02-27
- 1.0.2 — 2020-01-09
- 1.0.1 — 2020-01-09
- 1.0.0 — 2020-01-09

## README

- 安装模块  `npm install @tntd/antd-cover --save`
- 在引入样式的地方引入 `@import "~@tntd/antd-cover/index.less";`。此文件代表部分antd的样式强制覆盖。修改目录，例如salaxy的styles/style.less
- 配置文件例如.babelrc中，加载less而非css，修改如下：
  
   ```javascript
    [
        "import",
        {
            "libraryName": "antd",
            "libraryDirectory": "es",
            "style": true // 有些可能是css，改成true
        }
    ]
    ```
- 修改编译文件webapck中modifyVars如下：
### 暗黑风格
```javascript
    {
        test: /\.less$/,
        use: [
            devMode ? "style-loader" : MiniCssExtractPlugin.loader,
            "css-loader",
            {
                loader: "less-loader",
                options: {
                    javascriptEnabled: true,
                    modules: true,
                    localIndexName: "[name]__[local]___[hash:base64:5]",
                    modifyVars: {
                        hack: "true; @import \"~@tntd/antd-cover/tnt.less\";"
                    }
                }
            }
        ]
    }
```

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