feat: 新增Icon组件
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
"@typescript-eslint/parser": "^6.19.0"
|
"@typescript-eslint/parser": "^6.19.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^5.3.4",
|
"@ant-design/icons": "^5.5.1",
|
||||||
"@df/toco-ui": "{{uiVersion}}",
|
"@df/toco-ui": "{{uiVersion}}",
|
||||||
"@reduxjs/toolkit": "^1.9.7",
|
"@reduxjs/toolkit": "^1.9.7",
|
||||||
"@testing-library/jest-dom": "^5.17.0",
|
"@testing-library/jest-dom": "^5.17.0",
|
||||||
|
|||||||
7
template/src/Icon.tsx
Normal file
7
template/src/Icon.tsx
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { createFromIconfontCN } from '@ant-design/icons';
|
||||||
|
|
||||||
|
const Icon = createFromIconfontCN({
|
||||||
|
scriptUrl: {{iconFontSrc}},
|
||||||
|
});
|
||||||
|
|
||||||
|
export default Icon;
|
||||||
11632
template/yarn.lock
11632
template/yarn.lock
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,3 @@
|
|||||||
projectName: toco
|
projectName: toco
|
||||||
uiVersion: 0.1.36
|
uiVersion: 0.1.36
|
||||||
|
iconFontSrc: ""
|
||||||
Reference in New Issue
Block a user