Skip to content

Commit fbcedf2

Browse files
fix: small update
1 parent de1bc70 commit fbcedf2

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableTypes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export type RowColorViewType = (param: {
137137
columnTitle: string;
138138
}) => string;
139139

140-
const rowHeightLabel = "Conditional Row Height"; //trans("table.rowColor");
140+
const rowHeightLabel = trans("table.rowHeight");
141141
const RowHeightTempComp = withContext(
142142
new MultiCompBuilder({
143143
height: HeightOrBoolCodeControl,

client/packages/lowcoder/src/comps/controls/textOverflowControl.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { dropdownAbstractControl } from "./dropdownControl";
44

55
const overflowOptions = [
66
{
7-
label: "Ellipsis", // trans("autoHeightProp.auto"),
7+
label: trans("textOverflowProp.ellipsis"),
88
value: "ellipsis",
99
},
1010
{
11-
label: "Wrap", // trans("autoHeightProp.fixed"),
11+
label: trans("textOverflowProp.wrap"),
1212
value: "wrap",
1313
},
1414
] as const;
@@ -20,7 +20,7 @@ export class TextOverflowControl extends TextOverflowTmpControl {
2020
}
2121

2222
override getPropertyView() {
23-
return this.propertyView({ label: "Text Overflow"/*trans("prop.height")*/ });
23+
return this.propertyView({ label: trans("prop.textOverflow") });
2424
}
2525

2626
override propertyView(params: ControlParams) {

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,17 @@ export const en = {
186186
"showBody": "Show Body",
187187
"showFooter": "Show Footer",
188188
"maskClosable": "Click Outside to Close",
189-
"showMask": "Show Mask"
189+
"showMask": "Show Mask",
190+
"textOverflow": "Text Overflow",
190191
},
191192
"autoHeightProp": {
192193
"auto": "Auto",
193194
"fixed": "Fixed"
194195
},
196+
"textOverflowProp": {
197+
"ellipsis": "Ellipsis",
198+
"wrap": "Wrap"
199+
},
195200
"labelProp": {
196201
"text": "Label",
197202
"tooltip": "Tooltip",
@@ -1290,9 +1295,11 @@ export const en = {
12901295
"sortChange": "Sort Change",
12911296
"pageChange": "Page Change",
12921297
"refresh": "Refresh",
1293-
"rowColor": "Conditional Row Color",
1298+
"rowColor": "Conditional row color",
12941299
"rowColorDesc": "Conditionally Set the Row Color Based on the Optional Variables: CurrentRow, CurrentOriginalIndex, CurrentIndex, ColumnTitle. For Example: '{{ currentRow.id > 3 ? \"green\" : \"red\" }}'",
1295-
"cellColor": "Conditional Cell Color",
1300+
"rowHeight": "Conditional row height",
1301+
"rowHeightDesc": "Conditionally Set the Row Height Based on the Optional Variables: CurrentRow, CurrentOriginalIndex, CurrentIndex, ColumnTitle. For Example: '{{ currentRow.id > 3 ? \"60px\" : \"40px\" }}'",
1302+
"cellColor": "Conditional cell color",
12961303
"cellColorDesc": "Conditionally Set the Cell Color Based on the Cell Value Using CurrentCell. For Example: '{{ currentCell == 3 ? \"green\" : \"red\" }}'",
12971304
"saveChangesNotBind": "No Event Handler Configured for Saving Changes. Please Bind at Least One Event Handler Before Click.",
12981305
"dynamicColumn": "Use Dynamic Column Setting",

0 commit comments

Comments
 (0)