yymini-pop-html 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pop-html.js +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymini-pop-html",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "小程序(抖音)-底部富文本弹出框自定义组件",
5
5
  "main": "pop-html.js",
6
6
  "miniprogram": ".",
package/pop-html.js CHANGED
@@ -13,18 +13,18 @@ Component({
13
13
  zindex: {
14
14
  type: Number,
15
15
  value: 999
16
- },
16
+ }, //弹出框层级,默认999
17
17
  content: {
18
18
  type: String,
19
19
  value: ''
20
- },
20
+ }, //富文本内容
21
21
  height: {
22
22
  type: Number,
23
23
  value: 85
24
- }, // 弹窗高度 80%
24
+ }, // 弹窗高度,默认85,百分比%
25
25
  title: {
26
26
  type: String,
27
- value: ''
27
+ value: null
28
28
  }, // 弹窗标题
29
29
  bgSrc: {
30
30
  type: String,
@@ -63,6 +63,7 @@ Component({
63
63
  this.triggerEvent('close');
64
64
  },
65
65
 
66
+ //富文本内部的链接跳转
66
67
  linktap(event) {
67
68
  this.triggerEvent('linktap', {
68
69
  ...event?.detail