Skip to content

Commit

Permalink
feat(vue): define props in reactivebase to manipulate URLParams
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Feb 4, 2021
1 parent 99bf3c0 commit e19daae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vue/src/components/ReactiveBase/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const ReactiveBase = {
transformRequest: types.func,
transformResponse: types.func,
as: VueTypes.string.def('div'),
getSearchParams: types.func,
setSearchParams: types.func,
},
provide() {
return {
Expand Down Expand Up @@ -187,6 +189,8 @@ const ReactiveBase = {
headers={headers}
style={style}
className={className}
getSearchParams={this.getSearchParams}
setSearchParams={this.setSearchParams}
>
{children}
</URLParamsProvider>
Expand Down

0 comments on commit e19daae

Please sign in to comment.