Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@b-design/antd
Advanced tools
B-Design 是阿里云推出的一套面向企业服务领域的设计系统,为阿里云生态及合作伙伴的 SaaS 系统上云提供标准化的设计规范和产品解决方案。作为云计算生态的一部分,B-Design 开放给所有阿里云伙伴和客户,帮助企业完成自己的产品设计与构建。
目前组件库处于内测期 (beta),请留意版本的变化与迭代。
npm install antd @b-design/antd --save
import {Button} from '@b-design/antd'
引用 css 样式
在 javascript 文件中
import '@b-design/antd/dist/b-design-antd.css';
引用 less 样式 (不建议与 antd.less 同时使用)
在 less 文件中
@import '~@b-design/antd/dist/b-design-antd.less';
@import '<your-own-less>.less';
使用 variable.less
@import '~@b-design/antd/lib/style/components.less';
@import '~@b-design/antd/lib/style/variable.less';
@import '<your-own-less>.less';
其他主题使用
@import '~@b-design/antd/dist/b-design-antd.less';
@import '~@b-design/antd/theme/<color>.less';
引用单个组件样式
import '@b-design/antd/lib/button/style/index.js';
或者使用 babel-plugin
extraBabelPlugins: [
[
'babel-plugin-import',
{
style: true,
libraryName: '@b-design/antd',
libraryDirectory: 'es'
}
]
];
lite 主题
import '@b-design/antd/dist/b-design-antd.lite.css';
import '@b-design/antd/dist/iconfont.css';
lite variable 主题
import '@b-design/antd/dist/b-design-antd.liteVariable.css';
import '@b-design/antd/dist/iconfont.css';
在组件中使用 ConfigProvider
在 less 中替换所有 @ant-prefix 的值
由于 Webpack 和 Vite 对 less 中@import 的路径解析不同,使用 vite 时需要在 vite.config.ts 加上
resolve: {
alias: [{ find: /^~/, replacement: '' }]
},
参考:https://github.com/vitejs/vite/issues/2185#issuecomment-784637827
npm i
to install packages.npm start
to start development.npm run dist
to build dist for release.npm run compile
to build compile for release.npm run docs
to build for the doc preview site.npm run docs:local
to build the doc preview site for local preview.npm run transpile
to generate docs.npm run add:comp <ComponentName>
to add a component.npm run variable
to open a viewers that shows a map of all component variables.FAQs
B-Design作为云计算生态的一部分,开放给所有阿里云用户,帮助中小企业基于阿里云完成自己的SaaS产品设计与构建
We found that @b-design/antd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.