@globalbrain/sefirot 3.17.0 → 3.17.1
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.
|
@@ -9,6 +9,11 @@ defineProps<{
|
|
|
9
9
|
perPage: number
|
|
10
10
|
}>()
|
|
11
11
|
|
|
12
|
+
defineEmits<{
|
|
13
|
+
(e: 'prev'): void
|
|
14
|
+
(e: 'next'): void
|
|
15
|
+
}>()
|
|
16
|
+
|
|
12
17
|
const size = useControlSize()
|
|
13
18
|
const position = useControlPosition()
|
|
14
19
|
</script>
|
|
@@ -21,6 +26,8 @@ const position = useControlPosition()
|
|
|
21
26
|
:total="total"
|
|
22
27
|
:page="page"
|
|
23
28
|
:per-page="perPage"
|
|
29
|
+
@prev="$emit('prev')"
|
|
30
|
+
@next="$emit('next')"
|
|
24
31
|
/>
|
|
25
32
|
</div>
|
|
26
33
|
</template>
|
package/lib/mixins/Control.ts
CHANGED
|
@@ -5,6 +5,7 @@ import SControlButton from '../components/SControlButton.vue'
|
|
|
5
5
|
import SControlCenter from '../components/SControlCenter.vue'
|
|
6
6
|
import SControlInputSearch from '../components/SControlInputSearch.vue'
|
|
7
7
|
import SControlLeft from '../components/SControlLeft.vue'
|
|
8
|
+
import SControlPagination from '../components/SControlPagination.vue'
|
|
8
9
|
import SControlRight from '../components/SControlRight.vue'
|
|
9
10
|
import SControlText from '../components/SControlText.vue'
|
|
10
11
|
|
|
@@ -15,6 +16,7 @@ export function mixin(app: App): void {
|
|
|
15
16
|
app.component('SControlCenter', SControlCenter)
|
|
16
17
|
app.component('SControlInputSearch', SControlInputSearch)
|
|
17
18
|
app.component('SControlLeft', SControlLeft)
|
|
19
|
+
app.component('SControlPagination', SControlPagination)
|
|
18
20
|
app.component('SControlRight', SControlRight)
|
|
19
21
|
app.component('SControlText', SControlText)
|
|
20
22
|
}
|
|
@@ -27,6 +29,7 @@ declare module 'vue' {
|
|
|
27
29
|
SControlCenter: typeof SControlCenter
|
|
28
30
|
SControlInputSearch: typeof SControlInputSearch
|
|
29
31
|
SControlLeft: typeof SControlLeft
|
|
32
|
+
SControlPagination: typeof SControlPagination
|
|
30
33
|
SControlRight: typeof SControlRight
|
|
31
34
|
SControlText: typeof SControlText
|
|
32
35
|
}
|