Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/talltotal/vuepress-plugin-ppt
ppt plugin for vuepress
https://github.com/talltotal/vuepress-plugin-ppt
ppt vue vuepress-plugin
Last synced: about 4 hours ago
JSON representation
ppt plugin for vuepress
- Host: GitHub
- URL: https://github.com/talltotal/vuepress-plugin-ppt
- Owner: talltotal
- License: mit
- Created: 2019-06-04T03:57:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T13:38:03.000Z (almost 2 years ago)
- Last Synced: 2024-03-23T22:01:42.358Z (8 months ago)
- Topics: ppt, vue, vuepress-plugin
- Language: Vue
- Homepage: https://www.npmjs.com/package/@talltotal/vuepress-plugin-ppt
- Size: 1.03 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [@talltotal/vuepress-plugin-ppt](https://talltotal.github.io/vuepress-plugin-ppt/)
## install
```bash
yarn add -D @talltotal/vuepress-plugin-ppt
# OR npm install -D @talltotal/vuepress-plugin-ppt
```## Usage
### 在 `config.js` 中引入
```js
module.exports = {
plugins: ['@talltotal/vuepress-plugin-ppt']
}
```### 在 md 文档中使用
1. 在 `frontmatter` 增加 ppt 组件的配置,以及一些隐藏其他页面元素的设置
- `showPage` Boolean 是否显示分页下标
- `listStyle` Object 页面自定义样式,以页码为key
2. 正文部分用 `::: ppt` + `:::` 包裹,中间以 `----` 为分页标识> 另外,最好在组件外加个容器或自定义布局
>
> Additionally, you can add a container or custom layout outside the component```md
---
navbar: false
# ppt options
ppt:
title: '@talltotal/vuepress-plugin-ppt'
# whether to display pagination
showPage: true
# custom style apply on each page
baseStyle: 'text-shadow: 0 0 2px rgba(0,0,0,0.2);'
# custom page-style with page number as 'key'
listStyle:
1: 'background-image: url(/imgs/bg.jpg)'
---::: ppt
# page one
xxxx----
# page two
xxxx----
# page three
xxxx
:::
```### 操作
- 键盘
- ⬆️⬅️:上一张
- ⬇️➡️:下一张
- 手势
- 向左划:上一张
- 向右划:下一张