We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 470aa4b commit d494c96Copy full SHA for d494c96
src/popup/_example/popup.ts
@@ -1,30 +1 @@
1
-Page({
2
- placement: '',
3
-
4
- data: {
5
- bottom: false,
6
- center: false,
7
- left: false,
8
- right: false,
9
- },
10
11
- handlePopup(e) {
12
- const placement = e.currentTarget.dataset.type;
13
14
- this.placement = placement;
15
16
- this.setData({
17
- [placement]: true,
18
- });
19
20
21
- onVisibleChange({ detail }) {
22
- const { visible } = detail;
23
24
- if (this.placement) {
25
26
- [this.placement]: visible,
27
28
- }
29
30
-});
+Page({});
0 commit comments