|
|
@@ -1,13 +1,14 @@
|
|
|
## NavBar Props
|
|
|
|
|
|
-| Name | Type | Default | Required | Description |
|
|
|
-| -------- | ------------------------------------------------------------------------- | ----------------------------- | -------- | ----------------------------------------------------------------------------------- |
|
|
|
-| title | `string` | Current language navBar.title | N | Title text. |
|
|
|
-| left | `'back'\|null`\|[`Icon`](https://stdf.design/#/components?nav=icon&tab=1) | `'back'` | N | Left content, `'back'` for back icon, `null` for no content, otherwise render icon. |
|
|
|
-| rights | [`Icon[]`](https://stdf.design/#/components?nav=icon&tab=1) | `[]` | N | Right content array of Icon Props, recommend no more than 3 icons. |
|
|
|
-| line | `boolean` | `true` | N | Whether to show bottom divider line. |
|
|
|
-| injClass | `string` | `''` | N | Inject CSS class name. |
|
|
|
-| love | `boolean` | `false` | N | Whether to enable care version. |
|
|
|
+| Name | Type | Default | Required | Description |
|
|
|
+| ---------- | ------------------------------------------------------------------------- | ----------------------------- | -------- | ----------------------------------------------------------------------------------- |
|
|
|
+| title | `string` | Current language navBar.title | N | Title text. |
|
|
|
+| titleAlign | `'left'\|'center'\|'right'` | `'left'` | N | Title alignment. |
|
|
|
+| left | `'back'\|null`\|[`Icon`](https://stdf.design/#/components?nav=icon&tab=1) | `'back'` | N | Left content, `'back'` for back icon, `null` for no content, otherwise render icon. |
|
|
|
+| rights | [`Icon[]`](https://stdf.design/#/components?nav=icon&tab=1) | `[]` | N | Right content array of Icon Props, recommend no more than 3 icons. |
|
|
|
+| line | `boolean` | `true` | N | Whether to show bottom divider line. |
|
|
|
+| injClass | `string` | `''` | N | Inject CSS class name. |
|
|
|
+| love | `boolean` | `false` | N | Whether to enable care version. |
|
|
|
|
|
|
## NavBar Events
|
|
|
|