diff --git a/example/pages/popup/index.js b/example/pages/popup/index.js
index d52a7255..9394ac40 100644
--- a/example/pages/popup/index.js
+++ b/example/pages/popup/index.js
@@ -8,7 +8,8 @@ Page({
bottom: false,
left: false,
right: false,
- round: false
+ round: false,
+ closeIcon: false
}
},
@@ -64,5 +65,13 @@ Page({
hideRound() {
this.toggle('round', false);
+ },
+
+ showCloseIcon() {
+ this.toggle('closeIcon', true);
+ },
+
+ hideCloseIcon() {
+ this.toggle('closeIcon', false);
}
});
diff --git a/example/pages/popup/index.wxml b/example/pages/popup/index.wxml
index 82186ec4..656c4640 100644
--- a/example/pages/popup/index.wxml
+++ b/example/pages/popup/index.wxml
@@ -44,11 +44,24 @@
/>
+
+ 关闭图标
+
+
+
+
圆角弹窗
+