Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
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}`;
set req(value: STReq) {
this._req = deepMerge({}, this._req, this.cog.req, value);
}
/** 返回体配置 */