divider.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { EpPropFinalized } from "../../../utils/vue/props/types.js";
  2. import "../../../utils/index.js";
  3. import { _default } from "./divider.vue.js";
  4. import { ExtractPublicPropTypes } from "vue";
  5. //#region ../../packages/components/divider/src/divider.d.ts
  6. type BorderStyle = CSSStyleDeclaration['borderStyle'];
  7. interface DividerProps {
  8. /**
  9. * @description Set divider's direction
  10. */
  11. direction?: 'horizontal' | 'vertical';
  12. /**
  13. * @description Set the style of divider
  14. */
  15. contentPosition?: 'left' | 'center' | 'right';
  16. /**
  17. * @description the position of the customized content on the divider line
  18. */
  19. borderStyle?: BorderStyle;
  20. }
  21. /**
  22. * @deprecated Removed after 3.0.0, Use `DividerProps` instead.
  23. */
  24. declare const dividerProps: {
  25. readonly direction: EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
  26. readonly contentPosition: EpPropFinalized<StringConstructor, "center" | "left" | "right", unknown, "center", boolean>;
  27. readonly borderStyle: EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "solid", boolean>;
  28. };
  29. /**
  30. * @deprecated Removed after 3.0.0, Use `DividerProps` instead.
  31. */
  32. type DividerPropsPublic = ExtractPublicPropTypes<typeof dividerProps>;
  33. type DividerInstance = InstanceType<typeof _default> & unknown;
  34. //#endregion
  35. export { BorderStyle, DividerInstance, DividerProps, DividerPropsPublic, dividerProps };