代码更新
This commit is contained in:
@@ -26,7 +26,7 @@ class ButtonNode extends HtmlResize.view {
|
|||||||
// 路径前缀
|
// 路径前缀
|
||||||
const baseUrl = api.state.baseApi
|
const baseUrl = api.state.baseApi
|
||||||
// 颜色
|
// 颜色
|
||||||
let statusColor = '#1a912a'
|
let statusColor = '#FF4500'
|
||||||
// 默认图片
|
// 默认图片
|
||||||
// let imageUrl = baseUrl + '/file/图片/专机-20220722094234555.png'
|
// let imageUrl = baseUrl + '/file/图片/专机-20220722094234555.png'
|
||||||
let imageUrl = defaultUrl
|
let imageUrl = defaultUrl
|
||||||
@@ -66,10 +66,10 @@ class ButtonNode extends HtmlResize.view {
|
|||||||
// el.id = 'uml-app'
|
// el.id = 'uml-app'
|
||||||
const html = `
|
const html = `
|
||||||
<div>
|
<div>
|
||||||
<div style="height: 15px; width: 15px; background-color: ${statusColor}; position: absolute; border-radius: 100px; z-index: 9999"></div>
|
<div style="height: 10px; width: 10px; background-color: ${statusColor}; position: absolute; border-radius: 100px; z-index: 9999"></div>
|
||||||
<img src="${goods}" style="position: absolute; height: ${trayHeight}px; width: ${trayWidth}px; top: 15%; left: 15%; display: ${trayDisplay}">
|
<img src="${goods}" style="position: absolute; height: ${trayHeight}px; width: ${trayWidth}px; top: 15%; left: 15%; display: ${trayDisplay}">
|
||||||
<img src="${fault}" style="position: absolute; height: ${trayHeight}px; width: ${trayWidth}px; top: 15%; left: 15%; display: ${faultDisplay}">
|
|
||||||
<img style="transform: rotate(${properties.transform}deg);" height="${oldNode._height}" width="${oldNode._width}" src="${imageUrl}">
|
<img style="transform: rotate(${properties.transform}deg);" height="${oldNode._height}" width="${oldNode._width}" src="${imageUrl}">
|
||||||
|
<img src="${fault}" style="position: absolute; height: ${trayHeight}px; width: ${trayWidth}px; top: 15%; left: 15%; display: ${faultDisplay}">
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
el.innerHTML = html
|
el.innerHTML = html
|
||||||
|
|||||||
Reference in New Issue
Block a user