From 06bc64cc7a862e534cc0c1bcbfb8526aac537b57 Mon Sep 17 00:00:00 2001 From: xujiang Date: Sun, 13 Sep 2020 10:57:47 +0800 Subject: [PATCH] =?UTF-8?q?:arrow=5Fup:=20=E5=8D=87=E7=BA=A7=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=20:fire:=20=E7=A7=BB=E9=99=A4=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E7=BB=9F=E4=B8=80=E6=A0=B7=E5=BC=8F=E8=80=8C?= =?UTF-8?q?=E5=81=9A=E4=BA=86=E5=85=BC=E5=AE=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/layouts/index.tsx | 8 +------- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index bbf8bc7..0fcc9fb 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index ac71fca..bc049ff 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -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进去,也可以不用 diff --git a/yarn.lock b/yarn.lock index 8fec73c..ca3bf32 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"