types: export more types (#8652)

This commit is contained in:
neverland
2021-05-03 09:47:56 +08:00
committed by GitHub
parent 721ecb6e76
commit 914aafb1d8
9 changed files with 14 additions and 5 deletions
+4 -2
View File
@@ -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: {
+1
View File
@@ -5,3 +5,4 @@ const Pagination = withInstall<typeof _Pagination>(_Pagination);
export default Pagination;
export { Pagination };
export type { PaginationMode } from './Pagination';