mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore: markdown eslint error (#40124)
This commit is contained in:
parent
26c3c326ad
commit
0f64e1538e
@ -104,7 +104,8 @@ We added a `createFromIconfontCN` function to help developer use their own icons
|
||||
|
||||
> This method is specified for [iconfont.cn](http://iconfont.cn/).
|
||||
|
||||
```js
|
||||
```jsx
|
||||
import React from 'react';
|
||||
import { createFromIconfontCN } from '@ant-design/icons';
|
||||
|
||||
const MyIcon = createFromIconfontCN({
|
||||
@ -133,7 +134,8 @@ You can import SVG icon as a react component by using `webpack` and [`@svgr/webp
|
||||
|
||||
```js
|
||||
// webpack.config.js
|
||||
{
|
||||
module.exports = {
|
||||
// ... other config
|
||||
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
||||
use: [
|
||||
{
|
||||
@ -147,7 +149,7 @@ You can import SVG icon as a react component by using `webpack` and [`@svgr/webp
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
```jsx
|
||||
|
@ -99,7 +99,8 @@ getTwoToneColor(); // #eb2f96
|
||||
|
||||
在 `3.9.0` 之后,我们提供了一个 `createFromIconfontCN` 方法,方便开发者调用在 [iconfont.cn](http://iconfont.cn/) 上自行管理的图标。
|
||||
|
||||
```js
|
||||
```jsx
|
||||
import React from 'react';
|
||||
import { createFromIconfontCN } from '@ant-design/icons';
|
||||
|
||||
const MyIcon = createFromIconfontCN({
|
||||
@ -128,7 +129,8 @@ options 的配置项如下:
|
||||
|
||||
```js
|
||||
// webpack.config.js
|
||||
{
|
||||
module.exports = {
|
||||
// ... other config
|
||||
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
||||
use: [
|
||||
{
|
||||
@ -142,7 +144,7 @@ options 的配置项如下:
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
```jsx
|
||||
|
Loading…
Reference in New Issue
Block a user