dep:更新 ECharts 到 5.0.2;更新 fontawesome 到 5.15.3 (#1815)

This commit is contained in:
吴多益 2021-04-19 11:30:35 +08:00 committed by GitHub
parent ed014542cd
commit 2aeeb60b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 6 deletions

View File

@ -8,7 +8,7 @@ icon:
order: 50
---
> 在 React 项目中使用 Icon 需要引入 `font-awesome@4.7.0`,然后在代码中 `import 'font-awesome/css/font-awesome.css'`,还有相关的 webpack 配置,具体请参考 [amis-react-starter](https://github.com/aisuda/amis-react-starter) 里的配置
> 在 React 项目中使用 Icon 需要引入 `@fortawesome/fontawesome-free`,然后在代码中 `import '@fortawesome/fontawesome-free/css/all.css'`,还有相关的 webpack 配置,具体请参考 [amis-react-starter](https://github.com/aisuda/amis-react-starter) 里的配置
## 基本使用

View File

@ -11,7 +11,8 @@
/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<link rel="stylesheet" href="./static/iconfont.css" />
<link rel="stylesheet" href="font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" />
<link rel="stylesheet" href="animate.css/animate.css" />
<link rel="stylesheet" href="prismjs/themes/prism.css" />
<!--DEPENDENCIES_INJECT_PLACEHOLDER-->

View File

@ -10,7 +10,8 @@
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<link rel="stylesheet" href="font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" />
<link rel="stylesheet" href="animate.css/animate.css" />
<!--DEPENDENCIES_INJECT_PLACEHOLDER-->
<link rel="stylesheet" title="default" href="../scss/themes/default.scss" />

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<link rel="stylesheet" href="font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" />
<link rel="stylesheet" href="animate.css/animate.css" />
<link rel="stylesheet" href="prismjs/themes/prism.css" />
<link rel="stylesheet" title="default" href="../scss/themes/default.scss" />

View File

@ -182,6 +182,20 @@ fis.match('*.html:jsx', {
isMod: false
});
// 这些用了 esm
fis.match(
'{echarts/extension/**.js,zrender/**.js,ansi-to-react/lib/index.js}',
{
parser: fis.plugin('typescript', {
sourceMap: false,
importHelpers: true,
esModuleInterop: true,
emitDecoratorMetadata: false,
experimentalDecorators: false
})
}
);
fis.hook('node_modules', {
shimProcess: false,
shimGlobal: false,

View File

@ -44,7 +44,7 @@
"classnames": "2.2.5",
"dom-helpers": "^3.3.1",
"downshift": "3.1.4",
"echarts": "5.0.0",
"echarts": "5.0.2",
"echarts-stat": "^1.2.0",
"exceljs": "^4.2.0",
"file-saver": "^2.0.2",
@ -87,6 +87,7 @@
"video-react": "0.14.1"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.3",
"@types/async": "^2.0.45",
"@types/classnames": "^2.2.3",
"@types/dom-helpers": "^3.4.1",
@ -135,7 +136,6 @@
"fis3-postpackager-loader": "^2.1.12",
"fis3-prepackager-stand-alone-pack": "^1.0.0",
"fis3-preprocessor-js-require-css": "^0.1.3",
"font-awesome": "4.7.0",
"fs-walk": "0.0.2",
"glob": "^7.1.6",
"history": "4.7.2",