# FwBook

## Properties

| Property                | Type      | Default    | Description                          |
| ----------------------- | --------- | ---------- | ------------------------------------ |
| `styleForPageMain`      | `Object`  | `{}`       | Styles for main page                 |
| `styleForPageIndex`     | `Object`  | `{}`       | Styles for index page                |
| `data`                  | `Array`   | `required` | Page data                            |
| `turnPageByHand`        | `Boolean` | `true`     | Whether to allow manual page turning |
| `initPage`              | `Number`  | `1`        | Initial page                         |
| `autoNextPage`          | `Boolean` | `false`    | Whether to turn pages automatically  |
| `autoNextPageDelayTime` | `Number`  | `3000`     | Residence time per page              |
| `loop`                  | `Boolean` | `false`    | Enable loop                          |
| `duration`              | `Number`  | `1000`     | Page turning animation time          |
| `showPageIndex`         | `Boolean` | `true`     | Show page number                     |
| `startPageIndex`        | `Number`  | `0`        | Page number start index              |
| `endPageIndex`          | `Number`  | `9999`     | End of page index                    |

## Slots

| Slot Name | Data            | Description                                     |
| --------- | --------------- | ----------------------------------------------- |
| `page`    | `{page, index}` | For rendering custom content for `page` object  |

## **Events**

| Event             | Arguments                                                                  | Description                        |
| ----------------- | -------------------------------------------------------------------------- | ---------------------------------- |
| `next`            | <ol><li>Current page</li><li>Page index</li><li>Page data</li></ol>        | Emitted when flipping to next page |
| `prev`            | <p></p><ol><li>Current page</li><li>Page index</li><li>Page data</li></ol> | Emitted when flipping to next page |
| `indexPageChange` | <ol><li>Page index</li></ol>                                               | Emitted when page index changes    |
