🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3874470
feat(b-pagination): add page button class props and option to show fi…
jacobmllr95 Jan 14, 2020
1ed2ff7
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 14, 2020
2b35b11
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 14, 2020
9e64e15
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 14, 2020
baf5b6f
Update package.json
tmorehouse Jan 15, 2020
62a6448
Update package.json
tmorehouse Jan 15, 2020
9d24362
Update package.json
tmorehouse Jan 15, 2020
dd7eb52
Update package.json
tmorehouse Jan 15, 2020
77898c0
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
jacobmllr95 Jan 16, 2020
4842690
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 19, 2020
3a90dec
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 22, 2020
c0d5696
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 22, 2020
3f6ad95
Merge branch 'dev' into feat-pagination-btn-classes-and-first-last-nu…
tmorehouse Jan 23, 2020
538ea8e
chore(pagination): tweaks to pagination PR #4622 (#4667)
tmorehouse Jan 23, 2020
5fab7e0
Update pagination.spec.js
tmorehouse Jan 23, 2020
788574a
Update pagination.spec.js
tmorehouse Jan 23, 2020
ef4fc14
Update package.json
tmorehouse Jan 23, 2020
65b8994
Update package.json
tmorehouse Jan 23, 2020
d310883
Correct typos
jacobmllr95 Jan 23, 2020
cfe717a
Add docs
jacobmllr95 Jan 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/markdown/intro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ some good starting points would be:
- [Vue Guide](https://vuejs.org/v2/guide/)
- [Vue API](https://vuejs.org/v2/api/)
- [Bootstrap v{{bootstrapVersionMinor}} documentation](https://getbootstrap.com/)
- [Vue loader scoped CSS](https://vue-loader.vuejs.org/guide/scoped-css.html), if using scoped styles
in SFC (Single File Component) `.vue` files
- [Vue loader scoped CSS](https://vue-loader.vuejs.org/guide/scoped-css.html), if using scoped
styles in SFC (Single File Component) `.vue` files

## Documentation information

Expand Down
6 changes: 3 additions & 3 deletions src/components/dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export const props = {
default: false
},
menuClass: {
type: [String, Array],
type: [String, Array, Object],
default: null
},
toggleTag: {
type: String,
default: 'button'
},
toggleClass: {
type: [String, Array],
type: [String, Array, Object],
default: null
},
noCaret: {
Expand All @@ -61,7 +61,7 @@ export const props = {
default: () => getComponentConfig(NAME, 'splitVariant')
},
splitClass: {
type: [String, Array],
type: [String, Array, Object],
default: null
},
splitButtonType: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,8 @@ Example Confirm Message boxes
by default. You can enable the header close button by setting `hideHeaderClose: false` in the
options.
- Message Boxes will throw an error (promise rejection) if they are closed/destroyed before they are
hidden. Always include a `.catch(errHandler)` reject handler, event if using
the async `await` style code.
hidden. Always include a `.catch(errHandler)` reject handler, event if using the async `await`
style code.
- When using Vue Router (or similar), Message Boxes will close and reject if the route changes
before the modal hides. If you wish for the message box to remain open when the route changes, use
`this.$root.$bvModal` instead of `this.$bvModal`.
Expand Down
55 changes: 55 additions & 0 deletions src/components/pagination-nav/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,61 @@ The slot `page` is always scoped, while the slots `first-text`, `prev-text`, `ne
| `index` | Number | Page number (indexed from `0` to `numberOfPages -1`) |
| `disabled` | Boolean | If the page button is disabled |

### Goto first/last button type

If you prefer to have buttons with the first and last page number to go to the corresponding page,
use the `first-number` and `last-number` props.

```html
<template>
<div class="overflow-auto">
<div>
<h6>Goto first button number</h6>
<b-pagination-nav
v-model="currentPage"
:number-of-pages="pages"
base-url="#"
first-number
></b-pagination-nav>
</div>

<div class="mt-3">
<h6>Goto last button number</h6>
<b-pagination-nav
v-model="currentPage"
:number-of-pages="pages"
base-url="#"
last-number
></b-pagination-nav>
</div>

<div class="mt-3">
<h6>Goto first and last button number</h6>
<b-pagination-nav
v-model="currentPage"
:number-of-pages="pages"
base-url="#"
first-number
last-number
></b-pagination-nav>
</div>
</div>
</template>

<script>
export default {
data() {
return {
pages: 100,
currentPage: 5
}
}
}
</script>

<!-- b-pagination-nav-goto-first-last-number.vue -->
```

### Button size

Optionally change from the default button size by setting the `size` prop to either `'sm'` for
Expand Down
44 changes: 44 additions & 0 deletions src/components/pagination-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"prop": "hideEllipsis",
"description": "Do not show ellipsis buttons"
},
{
"prop": "ellipsisText",
"description": "Content to place in the ellipsis placeholder"
},
{
"prop": "size",
"description": "Size of the rendered buttons: 'sm', 'md' (default), or 'lg'"
Expand Down Expand Up @@ -104,6 +108,46 @@
{
"prop": "lastText",
"description": "Content to place in the goto last page button"
},
{
"prop": "firstClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to first page' button"
},
{
"prop": "prevClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to previous page' button"
},
{
"prop": "pageClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to page #' buttons"
},
{
"prop": "nextClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to next page' button"
},
{
"prop": "lastClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to last page' button"
},
{
"prop": "ellipsisClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'ellipsis' placeholders"
},
{
"prop": "firstNumber",
"version": "2.3.0",
"description": "Display first page number instead of Goto First button"
},
{
"prop": "lastNumber",
"version": "2.3.0",
"description": "Display last page number instead of Goto Last button"
}
],
"events": [
Expand Down
56 changes: 56 additions & 0 deletions src/components/pagination/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,62 @@ The slot `page` is always scoped, while the slots `first-text`, `prev-text`, `ne
| `index` | Number | Page number (indexed from `0` to `numberOfPages -1`) |
| `disabled` | Boolean | If the page button is disabled |

### Goto first/last button type

If you prefer to have buttons with the first and last page number to go to the corresponding page,
use the `first-number` and `last-number` props.

```html
<template>
<div class="overflow-auto">
<div>
<h6>Goto first button number</h6>
<b-pagination
v-model="currentPage"
:total-rows="rows"
:per-page="perPage"
first-number
></b-pagination>
</div>

<div class="mt-3">
<h6>Goto last button number</h6>
<b-pagination
v-model="currentPage"
:total-rows="rows"
:per-page="perPage"
last-number
></b-pagination>
</div>

<div class="mt-3">
<h6>Goto first and last button number</h6>
<b-pagination
v-model="currentPage"
:total-rows="rows"
:per-page="perPage"
first-number
last-number
></b-pagination>
</div>
</div>
</template>

<script>
export default {
data() {
return {
rows: 100,
perPage: 1,
currentPage: 5
}
}
}
</script>

<!-- b-pagination-goto-first-last-number.vue -->
```

### Button size

Optionally change from the default button size by setting the `size` prop to either `'sm'` for
Expand Down
44 changes: 44 additions & 0 deletions src/components/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"prop": "hideEllipsis",
"description": "Do not show ellipsis buttons"
},
{
"prop": "ellipsisText",
"description": "Content to place in the ellipsis placeholder"
},
{
"prop": "size",
"description": "Size of the rendered buttons: 'sm', 'md' (default), or 'lg'"
Expand Down Expand Up @@ -88,6 +92,46 @@
{
"prop": "lastText",
"description": "Content to place in the goto last page button"
},
{
"prop": "firstClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to first page' button"
},
{
"prop": "prevClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to previous page' button"
},
{
"prop": "pageClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to page #' buttons"
},
{
"prop": "nextClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to next page' button"
},
{
"prop": "lastClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'Go to last page' button"
},
{
"prop": "ellipsisClass",
"version": "2.3.0",
"description": "Class(es) to apply to the 'ellipsis' placeholders"
},
{
"prop": "firstNumber",
"version": "2.3.0",
"description": "Display first page number instead of Goto First button"
},
{
"prop": "lastNumber",
"version": "2.3.0",
"description": "Display last page number instead of Goto Last button"
}
],
"events": [
Expand Down
Loading