1.1.4 • Published 4 years ago

traffic-biz-component v1.1.4

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
4 years ago

npm.io

安装

npm i traffic-biz-component

接入

import { InterConfigSetting } from 'traffic-biz-component'

<InterConfigSetting.ParamsAsync
  inter={{
    id: '152C909H0R0',
    interName: '南京路路口'
  }}
  week={[
    {
      label: '星期一',
      value: 0,
      time: [{
          label: '05:10-07:00',
          value: '0510-0700'
        }, {
          label: '09:30-17:00',
          value: '0930-1700'
        }]
    }, 
    {
      label: '星期二',
      value: 1,
      time: [{
        label: '05:10-07:00',
        value: '0510-0700'
      }, {
        label: '09:30-17:00',
        value: '0930-1700'
      }]
    }
  ]}
  taskId='20807'
  onTimeClick={
    (week, time) => {
      console.log(week, time)
    }
  }
  batchSaveCallBack={
    (res) => {
      console.log(res)
    }
  }
  saveCallBack={
    (res) => {
      console.log(res)
    }
  }
/>

参数

属性名描述参考默认值是否必传
inter路口信息{id: 'xx', interName: '路口'}{}
taskId任务ID20789''
week日期时间[{labe: '星期一',value: 0, time:{label:'05:00-06:00',value:'0500-0600'}}][]
onTimeClick星期或时间切换回调e => week, time
saveCallBack保存回调e=> (activeWeek, activeTime, currentParams, taskId)
batchSaveCallBack批量保存回调e =>(checkedRoad, checkedPhase, applyTime, currentParams, taskId)
1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago