From 4df594fcb801ac78eb3dde49271d2916575dc09c Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Sat, 12 Mar 2022 17:57:42 +0800 Subject: [PATCH] add TimePicker Signed-off-by: yaoyuchi --- compiler/components/timePicker.json | 4 ++++ compiler/src/component_map.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 compiler/components/timePicker.json diff --git a/compiler/components/timePicker.json b/compiler/components/timePicker.json new file mode 100644 index 0000000..e03ec3f --- /dev/null +++ b/compiler/components/timePicker.json @@ -0,0 +1,4 @@ +{ + "name": "TimePicker", + "attrs": ["onChange", "useMilitaryTime"] +} \ No newline at end of file diff --git a/compiler/src/component_map.ts b/compiler/src/component_map.ts index c7fe3d1..8d83608 100644 --- a/compiler/src/component_map.ts +++ b/compiler/src/component_map.ts @@ -86,7 +86,8 @@ export const JS_BIND_COMPONENTS: Set = new Set([ 'TabsController', 'CalendarController', 'AbilityController', 'VideoController', 'WebController', 'XComponentController', 'CanvasRenderingContext2D', 'CanvasGradient', 'ImageBitmap', 'ImageData', 'Path2D', 'RenderingContextSettings', 'OffscreenCanvasRenderingContext2D', 'DatePickerDialog', - 'TextPickerDialog', 'AlertDialog', 'ContextMenu', 'ActionSheet', 'PatternLockController' + 'TextPickerDialog', 'AlertDialog', 'ContextMenu', 'ActionSheet', 'PatternLockController', + 'TimePickerDialog' ]); export const NEEDPOP_COMPONENT: Set = new Set(['Blank', 'Search']);