Ribbon.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { CustomSlotsType, LiteralUnion } from '../_util/type';
  2. import type { PresetColorType } from '../_util/colors';
  3. import type { PropType, ExtractPropTypes } from 'vue';
  4. export declare const ribbonProps: () => {
  5. prefix: StringConstructor;
  6. color: {
  7. type: PropType<LiteralUnion<PresetColorType>>;
  8. };
  9. text: import("vue-types").VueTypeValidableDef<any>;
  10. placement: {
  11. type: PropType<"end" | "start">;
  12. default: string;
  13. };
  14. };
  15. export type RibbonProps = Partial<ExtractPropTypes<ReturnType<typeof ribbonProps>>>;
  16. declare const _default: import("vue").DefineComponent<{
  17. prefix: StringConstructor;
  18. color: {
  19. type: PropType<LiteralUnion<PresetColorType>>;
  20. };
  21. text: import("vue-types").VueTypeValidableDef<any>;
  22. placement: {
  23. type: PropType<"end" | "start">;
  24. default: string;
  25. };
  26. }, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  27. prefix: StringConstructor;
  28. color: {
  29. type: PropType<LiteralUnion<PresetColorType>>;
  30. };
  31. text: import("vue-types").VueTypeValidableDef<any>;
  32. placement: {
  33. type: PropType<"end" | "start">;
  34. default: string;
  35. };
  36. }>>, {
  37. placement: "end" | "start";
  38. }, CustomSlotsType<{
  39. text: any;
  40. default: any;
  41. }>>;
  42. export default _default;