Commit bae9b216 authored by 杨子龙's avatar 杨子龙

操作栏配置增加宽度配置

parent e7e07a6c
......@@ -4851,9 +4851,14 @@ const advancedWidgets = [
type: 'string',
widget: 'htmlInput',
},
optionWidth: {
title: "操作栏宽度",
type: "number",
default: 120
},
optionRender: {
title: '',
name: '操作栏配置',
name: '操作栏内容配置',
type: 'array',
default: [
{ type: "icon", value: 'DeleteOutlined' , action: "delete"},
......
......@@ -21,6 +21,7 @@ const DataTable = props => {
scrollY,
statusOption,
areaTaskShine,
optionWidth
} = schema;
const [dataSource, setDataSource] = useState([]);
......@@ -261,7 +262,7 @@ const DataTable = props => {
title: '操作',
dataIndex: '',
key: '',
width: 120,
width: optionWidth || 120,
render: (_, row, index) => {
return getOptionRender(_, row, index);
},
......@@ -352,7 +353,7 @@ const DataTable = props => {
useEffect(() => {
getColumns();
}, [fieldList, dataSource]);
}, [fieldList, dataSource , optionRender]);
useEffect(() => {
initRelationForm();
......
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