Skip to content

Commit 8ab3816

Browse files
committed
Changed SetPropertyView to PropertyView
1 parent 8b08fb4 commit 8ab3816

File tree

94 files changed

+213
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+213
-221
lines changed

client/packages/lowcoder/src/comps/comps/autoCompleteComp/autoCompleteComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
componentSize,
4848
} from "./autoCompleteConstants";
4949
import {viewMode} from "@lowcoder-ee/util/editor";
50-
const SetPropertyViewFn = React.lazy( async () => await import("./propertyView"));
50+
const PropertyView = React.lazy( async () => await import("./propertyView"));
5151
const InputStyle = styled(Input) <{ $style: InputLikeStyleType }>`
5252
box-shadow: ${props=>`${props.$style?.boxShadow} ${props.$style?.boxShadowColor}`};
5353
${(props) => css`
@@ -282,7 +282,7 @@ let AutoCompleteCompBase = (function () {
282282
});
283283
})
284284
if (viewMode() === "edit") {
285-
builder.setPropertyViewFn((children) => <SetPropertyViewFn {...children}></SetPropertyViewFn>);
285+
builder.setPropertyViewFn((children) => <PropertyView {...children}></PropertyView>);
286286
}
287287
return builder
288288
.setExposeMethodConfigs(autoCompleteRefMethods)

client/packages/lowcoder/src/comps/comps/autoCompleteComp/propertyView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import {FormDataPropertyView} from "@lowcoder-ee/comps/comps/formComp/formDataConstants";
1111
import React from "react";
1212

13-
const SetPropertyViewFn = ((children: any) => {
13+
const PropertyView = ((children: any) => {
1414
return (
1515
<>
1616
<Section>
@@ -82,4 +82,4 @@ const SetPropertyViewFn = ((children: any) => {
8282
})
8383

8484

85-
export default SetPropertyViewFn
85+
export default PropertyView;

client/packages/lowcoder/src/comps/comps/avatar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { DropdownOptionControl } from "../controls/optionsControl";
3232
import React, { ReactElement, useContext } from "react";
3333
import { CompNameContext, EditorContext } from "../editorState";
3434
import {viewMode} from "@lowcoder-ee/util/editor";
35-
const SetPropertyViewFn = React.lazy( async () => await import("@lowcoder-ee/comps/comps/propertyView/avatar"));
35+
const PropertyView = React.lazy( async () => await import("@lowcoder-ee/comps/comps/propertyView/avatar"));
3636

3737
const AvatarWrapper = styled(Avatar) <AvatarProps & { $cursorPointer?: boolean, $style: AvatarStyleType }>`
3838
background: ${(props) => props.$style.background};
@@ -199,7 +199,7 @@ let AvatarBasicComp = (function () {
199199
let builder = new UICompBuilder(childrenMap, (props) => {
200200
return(<AvatarView {...props} />)})
201201
if (viewMode() === "edit") {
202-
builder.setPropertyViewFn((children) => <SetPropertyViewFn {...children}></SetPropertyViewFn>);
202+
builder.setPropertyViewFn((children) => <PropertyView {...children}></PropertyView>);
203203
}
204204
return builder
205205
.build();

client/packages/lowcoder/src/comps/comps/avatarGroup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import { dropdownControl } from "../controls/dropdownControl";
1919
import { JSONObject } from "util/jsonTypes";
2020
import {MultiIconDisplay} from "@lowcoder-ee/comps/comps/multiIconDisplay";
2121
import {viewMode} from "@lowcoder-ee/util/editor";
22-
const SetPropertyViewAvatarGroup1 = React.lazy( async () => await import("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module => ({default: module.SetPropertyViewAvatarGroup1})))
23-
const SetPropertyViewAvatarGroup2 = React.lazy( async () => await import("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module => ({default: module.SetPropertyViewAvatarGroup2})))
22+
const PropertyViewAvatarGroup1 = React.lazy( async () => await import("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module => ({default: module.PropertyViewAvatarGroup1})))
23+
const PropertyViewAvatarGroup2 = React.lazy( async () => await import("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module => ({default: module.PropertyViewAvatarGroup2})))
2424
const MacaroneList = [
2525
'#fde68a',
2626
'#eecff3',
@@ -60,7 +60,7 @@ let DropdownOption = new MultiCompBuilder(
6060
(props) => props
6161
)
6262
if (viewMode() === "edit") {
63-
DropdownOption.setPropertyViewFn((children) => <SetPropertyViewAvatarGroup1 {...children}></SetPropertyViewAvatarGroup1>);
63+
DropdownOption.setPropertyViewFn((children) => <PropertyViewAvatarGroup1 {...children}></PropertyViewAvatarGroup1>);
6464
}
6565
const DropdownOptionBuilder = DropdownOption.build();
6666

@@ -133,7 +133,7 @@ let AvatarGroupBasicComp = (function () {
133133
return( <AvatarGroupView {...props} dispatch={dispatch} />
134134
)})
135135
if (viewMode() === "edit") {
136-
builder.setPropertyViewFn((children) => <SetPropertyViewAvatarGroup2 {...children}></SetPropertyViewAvatarGroup2>);
136+
builder.setPropertyViewFn((children) => <PropertyViewAvatarGroup2 {...children}></PropertyViewAvatarGroup2>);
137137
}
138138
return builder
139139
.build();

client/packages/lowcoder/src/comps/comps/buttonComp/buttonComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { AnimationStyle } from "@lowcoder-ee/comps/controls/styleControlConstant
2424
import { styleControl } from "@lowcoder-ee/comps/controls/styleControl";
2525
import {viewMode} from "@lowcoder-ee/util/editor";
2626

27-
const SetPropertyViewButtonComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.SetPropertyViewButtonComp})))
27+
const PropertyViewButtonComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.PropertyViewButtonComp})))
2828
const FormLabel = styled(CommonBlueLabel)`
2929
font-size: 13px;
3030
margin-right: 4px;
@@ -161,7 +161,7 @@ const ButtonTmpComp = (function () {
161161
})
162162

163163
if (viewMode() === "edit") {
164-
builder.setPropertyViewFn((children) => <SetPropertyViewButtonComp {...children}></SetPropertyViewButtonComp>);
164+
builder.setPropertyViewFn((children) => <PropertyViewButtonComp {...children}></PropertyViewButtonComp>);
165165
}
166166

167167
return builder

client/packages/lowcoder/src/comps/comps/buttonComp/dropdownComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from "./buttonCompConstants";
2121
import { styleControl } from "@lowcoder-ee/comps/controls/styleControl";
2222
import {viewMode} from "@lowcoder-ee/util/editor";
23-
const SetPropertyViewDropDownComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.SetPropertyViewDropDownComp})))
23+
const PropertyViewDropDownComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.PropertyViewDropDownComp})))
2424

2525
const StyledDropdownButton = styled(DropdownButton)`
2626
width: 100%;
@@ -151,7 +151,7 @@ const DropdownTmpComp = (function () {
151151
);
152152
})
153153
if (viewMode() === "edit") {
154-
builder.setPropertyViewFn((children) => <SetPropertyViewDropDownComp {...children}></SetPropertyViewDropDownComp>);
154+
builder.setPropertyViewFn((children) => <PropertyViewDropDownComp {...children}></PropertyViewDropDownComp>);
155155
}
156156
return builder
157157
.build();

client/packages/lowcoder/src/comps/comps/buttonComp/floatButtonComp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import { IconControl } from "comps/controls/iconControl";
1414
import styled from "styled-components";
1515
import { ButtonEventHandlerControl } from "comps/controls/eventHandlerControl";
1616
import { manualOptionsControl } from "comps/controls/optionsControl";
17-
import {SetPropertyViewFloatButton} from "@lowcoder-ee/comps/comps/buttonComp/propertyView";
1817
import {viewMode} from "@lowcoder-ee/util/editor";
19-
18+
import React from "react";
19+
const PropertyViewFloatButton = React.lazy( async () => await import("./propertyView").then(module => ({default: module.PropertyViewFloatButton})))
2020
const StyledFloatButton = styled(FloatButton)<{
2121
$animationStyle: AnimationStyleType;
2222
}>`
@@ -136,7 +136,7 @@ let FloatButtonBasicComp = (function () {
136136
<FloatButtonView {...props} />
137137
)})
138138
if (viewMode() === "edit") {
139-
builder.setPropertyViewFn((children) => <SetPropertyViewFloatButton {...children}></SetPropertyViewFloatButton>);
139+
builder.setPropertyViewFn((children) => <PropertyViewFloatButton {...children}></PropertyViewFloatButton>);
140140
}
141141
return builder
142142
.build();

client/packages/lowcoder/src/comps/comps/buttonComp/linkComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { RefControl } from "comps/controls/refControl";
1616

1717
import React from "react";
1818
import {viewMode} from "@lowcoder-ee/util/editor";
19-
const SetPropertyViewLinkComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.SetPropertyViewLinkComp})))
19+
const PropertyViewLinkComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.PropertyViewLinkComp})))
2020

2121
const Link = styled(Button)<{
2222
$style: LinkStyleType;
@@ -112,7 +112,7 @@ const LinkTmpComp = (function () {
112112
);
113113
})
114114
if (viewMode() === "edit") {
115-
builder.setPropertyViewFn((children) => <SetPropertyViewLinkComp {...children}></SetPropertyViewLinkComp>);
115+
builder.setPropertyViewFn((children) => <PropertyViewLinkComp {...children}></PropertyViewLinkComp>);
116116
}
117117
return builder
118118
.setExposeMethodConfigs(buttonRefMethods)

client/packages/lowcoder/src/comps/comps/buttonComp/propertyView.tsx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function isDefault(type?: string) {
88
return !type;
99
}
1010

11-
const SetPropertyViewButtonComp = ((children: any) => {
11+
const PropertyViewButtonComp = ((children: any) => {
1212
const editorModeStatus = useContext(EditorContext).editorModeStatus;
1313

1414
return (
@@ -46,7 +46,7 @@ const SetPropertyViewButtonComp = ((children: any) => {
4646
});
4747

4848

49-
const SetPropertyViewDropDownComp = ((children: any) => {
49+
const PropertyViewDropDownComp = ((children: any) => {
5050
const editorModeStatus = useContext(EditorContext).editorModeStatus;
5151
return (
5252
<>
@@ -77,7 +77,7 @@ const SetPropertyViewDropDownComp = ((children: any) => {
7777
});
7878

7979

80-
const SetPropertyViewScannerComp = ((children: any) => {
80+
const PropertyViewScannerComp = ((children: any) => {
8181
const editorModeStatus = useContext(EditorContext).editorModeStatus;
8282
return (
8383
<>
@@ -107,7 +107,7 @@ const SetPropertyViewScannerComp = ((children: any) => {
107107
);
108108
});
109109

110-
const SetPropertyViewToggleButton = ((children: any) => {
110+
const PropertyViewToggleButton = ((children: any) => {
111111
const editorModeStatus = useContext(EditorContext).editorModeStatus;
112112
return (
113113
<>
@@ -165,7 +165,7 @@ const SetPropertyViewToggleButton = ((children: any) => {
165165
);
166166
});
167167

168-
const SetPropertyViewFloatButton = ((children: any) => {
168+
const PropertyViewFloatButton = ((children: any) => {
169169
const editorModeStatus = useContext(EditorContext).editorModeStatus;
170170
return (
171171
<>
@@ -190,7 +190,7 @@ const SetPropertyViewFloatButton = ((children: any) => {
190190
);
191191
});
192192

193-
const SetPropertyViewLinkComp = ((children: any) => {
193+
const PropertyViewLinkComp = ((children: any) => {
194194
const editorModeStatus = useContext(EditorContext).editorModeStatus;
195195
return (
196196
<>
@@ -221,9 +221,4 @@ const SetPropertyViewLinkComp = ((children: any) => {
221221
);
222222
});
223223

224-
225-
226-
227-
228-
229-
export {SetPropertyViewLinkComp, SetPropertyViewFloatButton, SetPropertyViewToggleButton, SetPropertyViewScannerComp, SetPropertyViewButtonComp, SetPropertyViewDropDownComp};
224+
export {PropertyViewLinkComp, PropertyViewFloatButton, PropertyViewToggleButton, PropertyViewScannerComp, PropertyViewButtonComp, PropertyViewDropDownComp};

client/packages/lowcoder/src/comps/comps/buttonComp/scannerComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { BoolControl } from "comps/controls/boolControl";
2323
import type { ItemType } from "antd/es/menu/interface";
2424
import { RefControl } from "comps/controls/refControl";
2525
import {viewMode} from "@lowcoder-ee/util/editor";
26-
const SetPropertyViewScannerComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.SetPropertyViewScannerComp})))
26+
const PropertyViewScannerComp = React.lazy( async () => await import("./propertyView").then(module => ({default: module.PropertyViewScannerComp})))
2727

2828
const Error = styled.div`
2929
color: #f5222d;
@@ -212,7 +212,7 @@ const ScannerTmpComp = (function () {
212212
);
213213
})
214214
if (viewMode() === "edit") {
215-
builder.setPropertyViewFn((children) => <SetPropertyViewScannerComp {...children}></SetPropertyViewScannerComp>);
215+
builder.setPropertyViewFn((children) => <PropertyViewScannerComp {...children}></PropertyViewScannerComp>);
216216
}
217217
return builder
218218
.setExposeMethodConfigs(buttonRefMethods)

0 commit comments

Comments
 (0)