From d7354af9ec66b435ebd55996220f6bc51a9c0161 Mon Sep 17 00:00:00 2001
From: tanjinzhou <415800467@qq.com>
Date: Thu, 30 Jul 2020 15:56:10 +0800
Subject: [PATCH] perf: empty img to functional component
---
antdv-demo | 2 +-
components/empty/empty.jsx | 84 ++++++++++++++++++-------------------
components/empty/simple.jsx | 35 ++++++++--------
examples/App.vue | 2 +-
4 files changed, 61 insertions(+), 62 deletions(-)
diff --git a/antdv-demo b/antdv-demo
index a234ba5cc..3d603c83c 160000
--- a/antdv-demo
+++ b/antdv-demo
@@ -1 +1 @@
-Subproject commit a234ba5ccfe4ab14f1619ddc156aef5bf05a7f18
+Subproject commit 3d603c83c0d128769b81ffe12ef9d8cbd5dbb166
diff --git a/components/empty/empty.jsx b/components/empty/empty.jsx
index d1ddca6a3..1c9c2fc06 100644
--- a/components/empty/empty.jsx
+++ b/components/empty/empty.jsx
@@ -1,47 +1,47 @@
-export default {
- functional: true,
- PRESENTED_IMAGE_DEFAULT: true,
- render() {
- return (
-
+ );
};
+
+Empty.PRESENTED_IMAGE_DEFAULT = true;
+
+export default Empty;
diff --git a/components/empty/simple.jsx b/components/empty/simple.jsx
index 4c35a1223..5eefa3a37 100644
--- a/components/empty/simple.jsx
+++ b/components/empty/simple.jsx
@@ -1,20 +1,19 @@
-export default {
- functional: true,
- PRESENTED_IMAGE_SIMPLE: true,
- render() {
- return (
-
-
-
-
-
-
-
+const Simple = () => {
+ return (
+
+
+
+
+
+
-
- );
- },
+
+
+ );
};
+
+Simple.PRESENTED_IMAGE_SIMPLE = true;
+export default Simple;
diff --git a/examples/App.vue b/examples/App.vue
index 20c154c56..152b72301 100644
--- a/examples/App.vue
+++ b/examples/App.vue
@@ -4,7 +4,7 @@