Skip to content

Commit ce2d2db

Browse files
Table: show prefix icon in select column
1 parent de854f1 commit ce2d2db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/columnSelectComp.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,14 @@ export const ColumnSelectComp = (function () {
5353
childrenMap,
5454
(props, dispatch) => {
5555
options = props.options;
56-
const value = props.changeValue ?? getBaseValue(props, dispatch)
57-
return props.options.find(x => x.value === value)?.label;
56+
const value = props.changeValue ?? getBaseValue(props, dispatch);
57+
const option = props.options.find(x => x.value === value);
58+
return (
59+
<>
60+
<span>{option?.prefixIcon}</span>
61+
<span>{option?.label}</span>
62+
</>
63+
);
5864
},
5965
(nodeValue) => nodeValue.text.value,
6066
getBaseValue,

0 commit comments

Comments
 (0)