From c3f96b6b118a762cf584e7ba40818027376c4951 Mon Sep 17 00:00:00 2001 From: wangsh88 Date: Mon, 21 Jul 2025 09:18:09 +0800 Subject: [PATCH] =?UTF-8?q?segmentbutton=201.2=E5=A4=B4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsh88 Change-Id: I9326a8e673c8360685ff0fc98ea4ccc104b486d3 --- api/@ohos.arkui.advanced.SegmentButton.d.ets | 25 +++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/api/@ohos.arkui.advanced.SegmentButton.d.ets b/api/@ohos.arkui.advanced.SegmentButton.d.ets index 1112cd8a2c..1055f15fb3 100644 --- a/api/@ohos.arkui.advanced.SegmentButton.d.ets +++ b/api/@ohos.arkui.advanced.SegmentButton.d.ets @@ -19,7 +19,16 @@ */ +/*** if arkts 1.2 */ +import { ResourceStr, SizeOptions, ResourceColor, VoidCallback, Dimension, LengthMetrics, PX, VP, FP, LPX, Resource, LocalizedPadding, Padding} from './arkui/component/units'; +import { State, Prop, Observed, ObjectLink, Link } from './arkui/stateManagement/decorator'; +import { Component } from './arkui/component/customComponent'; +import { Direction, FontWeight, } from './arkui/component/enums'; +import { BlurStyle } from './arkui/component/common'; +import { Callback } from '@ohos.base.d.ets' +import { BuilderParam, Builder } from './arkui/component/builder'; +/*** endif */ /** @@ -710,7 +719,8 @@ interface CommonSegmentButtonOptions { * @atomicservice * @since 12 */ -declare type ItemRestriction = [T, T, T?, T?, T?]; +declare type ItemRestriction = Array; + /** * Defines the SegmentButtonItemTuple type. @@ -1248,7 +1258,7 @@ declare class SegmentButtonItemOptionsArray extends Array): number; /** * Removes the last element from SegmentButtonItemOptionsArray. @@ -1307,7 +1317,7 @@ declare class SegmentButtonItemOptionsArray extends Array): number; /** * Changes the elements of SegmentButtonItemOptionsArray by removing or replacing existing elements and/or adding new elements in place. @@ -1871,6 +1881,15 @@ declare struct SegmentButton { * @since 13 */ onItemClicked?: Callback; + + /** + * The method to build component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @Builder build(): void; } export { -- Gitee