CNFeffery / feffery-antd-components

Dash + Ant Design = 😍
http://fac.feffery.tech
MIT License
313 stars 24 forks source link
antd plotly-dash python

feffery-antd-components

[![GitHub](https://shields.io/badge/license-MIT-informational)](https://github.com/CNFeffery/feffery-antd-components/blob/master/LICENSE) [![PyPI](https://img.shields.io/pypi/v/feffery-antd-components.svg?color=dark-green)](https://pypi.org/project/feffery-antd-components/) [![Downloads](https://static.pepy.tech/badge/feffery-antd-components)](https://pepy.tech/project/feffery-antd-components) [![Downloads](https://static.pepy.tech/badge/feffery-antd-components/month)](https://pepy.tech/project/feffery-antd-components) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/CNFeffery/feffery-antd-components.svg)](http://isitmaintained.com/project/CNFeffery/feffery-antd-components "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/CNFeffery/feffery-antd-components.svg)](http://isitmaintained.com/project/CNFeffery/feffery-antd-components "Percentage of issues still open")

简体中文 | English

feffery-components计划子项目,Plotly Dash第三方组件库,基于Antd,将超多具有丰富功能的通用网页常用交互组件引入Dash的生态中 🥳,最新稳定版本:0.3.10(2024-11-01)

1 最新版本安装方式

pip install feffery-antd-components -U

2 最新预发布版本安装方式

[!NOTE]
最新预发布版本(2024-08-09):0.3.0rc31

pip install feffery-antd-components --pre -U

3 静态资源 CDN 加速方法

# 非debug模式下对Dash()传入参数serve_locally=False会强制浏览器端从unpkg cdn加载各个依赖的
# xxx.min.js等静态资源,从而避免占用服务器带宽,适合中小型站点加速访问
app = dash.Dash(serve_locally=False)

4 在线文档

文档地址

5 国际化

fac中的部分组件具有自带的文案信息,通过参数locale可以进行国际化设置,默认为'zh-cn'即简体中文,你可以设置为'en-us''de-de'来使用英文文案和德语文案,譬如:

fac.AntdDatePicker(locale='en-us')

fac.AntdDatePicker(locale='de-de')

6 贡献者