Commit e04547e90a9b7bbb3f46e13c7021d327c0eac5a6

Authored by ww
1 parent b6b788d6

perf: 模版模式放开预览选项

@@ -5117,10 +5117,10 @@ App.prototype.addPreviewButton = function () { @@ -5117,10 +5117,10 @@ App.prototype.addPreviewButton = function () {
5117 this.previewButton.parentNode.removeChild(this.previewButton) 5117 this.previewButton.parentNode.removeChild(this.previewButton)
5118 } 5118 }
5119 5119
5120 - if (this.isTemplateConfiguration) {  
5121 - this.previewButton = null  
5122 - return  
5123 - } 5120 + // if (this.isTemplateConfiguration) {
  5121 + // this.previewButton = null
  5122 + // return
  5123 + // }
5124 5124
5125 this.previewButton = document.createElement('button') 5125 this.previewButton = document.createElement('button')
5126 this.previewButton.className = 'geBtn geShareBtn' 5126 this.previewButton.className = 'geBtn geShareBtn'
@@ -237,7 +237,7 @@ a.geStatus .geStatusMessage { @@ -237,7 +237,7 @@ a.geStatus .geStatusMessage {
237 -moz-box-shadow: 2px 2px 3px 0px #ddd; 237 -moz-box-shadow: 2px 2px 3px 0px #ddd;
238 box-shadow: 2px 2px 3px 0px #ddd; 238 box-shadow: 2px 2px 3px 0px #ddd;
239 } 239 }
240 -.geEditor input, .geEditor button:not([class^="ant"]), .geEditor select, .geColorBtn { 240 +.geEditor input, .geEditor button:not([class*="ant-"]), .geEditor select, .geColorBtn {
241 border: 1px solid #d8d8d8; 241 border: 1px solid #d8d8d8;
242 border-radius: 4px; 242 border-radius: 4px;
243 } 243 }
@@ -9,7 +9,6 @@ import { getAppInstanceId } from '@/utils/draw' @@ -9,7 +9,6 @@ import { getAppInstanceId } from '@/utils/draw'
9 import type { RenderComponentExposeType } from '@/core/Library/types' 9 import type { RenderComponentExposeType } from '@/core/Library/types'
10 import { useLatestMessageValue } from '@/core/Library/hook/useLatestMessageValue' 10 import { useLatestMessageValue } from '@/core/Library/hook/useLatestMessageValue'
11 import type { NodeDataDataSourceJsonType } from '@/api/node/model' 11 import type { NodeDataDataSourceJsonType } from '@/api/node/model'
12 -import { ControlComponentEnum } from '@/core/Library/packages/Control'  
13 12
14 export class MessageHandler { 13 export class MessageHandler {
15 constructor(public service: LightboxModeWebsocketService) { 14 constructor(public service: LightboxModeWebsocketService) {
@@ -53,7 +52,6 @@ export class MessageHandler { @@ -53,7 +52,6 @@ export class MessageHandler {
53 52
54 defaultHandler(commandSource: CommandSource, message: SubscriptionUpdateMsg) { 53 defaultHandler(commandSource: CommandSource, message: SubscriptionUpdateMsg) {
55 const { data, node } = commandSource 54 const { data, node } = commandSource
56 - if (this.nodeUtils.getNodeComponentKey(this.nodeUtils.getCellById(node)) === ControlComponentEnum.PARAMETER_SETTINGS) return  
57 const { attr } = data as NodeDataDataSourceJsonType 55 const { attr } = data as NodeDataDataSourceJsonType
58 const { latestValue } = useLatestMessageValue(message.data, attr) 56 const { latestValue } = useLatestMessageValue(message.data, attr)
59 if (isNull(latestValue)) return 57 if (isNull(latestValue)) return