1.0.75 • Published 3 years ago

@italentjs/italent-header v1.0.75

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

#iTalent-header通用头部组件

###组件名称: iTalent-header ###组件使用 this.header = new Header(json) ###组件功能 按照功能划分,图标按钮支持如下: (I)企业LOGO展示

(II)用户自定义操作按钮
	1.搜索:Search
	2.产品列表:HomePage
	3.通知:Message
	4.待办:Todos
	5.换肤:Skin
	6.设置:Settings
	7.升级公告:Upgrade

	在配置图标按钮数据时,type字段的值,#必须是以上列表中得一个。
	icon-font对应的className:
		通知:header-iconcus-xiaoxi
		搜索:header-iconcus-sousuo
		产品:header-iconcus-chanpin
		待办:header-iconcus-daiban
		换肤:header-iconcus-huanfu
		设置:header-iconcus-shezhi
		升级公告:header-iconcus-upgrade


	”通知“下拉菜单可能的取值:
		@我:header-icon-at-me
		@部门动态:header-icon-at-department
		@公告:header-icon-at-notice
		@项目:header-icon-at-project
		@团队:header-icon-at-team
		新回复:header-icon-reply
		@工作通知:header-icon-work-notice
		团队通知:header-icon-team-notice
		招聘:header-icon-recruit
		新粉丝:header-icon-fans
		收赏:header-icon-in-reward
		打赏:header-icon-ex-reward

###依赖数据

this.headerJson = {
			companyInfo:{
				logo:"http://proto.beisen.co/prototype-v2/app/images/header/logo.png"
				,name:"北森集团"
				,href:"www.beisen.com"
			}
			,userInfo:{
				name : "张三张三",
				avatar: {
					color:"#f0c75a"
					,hasAvatar:false
					,small:"http://cache.tita.com/Image/110006/324d5a07a3984689a6a5304d13902567_s.png"
				}
			}
			,userInfoDropDown:[
							{
								title:"个人主页"
								,href:"javascript:void(0)"
								,target:"_self"
							}
							,{
								title:"编辑简档"
								,href:"javascript:void(0)"
								,target:"_self"
							}
							,{
								title:"个人设置"
								,href:"javascript:void(0)"
								,target:"_self"
							}
							,{
								title:"退出登录"
								,href:"javascript:void(0)"
								,target:"_self"
							}

						]
			,oprBtn:[
						{
							type:'Search'
							,iconName:"header-iconcus-sousuo"
							,id:""
							,title:"搜索"
							,href:"javascript:void(0)"
							,reminds:{  //关于新消息
	            				remindCount: 0//是否有最新消息,默认0代表没有最新消息
								,viewAllHref:"#"//查看全部的地址
								,remindList:[]
	            			}
						}
						,{
							type:'HomePage'
							,iconName:"header-iconcus-chanpin"
							,id:""
							,title:"首页"
							,href:"#home"
							,reminds:{  //关于新消息
	            				remindCount: 0//是否有最新消息,默认0代表没有最新消息
								,viewAllHref:"#"//查看全部的地址
								,remindList:[]
	            			}
						}
						,{
							type:'Message'
							,iconName:"header-iconcus-xiaoxi"
							,id:""
							,title:"通知"
							,href:"javascript:void(0)"
							,reminds:{  //关于新消息
	            				remindCount:3//是否有最新消息,默认0代表没有最新消息
								,viewAllHref:"#"//查看全部的地址
								,remindList:[
									            {
									               content:"@部门动态"
									               ,date:"5分钟前"
									               ,length:8
									               ,className:"header-iconcus-tongzhi"
									               ,href:"#"
									            }
									            ,{
									               content:"回复我的"
									               ,date:"5分钟前"
									               ,length:12
									               ,className:"header-iconcus-huifu"
									               ,href:"#"
									            }
									            ,{
									               content:"收赏"
									               ,date:"5分钟前"
									               ,length:12
									               ,className:"header-iconcus-shoushang"
									               ,href:"#"
									            }
								]
	            			}
						}
						,{
							type:'Todos'
							,iconName:"header-iconcus-daiban"
							,id:""
							,title:"待办"
							,href:"javascript:void(0)"
							,reminds:{  //关于新消息
	            				remindCount: 32//是否有最新消息,默认0代表没有最新消息
								,viewAllHref:"#"//查看全部的地址
								,remindList:[
										{
											userName:"张庆华"
											,teskName:"请你负责任务"
											,date:"5分钟前"
											,taskContent:"视觉设计验收任务统计视觉设计验收任务统计视觉"
											,href:"#"
											,avatar: {
												color:"#f0c75a"
												,hasAvatar:true
												,small:"http://cache.tita.com/Image/110006/2e5c56760f494679b1c94234f89539a6_m.png"
											}
										}
										,{
											userName:"孔常柱"
											,teskName:"请你审批任务"
											,date:"5分钟前"
											,taskContent:"视觉设计验收任务统设计验收任务统计计视觉设计验收任务统计视设计验收任务统计觉设计验收任务统计"
											,href:"#"
											,avatar: {
												color:"#f0c75a"
												,hasAvatar:true
												,small:"http://cache.tita.com/Image/110006/b4bc3d7696e74345b3ee3cd88cd1538f_m.png"
											}
										}
										,{
											userName:"郭美山"
											,userPic:"http://cache.tita.com/Image/110006/324d5a07a3984689a6a5304d13902567_m.png"
											,date:"5分钟前"
											,taskContent:"视觉设计验收任务统计"
											,href:"#"
											,avatar: {
												color:"#f0c75a"
												,hasAvatar:true
												,small:"http://cache.tita.com/Image/110006/324d5a07a3984689a6a5304d13902567_s.png"
											}
										}

								]
	            			}
						}
						,{
							type:'Skin'
							,iconName:"header-iconcus-huanfu"
							,id:""
							,title:"换肤"
							,href:"javascript:void(0)"
							,reminds:{  //关于新消息
	            				remindCount: 0//是否有最新消息,默认0代表没有最新消息
								,viewAllHref:"#"//查看全部的地址
								,remindList:[]
	            			}
						}
					]
		}

###版本信息:

1.0.75

3 years ago

1.0.72

4 years ago

1.0.71

4 years ago

1.0.70

4 years ago

1.0.69

4 years ago

1.0.68

4 years ago

1.0.67

4 years ago

1.0.66

4 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.28

5 years ago

1.0.29

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago