Git Product home page Git Product logo

Comments (4)

ritingliudd01 avatar ritingliudd01 commented on May 21, 2024 1

在你当前页面的 .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.

itpretty avatar itpretty commented on May 21, 2024

为何要重复引入整个 antd.css

from pro-components.

crashsol avatar crashsol commented on May 21, 2024

为何要重复引入整个 antd.css
主要使用了https://github.com/alibaba/formily, 不知道如何按需加载css,就全量引入了, 否则表单组件会没得样式

from pro-components.

chenshuai2144 avatar chenshuai2144 commented on May 21, 2024

强行引用一下 antd 的 form 就行了,引入 .css 没法换主题了
而且 layout 引用了 less,你再引用 css 就重复了

from pro-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.