@realsee/dnalogel 3.79.4 → 3.80.1-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 3.80.1
4
+
5
+ - feat(PanoTagPlugin): 增加 `showMedia` 配置项,目前仅生效于营销拜年,用以控制营销标签浮窗面板是否展示图片,默认 `false` 向下兼容。
6
+
3
7
  ## 3.79.3
4
8
 
5
9
  - fix(PanoTagPlugin): 修复虚拟屏幕标签在 `visiblePanoIndex` 等可见性规则生效时,编辑辅助矩形和 helper 未跟随隐藏的问题;标签恢复可见且仍处于编辑态时,会自动恢复显示辅助元素
package/README.md CHANGED
@@ -31,10 +31,6 @@
31
31
  npm install @realsee/dnalogel
32
32
  ```
33
33
 
34
- ```bash
35
- yarn add @realsee/dnalogel
36
- ```
37
-
38
34
  **2、插件注册**
39
35
 
40
36
  ```js
@@ -351,6 +351,11 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
351
351
  * @default '查看更多'
352
352
  */
353
353
  viewMoreText?: string;
354
+ /**
355
+ * @description 营销标签展开卡片中是否展示媒体区域(需同时提供 data.mediaData,与 popoverConfig.enabled 无关)
356
+ * @default false
357
+ */
358
+ showMedia?: boolean;
354
359
  /**
355
360
  * @description 鼠标悬停前的拦截函数,返回 true 允许 hover,false 阻止 hover
356
361
  */
@@ -109,6 +109,10 @@ export interface ContentTypeMapInterface {
109
109
  /** 单位 */
110
110
  unit: string;
111
111
  };
112
+ /** 卡片内媒体(需 config.popoverConfig.showMedia 为 true 时展示) */
113
+ mediaData?: (MediaData & {
114
+ name?: string;
115
+ })[];
112
116
  };
113
117
  /** 营销贴片 */
114
118
  MediaPlane: {