|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: Chengliang 1546584672@qq.com
|
|
|
|
* @Author: Chengliang 1546584672@qq.com
|
|
|
|
* @Date: 2022-08-04 10:22:55
|
|
|
|
* @Date: 2022-08-04 10:22:55
|
|
|
|
* @LastEditors: Chengliang 1546584672@qq.com
|
|
|
|
* @LastEditors: Chengliang 1546584672@qq.com
|
|
|
|
* @LastEditTime: 2022-08-09 11:01:43
|
|
|
|
* @LastEditTime: 2022-11-01 15:01:23
|
|
|
|
* @FilePath: /org-chart-frant/src/components/orgChart/index.jsx
|
|
|
|
* @FilePath: /org-chart-frant/src/components/orgChart/index.jsx
|
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -57,7 +57,6 @@ export const OrgChartComponent = memo((props, ref) => {
|
|
|
|
.style('stroke-dasharray', '3, 3');
|
|
|
|
.style('stroke-dasharray', '3, 3');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.onNodeClick((d, i, arr) => {
|
|
|
|
.onNodeClick((d, i, arr) => {
|
|
|
|
console.log(d, 'Id of clicked node ');
|
|
|
|
|
|
|
|
props.onNodeClick(d);
|
|
|
|
props.onNodeClick(d);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -74,7 +73,6 @@ export const OrgChartComponent = memo((props, ref) => {
|
|
|
|
props.onButtonClick && props.onButtonClick(event, d);
|
|
|
|
props.onButtonClick && props.onButtonClick(event, d);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
console.log(err);
|
|
|
|
|
|
|
|
message.warning(err);
|
|
|
|
message.warning(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|