Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e5e1e2a

Browse files
freddysundownerraheeliftikhar5
authored andcommitted
added icons lables
1 parent b19c9bc commit e5e1e2a

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

‎client/packages/lowcoder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"buffer": "^6.0.3",
4242
"clsx": "^2.0.0",
4343
"cnchar": "^3.2.4",
44-
"coolshapes-react": "^0.1.1-beta.0",
44+
"coolshapes-react": "/Users/la/Desktop/coolshapes-react",
4545
"copy-to-clipboard": "^3.3.3",
4646
"core-js": "^3.25.2",
4747
"echarts": "^5.4.3",

‎client/packages/lowcoder/src/comps/comps/shapeComp/shapeComp.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
3434
display: flex;
3535
align-items: center;
3636
justify-content: center;
37-
.coolshapes {
38-
max-width: 100%;
39-
min-height: 100%;
40-
min-width: 100%;
41-
}
4237
4338
${(props) =>
4439
props.$style &&
@@ -47,8 +42,6 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
4742
width: calc(100% - ${props.$style.margin});
4843
padding: ${props.$style.padding};
4944
margin: ${props.$style.margin};
50-
border: ${props.$style.borderWidth} solid ${props.$style.border};
51-
border-radius: ${props.$style.radius};
5245
background: ${props.$style.background};
5346
svg {
5447
max-width: ${widthCalculator(props.$style.margin)};
@@ -57,7 +50,7 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
5750
object-fit: contain;
5851
pointer-events: auto;
5952
}
60-
`}
53+
`}
6154
`;
6255

6356
const EventOptions = [clickEvent] as const;
@@ -106,16 +99,20 @@ const IconView = (props: RecordConstructorToView<typeof childrenMap>) => {
10699
fontSize: props.autoHeight
107100
? `${height < width ? height : width}px`
108101
: props.iconSize,
109-
background: props.style.background,
110102
}}
111103
onClick={() => {
112104
console.log("click");
113-
}}
105+
}}
114106
>
115-
<Coolshape
107+
<Coolshape
116108
type={shape.value as any}
117-
index={shape.index}
118-
noise={true}
109+
index={shape.index}
110+
noise={false}
111+
style={{
112+
border: `${props.style.borderWidth} solid ${props.style.border}`,
113+
borderRadius: props.style.radius,
114+
color: props.style.background,
115+
}}
119116
/>
120117
</Container>
121118
</ReactResizeDetector>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /