From bf297537e6e9ce5ec2d99acd654de0fd90f3410a Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Sat, 12 Mar 2022 17:57:42 +0800 Subject: [PATCH] fixed 6e7fb30 from https://gitee.com/superFat/developtools_ace-ets2bundle/pulls/332 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 000000000..e03ec3f6f --- /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 c7fe3d1b0..8d8360848 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']); -- Gitee