From f944c63fab3369b2a4b13fcc008a91cc3a44621e Mon Sep 17 00:00:00 2001 From: panbibi <1265629139@qq.com> Date: Fri, 17 Feb 2023 10:36:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Empty):=20=E4=BD=BF=E7=94=A8=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2Class=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/examples/src/routes/Empty/index.tsx | 60 ++++++++++----------- packages/core/src/Empty/README.md | 18 ++++--- 2 files changed, 41 insertions(+), 37 deletions(-) diff --git a/example/examples/src/routes/Empty/index.tsx b/example/examples/src/routes/Empty/index.tsx index 78a8e71ff..faff453c1 100644 --- a/example/examples/src/routes/Empty/index.tsx +++ b/example/examples/src/routes/Empty/index.tsx @@ -31,35 +31,33 @@ const xml = ` export interface DividerViewProps extends ComProps {} -export default class DividerView extends React.Component { - render() { - const {route} = this.props; - const description = route.params.description; - const title = route.params.title; - return ( - - -
- - - - - - - - - - - - - - - - - -