@webitel/ui-sdk 3.1.67 → 3.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-sdk.common.js +72 -77
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +72 -77
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-button-select/__tests__/WtButtonSelect.spec.js +1 -1
- package/src/components/molecules/wt-checkbox/__tests__/WtCheckbox.spec.js +3 -3
- package/src/components/molecules/wt-datepicker/__tests__/WtDatepicker.spec.js +2 -2
- package/src/components/molecules/wt-input/__tests__/WtInput.spec.js +2 -2
- package/src/components/molecules/wt-radio/__tests__/WtRadio.spec.js +3 -3
- package/src/components/molecules/wt-select/__tests__/WtSelect.spec.js +2 -2
- package/src/components/molecules/wt-select/mixins/__tests__/multiselectMixin.spec.js +2 -2
- package/src/components/molecules/wt-switcher/__tests__/WtSwitcher.spec.js +3 -3
- package/src/components/molecules/wt-tags-input/__tests__/WtTagsInput.spec.js +4 -4
- package/src/components/molecules/wt-textarea/__tests__/WtTextarea.spec.js +2 -2
- package/src/components/molecules/wt-time-input/__tests__/WtTimeInput.spec.js +2 -2
- package/src/components/molecules/wt-time-input/wt-time-input.vue +126 -132
- package/src/components/molecules/wt-timepicker/__tests__/WtTimepicker.spec.js +9 -9
- package/src/components/molecules/wt-timepicker/wt-timepicker.vue +7 -4
- package/src/components/organisms/wt-navigation-bar/__tests__/WtNavigationBar.spec.js +2 -2
- package/src/components/organisms/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +4 -4
- package/src/components/organisms/wt-notifications-bar/wt-notifications-bar.vue +49 -48
- package/src/components/organisms/wt-pagination/__tests__/WtPagination.spec.js +1 -1
- package/src/components/organisms/wt-table/__tests__/WtTable.spec.js +3 -3
- package/src/components/organisms/wt-table/wt-table.vue +1 -1
- package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +5 -7
- package/src/mixins/dataFilterMixins/__tests__/enumFilterMixin.spec.js +3 -3
- package/src/mixins/dataFilterMixins/__tests__/paginationFilterMixin.spec.js +23 -31
- package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +6 -6
- package/src/mixins/dataFilterMixins/__tests__/urlControllerMixin.spec.js +4 -4
- package/src/mixins/dataFilterMixins/_urlControllerMixin/_urlControllerMixin.js +2 -2
- package/src/mixins/dataFilterMixins/paginationFilterMixin.js +3 -3
- package/src/mixins/dataFilterMixins/sortFilterMixin.js +2 -2
- package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +2 -2
- package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +1 -1
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
- package/src/modules/AuditForm/components/audit-form.vue +1 -1
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +9 -11
- package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +9 -11
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +11 -11
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +9 -11
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +9 -11
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +11 -11
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +11 -13
- package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +18 -25
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +14 -9
- package/src/modules/QueryFilters/mixins/__tests__/urlControllerMixin.spec.js +12 -14
- package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +4 -4
- package/src/scripts/eventBus.js +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createStore } from 'vuex';
|
|
3
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
4
4
|
import BaseFilterSchema from '../../classes/BaseFilterSchema';
|
|
5
5
|
import baseFilterMixin from '../../mixins/baseFilterMixin/baseFilterMixin';
|
|
6
6
|
import FilterFromTo from '../filter-from-to.vue';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const router = createRouter({
|
|
9
|
+
history: createWebHistory(),
|
|
10
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
11
|
+
});
|
|
12
12
|
|
|
13
13
|
describe('FilterFromTo Filter', () => {
|
|
14
14
|
const namespace = 'jest';
|
|
15
15
|
const filterQuery = 'jest';
|
|
16
16
|
const filterSchema = new BaseFilterSchema();
|
|
17
|
-
const store =
|
|
17
|
+
const store = createStore({
|
|
18
18
|
modules: {
|
|
19
19
|
[namespace]: {
|
|
20
20
|
namespaced: true,
|
|
@@ -26,9 +26,7 @@ describe('FilterFromTo Filter', () => {
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
const mountOptions = {
|
|
29
|
-
|
|
30
|
-
store,
|
|
31
|
-
router,
|
|
29
|
+
global: { plugins: [store, router] },
|
|
32
30
|
props: {
|
|
33
31
|
namespace,
|
|
34
32
|
filterQuery,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { shallowMount
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createStore } from 'vuex';
|
|
3
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
4
4
|
import SearchFilter from '../filter-search.vue';
|
|
5
5
|
import BaseFilterSchema from '../../classes/BaseFilterSchema';
|
|
6
6
|
import baseFilterMixin from '../../mixins/baseFilterMixin/baseFilterMixin';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const router = createRouter({
|
|
9
|
+
history: createWebHistory(),
|
|
10
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
11
|
+
});
|
|
12
12
|
|
|
13
13
|
describe('Search Filter', () => {
|
|
14
14
|
const namespace = 'jest';
|
|
15
15
|
const filterQuery = 'jest';
|
|
16
16
|
const filterSchema = new BaseFilterSchema();
|
|
17
|
-
const store =
|
|
17
|
+
const store = createStore({
|
|
18
18
|
modules: {
|
|
19
19
|
[namespace]: {
|
|
20
20
|
namespaced: true,
|
|
@@ -26,9 +26,7 @@ describe('Search Filter', () => {
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
const mountOptions = {
|
|
29
|
-
|
|
30
|
-
store,
|
|
31
|
-
router,
|
|
29
|
+
global: { plugins: [store, router] },
|
|
32
30
|
props: {
|
|
33
31
|
namespace,
|
|
34
32
|
filterQuery,
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
3
3
|
import ApiFilterSchema from '../../classes/ApiFilterSchema';
|
|
4
4
|
import apiFilterMixin from '../apiFilterMixin';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const router = createRouter({
|
|
7
|
+
history: createWebHistory(),
|
|
8
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
9
|
+
});
|
|
10
|
+
|
|
9
11
|
const team = ['1', '2'];
|
|
10
12
|
const filterSchema = new ApiFilterSchema();
|
|
11
13
|
|
|
@@ -23,24 +25,22 @@ describe('API filter mixin', () => {
|
|
|
23
25
|
methods: { setValue },
|
|
24
26
|
};
|
|
25
27
|
|
|
26
|
-
beforeEach(() => {
|
|
28
|
+
beforeEach(async () => {
|
|
27
29
|
setValue.mockClear();
|
|
28
|
-
|
|
30
|
+
await router.replace({ query: null });
|
|
29
31
|
});
|
|
30
32
|
|
|
31
33
|
it('Correctly sets value from $route query', async () => {
|
|
32
34
|
await router.replace({ query: { team } });
|
|
33
35
|
const wrapper = shallowMount(Component, {
|
|
34
|
-
|
|
35
|
-
router,
|
|
36
|
+
global: { plugins: [router] },
|
|
36
37
|
});
|
|
37
38
|
expect(setValue).toHaveBeenCalledWith({ filter: 'team', value: [{ id: team[0] }, { id: team[1] }] });
|
|
38
39
|
});
|
|
39
40
|
|
|
40
41
|
it('Sets empty array value if $route query is empty', async () => {
|
|
41
42
|
const wrapper = shallowMount(Component, {
|
|
42
|
-
|
|
43
|
-
router,
|
|
43
|
+
global: { plugins: [router] },
|
|
44
44
|
data: () => ({ filterQuery: 'queue' }),
|
|
45
45
|
});
|
|
46
46
|
expect(setValue).not.toHaveBeenCalled();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
3
3
|
import enumFilterMixin from '../enumFilterMixin';
|
|
4
4
|
|
|
5
5
|
const options = [{
|
|
@@ -11,9 +11,10 @@ const options = [{
|
|
|
11
11
|
value: 'outbound',
|
|
12
12
|
}];
|
|
13
13
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const router = createRouter({
|
|
15
|
+
history: createWebHistory(),
|
|
16
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
17
|
+
});
|
|
17
18
|
|
|
18
19
|
describe('Enum filter mixin', () => {
|
|
19
20
|
const setValue = jest.fn();
|
|
@@ -29,16 +30,15 @@ describe('Enum filter mixin', () => {
|
|
|
29
30
|
methods: { setValue },
|
|
30
31
|
};
|
|
31
32
|
|
|
32
|
-
beforeEach(() => {
|
|
33
|
+
beforeEach(async () => {
|
|
33
34
|
setValue.mockClear();
|
|
34
|
-
|
|
35
|
+
await router.replace({ query: null });
|
|
35
36
|
});
|
|
36
37
|
|
|
37
38
|
it('Correctly sets value from $route query', async () => {
|
|
38
39
|
await router.replace({ query: { direction: options[0].value } });
|
|
39
40
|
const wrapper = shallowMount(Component, {
|
|
40
|
-
|
|
41
|
-
router,
|
|
41
|
+
global: { plugins: [router] },
|
|
42
42
|
});
|
|
43
43
|
await wrapper.vm.$nextTick();
|
|
44
44
|
expect(setValue).toHaveBeenCalledWith({ filter: 'direction', value: options[0] });
|
|
@@ -46,8 +46,7 @@ describe('Enum filter mixin', () => {
|
|
|
46
46
|
|
|
47
47
|
it('Sets empty array value if $route query is empty', async () => {
|
|
48
48
|
shallowMount(Component, {
|
|
49
|
-
|
|
50
|
-
router,
|
|
49
|
+
global: { plugins: [router] },
|
|
51
50
|
});
|
|
52
51
|
expect(setValue).not.toHaveBeenCalled();
|
|
53
52
|
});
|
|
@@ -61,8 +60,7 @@ describe('Enum filter mixin', () => {
|
|
|
61
60
|
name: options[0].locale,
|
|
62
61
|
}];
|
|
63
62
|
const wrapper = shallowMount(Component, {
|
|
64
|
-
|
|
65
|
-
router,
|
|
63
|
+
global: { plugins: [router] },
|
|
66
64
|
data: () => ({ options }),
|
|
67
65
|
});
|
|
68
66
|
expect(wrapper.vm.localizedOptions).toEqual(expectedOptions);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
3
3
|
import paginationFilterMixin from '../paginationFilterMixin';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const router = createRouter({
|
|
6
|
+
history: createWebHistory(),
|
|
7
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
8
|
+
});
|
|
9
|
+
|
|
8
10
|
const page = 2;
|
|
9
11
|
const size = 20;
|
|
10
12
|
|
|
@@ -19,17 +21,16 @@ describe('Pagination filter mixin', () => {
|
|
|
19
21
|
methods: { setPage, setSize },
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
beforeEach(() => {
|
|
24
|
+
beforeEach(async () => {
|
|
23
25
|
setPage.mockClear();
|
|
24
26
|
setSize.mockClear();
|
|
25
|
-
|
|
27
|
+
await router.replace({ query: null });
|
|
26
28
|
});
|
|
27
29
|
|
|
28
30
|
it('Correctly sets value from $route query', async () => {
|
|
29
31
|
await router.replace({ query: { page, size } });
|
|
30
32
|
wrapper = shallowMount(Component, {
|
|
31
|
-
|
|
32
|
-
router,
|
|
33
|
+
global: { plugins: [router] },
|
|
33
34
|
});
|
|
34
35
|
expect(setPage).toHaveBeenCalledWith(page);
|
|
35
36
|
expect(setSize).toHaveBeenCalledWith(size);
|
|
@@ -38,11 +39,9 @@ describe('Pagination filter mixin', () => {
|
|
|
38
39
|
it('At "prev" page, changes query and emits event', async () => {
|
|
39
40
|
await router.replace({ query: { page, size } });
|
|
40
41
|
wrapper = shallowMount(Component, {
|
|
41
|
-
|
|
42
|
-
router,
|
|
42
|
+
global: { plugins: [router] },
|
|
43
43
|
});
|
|
44
|
-
wrapper.
|
|
45
|
-
wrapper.vm.prev();
|
|
44
|
+
await wrapper.vm.prev();
|
|
46
45
|
expect(wrapper.emitted().input).toBeTruthy();
|
|
47
46
|
expect(wrapper.vm.$route.query.page).toBe(`${page - 1}`);
|
|
48
47
|
});
|
|
@@ -50,11 +49,9 @@ describe('Pagination filter mixin', () => {
|
|
|
50
49
|
it('At "next" page, changes query and emits event', async () => {
|
|
51
50
|
await router.replace({ query: { page, size } });
|
|
52
51
|
wrapper = shallowMount(Component, {
|
|
53
|
-
|
|
54
|
-
router,
|
|
52
|
+
global: { plugins: [router] },
|
|
55
53
|
});
|
|
56
|
-
wrapper.
|
|
57
|
-
wrapper.vm.next();
|
|
54
|
+
await wrapper.vm.next();
|
|
58
55
|
expect(wrapper.emitted().input).toBeTruthy();
|
|
59
56
|
expect(wrapper.vm.$route.query.page).toBe(`${page + 1}`);
|
|
60
57
|
});
|
|
@@ -62,11 +59,9 @@ describe('Pagination filter mixin', () => {
|
|
|
62
59
|
it('At "restPage" method, changes query and emits event', async () => {
|
|
63
60
|
await router.replace({ query: { page: 100, size } });
|
|
64
61
|
wrapper = shallowMount(Component, {
|
|
65
|
-
|
|
66
|
-
router,
|
|
62
|
+
global: { plugins: [router] },
|
|
67
63
|
});
|
|
68
|
-
wrapper.
|
|
69
|
-
wrapper.vm.resetPage();
|
|
64
|
+
await wrapper.vm.resetPage();
|
|
70
65
|
expect(wrapper.emitted().input).toBeTruthy();
|
|
71
66
|
expect(wrapper.vm.$route.query.page).toBe('1');
|
|
72
67
|
});
|
|
@@ -75,11 +70,9 @@ describe('Pagination filter mixin', () => {
|
|
|
75
70
|
const newSize = 40;
|
|
76
71
|
await router.replace({ query: { page, size } });
|
|
77
72
|
wrapper = shallowMount(Component, {
|
|
78
|
-
|
|
79
|
-
router,
|
|
73
|
+
global: { plugins: [router] },
|
|
80
74
|
});
|
|
81
|
-
wrapper.
|
|
82
|
-
wrapper.vm.sizeChange(newSize);
|
|
75
|
+
await wrapper.vm.sizeChange(newSize);
|
|
83
76
|
expect(wrapper.emitted().input).toBeTruthy();
|
|
84
77
|
expect(wrapper.vm.$route.query.size).toBe(`${newSize}`);
|
|
85
78
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { shallowMount
|
|
2
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
3
3
|
import sortFilterMixin from '../sortFilterMixin';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const router = createRouter({
|
|
6
|
+
history: createWebHistory(),
|
|
7
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
8
|
+
});
|
|
8
9
|
|
|
9
10
|
const headers = [{
|
|
10
11
|
value: 'queue',
|
|
@@ -39,18 +40,22 @@ describe('Sort filter mixin', () => {
|
|
|
39
40
|
methods: { setHeaders },
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
beforeEach(() => {
|
|
43
|
-
router.replace('/');
|
|
43
|
+
beforeEach(async () => {
|
|
44
|
+
await router.replace('/');
|
|
44
45
|
});
|
|
45
46
|
|
|
46
47
|
it('Correctly sets value from $route query', async () => {
|
|
47
48
|
await router.replace({ path: '/', query: { sort: '+queue' } });
|
|
48
|
-
const wrapper = shallowMount(Component, {
|
|
49
|
+
const wrapper = shallowMount(Component, {
|
|
50
|
+
global: { plugins: [router] },
|
|
51
|
+
});
|
|
49
52
|
expect(setHeaders).toHaveBeenCalledWith(sortedHeaders);
|
|
50
53
|
});
|
|
51
54
|
|
|
52
55
|
it('After "sort" trigger, header column sort value changes properly', () => {
|
|
53
|
-
const wrapper = shallowMount(Component, {
|
|
56
|
+
const wrapper = shallowMount(Component, {
|
|
57
|
+
global: { plugins: [router] },
|
|
58
|
+
});
|
|
54
59
|
const queue = wrapper.vm.headers.find((header) => header.value === 'queue');
|
|
55
60
|
wrapper.vm.sort(queue);
|
|
56
61
|
expect(setHeaders).toHaveBeenCalledWith(sortedHeaders);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { shallowMount
|
|
2
|
-
import
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
3
3
|
import _urlControllerMixin from '../_urlControllerMixin/_urlControllerMixin';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const router = createRouter({
|
|
6
|
+
history: createWebHistory(),
|
|
7
|
+
routes: [{ path: '/', name: 'jest' }],
|
|
8
|
+
});
|
|
8
9
|
|
|
9
|
-
const $t = () => {};
|
|
10
10
|
const filterQuery = 'team';
|
|
11
11
|
|
|
12
12
|
describe('URL Controller mixin Set and Get operations', () => {
|
|
@@ -16,32 +16,30 @@ describe('URL Controller mixin Set and Get operations', () => {
|
|
|
16
16
|
mixins: [_urlControllerMixin],
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
beforeEach(() => {
|
|
20
|
-
router.replace('/');
|
|
19
|
+
beforeEach(async () => {
|
|
20
|
+
await router.replace('/');
|
|
21
21
|
wrapper = shallowMount(Component, {
|
|
22
|
-
|
|
23
|
-
router,
|
|
24
|
-
mocks: { $t },
|
|
22
|
+
global: { plugins: [router] },
|
|
25
23
|
});
|
|
26
24
|
});
|
|
27
25
|
|
|
28
26
|
it('Array of objects', async () => {
|
|
29
27
|
const value = [{ name: 'team 1', id: '1' }, { name: 'team 2', id: '2' }];
|
|
30
|
-
wrapper.vm.setValueToQuery({ filterQuery, value });
|
|
28
|
+
await wrapper.vm.setValueToQuery({ filterQuery, value });
|
|
31
29
|
const queryValue = wrapper.vm.getValueFromQuery({ filterQuery });
|
|
32
30
|
expect(queryValue).toEqual(['1', '2']);
|
|
33
31
|
});
|
|
34
32
|
|
|
35
33
|
it('Array of values', async () => {
|
|
36
34
|
const value = ['hello', '1'];
|
|
37
|
-
wrapper.vm.setValueToQuery({ filterQuery, value });
|
|
35
|
+
await wrapper.vm.setValueToQuery({ filterQuery, value });
|
|
38
36
|
const queryValue = wrapper.vm.getValueFromQuery({ filterQuery });
|
|
39
37
|
expect(queryValue).toEqual(value);
|
|
40
38
|
});
|
|
41
39
|
|
|
42
40
|
it('String value', async () => {
|
|
43
41
|
const value = 'hello there';
|
|
44
|
-
wrapper.vm.setValueToQuery({ filterQuery, value });
|
|
42
|
+
await wrapper.vm.setValueToQuery({ filterQuery, value });
|
|
45
43
|
const queryValue = wrapper.vm.getValueFromQuery({ filterQuery });
|
|
46
44
|
expect(queryValue).toEqual(value);
|
|
47
45
|
});
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
this.$emit('input');
|
|
39
39
|
const value = this.page + 1;
|
|
40
40
|
this.setPage(value);
|
|
41
|
-
this.setValueToQuery({
|
|
41
|
+
return this.setValueToQuery({
|
|
42
42
|
filterQuery: 'page',
|
|
43
43
|
value,
|
|
44
44
|
});
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
this.$emit('input');
|
|
49
49
|
const value = this.page - 1;
|
|
50
50
|
this.setPage(value);
|
|
51
|
-
this.setValueToQuery({
|
|
51
|
+
return this.setValueToQuery({
|
|
52
52
|
filterQuery: 'page',
|
|
53
53
|
value,
|
|
54
54
|
});
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
this.$emit('input');
|
|
59
59
|
const value = 1;
|
|
60
60
|
this.setPage(value);
|
|
61
|
-
this.setValueToQuery({
|
|
61
|
+
return this.setValueToQuery({
|
|
62
62
|
filterQuery: 'page',
|
|
63
63
|
value,
|
|
64
64
|
});
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
67
67
|
sizeChange(value) {
|
|
68
68
|
this.$emit('input');
|
|
69
69
|
this.setSize(value);
|
|
70
|
-
this.setValueToQuery({
|
|
70
|
+
return this.setValueToQuery({
|
|
71
71
|
filterQuery: 'size',
|
|
72
72
|
value,
|
|
73
73
|
});
|
package/src/scripts/eventBus.js
CHANGED