1.1.2 • Published 6 years ago
@zhike/sa-hoc-wrapper v1.1.2
SA-HOC-WRAPPER
基于神策的业务高阶组件 暂时只在题库项目中使用
使用
npm i @zhike/sa-hoc-wrapperimport { saWrapper } from '@zhike/sa-hoc-wrapper';
@saWrapper({
eventName: 'ti-practice-ielts'
})
class extends Component{
getTrackTimerProperties(){
return {
name: '测试',
}
}
}开发指南
# 开启服务
npm start
# 编译打包
npm run build
# 更新版本号
npm version major|minor|patch
# 发布
npm publish --access publicAPI
配置参数
{
"eventName": "ti-practice-ielts",
"durationType": "min",
}// 返回神策打点属性
getTrackTimerProperties(){
return {
name: '1',
age: '18',
}
} 默认会将当前包裹组件的 componentDidmount 和 compoentwillunmount 之间的时间 duration 自动上传
1.1.2
6 years ago
1.0.25
6 years ago
1.0.24
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.22
6 years ago
1.0.21
6 years ago
1.0.20
6 years ago
1.0.23
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.2
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago