diff --git a/example/pages/dashboard/index.js b/example/pages/dashboard/index.js
index cb27bd85..7ea8fec6 100644
--- a/example/pages/dashboard/index.js
+++ b/example/pages/dashboard/index.js
@@ -1,14 +1,8 @@
-import config from '../../config';
+import list from '../../config';
import Page from '../../common/page';
Page({
data: {
- list: config
- },
-
- onShareAppMessage() {
- return {
- title: 'Vant Weapp 组件库演示'
- };
+ list
}
});
diff --git a/packages/search/README.md b/packages/search/README.md
index ea1c40dd..35260b9e 100644
--- a/packages/search/README.md
+++ b/packages/search/README.md
@@ -39,7 +39,7 @@ Search 支持自定义右侧取消按钮,使用名字为 action 的 slot 即
use-action-slot
@search="onSearch"
>
- 搜索
+ 搜索
```
diff --git a/packages/utils/index.js b/packages/utils/index.js
new file mode 100644
index 00000000..71ddfc64
--- /dev/null
+++ b/packages/utils/index.js
@@ -0,0 +1,13 @@
+function isDef(value) {
+ return value !== undefined && value !== null;
+}
+
+function isObj(x) {
+ const type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
+}
+
+export {
+ isObj,
+ isDef
+};