DuoyunResizeBaseElement

DuoyunResizeBaseElement is updated when the element size changes, e.g: <dy-area-chart>, and it has borderBoxSize and contentRect property

import { DuoyunResizeBaseElement } from 'duoyun-ui/elements/base/resize';

@customElement('my-ele')
export class MyEleElement extends DuoyunResizeBaseElement {
  render = () => {
    return html`${JSON.stringify(this.contentRect)}`;
  };
}