Comments (7)
目前图标和文档中的图标命名是不一致的,现在的图标命名尚不遵循图标命名规范,不建议在生产环境中使用。
已经发布在npm
上。
yarn add @ant-design/icons
from ant-design-icons.
@HeskeyBaozi ok,不过我这儿说的是 src/svg
下的图标应该发布去 npm,package.json 的 files
应该加上 src
:
"files": [
"es",
"lib",
"README.md",
"src"
],
目前 npm 上无 svg 源文件:https://unpkg.com/@ant-design/icons/
from ant-design-icons.
用户直接消费的是lib
和es
中的已经结构化的图标数据结构。
发布svg
会造成冗余。
from ant-design-icons.
@HeskeyBaozi 特定结构的数据对使用的工具有要求吧。而 svg 源文件,可满足各式需求。
from ant-design-icons.
的确。这种需求也是有的。
from ant-design-icons.
474f817
https://unpkg.com/@ant-design/icons/
from ant-design-icons.
@HeskeyBaozi ok,还有个建议:发布的 svg 文件名可考虑统一小写,再把空格转为 -
号。如此,可使用 babel-plugin-import 进行按需加载:
plugins: [
['import', {
libraryName: '@ant-design/icons',
customName: name => `@ant-design/icons/svg/${name}.svg`
}, 'ant-design-icons']
]
from ant-design-icons.
Related Issues (20)
- package.json has no typings field
- Why remove the `<Icon/>` component?🙏 HOT 2
- 从4.6.2升级到5.2.6是否有breakChange
- Add ability to cache icons with local/session storage
- [Angular] Allow usage with trusted types HOT 3
- ant-design-icons在nextjs首页渲染时样式未能预先加载 HOT 1
- May I request INR icon?
- Cannot use import statement outside a module HOT 5
- Console error the icon StartDateOutlined-o does not exist or is not registered
- filled/twitch.svg is wrong size
- @ant-design/icons-vue 4 Months Behind on Latest Icons HOT 1
- Add icon for safari browser
- XFilled 显示异常
- @types/react 18.2.66版本删除了onPointerEnterCapture、onPointerLeaveCapture事件 HOT 6
- @ant-design/[email protected] tsc 失败 HOT 3
- Appstore 的图标命名 HOT 2
- latest tag 指向的是 4.x 版本 HOT 4
- latest tag 再次指向了 4.x 版本 HOT 1
- 无法在 vite 和 remix 中使用 HOT 6
- Regarding the React Natvie bug issue HOT 1
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 ant-design-icons.