From 7c9811477d68acf522bd2adbcfe6031d36cead5a Mon Sep 17 00:00:00 2001 From: chenqi Date: Wed, 3 Jun 2026 15:43:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(temperatureSheet):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=AC=A6=E5=8F=B7=E7=BB=98=E5=88=B6=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=BB=A5=E4=BD=BF=E7=94=A8d3.symbol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的d3-shape导入 - 将symbol()调用更改为d3.symbol()以保持一致性 - 优化数据处理模块的导入结构 --- .../src/action/nurseStation/temperatureSheet/drawfn.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openhis-ui-vue3/src/action/nurseStation/temperatureSheet/drawfn.js b/openhis-ui-vue3/src/action/nurseStation/temperatureSheet/drawfn.js index 67e8bca52..570ec3073 100755 --- a/openhis-ui-vue3/src/action/nurseStation/temperatureSheet/drawfn.js +++ b/openhis-ui-vue3/src/action/nurseStation/temperatureSheet/drawfn.js @@ -1,6 +1,5 @@ -// 数据处理 +// 数据处理 import * as d3 from 'd3'; -import {symbol} from 'd3-shape'; import { degreesOnline, disconnectEvents, @@ -142,7 +141,7 @@ export const iconDrawObj = { }) .append('path') .call((path) => { - const symbolThree = symbol(); + const symbolThree = d3.symbol(); const symbolIndex = 5; symbolThree.type(d3.symbols[symbolIndex]); path.attr('d', symbolThree.size(riangle)).attr('fill', fill).attr('stroke', stroke);