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

@interaction/message

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interaction/message

@interaction/message依赖ant-reset-private,所以在使用之前,必须安装ant-reset-private

  • 0.0.4
  • npm
  • Socket score

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

快速上手

前提

@interaction/message依赖ant-reset-private,所以在使用之前,必须安装ant-reset-private

备注:后期重构message,取消对ant-reset-private的依赖,前期先这样用。

ng add ant-reset-private

介绍

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 27 Apr 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