From d7a92d8f418d7e4e4a98d2fcd769e445f7e86197 Mon Sep 17 00:00:00 2001 From: luoying_ace_admin Date: Fri, 22 Aug 2025 11:38:07 +0800 Subject: [PATCH] add new container picker Signed-off-by: luoying_ace_admin Change-Id: Id22b55a955b51e0fc0e8806f33c1a807675b76d0 --- compiler/build_declarations_file.js | 2 +- compiler/components/picker.json | 17 +++++++++++++++++ compiler/tsconfig.esm.json | 6 ++++++ compiler/tsconfig.json | 6 ++++++ 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 compiler/components/picker.json diff --git a/compiler/build_declarations_file.js b/compiler/build_declarations_file.js index 32e8933ba..f6ad30e22 100644 --- a/compiler/build_declarations_file.js +++ b/compiler/build_declarations_file.js @@ -25,7 +25,7 @@ const addTSAttributeSet = ['AlphabetIndexer', 'Animator', 'Badge', 'Blank', 'But 'Divider', 'Ellipse', 'Flex', 'FormComponent', 'Gauge', 'Grid', 'GridItem', 'GridContainer', 'Image', 'ImageAnimator', 'IndicatorComponent', 'LazyVGridLayout', 'Line', 'List', 'ListItem', 'ListItemGroup', 'LoadingProgress', 'Marquee', 'Navigation', 'Navigator', - 'Panel', 'Path', 'PatternLock', 'Piece', 'PluginComponent', 'Polygon', 'Polyline', 'Progress', + 'Panel', 'Path', 'PatternLock', 'Picker', 'Piece', 'PluginComponent', 'Polygon', 'Polyline', 'Progress', 'QRCode', 'Radio', 'Rating', 'Rect', 'Refresh', 'Row', 'RowSplit', 'Scroll', 'ScrollBar', 'Search', 'Select', 'Shape', 'Sheet', 'Slider', 'Span', 'Stack', 'Stepper', 'StepperItem', 'Swiper', 'TabContent', 'Tabs', 'Text', 'TextArea', 'TextClock', 'TextInput', 'TextPicker', 'TextTimer', diff --git a/compiler/components/picker.json b/compiler/components/picker.json new file mode 100644 index 000000000..1eb016270 --- /dev/null +++ b/compiler/components/picker.json @@ -0,0 +1,17 @@ +{ + "name": "Picker", + "children": [ + "SymbolGlyph", + "Text", + "Image", + "Row" + ], + "attrs": [ + "onChange", + "onScrollStop", + "canLoop", + "enableHapticFeedback", + "selectedTextStyle", + "selectionIndicator" + ] +} diff --git a/compiler/tsconfig.esm.json b/compiler/tsconfig.esm.json index ac40f8187..2f3a66769 100755 --- a/compiler/tsconfig.esm.json +++ b/compiler/tsconfig.esm.json @@ -218,6 +218,7 @@ "Panel", "Path", "PatternLock", + "Picker", "Piece", "PlatformView", "PluginComponent", @@ -580,6 +581,11 @@ "type": "PatternLockAttribute", "instance": "PatternLockInstance" }, + { + "name": "Picker", + "type": "PickerAttribute", + "instance": "PickerInterface" + }, { "name": "Piece", "type": "PieceAttribute", diff --git a/compiler/tsconfig.json b/compiler/tsconfig.json index e7ee165ec..26e930894 100644 --- a/compiler/tsconfig.json +++ b/compiler/tsconfig.json @@ -224,6 +224,7 @@ "Particle", "Path", "PatternLock", + "Picker", "Piece", "PlatformView", "PluginComponent", @@ -614,6 +615,11 @@ "type": "PatternLockAttribute", "instance": "PatternLockInstance" }, + { + "name": "Picker", + "type": "PickerAttribute", + "instance": "PickerInterface" + }, { "name": "Piece", "type": "PieceAttribute", -- Gitee