Comments (4)
在你当前页面的 .less 文件中只 import 用到的表单控件的 .less 文件即可,或者全部放入 global.less
中:
@import '~antd/lib/checkbox/style/index.less';
@import '~antd/lib/input/style/index.less';
@import '~antd/lib/form/style/index.less';
@import '~antd/lib/radio/style/index.less';
@import '~antd/lib/select/style/index.less';
@import '~antd/lib/switch/style/index.less';
@import '~antd/lib/tabs/style/index.less';
@import '~antd/lib/upload/style/index.less';
@import '~antd/lib/date-picker/style/index.less';
@import '~antd/lib/input-number/style/index.less';
@import '~antd/lib/steps/style/index.less';
@import '~antd/lib/modal/style/index.less';
@import '~antd/lib/card/style/index.less';
from pro-components.
为何要重复引入整个 antd.css
?
from pro-components.
为何要重复引入整个
antd.css
?
主要使用了https://github.com/alibaba/formily, 不知道如何按需加载css,就全量引入了, 否则表单组件会没得样式
from pro-components.
强行引用一下 antd 的 form 就行了,引入 .css 没法换主题了
而且 layout 引用了 less,你再引用 css 就重复了
from pro-components.
Related Issues (20)
- 🐛[BUG]ProFormDatePicker組件設定picker選項後顯示不正確 HOT 1
- 🐛[BUG]ProFormDatePicker組件設定picker選項後顯示不正確 HOT 2
- 🐛[BUG] StepsForm.StepForm中的request请求一开始就全部执行了,需要在点击下一步进入第二步StepForm才请求数据
- 🐛[BUG] DragSortTable layout flicker when using in explanable table HOT 1
- 🧐[问题] ProTable的column 筛选项如何从request远程数据中设置默认值? HOT 1
- 👑 [需求] delete © icon when there is no copyright HOT 1
- 🐛[BUG] 在ModalForm中使用 Editabletable 时, 如果把 Editabletable 放入 <ProForm.Group> 标签中, 在新增一行表格 record 时, 会让 table scorll 到最坐边
- toolbar或opting的列选中会有onchange事件吗 HOT 1
- 🐛[BUG] 轻量表单控件 Select(多选), 单击选中后通过再点击取消, 此时 label 不为 未选状态 #8219 HOT 3
- 👑 [Protable]densityLarger国际化,中文翻译不应该为"默认",应该是"宽松"或其他更好的翻译 HOT 1
- 🐛[BUG] 使用DragSortTable 传入的components.body无效 HOT 1
- 🧐[columnsState修改后刷新都会恢复为defaultValue] HOT 2
- 🐛[BUG] DrawerForm ssr 错误 : window is not defined
- 🐛[BUG] ProTable 搜索框中的重置按钮无法初始化远程选项
- 🧐[问题] 关于在 EditableProTable 的列可编辑 renderFormItem 中使用实体
- 🧐[问题] 在 EditableProTable 组件中使用日期选择器,是否可以支持 dayjs 数据格式双向绑定?
- 🧐[问题] DragSortTable 未返回beforeIndex和afterIndex HOT 1
- 🧐[问题]ProTable toolbar没有small模式 HOT 1
- 🐛[BUG]Protable中form设置grid:true会报错items.flatMap is not a function HOT 2
- 👑 [需求] ProFormUploadButton 支持 onPreview 的 prop 的放开
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pro-components.