From cc1d7095ec6df622efbdaaabe3dec78ca3599d90 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 27 五月 2022 17:01:14 +0800 Subject: [PATCH] X轴自定义名称长度 --- src/tabviews/custom/components/tree/antd-tree/index.jsx | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/tree/antd-tree/index.jsx b/src/tabviews/custom/components/tree/antd-tree/index.jsx index e9d7bc7..da54069 100644 --- a/src/tabviews/custom/components/tree/antd-tree/index.jsx +++ b/src/tabviews/custom/components/tree/antd-tree/index.jsx @@ -62,7 +62,9 @@ sync: _sync }, () => { if (config.setting.sync !== 'true' && config.setting.onload === 'true') { - this.loadData(null) + setTimeout(() => { + this.loadData(null) + }, config.setting.delay || 0) } else if (config.setting.sync === 'true' && _data) { this.handleData() } @@ -460,7 +462,7 @@ const { config, loading, treeNodes, expandedKeys, selectedKeys } = this.state return ( - <div className="custom-tree-box" style={config.style}> + <div className="custom-tree-box" id={'anchor' + config.uuid} style={config.style}> {loading ? <div className="loading-mask"> <div className="ant-spin-blur"></div> -- Gitblit v1.8.0