:: BASE_DOC ::
name | type | default | description | required |
---|---|---|---|---|
align | String | center | 0.29.0 。options: center/left |
N |
cancel-text | String | - | - | N
count | Number | 8 | - | N
description | String | - | 0.29.0
| N
items | Array | - | required。Typescript:Array<string \| ActionSheetItem>
interface ActionSheetItem {label: string; color?: string; disabled?: boolean;icon?: string;suffixIcon?: string; }
。see more ts definition | Y
popup-props | Object | {} | - | N
show-cancel | Boolean | true | - | N
show-overlay | Boolean | true | - | N
theme | String | list | options: list/grid | N
visible | Boolean | false | required | Y
default-visible | Boolean | undefined | required。uncontrolled property | Y
name | params | description |
---|---|---|
cancel | - | - |
close | (trigger: TriggerSource) |
see more ts definition。type TriggerSource = 'overlay' \| 'command' \| 'select' |
selected | (selected: ActionSheetItem \| string, index: number) |
- |
The component provides the following CSS variables, which can be used to customize styles.
Name | Default Value | Description
-- | -- | --
--td-action-sheet-border-color | @gray-color-1 | -
--td-action-sheet-border-radius | @radius-extra-large | -
--td-action-sheet-cancel-color | @font-gray-1 | -
--td-action-sheet-cancel-height | 96rpx | -
--td-action-sheet-color | @font-gray-1 | -
--td-action-sheet-description-color | @font-gray-3 | -
--td-action-sheet-list-item-disabled-color | @font-gray-4 | -
--td-action-sheet-list-item-height | 112rpx | -
--td-action-sheet-text-align | center | -