From ecdaa37a673565e8e7419ac9062106b89e051c3e Mon Sep 17 00:00:00 2001
From: ansel0926 <ansel0926@gmail.com>
Date: 星期六, 14 五月 2022 21:47:57 +0800
Subject: [PATCH] 提交
---
assets/utils/popup.js | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/assets/utils/popup.js b/assets/utils/popup.js
index 7ba4aff..b6515a1 100644
--- a/assets/utils/popup.js
+++ b/assets/utils/popup.js
@@ -10,17 +10,29 @@
_this.geometry = info.geometry;//寮圭獥鎸傝浇鐨勪綅缃�
_this.id = info.id;
_this.entity=info.entity;
+ _this.type=info.type;
+ _this.content=info.content;
_this.ctn = $("<div class='bx-popup-ctn' id = '"+_this.id+"'>");
var entity={"id":_this.id,"dom":_this.ctn};
Popup.prototype.dom.push(entity);
$(_this.viewer.container).append( _this.ctn);
- //娴嬭瘯寮圭獥鍐呭
- var testConfig = {
- header:_this.entity.title,
- //header:"",
- content:'<img class="image" style="width:100%;height:100%;max-width:200px;max-height:150px" src=""></img>'
+ //寮圭獥鍐呭
+ var testConfig;
+ if(_this.type=="image"){
+ testConfig= {
+ header:_this.entity.title,
+ //header:"",
+ content:'<img class="image" style="width:100%;height:100%;max-width:200px;max-height:150px" src=""></img>'
+ }
+ }
+ else if(_this.type=="text"){
+ testConfig= {
+ header:_this.entity.title,
+ //header:"",
+ content:'<textarea class="textarea" style="color:white;width:100%;height:150px;max-width:200px;max-height:150px;background:transparent;"></textarea>'
+ }
}
_this.ctn.append(_this.createHtml(testConfig.header,testConfig.content,_this.id));
--
Gitblit v1.9.1