forked from CITKParus/P8-Panels
WEB APP: P8PSVG - удалена лишняя консольная выдача, доработан пример
This commit is contained in:
parent
dca2a12d3b
commit
4e1cb3cf89
@ -70,7 +70,6 @@ const P8PSVG = ({ data, items, onClick, style }) => {
|
|||||||
|
|
||||||
//При обновлении данных
|
//При обновлении данных
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(items);
|
|
||||||
loadSVG();
|
loadSVG();
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [data, items]);
|
}, [data, items]);
|
||||||
|
@ -17,13 +17,13 @@ import { P8PSVG } from "../../components/p8p_svg"; //Интерактивные
|
|||||||
//---------
|
//---------
|
||||||
|
|
||||||
//Адрес тестового изображения
|
//Адрес тестового изображения
|
||||||
const SAMPLE_URL = "http://localhost:8080/P8WebClient/Modules/p8-panels/img/sample.svg";
|
const SAMPLE_URL = "img/sample.svg";
|
||||||
|
|
||||||
//Стили
|
//Стили
|
||||||
const STYLES = {
|
const STYLES = {
|
||||||
CONTAINER: { textAlign: "center", paddingTop: "20px" },
|
CONTAINER: { textAlign: "center", paddingTop: "20px" },
|
||||||
TITLE: { paddingBottom: "15px" },
|
TITLE: { paddingBottom: "15px" },
|
||||||
SVG: { width: "95vw", height: "60vw", display: "flex", justifyContent: "center" }
|
SVG: { width: "95vw", height: "30vw", display: "flex", justifyContent: "center" }
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------
|
//-----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user