Commit c3c7f0dc authored by 李纪文's avatar 李纪文

fix: 修改

parent f6b81241
......@@ -35,5 +35,7 @@ api 参考 Antd Table 组件 https://ant.design/components/table-cn/#API
### Column 新增参数
| 参数 | 说明 | 类型 | 默认值 |
| ------ | -------------------------------------------- | ------- | ------ |
| -------- | -------------------------------------------- | ------- | ------ |
| resize | 设置表头可拖拽调整列宽(必须设置列宽 width) | boolean | false |
| minWidth | 设置表头可拖拽调整列宽最小值 | number | - |
| maxWidth | 设置表头可拖拽调整列宽最大值 | number | - |
......@@ -34,6 +34,8 @@ const Demo = () => {
fixed: true,
width: 200,
resize: true,
maxWidth: 250,
minWidth: 100,
});
let dataSource = data[0].NameDate.map((item, index) => ({ key: index, time: item.Time }));
data.forEach((item, index) => {
......
......@@ -50,6 +50,9 @@ const BasicTable = (props) => {
(index) =>
(e, { size }) => {
const nextColumns = [...cols];
const { minWidth, maxWidth } = nextColumns[index];
if (minWidth && size.width <= minWidth) return false;
if (maxWidth && size.width >= maxWidth) return false;
// 拖拽是调整宽度
nextColumns[index] = {
...nextColumns[index],
......
......@@ -2250,6 +2250,7 @@ const ConfigurationView = (props) => {
wrapClassName={classNames(`${prefixCls}-jumpModal`)}
getContainer={ConfigurationRef.current}
componentPrefix={componentPrefix}
destroyOnClose={true}
style={{
height: jumpModalProps.height ? `${Number(jumpModalProps.height) + 103}px` : '100%',
left: `calc(50% - ${jumpModalProps.width ? jumpModalProps.width / 2 + 'px' : '50%'})`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment