mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: export more types (#8652)
This commit is contained in:
parent
721ecb6e76
commit
914aafb1d8
@ -5,3 +5,4 @@ const AddressList = withInstall<typeof _AddressList>(_AddressList);
|
||||
|
||||
export default AddressList;
|
||||
export { AddressList };
|
||||
export type { AddressListAddress } from './AddressListItem';
|
||||
|
@ -21,7 +21,7 @@ type CascaderTab = {
|
||||
selectedOption: CascaderOption | null;
|
||||
};
|
||||
|
||||
type CascaderFieldNames = {
|
||||
export type CascaderFieldNames = {
|
||||
text?: string;
|
||||
value?: string;
|
||||
children?: string;
|
||||
|
@ -5,4 +5,4 @@ const Cascader = withInstall<typeof _Cascader>(_Cascader);
|
||||
|
||||
export default Cascader;
|
||||
export { Cascader };
|
||||
export type { CascaderOption } from './Cascader';
|
||||
export type { CascaderOption, CascaderFieldNames } from './Cascader';
|
||||
|
@ -20,6 +20,8 @@ import { Loading } from '../loading';
|
||||
|
||||
const [name, bem, t] = createNamespace('list');
|
||||
|
||||
export type ListDirection = 'up' | 'down';
|
||||
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
@ -36,7 +38,7 @@ export default defineComponent({
|
||||
default: 300,
|
||||
},
|
||||
direction: {
|
||||
type: String as PropType<'up' | 'down'>,
|
||||
type: String as PropType<ListDirection>,
|
||||
default: 'down',
|
||||
},
|
||||
},
|
||||
|
@ -5,3 +5,4 @@ const List = withInstall<typeof _List>(_List);
|
||||
|
||||
export default List;
|
||||
export { List };
|
||||
export type { ListDirection } from './List';
|
||||
|
@ -5,3 +5,4 @@ const NumberKeyboard = withInstall<typeof _NumberKeyboard>(_NumberKeyboard);
|
||||
|
||||
export default NumberKeyboard;
|
||||
export { NumberKeyboard };
|
||||
export type { NumberKeyboardTheme } from './NumberKeyboard';
|
||||
|
@ -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';
|
||||
|
@ -8,6 +8,7 @@ export { Picker };
|
||||
export type {
|
||||
PickerColumn,
|
||||
PickerOption,
|
||||
PickerFieldNames,
|
||||
PickerObjectColumn,
|
||||
PickerObjectOption,
|
||||
PickerToolbarPosition,
|
||||
|
Loading…
x
Reference in New Issue
Block a user