Skip to content

Commit bd78178

Browse files
authored
Merge pull request #1430 from alibaba/fix-form-operate
feat: 增加 hideOperate 配置参数
2 parents 3492e53 + d636fef commit bd78178

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/form-render/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "form-render",
3-
"version": "2.3.3",
3+
"version": "2.3.4",
44
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
55
"keywords": [
66
"Form",

packages/form-render/src/widgets/listTable/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const TableList: React.FC<ListTableProps> = (props) => {
5656
hideCopy,
5757
hideMove,
5858
hideAdd,
59+
hideOperate,
5960

6061
addItem,
6162
copyItem,
@@ -132,7 +133,7 @@ const TableList: React.FC<ListTableProps> = (props) => {
132133
};
133134
});
134135

135-
if (!readOnly) {
136+
if (!readOnly && !hideOperate) {
136137
columns.push({
137138
title: colHeaderText,
138139
width: '190px',

packages/form-render/src/widgets/listVirtual/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const VirtualList: React.FC<ListVirtualProps> = (props) => {
5757
hideCopy,
5858
hideMove,
5959
hideAdd,
60+
hideOperate,
6061

6162
addItem,
6263
copyItem,
@@ -129,7 +130,7 @@ const VirtualList: React.FC<ListVirtualProps> = (props) => {
129130
};
130131
});
131132

132-
if (!readOnly) {
133+
if (!readOnly && !hideOperate) {
133134
columns.push({
134135
title: colHeaderText,
135136
width: '190px',

0 commit comments

Comments
 (0)