1
1
import {
2
- isValidColor ,
3
2
NameConfig ,
4
- NameConfigHidden ,
5
3
BoolControl ,
6
- UICompBuilder ,
7
4
withDefault ,
8
5
withExposingConfigs ,
9
- NumberControl ,
10
6
StringControl ,
11
- hiddenPropertyView ,
12
- ChangeEventHandlerControl ,
13
7
Section ,
14
8
sectionNames ,
15
- dropdownControl ,
16
9
styleControl ,
17
- ThemeContext ,
18
- CalendarStyle ,
19
- DateParser ,
20
- CustomModal ,
21
- jsonValueExposingStateControl ,
22
- CalendarDeleteIcon ,
23
- Tooltip ,
24
10
BooleanStateControl ,
25
11
AutoHeightControl ,
26
12
stringStateControl ,
27
13
InnerGrid ,
28
14
useUserViewMode ,
29
15
getData ,
30
- DrawerWrapper ,
31
16
gridItemCompToGridItems ,
32
17
Layers ,
33
18
isNumeric ,
34
19
EditorContext ,
35
20
withMethodExposing ,
36
21
eventHandlerControl ,
37
- EventOptions ,
38
22
DrawerStyle ,
39
23
PositionControl ,
40
24
jsonObjectExposingStateControl ,
@@ -43,10 +27,12 @@ import {
43
27
changeChildAction ,
44
28
HintPlaceHolder ,
45
29
styled ,
30
+ BackgroundColorContext ,
31
+ ContainerCompBuilder ,
32
+ closeEvent ,
46
33
} from "lowcoder-sdk" ;
47
34
48
- import { BackgroundColorContext } from "../../../../lowcoder/src/comps/utils/backgroundColorContext" ;
49
- import { ContainerCompBuilder } from "../../../../lowcoder/src/comps/comps/containerBase/containerCompBuilder" ;
35
+ const EventOptions = [ closeEvent ] as const ;
50
36
import { Button } from "antd-mobile" ;
51
37
import { trans , getCalendarLocale } from "../../i18n/comps" ;
52
38
import {
@@ -55,7 +41,10 @@ import {
55
41
FirstDayOptions ,
56
42
} from "./calendarConstants" ;
57
43
import { default as CloseOutlined } from "@ant-design/icons/CloseOutlined" ;
58
-
44
+ const DrawerWrapper = styled . div `
45
+ // Shield the mouse events of the lower layer, the mask can be closed in the edit mode to prevent the lower layer from sliding
46
+ pointer-events: auto;
47
+ ` ;
59
48
import AgoraRTC , {
60
49
type ICameraVideoTrack ,
61
50
type IMicrophoneAudioTrack ,
@@ -64,6 +53,7 @@ import AgoraRTC, {
64
53
type UID ,
65
54
type ILocalVideoTrack ,
66
55
} from "agora-rtc-sdk-ng" ;
56
+
67
57
import type { RtmChannel , RtmClient } from "agora-rtm-sdk" ;
68
58
import { useCallback , useContext , useEffect , useState } from "react" ;
69
59
// import { Drawer, changeChildAction } from "lowcoder-sdk/src";
@@ -98,34 +88,34 @@ let screenShareStream: ILocalVideoTrack;
98
88
let userId : UID | null | undefined ;
99
89
let rtmChannelResponse : RtmChannel ;
100
90
let rtmClient : RtmClient ;
101
- const ButtonStyle = styled ( Button ) `
102
- position: absolute;
103
- left: 0;
104
- top: 0;
105
- z-index: 10;
106
- font-weight: 700;
107
- box-shadow: none;
108
- color: rgba(0, 0, 0, 0.45);
109
- height: 54px;
110
- width: 54px;
111
-
112
- svg {
113
- width: 16px;
114
- height: 16px;
115
- }
116
-
117
- &,
118
- :hover,
119
- :focus {
120
- background-color: transparent;
121
- border: none;
122
- }
123
-
124
- :hover,
125
- :focus {
126
- color: rgba(0, 0, 0, 0.75);
127
- }
128
- ` ;
91
+ // const ButtonStyle = styled(Button)`
92
+ // position: absolute;
93
+ // left: 0;
94
+ // top: 0;
95
+ // z-index: 10;
96
+ // font-weight: 700;
97
+ // box-shadow: none;
98
+ // color: rgba(0, 0, 0, 0.45);
99
+ // height: 54px;
100
+ // width: 54px;
101
+
102
+ // svg {
103
+ // width: 16px;
104
+ // height: 16px;
105
+ // }
106
+
107
+ // &,
108
+ // :hover,
109
+ // :focus {
110
+ // background-color: transparent;
111
+ // border: none;
112
+ // }
113
+
114
+ // :hover,
115
+ // :focus {
116
+ // color: rgba(0, 0, 0, 0.75);
117
+ // }
118
+ // `;
129
119
const turnOnCamera = async ( flag ?: boolean ) => {
130
120
if ( videoTrack ) {
131
121
return videoTrack . setEnabled ( flag ! ) ;
@@ -532,10 +522,10 @@ let MTComp = (function () {
532
522
? transToPxSize ( props . height || DEFAULT_SIZE )
533
523
: ""
534
524
}
535
- onClose = { ( e ) => {
525
+ onClose = { ( e : any ) => {
536
526
props . visible . onChange ( false ) ;
537
527
} }
538
- afterOpenChange = { ( visible ) => {
528
+ afterOpenChange = { ( visible : any ) => {
539
529
if ( ! visible ) {
540
530
props . onEvent ( "close" ) ;
541
531
}
@@ -544,13 +534,14 @@ let MTComp = (function () {
544
534
maskClosable = { props . maskClosable }
545
535
mask = { props . showMask }
546
536
>
547
- < ButtonStyle
537
+ < p > sfsd</ p >
538
+ { /* <ButtonStyle
548
539
onClick={() => {
549
540
props.visible.onChange(false);
550
541
}}
551
542
>
552
543
<CloseOutlined />
553
- </ ButtonStyle >
544
+ </ButtonStyle> */ }
554
545
< InnerGrid
555
546
{ ...otherContainerProps }
556
547
items = { gridItemCompToGridItems ( items ) }
0 commit comments