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

Commit470afcb

Browse files
committed
initial code
1 parent9ec5282 commit470afcb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

‎client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
hiddenPropertyView,
3333
ChangeEventHandlerControl,
3434
DragEventHandlerControl,
35+
CalendarEventHandlerControl,
3536
Section,
3637
sectionNames,
3738
dropdownControl,
@@ -76,7 +77,7 @@ let childrenMap: any = {
7677
resourcesEvents:jsonValueExposingStateControl("resourcesEvents",resourcesEventsDefaultData),
7778
resources:jsonValueExposingStateControl("resources",resourcesDefaultData),
7879
resourceName:withDefault(StringControl,trans("calendar.resourcesDefault")),
79-
onEvent:ChangeEventHandlerControl,
80+
onEvent:CalendarEventHandlerControl,
8081
// onDropEvent: safeDragEventHandlerControl,
8182
editable:withDefault(BoolControl,true),
8283
showEventTime:withDefault(BoolControl,true),
@@ -287,6 +288,10 @@ let CalendarBasicComp = (function () {
287288
}
288289

289290
consthandleDbClick=()=>{
291+
console.log("props.events",props.events)
292+
console.log("props.onEvent",props.onEvent)
293+
console.log("props",props)
294+
290295
constevent=props.events.value.find(
291296
(item:EventType)=>item.id===editEvent.current?.id
292297
)asEventType;

‎client/packages/lowcoder/src/comps/controls/eventHandlerControl.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,11 @@ export const DragEventHandlerControl = eventHandlerControl([
700700
dropEvent,
701701
]asconst);
702702

703+
exportconstCalendarEventHandlerControl=eventHandlerControl([
704+
changeEvent,
705+
doubleClickEvent,
706+
]asconst);
707+
703708
exportconstElementEventHandlerControl=eventHandlerControl([
704709
openEvent,
705710
editedEvent,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp