-
Notifications
You must be signed in to change notification settings - Fork 28
docs: add docs for carousel and config-provider #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Change-Id: I7c9dd8f4cea8c1fef036a53f35ab6163e05587c0
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/ecomfe/veui-docs/4KqvH4FTkWg2Fs6TjYV41b2kEroM |
one/docs/components/carousel.md
Outdated
|
||
使用 `indicator` 属性来指定进度指示器类型。 | ||
|
||
使用 `controls-position` 属性来切换按钮相对于布局方向的位置。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
controls-position
放到 vertical
的 demo 里面去吧?
one/docs/components/carousel.md
Outdated
| `indicator-position` | `'outside' | 'inside'` | `inside` | 用于支持指示器显示在轮播容器的内部/外部。 | | ||
| `controls-position` | `'outside' | 'inside'` | `inside` | 用于支持切换按钮相对于布局方向的位置。 | | ||
| `slide-aspect-ratio` | `number= | '${number}/${number}'` | - | 指定不同轮播项类型的默认配置。 | | ||
| `options` | `object=` | `{ video: { muted: true, autoplay: true, controls: true, loop: true } }` | 用于指定每个轮播项的纵横比。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `options` | `object=` | `{ video: { muted: true, autoplay: true, controls: true, loop: true } }` | 用于指定每个轮播项的纵横比。 | | |
| `options` | `Object=` | `{ video: { muted: true, autoplay: true, controls: true, loop: true } }` | 用于指定每个轮播项的纵横比。 | |
one/docs/components/carousel.md
Outdated
| `slide-aspect-ratio` | `number= | '${number}/${number}'` | - | 指定不同轮播项类型的默认配置。 | | ||
| `options` | `object=` | `{ video: { muted: true, autoplay: true, controls: true, loop: true } }` | 用于指定每个轮播项的纵横比。 | | ||
| `slides-per-view` | `number=` | `1` | 指定同时显示多少个轮播项。 | | ||
| `slides-per-group` | `number=` | `1` | 指定每次前后切换的一组包含多少个轮播项。 | | ||
|
||
^^^datasource | ||
轮播图数据源,项目类型为:`{src, alt, label}`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
轮播图数据源,项目类型为:`{src, alt, label}`。 | |
轮播图数据源,项目类型为:`{src, alt, label, type}`。 |
|
||
## 示例 | ||
|
||
### 配置 `Select` 的 placeholder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 配置 `Select` 的 placeholder | |
### 配置 `Select` 的 `placeholder` |
|
||
### 配置 `Select` 的 placeholder | ||
|
||
可选的尺寸 `ui` 属性值:`s`/`m`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可选的尺寸 `ui` 属性值:`s`/`m`。 |
|
||
| 名称 | 描述 | | ||
| -- | -- | | ||
| `default` | 直接渲染出来,其中 `VEUI` 的组件会响应对应的配置值。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `default` | 直接渲染出来,其中 `VEUI` 的组件会响应对应的配置值。 | | |
| `default` | 需要接收配置的内容,其中 VEUI 的组件会响应对应的配置值。 | |
one/docs/demo/carousel/indicator.vue
Outdated
</section> | ||
<section> | ||
<veui-carousel | ||
:datasource="items" | ||
:indicator="indicator" | ||
:indicator-position="indicatorPosition" | ||
:indicator-alignment="alignment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉 Carousel 的 indicator-alignment
可以缩短成 indicator-align
,太长了,类似 CSS 的 vertical-align
就行。
Change-Id: I1b868d7a3fffed2a5cf13a1b650e42bb06357d3f
No description provided.