How to use the @delon/util.deepMerge function in @delon/util

To help you get started, we’ve selected a few @delon/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-alain / delon / packages / theme / src / services / drawer / drawer.helper.ts View on Github external
create(title: string, comp: any, params?: any, options?: DrawerHelperOptions): Observable {
    options = deepMerge(
      {
        size: 'md',
        footer: true,
        footerHeight: 55,
        exact: true,
        drawerOptions: {
          nzPlacement: 'right',
          nzWrapClassName: '',
        },
      },
      options,
    );
    return new Observable((observer: Observer) => {
      const { size, footer, footerHeight, drawerOptions } = options as DrawerHelperOptions;
      const defaultOptions: NzDrawerOptions = {
        nzContent: comp,
github ng-alain / delon / packages / theme / src / services / modal / modal.helper.ts View on Github external
create(comp: any, params?: any, options?: ModalHelperOptions): Observable {
    options = deepMerge(
      {
        size: 'lg',
        exact: true,
        includeTabs: false,
      },
      options,
    );
    return new Observable((observer: Observer) => {
      const { size, includeTabs, modalOptions } = options as ModalHelperOptions;
      let cls = '';
      let width = '';
      if (size) {
        if (typeof size === 'number') {
          width = `${size}px`;
        } else {
          cls = `modal-${size}`;
github ng-alain / delon / packages / abc / table / table.component.ts View on Github external
set req(value: STReq) {
    this._req = deepMerge({}, this._req, this.cog.req, value);
  }
  /** 返回体配置 */