# fed-material-ui-web

> b端组件物料库

Latest version **0.0.6** (published 2022-07-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install fed-material-ui-web
pnpm add fed-material-ui-web
yarn add fed-material-ui-web
bun add fed-material-ui-web
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2022-07-20 |
| First published | 2022-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | goose |
| Maintainers | butaier |

## Links

- npm: https://www.npmjs.com/package/fed-material-ui-web
- Repository: git@code.hzmantu.com:mantu-tech/web-frontend/fed-material-project
- npm.io page: https://npm.io/package/fed-material-ui-web

## Dependencies (5)

- [ts-morph](https://npm.io/package/ts-morph.md) ^15.1.0
- [clean-css](https://npm.io/package/clean-css.md) ^5.3.1
- [ant-design-vue](https://npm.io/package/ant-design-vue.md) ^3.2.9
- [vite-svg-loader](https://npm.io/package/vite-svg-loader.md) ^3.4.0
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) ^7.0.2

## Recent versions

- 0.0.6 (latest) — 2022-07-20

## README

### 快捷指令
* add:comp 按模版快速添加组件

### 组件设计约定

基于 antdv 开发，为了与 antdv 的生态保持兼容性，覆盖 antd 的样式必须要使用 `.@{ant-prefix}` 变量来生成类名，在 js 中使用如下代码来配置实现。

### 使用说明
#### 1. 组件变量
需要手动注入变量 ant-prefix
vite下
```ts
defineConfig({
  // ...
  css: {
    preprocessorOptions: {
      less: {
        modifyVars: 0
          '@ant-prefix': 'ant'
        },
        javascriptEnabled: true
      }
    }
  }
  // ...
})
```

#### 2. 开发模式下组件调试
可以直接将引入修改为 src 目录下具体组件
如过调试组件使用了 jsx ，项目需要安装 jsx 支持插件

vue-cli: @vue/babel-plugin-jsx
```ts
yarn add @vue/babel-plugin-jsx -D

// babel 配置：
{
  "plugins": ["@vue/babel-plugin-jsx"]
}
```

vite: vitejs/plugin-vue-jsx
```ts
yarn add vitejs/plugin-vue-jsx -D

// vite.config.js
import vueJsx from '@vitejs/plugin-vue-jsx'

export default {
  plugins: [
    vueJsx({
      // options are passed on to @vue/babel-plugin-jsx
    })
  ]
}
```

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