1
- import { CompParams } from ' lowcoder-core' ;
2
- import { ToDataType } from ' comps/generators/multi' ;
1
+ import { CompParams } from " lowcoder-core" ;
2
+ import { ToDataType } from " comps/generators/multi" ;
3
3
import {
4
4
NameConfigHidden ,
5
5
withExposingConfigs ,
6
- } from ' comps/generators/withExposing' ;
7
- import { NameGenerator } from ' comps/utils/nameGenerator' ;
8
- import { Section , sectionNames } from ' lowcoder-design' ;
9
- import { oldContainerParamsToNew } from ' ../containerBase' ;
10
- import { toSimpleContainerData } from ' ../containerBase/simpleContainerComp' ;
11
- import { TriContainer } from ' ../triContainerComp/triContainer' ;
6
+ } from " comps/generators/withExposing" ;
7
+ import { NameGenerator } from " comps/utils/nameGenerator" ;
8
+ import { Section , sectionNames } from " lowcoder-design" ;
9
+ import { oldContainerParamsToNew } from " ../containerBase" ;
10
+ import { toSimpleContainerData } from " ../containerBase/simpleContainerComp" ;
11
+ import { TriContainer } from " ../triContainerComp/triContainer" ;
12
12
import {
13
13
ContainerChildren ,
14
14
ContainerCompBuilder ,
15
- } from ' ../triContainerComp/triContainerCompBuilder' ;
15
+ } from " ../triContainerComp/triContainerCompBuilder" ;
16
16
import {
17
17
disabledPropertyView ,
18
18
hiddenPropertyView ,
19
- } from ' comps/utils/propertyUtils' ;
20
- import { trans } from ' i18n' ;
21
- import { BoolCodeControl } from ' comps/controls/codeControl' ;
22
- import { DisabledContext } from ' comps/generators/uiCompBuilder' ;
23
- import React , { useContext } from ' react' ;
24
- import { EditorContext } from ' comps/editorState' ;
25
- import { AnimationStyle , styleControl } from ' @lowcoder-ee/index.sdk' ;
19
+ } from " comps/utils/propertyUtils" ;
20
+ import { trans } from " i18n" ;
21
+ import { BoolCodeControl } from " comps/controls/codeControl" ;
22
+ import { DisabledContext } from " comps/generators/uiCompBuilder" ;
23
+ import React , { useContext } from " react" ;
24
+ import { EditorContext } from " comps/editorState" ;
25
+ import { AnimationStyle , styleControl } from " @lowcoder-ee/index.sdk" ;
26
26
27
27
export const ContainerBaseComp = ( function ( ) {
28
28
const childrenMap = {
@@ -39,16 +39,16 @@ export const ContainerBaseComp = (function () {
39
39
. setPropertyViewFn ( ( children ) => {
40
40
return (
41
41
< >
42
- { ( useContext ( EditorContext ) . editorModeStatus === ' logic' ||
43
- useContext ( EditorContext ) . editorModeStatus === ' both' ) && (
42
+ { ( useContext ( EditorContext ) . editorModeStatus === " logic" ||
43
+ useContext ( EditorContext ) . editorModeStatus === " both" ) && (
44
44
< Section name = { sectionNames . interaction } >
45
45
{ disabledPropertyView ( children ) }
46
46
{ hiddenPropertyView ( children ) }
47
47
</ Section >
48
48
) }
49
49
50
- { ( useContext ( EditorContext ) . editorModeStatus === ' layout' ||
51
- useContext ( EditorContext ) . editorModeStatus === ' both' ) && (
50
+ { ( useContext ( EditorContext ) . editorModeStatus === " layout" ||
51
+ useContext ( EditorContext ) . editorModeStatus === " both" ) && (
52
52
< >
53
53
< Section name = { sectionNames . layout } >
54
54
{ children . container . getPropertyView ( ) }
@@ -60,17 +60,17 @@ export const ContainerBaseComp = (function () {
60
60
{ children . animationStyle . getPropertyView ( ) }
61
61
</ Section >
62
62
{ children . container . children . showHeader . getView ( ) && (
63
- < Section name = { ' Header Style' } >
63
+ < Section name = { " Header Style" } >
64
64
{ children . container . headerStylePropertyView ( ) }
65
65
</ Section >
66
66
) }
67
67
{ children . container . children . showBody . getView ( ) && (
68
- < Section name = { ' Body Style' } >
68
+ < Section name = { " Body Style" } >
69
69
{ children . container . bodyStylePropertyView ( ) }
70
70
</ Section >
71
71
) }
72
72
{ children . container . children . showFooter . getView ( ) && (
73
- < Section name = { ' Footer Style' } >
73
+ < Section name = { " Footer Style" } >
74
74
{ children . container . footerStylePropertyView ( ) }
75
75
</ Section >
76
76
) }
@@ -92,7 +92,7 @@ function convertOldContainerParams(params: CompParams<any>) {
92
92
// old params
93
93
if (
94
94
container &&
95
- ( container . hasOwnProperty ( ' layout' ) || container . hasOwnProperty ( ' items' ) )
95
+ ( container . hasOwnProperty ( " layout" ) || container . hasOwnProperty ( " items" ) )
96
96
) {
97
97
const autoHeight = tempParams . value . autoHeight ;
98
98
const scrollbars = tempParams . value . scrollbars ;
@@ -135,14 +135,14 @@ export function defaultContainerData(
135
135
header : toSimpleContainerData ( [
136
136
{
137
137
item : {
138
- compType : ' text' ,
139
- name : nameGenerator . genItemName ( ' containerTitle' ) ,
138
+ compType : " text" ,
139
+ name : nameGenerator . genItemName ( " containerTitle" ) ,
140
140
comp : {
141
- text : ' ### ' + trans ( ' container.title' ) ,
141
+ text : " ### " + trans ( " container.title" ) ,
142
142
} ,
143
143
} ,
144
144
layoutItem : {
145
- i : '' ,
145
+ i : "" ,
146
146
h : 5 ,
147
147
w : 24 ,
148
148
x : 0 ,
0 commit comments