LATEST TRANSMISSIONS
ENCRYPTED // PUBLIC KEY DETECTED
PageContainer Does Not Display Page Title and Watermark
There are acturally 2 PageContainer, the one used by Ant Design Pro is from @ant-design/pro-layout, not @ant-design/pro-components. If page title and watermark does not work in your page, make sure yo…
Update value of ProFormDateRangePicker
If the value of ProFromDateRnagePicker isn't changed when you call form.setFieldValue({dateRange: [Moment, Moment]}). That might be because you passed the same instance of Moment to the ProFormDateRan…
Hide Columns by Default with ProTable
ProComponents is a set of enterprise-class UI components based on Ant Design and React, it provides a lot of useful components and features out of the box. I've enjoyed building data table UI with Pro…
在 Ant Design Pro 工程中删除不用的国际化文件
Ant Design Pro 的工程中内置一个npm run i18n-remove 的命令,能调用pro cli来完全移除i18n的功能。 但我们的需求通常是只移除不需要使用的Locale,而不是将i18n的功能完全移除,因为通过i18n的功能还可以实现文本的配置化,比如在打包的替换程序的显示名称。 如果只是要移除不用的Locale,那就把locales中非zh-CN(或者你要保留的语言)的文件…
@ant-design/pro-layout 移动模式下点击条目以后自动关闭菜单
在Ant Design Pro工程中修改src/layouts/BasicLayout.jsx中的menuItemRender这个prop即可实现在移动模式下点击条目以后自动关闭菜单 // src/layouts/BasicLayout.jsx const BasicLayout = props => { return ( <ProLayout menuItem…
@ant-design/pro-layout icon 点击事件
在Ant Design Pro工程中修改src/layouts/BasicLayout.jsx中的logo和menuHeaderRender两个props即可实现icon的点击事件 // src/layouts/BasicLayout.jsx const BasicLayout = props => { return ( <ProLayout logo={<…