ContactList.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. import { type PropType, type ExtractPropTypes } from 'vue';
  2. import { type Numeric } from '../utils';
  3. export declare type ContactListItem = {
  4. id?: Numeric;
  5. tel: Numeric;
  6. name: string;
  7. isDefault?: boolean;
  8. };
  9. declare const contactListProps: {
  10. list: PropType<ContactListItem[]>;
  11. addText: StringConstructor;
  12. modelValue: PropType<unknown>;
  13. defaultTagText: StringConstructor;
  14. };
  15. export declare type ContactListProps = ExtractPropTypes<typeof contactListProps>;
  16. declare const _default: import("vue").DefineComponent<{
  17. list: PropType<ContactListItem[]>;
  18. addText: StringConstructor;
  19. modelValue: PropType<unknown>;
  20. defaultTagText: StringConstructor;
  21. }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
  22. list: PropType<ContactListItem[]>;
  23. addText: StringConstructor;
  24. modelValue: PropType<unknown>;
  25. defaultTagText: StringConstructor;
  26. }>> & {
  27. onSelect?: ((...args: any[]) => any) | undefined;
  28. "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
  29. onEdit?: ((...args: any[]) => any) | undefined;
  30. onAdd?: ((...args: any[]) => any) | undefined;
  31. }, {}>;
  32. export default _default;