diff --git a/compiler/build_declarations_file.js b/compiler/build_declarations_file.js index 32e8933ba7180486fc1142920d3ed66f4238abe1..f6ad30e22e3d0557049678668ae5148555a52ebe 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 0000000000000000000000000000000000000000..1eb0162703e805dfa2af7236f9bef1a5ea775b81 --- /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 ac40f818704f2b419740034ec495cfe2b89782e6..2f3a667698af029c735e4d9d289cd33f2ea3875c 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 e7ee165ec8924d5a143b49209e55a7fe5f1d15da..26e930894485b574d7855d3ad30ef4a8e30697a4 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",