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 default AddressList;
|
||||||
export { AddressList };
|
export { AddressList };
|
||||||
|
export type { AddressListAddress } from './AddressListItem';
|
||||||
|
@ -21,7 +21,7 @@ type CascaderTab = {
|
|||||||
selectedOption: CascaderOption | null;
|
selectedOption: CascaderOption | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
type CascaderFieldNames = {
|
export type CascaderFieldNames = {
|
||||||
text?: string;
|
text?: string;
|
||||||
value?: string;
|
value?: string;
|
||||||
children?: string;
|
children?: string;
|
||||||
|
@ -5,4 +5,4 @@ const Cascader = withInstall<typeof _Cascader>(_Cascader);
|
|||||||
|
|
||||||
export default Cascader;
|
export default Cascader;
|
||||||
export { 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');
|
const [name, bem, t] = createNamespace('list');
|
||||||
|
|
||||||
|
export type ListDirection = 'up' | 'down';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name,
|
name,
|
||||||
|
|
||||||
@ -36,7 +38,7 @@ export default defineComponent({
|
|||||||
default: 300,
|
default: 300,
|
||||||
},
|
},
|
||||||
direction: {
|
direction: {
|
||||||
type: String as PropType<'up' | 'down'>,
|
type: String as PropType<ListDirection>,
|
||||||
default: 'down',
|
default: 'down',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -5,3 +5,4 @@ const List = withInstall<typeof _List>(_List);
|
|||||||
|
|
||||||
export default List;
|
export default List;
|
||||||
export { List };
|
export { List };
|
||||||
|
export type { ListDirection } from './List';
|
||||||
|
@ -5,3 +5,4 @@ const NumberKeyboard = withInstall<typeof _NumberKeyboard>(_NumberKeyboard);
|
|||||||
|
|
||||||
export default NumberKeyboard;
|
export default NumberKeyboard;
|
||||||
export { NumberKeyboard };
|
export { NumberKeyboard };
|
||||||
|
export type { NumberKeyboardTheme } from './NumberKeyboard';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
import { computed, watch, PropType, defineComponent } from 'vue';
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { BORDER } from '../utils/constant';
|
import { BORDER } from '../utils/constant';
|
||||||
import { computed, watch, defineComponent } from 'vue';
|
|
||||||
|
|
||||||
const [name, bem, t] = createNamespace('pagination');
|
const [name, bem, t] = createNamespace('pagination');
|
||||||
|
|
||||||
@ -18,6 +18,8 @@ function makePage(
|
|||||||
return { number, text, active };
|
return { number, text, active };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type PaginationMode = 'simple' | 'multi';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name,
|
name,
|
||||||
|
|
||||||
@ -26,7 +28,7 @@ export default defineComponent({
|
|||||||
nextText: String,
|
nextText: String,
|
||||||
forceEllipses: Boolean,
|
forceEllipses: Boolean,
|
||||||
mode: {
|
mode: {
|
||||||
type: String,
|
type: String as PropType<PaginationMode>,
|
||||||
default: 'multi',
|
default: 'multi',
|
||||||
},
|
},
|
||||||
modelValue: {
|
modelValue: {
|
||||||
|
@ -5,3 +5,4 @@ const Pagination = withInstall<typeof _Pagination>(_Pagination);
|
|||||||
|
|
||||||
export default Pagination;
|
export default Pagination;
|
||||||
export { Pagination };
|
export { Pagination };
|
||||||
|
export type { PaginationMode } from './Pagination';
|
||||||
|
@ -8,6 +8,7 @@ export { Picker };
|
|||||||
export type {
|
export type {
|
||||||
PickerColumn,
|
PickerColumn,
|
||||||
PickerOption,
|
PickerOption,
|
||||||
|
PickerFieldNames,
|
||||||
PickerObjectColumn,
|
PickerObjectColumn,
|
||||||
PickerObjectOption,
|
PickerObjectOption,
|
||||||
PickerToolbarPosition,
|
PickerToolbarPosition,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user