Skip to content
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

Add HTML code in paginate-link #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions dist/vue-paginate.js
Original file line number Diff line number Diff line change
Expand Up @@ -6885,6 +6885,9 @@
function getSimpleLinks (vm, h) {
var lastPage = vm.listOfPages.length - 1
var prevData = {
domProps: {
innerHTML: vm.simple.prev
},
on: {
click: function (e) {
e.preventDefault()
Expand All @@ -6893,6 +6896,9 @@
}
}
var nextData = {
domProps: {
innerHTML: vm.simple.next
},
on: {
click: function (e) {
e.preventDefault()
Expand All @@ -6902,8 +6908,8 @@
}
var nextListData = { class: ['next', vm.currentPage >= lastPage ? 'disabled' : ''] }
var prevListData = { class: ['prev', vm.currentPage <= 0 ? 'disabled' : ''] }
var prevLink = h('li', prevListData, [h('a', prevData, vm.simple.prev)])
var nextLink = h('li', nextListData, [h('a', nextData, vm.simple.next)])
var prevLink = h('li', prevListData, [h('a', prevData)])
var nextLink = h('li', nextListData, [h('a', nextData)])
return [prevLink, nextLink]
}

Expand Down
6 changes: 3 additions & 3 deletions dist/vue-paginate.min.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions src/components/PaginateLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ function getLimitedLinks (vm, h) {
function getSimpleLinks (vm, h) {
const lastPage = vm.listOfPages.length - 1
const prevData = {
domProps: {
innerHTML: vm.simple.prev
},
on: {
click: (e) => {
e.preventDefault()
Expand All @@ -224,6 +227,9 @@ function getSimpleLinks (vm, h) {
}
}
const nextData = {
domProps: {
innerHTML: vm.simple.next
},
on: {
click: (e) => {
e.preventDefault()
Expand All @@ -233,8 +239,8 @@ function getSimpleLinks (vm, h) {
}
const nextListData = { class: ['next', vm.currentPage >= lastPage ? 'disabled' : ''] }
const prevListData = { class: ['prev', vm.currentPage <= 0 ? 'disabled' : ''] }
const prevLink = h('li', prevListData, [h('a', prevData, vm.simple.prev)])
const nextLink = h('li', nextListData, [h('a', nextData, vm.simple.next)])
const prevLink = h('li', prevListData, [h('a', prevData)])
const nextLink = h('li', nextListData, [h('a', nextData)])
return [prevLink, nextLink]
}

Expand Down