From a430f896bb3c370c20e06a3623c97027d46ce127 Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Fri, 21 Aug 2020 11:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/DocSearch.jsx | 2 +- examples/style.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/components/DocSearch.jsx b/examples/components/DocSearch.jsx index 3e2e8e50..e9016929 100644 --- a/examples/components/DocSearch.jsx +++ b/examples/components/DocSearch.jsx @@ -6,7 +6,7 @@ import Axios from 'axios'; import SearchBox from '../../src/components/SearchBox'; export default class DocSearch extends React.Component { - docs; + docs = []; constructor(props) { super(props); this.state = { diff --git a/examples/style.scss b/examples/style.scss index 72f11680..ed2200f1 100644 --- a/examples/style.scss +++ b/examples/style.scss @@ -714,6 +714,11 @@ a { .search-result { background-color: #fff; + top: 45px; + bottom: 0; + position: fixed; + overflow-y: scroll; + overflow-x: hidden; } .dark {