Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@interaction/message

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interaction/message

## 前提

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

快速上手

前提

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

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

ng add ng-zorro-antd

介绍

ModalService包括三个方法

方法名参数默认值含义
alerttitle(必填):string
type(选填): 'success' | 'warning' | 'error' | 'info'
content(选填): string
placement(选填): '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');
 }
}

FAQs

Package last updated on 15 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc