@italentjs/italent-header
iTalent header
Last updated a month ago by beisencorp .
Original npm · Tarball · package.json
$ cnpm install @italentjs/italent-header 
SYNC missed versions from official npm registry.

#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:[]
	            			}
						}
					]
		}

###版本信息:

Current Tags

  • 1.0.72                                ...           latest (a month ago)

85 Versions

  • 1.0.72                                ...           a month ago
  • 1.0.71                                ...           5 months ago
  • 1.0.70                                ...           5 months ago
  • 1.0.69                                ...           5 months ago
  • 1.0.68                                ...           5 months ago
  • 1.0.67                                ...           6 months ago
  • 1.0.66                                ...           7 months ago
  • 1.0.65                                ...           9 months ago
  • 1.0.64                                ...           9 months ago
  • 1.0.63                                ...           9 months ago
  • 1.0.62                                ...           9 months ago
  • 1.0.61                                ...           10 months ago
  • 1.0.60                                ...           a year ago
  • 1.0.59                                ...           a year ago
  • 1.0.58                                ...           a year ago
  • 1.0.57                                ...           a year ago
  • 1.0.55                                ...           a year ago
  • 1.0.54                                ...           a year ago
  • 1.0.53                                ...           a year ago
  • 1.0.52                                ...           a year ago
  • 1.0.51                                ...           a year ago
  • 1.0.50                                ...           a year ago
  • 1.0.49                                ...           a year ago
  • 1.0.48                                ...           a year ago
  • 1.0.47                                ...           a year ago
  • 1.0.46                                ...           a year ago
  • 1.0.45                                ...           a year ago
  • 1.0.44                                ...           a year ago
  • 1.0.43                                ...           a year ago
  • 1.0.42                                ...           a year ago
  • 1.0.40                                ...           a year ago
  • 1.0.39                                ...           a year ago
  • 1.0.38                                ...           a year ago
  • 1.0.37                                ...           a year ago
  • 1.0.35                                ...           a year ago
  • 1.0.34                                ...           a year ago
  • 1.0.33                                ...           a year ago
  • 1.0.32                                ...           a year ago
  • 1.0.31                                ...           a year ago
  • 1.0.30                                ...           a year ago
  • 1.0.28                                ...           a year ago
  • 1.0.29                                ...           a year ago
  • 1.0.27                                ...           a year ago
  • 1.0.26                                ...           a year ago
  • 1.0.25                                ...           a year ago
  • 1.0.24                                ...           a year ago
  • 1.0.23                                ...           a year ago
  • 1.0.22                                ...           a year ago
  • 1.0.21                                ...           a year ago
  • 1.0.20                                ...           a year ago
  • 1.0.18                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 87
Last Month 103
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |