divider.d.ts 1.4 KB

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