
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@interaction/message
Advanced tools
@interaction/message依赖ant-reset-private,所以在使用之前,必须安装ant-reset-private
备注:后期重构message,取消对ant-reset-private的依赖,前期先这样用。
ng add ant-reset-private
ModalService包括三个方法
方法名 | 参数 | 默认值 | 含义 |
---|---|---|---|
alert | title(必填):string type(选填): 'success' | 'warning' | 'error' | 'info' content(选填): string placement(选填): 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | placement的默认值为"bottomRight" 其他参数无默认值 | 弹出框 |
confirm | msg(必填): string | 确认框(点击确认后无回调) | |
confirmed | msg(必填): string | 确认框(点击确认后有回调) |
npm install @interaction/message
import { ModalService } from '@interaction/message';
export class AppComponent {
constructor(
private modal: ModalService
){
this.modal.alert('111', 'error');
}
}
FAQs
## 前提
The npm package @interaction/message receives a total of 1 weekly downloads. As such, @interaction/message popularity was classified as not popular.
We found that @interaction/message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.