⬆️ 升级依赖 🔥 移除之前因为统一样式而做了兼容代码

This commit is contained in:
xujiang 2020-09-13 10:57:47 +08:00
parent e333ad88c4
commit 06bc64cc7a
3 changed files with 6 additions and 12 deletions

View File

@ -56,7 +56,7 @@
"antd-img-crop": "^3.10.0",
"axios": "^0.19.2",
"babel-plugin-import": "^1.13.0",
"chatbot-antd": "^0.2.0",
"chatbot-antd": "^0.6.0",
"file-saver": "^2.0.2",
"lint-staged": "^10.0.7",
"node-sass": "^4.14.1",

View File

@ -1,14 +1,8 @@
import React, { useCallback, useState } from 'react';
import { library, generateRespones, RenderList, useRegister } from 'chatbot-antd';
import { IRouteComponentProps } from 'umi';
import { Button, Avatar, Input, Modal, Popconfirm } from 'antd';
import { Button } from 'antd';
import { CustomerServiceOutlined } from '@ant-design/icons';
// 如果直接引入antd的css会导致umi设置的对应组件的主题色失效
// import 'antd/lib/button/style/index.css';
// import 'antd/lib/avatar/style/index.css';
// import 'antd/lib/input/style/index.css';
// import 'antd/lib/modal/style/index.css';
// import 'antd/lib/popconfirm/style/index.css';
library.push(
//语料库push进去也可以不用

View File

@ -4225,10 +4225,10 @@ chardet@^0.7.0:
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==
chatbot-antd@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/chatbot-antd/-/chatbot-antd-0.2.0.tgz#5bb35d80779d0f44f78fdcfef6e3bcfc3e2d4a2f"
integrity sha512-wKIFYYxCybMqQDnZj/Z7aYu1JTQuQVYMC3JCnw1ByP7TgNczClR/qQ2VDRO99Gg2QL6WecwoRVQp1ve8OyuinA==
chatbot-antd@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/chatbot-antd/-/chatbot-antd-0.6.0.tgz#70f921b7e81f3d3f5380c4b2a4cf81a4b85dc2e2"
integrity sha512-vMYLRgY1x8UCdetARiNV+eA/NfG5yxieDvPo1xJX322A5DSq9+FEPF78ui0CN1BRKlSjM//IEb27Rv4LrXk/Xg==
check-types@^8.0.3:
version "8.0.3"