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