dashboard
repositories
filestore
activity
search
login
vue
/
vue-element-admin
执行过npm install命令的vue-element-admin源码
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
初始化
康凯
2022-05-20
aa4c235a8ca67ea8b731f90c951a465e92c0a865
[vue/vue-element-admin.git]
/
node_modules
/
rxjs
/
_esm2015
/
internal
/
operators
/
timeInterval.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { async } from '../scheduler/async';
import { scan } from './scan';
import { defer } from '../observable/defer';
import { map } from './map';
export function timeInterval(scheduler = async) {
return (source) => defer(() => {
return source.pipe(scan(({ current }, value) => ({ value, current: scheduler.now(), last: current }), { current: scheduler.now(), value: undefined, last: undefined }), map(({ current, last, value }) => new TimeInterval(value, current - last)));
});
}
export class TimeInterval {
constructor(value, interval) {
this.value = value;
this.interval = interval;
}
}
//# sourceMappingURL=timeInterval.js.map