diff --git a/components/lib/orderlist/OrderList.d.ts b/components/lib/orderlist/OrderList.d.ts index 0c9679443..7cb0539d0 100755 --- a/components/lib/orderlist/OrderList.d.ts +++ b/components/lib/orderlist/OrderList.d.ts @@ -21,6 +21,7 @@ export interface OrderListPassThroughMethodOptions { instance: any; props: OrderListProps; state: OrderListState; + context: OrderListContext; } /** @@ -140,6 +141,22 @@ export interface OrderListState { focusedOptionIndex: number; } +/** + * Defines current options in OrderList component. + */ +export interface OrderListContext { + /** + * Current active state of the item as a boolean. + * @defaultValue false + */ + active: boolean; + /** + * Current focus state of the item as a boolean. + * @defaultValue false + */ + focused: boolean; +} + /** * Defines valid properties in OrderList component. */ diff --git a/components/lib/orderlist/OrderList.vue b/components/lib/orderlist/OrderList.vue index e9370d7ac0..3f730603f 100755 --- a/components/lib/orderlist/OrderList.vue +++ b/components/lib/orderlist/OrderList.vue @@ -2,28 +2,28 @@
- + - + - + - +