setStyle.d.ts 435 B

123456789101112
  1. import type { CSSProperties } from 'vue';
  2. /**
  3. * Easy to set element style, return previous style
  4. * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
  5. * https://github.com/ant-design/ant-design/issues/19393
  6. *
  7. */
  8. export interface SetStyleOptions {
  9. element?: HTMLElement;
  10. }
  11. declare function setStyle(style: CSSProperties, options?: SetStyleOptions): CSSProperties;
  12. export default setStyle;