0.2.0 • Published 5 years ago

@interaction/message v0.2.0

Weekly downloads
6
License
-
Repository
-
Last release
5 years ago

快速上手

前提

@interaction/message依赖ng-zorro-antd,所以在使用之前,必须安装ng-zorro-antd

备注:后期重构message,取消对ng-zorro-antd的依赖,前期先这样用。

ng add ng-zorro-antd

介绍

ModalService包括三个方法

方法名参数默认值含义
alerttitle(必填):stringtype(选填): 'success' | 'warning' | 'error' | 'info'content(选填): stringplacement(选填): 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'placement的默认值为"bottomRight"其他参数无默认值弹出框
confirmmsg(必填): string确认框(点击确认后无回调)
confirmedmsg(必填): string确认框(点击确认后有回调)

安装

npm install @interaction/message

导入

import { ModalService } from '@interaction/message';

使用

export class AppComponent {
 constructor(
  private modal: ModalService
 ){
  this.modal.alert('111', 'error');
 }
}
0.2.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago