Movatterモバイル変換


[0]ホーム

URL:


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

Commit8ab3816

Browse files
committed
Changed SetPropertyView to PropertyView
1 parent8b08fb4 commit8ab3816

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-
constSetPropertyViewFn=React.lazy(async()=>awaitimport("./propertyView"));
50+
constPropertyView=React.lazy(async()=>awaitimport("./propertyView"));
5151
constInputStyle=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
returnbuilder
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
importReactfrom"react";
1212

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

8484

85-
exportdefaultSetPropertyViewFn
85+
exportdefaultPropertyView;

‎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
importReact,{ReactElement,useContext}from"react";
3333
import{CompNameContext,EditorContext}from"../editorState";
3434
import{viewMode}from"@lowcoder-ee/util/editor";
35-
constSetPropertyViewFn=React.lazy(async()=>awaitimport("@lowcoder-ee/comps/comps/propertyView/avatar"));
35+
constPropertyView=React.lazy(async()=>awaitimport("@lowcoder-ee/comps/comps/propertyView/avatar"));
3636

3737
constAvatarWrapper=styled(Avatar)<AvatarProps&{$cursorPointer?:boolean,$style:AvatarStyleType}>`
3838
background:${(props)=>props.$style.background};
@@ -199,7 +199,7 @@ let AvatarBasicComp = (function () {
199199
letbuilder=newUICompBuilder(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
returnbuilder
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-
constSetPropertyViewAvatarGroup1=React.lazy(async()=>awaitimport("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module=>({default:module.SetPropertyViewAvatarGroup1})))
23-
constSetPropertyViewAvatarGroup2=React.lazy(async()=>awaitimport("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module=>({default:module.SetPropertyViewAvatarGroup2})))
22+
constPropertyViewAvatarGroup1=React.lazy(async()=>awaitimport("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module=>({default:module.PropertyViewAvatarGroup1})))
23+
constPropertyViewAvatarGroup2=React.lazy(async()=>awaitimport("@lowcoder-ee/comps/comps/propertyView/avatarGroup").then(module=>({default:module.PropertyViewAvatarGroup2})))
2424
constMacaroneList=[
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
constDropdownOptionBuilder=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
returnbuilder
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-
constSetPropertyViewButtonComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.SetPropertyViewButtonComp})))
27+
constPropertyViewButtonComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.PropertyViewButtonComp})))
2828
constFormLabel=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
returnbuilder

‎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-
constSetPropertyViewDropDownComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.SetPropertyViewDropDownComp})))
23+
constPropertyViewDropDownComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.PropertyViewDropDownComp})))
2424

2525
constStyledDropdownButton=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
returnbuilder
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
importstyledfrom"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+
importReactfrom"react";
19+
constPropertyViewFloatButton=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.PropertyViewFloatButton})))
2020
constStyledFloatButton=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
returnbuilder
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
importReactfrom"react";
1818
import{viewMode}from"@lowcoder-ee/util/editor";
19-
constSetPropertyViewLinkComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.SetPropertyViewLinkComp})))
19+
constPropertyViewLinkComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.PropertyViewLinkComp})))
2020

2121
constLink=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
returnbuilder
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-
constSetPropertyViewButtonComp=((children:any)=>{
11+
constPropertyViewButtonComp=((children:any)=>{
1212
consteditorModeStatus=useContext(EditorContext).editorModeStatus;
1313

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

4848

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

7979

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

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

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

193-
constSetPropertyViewLinkComp=((children:any)=>{
193+
constPropertyViewLinkComp=((children:any)=>{
194194
consteditorModeStatus=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
importtype{ItemType}from"antd/es/menu/interface";
2424
import{RefControl}from"comps/controls/refControl";
2525
import{viewMode}from"@lowcoder-ee/util/editor";
26-
constSetPropertyViewScannerComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.SetPropertyViewScannerComp})))
26+
constPropertyViewScannerComp=React.lazy(async()=>awaitimport("./propertyView").then(module=>({default:module.PropertyViewScannerComp})))
2727

2828
constError=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
returnbuilder
218218
.setExposeMethodConfigs(buttonRefMethods)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp