
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
essence-ionic
Advanced tools
This is ionic custom components.
essence-ion-amap(高德地图)
essence-ion-videoplayer(视频播放器)
essence-ion-calendar(日历)
Install
npm install --save essence-ionic@latest
Add the EssenceIonicModule
import {EssenceIonicModule} from "essence-ionic";
@NgModule({
imports: [
EssenceIonicModule
]
})
需求在index.html引入高德地图API:
Use in Template
<essence-ion-amap (ready)="amapReady($event)" (destroy)="amapDestroy($event)"></essence-ion-amap>
Use in component
amapReady ($event: EssenceIonAMapComponent) {
console.log($event);
}
amapDestroy ($event) {
console.log($event);
}
Use in Template
<div #videoDiv>
<essence-ion-videoplayer (ready)="videoViewerReady($event)" [source]="url" [width]="videoDiv.offsetWidth"></essence-ion-videoplayer>
</div>
Use in component
url: string = 'http://www.laixiangran.cn/CDN/custom/video/test.mp4';
constructor() {}
videoViewerReady($event: any) {
console.log($event);
}
Use in Template
<essence-ion-calendar [schedules]="schedules"
(ready)="onReady()"
(ViewSchedule)="onViewSchedule($event)"
(dateChange)="onDateChange($event)">
</essence-ion-calendar>
Use in component
schedules: any;
constructor() {
this.schedules = [
{
date: new Date(),
data: {
title: '参加会议',
address: '公司会议室',
content: '讨论考核制度',
info: '参会人员包括:张三、李四'
}
}
]
}
onReady() {
console.log('日历组件加载完成!');
}
onDateChange($event: Date) {
console.log($event);
}
onViewSchedule($event: any) {
console.log($event);
}
apiKey(string) - 高德地图JS API key,请到官网申请
webApiKey(string) - 高德地图Web服务key,请到官网申请
options(?Object) - 地图初始化参数对象,参数详情
showCurrentLocation(?boolean=false) - 是否显示定位按钮,true为显示
isShowMapToolbar(?boolean=true) - 是否显示左下角地图工具栏,true为显示
showLocationMarker(?boolean=true) - 是否显示定位之后的图标,true为显示
showTraffic(?boolean=false) - 是否加载实时交通图层,true为加载
ready($event) - 地图初始化完成事件,参数$event为当前EssenceIonAMapComponent实例对象
destroy($event) - 地图销毁事件
location($event) - 地图定位成功事件,参数$event为{code,info, result}
eAMap(any) - 高德地图对象AMapwidth(?number=0) - 视频播放器的宽度
height(?number=0) - 视频播放器的高度
poster (?string) - 视频海报路径
source(string) - 视频路径
ready($event) - 视频播放器初始化完成事件,参数$event为当前EssenceIonVideoplayerComponent实例对象
videoPlay($event) - 视频播放开发事件
videoPause($event) - 视频播放暂停事件
videoEnded($event) - 视频播放结束事件
videoPan($event) - 视频滑动快进/退事件
videoError($event) - 视频播放错误事件
schedules(?Array<{date: Date, data: any}>) - 要显示在日历中对应日期的数据ready($event) - 日历初始化完成事件,参数$event为当前EssenceIonCalendarComponent实例对象
dateChange($event) - 日期改变事件,参数$event为改变之后的日期
viewData($event) - 查看对应日期的数据
FAQs
This is ionic custom components.
We found that essence-ionic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.