types: export more types (#8652)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { computed, watch, PropType, defineComponent } from 'vue';
|
||||
import { createNamespace } from '../utils';
|
||||
import { BORDER } from '../utils/constant';
|
||||
import { computed, watch, defineComponent } from 'vue';
|
||||
|
||||
const [name, bem, t] = createNamespace('pagination');
|
||||
|
||||
@@ -18,6 +18,8 @@ function makePage(
|
||||
return { number, text, active };
|
||||
}
|
||||
|
||||
export type PaginationMode = 'simple' | 'multi';
|
||||
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
@@ -26,7 +28,7 @@ export default defineComponent({
|
||||
nextText: String,
|
||||
forceEllipses: Boolean,
|
||||
mode: {
|
||||
type: String,
|
||||
type: String as PropType<PaginationMode>,
|
||||
default: 'multi',
|
||||
},
|
||||
modelValue: {
|
||||
|
||||
@@ -5,3 +5,4 @@ const Pagination = withInstall<typeof _Pagination>(_Pagination);
|
||||
|
||||
export default Pagination;
|
||||
export { Pagination };
|
||||
export type { PaginationMode } from './Pagination';
|
||||
|
||||
Reference in New Issue
Block a user