ts-appendix-enums.md 3.4 KB
Newer Older
Z
zengyawen 已提交
1
# Built-in Enums
Z
zengyawen 已提交
2 3


Z
zengyawen 已提交
4
## Alignment Enums
Z
zengyawen 已提交
5

Z
zengyawen 已提交
6 7
  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
8 9 10 11 12 13 14 15 16
| TopStart | Top start. | 
| Top | Horizontally centered on the top. | 
| TopEnd | Top end. | 
| Start | Vertically centered start. | 
| Center | Horizontally and vertically centered. | 
| End | Vertically centered end. | 
| BottomStart | Bottom start. | 
| Bottom | Horizontally centered on the bottom. | 
| BottomEnd | Bottom end. | 
Z
zengyawen 已提交
17 18


Z
zengyawen 已提交
19
## Axis Enums
Z
zengyawen 已提交
20

Z
zengyawen 已提交
21 22
  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
23 24
| Vertical | Vertical direction. | 
| Horizontal | Horizontal direction. | 
Z
zengyawen 已提交
25 26


Z
zengyawen 已提交
27
## ItemAlign Enums
Z
zengyawen 已提交
28

Z
zengyawen 已提交
29 30
  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
31 32 33 34 35 36
| Auto | The default configuration in the Flex container is used. | 
| Start | The elements are in the Flex container, top-aligned in the cross-axis direction | 
| Center | The elements are in the Flex container, centered in the cross-axis direction. | 
| End | The elements are in the Flex container, bottom-aligned in the cross-axis direction. | 
| Stretch | The elements are in the Flex container, stretched and padded in the cross-axis direction. If the size is not set, the elements are stretched to the container size. | 
| Baseline | The elements are in the Flex container, text baseline aligned in the cross-axis direction. | 
Z
zengyawen 已提交
37 38


Z
zengyawen 已提交
39
## LineCapStyle Enums
Z
zengyawen 已提交
40

Z
zengyawen 已提交
41 42
  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
43 44 45
| Butt | The ends of dividing lines are square. | 
| Round | The ends of dividing lines are rounded. | 
| Square | The ends of dividing lines are square. | 
Z
zengyawen 已提交
46 47


Z
zengyawen 已提交
48
## PlayMode Enums
Z
zengyawen 已提交
49

Z
zengyawen 已提交
50 51
  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
52 53 54 55
| Normal | The animation is played normally. | 
| Reverse | The animation is played reversely. | 
| Alternate | The animation is played normally for an odd number of times (1, 3, 5...) and reversely for an even number of times (2, 4, 6...). | 
| AlternateReverse | The animation is played reversely for an odd number of times (1, 3, 5...) and normally for an even number of times (2, 4, 6...). | 
Z
zengyawen 已提交
56 57


Z
zengyawen 已提交
58
## ImageRepeat Enums
Z
zengyawen 已提交
59

Z
zengyawen 已提交
60 61
  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
62 63 64 65
| X | Images are repeatedly drawn only on the horizontal axis. | 
| Y | Images are repeatedly drawn only on the vertical axis. | 
| XY | Images are repeatedly drawn on both axes. | 
| NoRepeat | Images are not repeatedly drawn. | 
Z
zengyawen 已提交
66 67 68 69 70 71


## TextDecorationType Enums

  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
72 73 74 75
| Underline | Line under the text. | 
| LineThrough | Line through the text. | 
| Overline | Line over the text. | 
| None | No decorative lines. | 
Z
zengyawen 已提交
76 77 78 79 80 81


## TextCase Enums

  | Name | Description | 
| -------- | -------- |
E
esterzhou 已提交
82 83 84
| Normal | Normal case. | 
| LowerCase | All lowercase. | 
| UpperCase | All uppercase. | 
Z
zengyawen 已提交
85 86 87 88 89 90 91 92


## BarState Enums

  | Name | Description | 
| -------- | -------- |
| Off | Hide. | 
| On | Display. | 
E
esterzhou 已提交
93
| Auto | Display on demand (displays when the screen is touched and disappears after 2s). | 
Z
zengyawen 已提交
94 95 96 97 98 99 100 101 102

## LayoutDirection Enums

| Name          | Description                                                  |
| ------------- | ------------------------------------------------------------ |
| Row           | The child components are arranged in the same direction as the main axis runs along the rows. |
| Column        | The child components are arranged in the same direction as the main axis runs down the columns. |
| RowReverse    | The child components are arranged opposite to the **Row** direction. |
| ColumnReverse | The child components are arranged opposite to the **Column** direction. |
Z
zengyawen 已提交
103