Commit b91648ae7ffe53640c4ec46f521a64f43133c7a1

Authored by ww
1 parent bb68b6a5

fix: 修复ant编译不通过打包失败

@@ -864,7 +864,7 @@ @@ -864,7 +864,7 @@
864 Sidebar.prototype.resetFlowmeter = function (graph) { 864 Sidebar.prototype.resetFlowmeter = function (graph) {
865 const { COMPONENT_TYPE, UUID, WIDTH, HEIGHT } = getFlowmeterAttrKey() 865 const { COMPONENT_TYPE, UUID, WIDTH, HEIGHT } = getFlowmeterAttrKey()
866 const componentType = Sidebar.prototype.enumComponentType 866 const componentType = Sidebar.prototype.enumComponentType
867 - const cells = Object.entries(graph?.getModel()?.cells || {}).map(([_, item]) => item) || [] 867 + const cells = Object.entries(graph.getModel().cells || {}).map(([_, item]) => item) || []
868 const needReset = cells.filter(item => item.value && item.getAttribute(COMPONENT_TYPE) === componentType.FLOWMETER) 868 const needReset = cells.filter(item => item.value && item.getAttribute(COMPONENT_TYPE) === componentType.FLOWMETER)
869 869
870 needReset.forEach(item => { 870 needReset.forEach(item => {
@@ -933,7 +933,6 @@ function getFlowmeterAttrKey() { @@ -933,7 +933,6 @@ function getFlowmeterAttrKey() {
933 WAVE_FIRST_COLOR: flowmeterAttr.WAVE_FIRST_COLOR, 933 WAVE_FIRST_COLOR: flowmeterAttr.WAVE_FIRST_COLOR,
934 WAVE_SECOND_COLOR: flowmeterAttr.WAVE_SECOND_COLOR, 934 WAVE_SECOND_COLOR: flowmeterAttr.WAVE_SECOND_COLOR,
935 WAVE_THIRD_COLOR: flowmeterAttr.WAVE_THIRD_COLOR, 935 WAVE_THIRD_COLOR: flowmeterAttr.WAVE_THIRD_COLOR,
936 - UUID: flowmeterAttr.UUID,  
937 COMPONENT_TYPE: basicAttr.COMPONENT_TYPE, 936 COMPONENT_TYPE: basicAttr.COMPONENT_TYPE,
938 } 937 }
939 } 938 }