ContactList.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. import { type PropType, type ExtractPropTypes } from 'vue';
  2. import { type Numeric } from '../utils';
  3. export type ContactListItem = {
  4. id?: Numeric;
  5. tel: Numeric;
  6. name: string;
  7. isDefault?: boolean;
  8. };
  9. export declare const contactListProps: {
  10. list: PropType<ContactListItem[]>;
  11. addText: StringConstructor;
  12. modelValue: PropType<unknown>;
  13. defaultTagText: StringConstructor;
  14. };
  15. export type ContactListProps = ExtractPropTypes<typeof contactListProps>;
  16. declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
  17. list: PropType<ContactListItem[]>;
  18. addText: StringConstructor;
  19. modelValue: PropType<unknown>;
  20. defaultTagText: StringConstructor;
  21. }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit")[], "select" | "add" | "update:modelValue" | "edit", import("vue").PublicProps, Readonly<ExtractPropTypes<{
  22. list: PropType<ContactListItem[]>;
  23. addText: StringConstructor;
  24. modelValue: PropType<unknown>;
  25. defaultTagText: StringConstructor;
  26. }>> & Readonly<{
  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. }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
  32. export default _default;