mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
dep:更新 ECharts 到 5.0.2;更新 fontawesome 到 5.15.3 (#1815)
This commit is contained in:
parent
ed014542cd
commit
2aeeb60b98
@ -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) 里的配置
|
||||
|
||||
## 基本使用
|
||||
|
||||
|
@ -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-->
|
||||
|
@ -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" />
|
||||
|
@ -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" />
|
||||
|
14
fis-conf.js
14
fis-conf.js
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user