From 0c9e0a7ce226043b9fc2d3a02c077ace25a68059 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 20 Aug 2020 12:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20form=20=E5=BA=95=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=20schemaApi=20=E6=9B=B4=E6=96=B0=E5=80=BC=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/DocSearch.jsx | 16 +++--- examples/index.html | 5 -- mock/service/form.js | 84 +++++++++++++++---------------- src/renderers/Form/Service.tsx | 18 +++++++ src/renderers/Service.tsx | 19 ++++--- src/store/service.ts | 1 + 6 files changed, 82 insertions(+), 61 deletions(-) diff --git a/examples/components/DocSearch.jsx b/examples/components/DocSearch.jsx index 5cf3cc013..117f96f28 100644 --- a/examples/components/DocSearch.jsx +++ b/examples/components/DocSearch.jsx @@ -31,14 +31,14 @@ const FormComponent = makeSchemaRenderer({ export default class DocSearch extends React.Component { componentDidMount() { - const inputSelector = 'input[name="docsearch"]'; - docsearch({ - appId: 'S08MJHBHFJ', - apiKey: '5fba814bb773d08b5d2a3f6074f926a5', - indexName: 'gh_pages', - inputSelector, - debug: false - }); + // const inputSelector = 'input[name="docsearch"]'; + // docsearch({ + // appId: 'S08MJHBHFJ', + // apiKey: '5fba814bb773d08b5d2a3f6074f926a5', + // indexName: 'gh_pages', + // inputSelector, + // debug: false + // }); } render() { diff --git a/examples/index.html b/examples/index.html index c1775cfcd..96fea22af 100644 --- a/examples/index.html +++ b/examples/index.html @@ -18,10 +18,6 @@ - @@ -50,7 +46,6 @@
-