1.12.6 • Published 5 years ago

@beisen/tita-widget v1.12.6

Weekly downloads
3
License
ISC
Repository
gitlab
Last release
5 years ago

1) 封装组件注意事项

1. 所有有的文件名要保持一唯一
2. 所有的类名要保持和文件名一样
3. 只保留需要的有用的文件,
4. 样式表,去掉以前冗余的样式,样式表名称与组件文件夹名称一一对应

1.模板名称与view名称对应
2.ui查找通过data-name 
3.data-name 中需要加task-create-(***)
4.存储在model里数据 为驼峰式,首字母小写
5.日期显示时,当年的不显示是年,M/D,使用Context.formatDate
6.所有变量名称首字母小写
7.所有需要tipsy 里在滑上去才绑定
8.所有封装的view,需要在model里保存相关数据 

2)需要在页面打值

BSGlobal = {
	//租户信息
	"tenantInfo": {
		"Id": 204122
	}
	,"loginUserInfo": {
		"Id": 100360313
		,"Role": 4
	}
	,"apiPath": "http://webapi.tita-inc.com"
	,"titaHost":"" //有些需要跳转到tita 上面,比如说头像链接
}

3) task-list

1.依赖组件
	- talent,
	- UserSelector,
	- $.tipsy,
	- moment,
	- tita-network

2.在app/scripts/config.js,下增加,并依赖上面的组件
	'TitaWidget':'vendor/components/tita-widget/task-list'

3.使用方法如下:例


var mCollection = talent.Collection.extend({
	initialize:function(){
		this.model = talent.Model.extend({
			idAttribute:'Id'
		});
	}
});
var taskListView = new TitaWidget.TaskListView({
	collection:new mCollection(data)
});

this.$el.append(this.taskListView.render().el);

4.可选参数:
{
	'isShowKclass':true
	,'isShowOwnerTag': false // 是否显示我派发的,我参与的标签,上级安排
	,'isShowStar' : true // 是否显示星标
	,'isShowSetRemind' :false //显示设置提醒图标
	,'objType' : 7 // 如果出现闹钟提醒时,objtype要要有
	,'isShowDelete' : false
	,isChildTask : false //是否是子任务
	,pageSize:50   //一次加载的数量,超过50显示更多翻页
	,isShowPercent:false //是否显示任务完成度
}

4) pull-screen

	说明:
	如果要显示推拉屏,只需要改变推拉屏的model的id
	this.PullScreen.model.set('id',id);

	如果使用的是tita-widget中的task-list,不需要去绑定事件,也不要改变改变推拉屏的model的id,
	里面是监听全局事件global-pull-screen,而自动推拉屏的

	1.依赖组件
	 talent

	2.在app/scripts/config.js,下增加,并依赖上面的组件
		"PullScreen" : 'vendor/components/tita-widget/pull-screen'

	3.使用方法如下:例

	this.PullScreen = titaWidget.PullScreenView();
	this.$el.append(this.PullScreen.render().el);
	

4) 分享框 PublistMblogView

		'id':'pubMblog'//必填 
		/**
		* type: 默认feed, 如tita首面发动态,comment,如tita首页feed回复
		**/		   
		,'type':'feed'//type=comment; 
		,'maxlength':'1000'
		,'isLimit' : true
		,'defaultValue':'你在忙什么'
		,'value':''
		,'submitText':'发布'
		,'shape':'default'//line,default
		,'defaultHide':false
		,'inFocus':true//是否自动获得焦点
		,'toUserName':'' // 只有开启 type=comment 才生效

		//at all
		,'isShowAtAll':false
		,'atAllText':"所有同事"
		,'atAllValue':"@[所有同事:all_members] "
		,'atAllTipText':"所有同事将收到本条消息"

		//at
		,"isShowAt":true
		,'atText':"同事"
		,"atTipText":"想确保谁看到就@这个成员"

		////Attachment
		,"isShowAttachment":true

		//emotion
		,'isShowEmotion':true
		,'emotionText':'表情'

		//range:
		,"isShowRange":true
		,'privateText':'所有人可见'
		,'privateValue':1//1公开,2私密 3部门
		,'isShowRangeDropDown':true
		,'privateDropDownOptions':{
			'privateValue':1//1公开,2私密 3部门
		    ,'sort':[1,3,2]
		    ,'publicOptions':{ //公开 当为false,不可见
			     'name':'公开'
			     ,'des':'所有人可见'
		      }
		    ,'privateOptions':{ //私密 当为false,不可见
			   'name':'私密'
			   ,'des':'仅@的人可见'
		     }
		    ,'departmentOptions':{ //部门 当为false,不可见
			   'name':'部门可见'
			  ,'des':'仅我的部门可见'
		    }
		}

		//短信通知
		,'isShowSendSms':true
		,'params':{}
		,'submitRequest':function(options){
			var deferred = new Talent.$.Deferre;
			/*deferred.resolve(data);
			deferred.reject(msg);*/
			return deferred;
		}

5) 回复列表 CommentListView

		isPrivate':false // 是否私密私,私密是每条上会有个小锁
		,'privateTipText':'所有可见' //如果Model有,model优先
		,'actionMore':{
			'detail':true
			,'deleted':true
			,'setTop':false
		}
		,'defaultCount':4
		,'feedId':''
		,'sort':'append' //对回复列表进行排序,append 最新在下面,prepend 最新的在最在上面

6) feed列表 FeedListView

		"isInAppPage":false //true,在项目页等一些其它页面时,头像全部为人的头像
		,'onlyComment':false //只有回复列表
		/**
		*mBlogOptions:请参照 4) 分享框 PublistMblogView
		**/
		,'mBlogOptions':{ 
			'defaultHide':true
			,'defaultValue':''
		}//回复框设置
		,'custom':{
			'more':true
			,'remind':true
			,'collect':true
			,'reply':true
		}
		,'actionMore':{
			'detail':true
			,'delete':true
			,'setTop':true
			,'setTopPramas':{}
		}
		,'isPrivate':false
		,'privateTipText':''// 锁提示文字
		,'feedId':'' //如果onlyComment 为true时,就必需传feedid,否则添加回复时自己触发
		,'defaultCount':4  //默认显示几条回复
		,'sort':'append' //对回复列表进行排序,append 最新在下面,prepend 最新的在最在上面 绩效的widget 里,最新回复的在最上面

7) 带切换标签 FeedTabListView(例:tita首页)

8) 扩展信息 FeedExtraInfoListView

6) 操作记录 TrackView

######参数

	'defaultCount':4 //默认显示几条
事件
	showAll:点击展开,显示全部

#Changelog

tita-widget 整体升级

###0.2.12 修复: 1.任务列表里 ,任务完成之后,报错,缺少心得模板 2.feed 操作列表error

###0.2.11 修复: 1._.evaluation 报错

###0.2.10 修复: 1.开能目标产品的,分类不显示目标。 2.订制了不显示会议、出差,任务列表详情模式,依然显示会议出差

###0.2.9 增加了任务详情页,……

task-list

###0.2.8 支持心得

###0.2.7 修复bug:任务列不显示心得图标

###0.2.6 修复bug:任务列不显示沟通、工时图标

v 0.2.2

去掉了console.log

v 0.2.1

原来的多维数据结构,修改为一维数据结构 options: 增加了 data, 删除了 colltion 在new TaskListView 时 原来的数据 是 附给 colletion的,现在靠data 传送

pull-screen

0.2.3

因受过期影响,把任务详情页的地址修改为: http://www.tita.com/100055587/ITalentHome/#more/taskinfo?Id=110006_2033626_7_20_635800846411257164

原地地 http://www.tita.com/u/100055587/Home/#more/taskinfo?Id=110006_2033626_7_20_635800846411257164

##feed ###0.2.4 支持来自手机端的换行

1.12.6

5 years ago

1.12.5

5 years ago

1.12.3

5 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.31

5 years ago

1.11.30

5 years ago

1.11.29

5 years ago

1.11.28

5 years ago

1.11.27

5 years ago

1.11.26

5 years ago

1.11.25

5 years ago

1.11.24

5 years ago

1.11.23

5 years ago

1.11.22

5 years ago

1.11.21

5 years ago

1.11.20

5 years ago

1.11.19

5 years ago

1.11.18

5 years ago

1.11.17

5 years ago

1.11.16

5 years ago

1.11.15

5 years ago

1.11.14

5 years ago

1.11.13

5 years ago

1.11.12

5 years ago

1.11.11

5 years ago

1.11.10

5 years ago

1.11.9

5 years ago

1.11.8

5 years ago

1.11.7

5 years ago

1.11.6

5 years ago

1.11.5

5 years ago

1.11.4

5 years ago

1.11.3

5 years ago

1.11.2

5 years ago

1.10.45

5 years ago

1.11.1

5 years ago

1.10.44

5 years ago

1.10.43

5 years ago

1.10.42

5 years ago

1.10.41

5 years ago

1.10.40

5 years ago

1.10.39

6 years ago

1.10.38

6 years ago

1.10.37

6 years ago

1.10.36

6 years ago

1.10.35

6 years ago

1.10.34

6 years ago

1.10.33

6 years ago

1.10.32

6 years ago

1.10.31

6 years ago

1.9.37

6 years ago

1.10.30

6 years ago

1.10.29

6 years ago

1.10.28

6 years ago

1.9.36

6 years ago

1.10.27

6 years ago

1.9.35

6 years ago

1.9.34

6 years ago

1.10.26

6 years ago

1.10.25

6 years ago

1.10.24

6 years ago

1.9.33

6 years ago

1.9.32

6 years ago

1.9.31

6 years ago

1.9.30

6 years ago

1.9.29

6 years ago

1.9.28

6 years ago

1.9.27

6 years ago

1.9.26

6 years ago

1.9.25

6 years ago

1.9.24

6 years ago

1.9.23

6 years ago

1.9.22

6 years ago

1.9.21

6 years ago

1.9.20

6 years ago

1.9.19

6 years ago

1.9.18

6 years ago

1.9.17

6 years ago

1.9.16

6 years ago

0.11.9

6 years ago

0.11.8

6 years ago

1.9.15

6 years ago

1.9.14

6 years ago

0.11.7

6 years ago

1.9.13

6 years ago

1.9.12

6 years ago

0.11.6

6 years ago

0.11.5

6 years ago

0.11.4

6 years ago

0.11.3

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.10.40

6 years ago

0.10.39

6 years ago

0.10.38

6 years ago

0.10.37

6 years ago

1.9.11

6 years ago

0.10.36

6 years ago

0.10.35

6 years ago

0.10.34

6 years ago

0.10.33

6 years ago

0.10.32

6 years ago

0.10.31

6 years ago

0.10.30

6 years ago

0.10.29

6 years ago

0.10.28

6 years ago

0.10.27

6 years ago

0.10.24

6 years ago

1.10.23

6 years ago

1.10.22

6 years ago

1.10.21

6 years ago

1.10.20

6 years ago

1.10.19

6 years ago

1.10.18

6 years ago

1.10.17

6 years ago

1.10.15

6 years ago

1.10.14

6 years ago

1.10.13

6 years ago

1.10.12

6 years ago

1.10.11

6 years ago

1.9.10

6 years ago

1.10.10

6 years ago

1.10.9

6 years ago

1.10.8

6 years ago

1.10.5

6 years ago

1.10.4

6 years ago

1.10.3

6 years ago

1.10.2

6 years ago

1.10.1

6 years ago

1.2.0

6 years ago

1.9.9

6 years ago

1.9.8

6 years ago

1.9.6

6 years ago

1.9.5

6 years ago

1.9.4

6 years ago

1.9.3

6 years ago

1.9.2

6 years ago

1.9.1

6 years ago

1.9.0

6 years ago

1.8.51

6 years ago

1.8.50

6 years ago

1.8.49

6 years ago

1.0.49

6 years ago

1.8.48

6 years ago

1.8.47

6 years ago

0.8.49

6 years ago

0.8.48

6 years ago

0.8.47

6 years ago

1.8.46

6 years ago

1.8.45

6 years ago

1.8.44

6 years ago

1.8.42

6 years ago

1.8.38

6 years ago

1.8.37

6 years ago

1.8.36

6 years ago

1.8.35

6 years ago

1.8.34

6 years ago

1.8.33

6 years ago

1.8.32

6 years ago

1.8.31

6 years ago

1.8.30

6 years ago

1.8.29

6 years ago

1.8.28

6 years ago

1.8.27

6 years ago

1.8.26

6 years ago

1.8.25

6 years ago

1.8.24

6 years ago

1.8.23

6 years ago

1.8.22

6 years ago

1.8.21

6 years ago

1.8.20

6 years ago

1.8.19

6 years ago

1.8.18

6 years ago

1.8.16

6 years ago

1.8.14

6 years ago

1.8.13

6 years ago

1.8.12

6 years ago

1.8.11

6 years ago

1.8.10

6 years ago

1.8.9

6 years ago

1.8.7

6 years ago

1.8.6

6 years ago

1.8.5

6 years ago

1.8.4

6 years ago

1.8.3

6 years ago

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.20

6 years ago

1.7.19

6 years ago

1.7.18

6 years ago

1.7.17

6 years ago

1.7.16

6 years ago

1.7.15

6 years ago

1.7.11

6 years ago

1.7.10

6 years ago

1.7.9

6 years ago

1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.20

6 years ago

1.6.19

6 years ago

1.6.18

6 years ago

1.6.17

6 years ago

1.6.16

6 years ago

1.6.15

6 years ago

1.6.14

6 years ago

1.6.13

6 years ago

1.6.11

6 years ago

1.6.10

6 years ago

1.6.9

6 years ago

1.6.8

6 years ago

1.6.7

6 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.5.17

6 years ago

1.5.16

6 years ago

1.5.15

6 years ago

1.5.14

6 years ago

1.5.13

6 years ago

1.5.12

6 years ago

1.5.11

6 years ago

1.5.10

6 years ago

1.5.9

6 years ago

1.5.8

6 years ago

1.5.7

6 years ago

1.5.6

6 years ago

1.5.5

6 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.16

6 years ago

1.4.15

6 years ago

1.4.14

6 years ago

1.4.13-9

6 years ago

1.4.13-8

6 years ago

1.4.13-7

6 years ago

1.4.13-6

6 years ago

1.4.13-5

6 years ago

1.4.13-4

6 years ago

1.4.13-2

6 years ago

1.4.13-1

6 years ago

1.4.13

6 years ago

1.4.12

6 years ago

1.4.11

6 years ago

1.4.10

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.0-1

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.11

6 years ago

1.3.10

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1-2

6 years ago

1.3.1-1

6 years ago

1.2.29

6 years ago

1.3.1

6 years ago

1.2.26

6 years ago

1.2.25

6 years ago

1.2.24

6 years ago

1.2.23

6 years ago

1.2.22

6 years ago

1.2.21

6 years ago

1.2.20

6 years ago

1.2.19

7 years ago

1.2.18

7 years ago

1.2.17

7 years ago

1.2.14

7 years ago

1.2.13

7 years ago

1.2.12

7 years ago

1.2.11

7 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2-1

7 years ago

1.2.0-33

7 years ago

1.2.0-32

7 years ago

1.2.0-31

7 years ago

1.2.2

7 years ago

1.2.0-30

7 years ago

1.2.1

7 years ago

1.2.0-28

7 years ago

1.2.0-27

7 years ago

1.2.0-26

7 years ago

1.2.0-25

7 years ago

1.2.0-24

7 years ago

1.2.0-23

7 years ago

1.2.0-22

7 years ago

1.2.0-21

7 years ago

1.2.0-20

7 years ago

1.2.0-19

7 years ago

1.2.0-18

7 years ago

1.2.0-17

7 years ago

1.2.0-16

7 years ago

1.2.0-15

7 years ago

1.2.0-14

7 years ago

1.2.0-13

7 years ago

1.2.0-12

7 years ago

1.2.0-11

7 years ago

1.2.0-10

7 years ago

1.2.0-9

7 years ago

1.2.0-8

7 years ago

1.2.0-7

7 years ago

1.2.0-6

7 years ago

1.2.0-5

7 years ago

1.2.0-4

7 years ago

1.2.0-3

7 years ago

1.2.0-2

7 years ago

1.2.0-1

7 years ago

1.1.9-12

7 years ago

1.1.0-11

7 years ago

1.1.0-10

7 years ago

1.1.9-10

7 years ago

1.1.9-9

7 years ago

1.1.9-8

7 years ago

1.1.9-7

7 years ago

1.1.10

7 years ago

1.1.9-6

7 years ago

1.1.9-5

7 years ago

1.1.9-4

7 years ago

1.1.9-3

7 years ago

1.1.9-2

7 years ago

1.1.9-1

7 years ago

1.1.9

7 years ago

1.1.8-9

7 years ago

1.1.8-8

7 years ago

1.1.8-7

7 years ago

1.1.8-6

7 years ago

1.1.8-5

7 years ago

1.1.8-4

7 years ago

1.1.8-3

7 years ago

1.1.8-2

7 years ago

1.1.8-1

7 years ago

1.1.7-10

7 years ago

1.1.8

7 years ago

1.1.7-9

7 years ago

1.1.7-8

7 years ago

1.1.7-7

7 years ago

1.1.7-6

7 years ago

1.1.7-5

7 years ago

1.1.7-4

7 years ago

1.1.7-3

7 years ago

1.1.7-2

7 years ago

1.1.7-1

7 years ago

1.1.7

7 years ago

1.1.6-5

7 years ago

1.1.6-4

7 years ago

1.1.6-3

7 years ago

1.1.6-2

7 years ago

1.1.6-1

7 years ago

1.1.6

7 years ago

1.1.5-2

7 years ago

1.1.5-1

7 years ago

1.1.5

7 years ago

1.1.4-6

7 years ago

1.1.4-5

7 years ago

1.1.4-4

7 years ago

1.1.4-2

7 years ago

1.1.4-1

7 years ago

1.1.4

7 years ago

1.1.3-6

7 years ago

1.1.3-5

7 years ago

1.1.3-4

7 years ago

1.1.3-3

7 years ago

1.1.3-2

7 years ago

1.1.3-1

7 years ago

1.1.3

7 years ago

1.1.2-19

7 years ago

1.1.2-18

7 years ago

1.1.2-17

7 years ago

1.1.2-16

7 years ago

1.1.2-15

7 years ago

1.1.2-14

7 years ago

1.1.2-13

7 years ago

1.1.2-12

7 years ago

1.1.2-11

7 years ago

1.1.2-10

7 years ago

1.1.2-9

7 years ago

1.1.2-8

7 years ago

1.1.2-6

7 years ago

1.1.2-5

7 years ago

1.1.2-4

7 years ago

1.1.2-3

7 years ago

1.1.2-2

7 years ago

1.1.2-1

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9-12

7 years ago

1.0.9-11

7 years ago

1.0.9-10

7 years ago

1.0.9-9

7 years ago

1.0.9-8

7 years ago

1.0.9-7

7 years ago

1.0.9-6

7 years ago

1.0.9-5

7 years ago

1.0.9-4

7 years ago

1.0.9-3

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.9-2

7 years ago

1.0.9-1

7 years ago

1.0.11

7 years ago

0.9.1-o

7 years ago

1.0.9

7 years ago

1.0.8-3

7 years ago

1.0.8-2

7 years ago

1.0.8-1

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

0.9.28

7 years ago

0.9.27

7 years ago

0.9.26

7 years ago

0.9.25

7 years ago

0.9.24

7 years ago

0.9.23

7 years ago

0.9.22

7 years ago

0.9.21

7 years ago

0.9.20

7 years ago

0.9.19

7 years ago

0.9.18

7 years ago

0.9.17

7 years ago

0.9.16

7 years ago

0.9.15

7 years ago

0.9.14

7 years ago

0.9.13

7 years ago

0.9.12

7 years ago

0.9.11

7 years ago

0.9.10

7 years ago

0.9.9

7 years ago

0.9.8

7 years ago

0.9.7

7 years ago

0.9.5

7 years ago

0.9.4

7 years ago

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.8.7

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.7.11

7 years ago

0.7.10

7 years ago

0.7.9

7 years ago

0.7.8

7 years ago

0.7.7

7 years ago

0.7.6

7 years ago

0.7.5

7 years ago

0.7.4

7 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.6.16

7 years ago

0.6.13

7 years ago

0.6.12

7 years ago

0.6.11

7 years ago

0.6.10

7 years ago

0.6.9

7 years ago

0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.5.38

7 years ago

0.5.37

7 years ago

0.6.1

7 years ago

0.5.36

7 years ago

0.5.35

7 years ago

0.5.34

7 years ago

0.5.33

7 years ago

0.5.32

7 years ago

0.5.31

7 years ago

0.5.30

7 years ago

0.5.29

7 years ago

0.5.28

7 years ago

0.5.27

7 years ago

0.5.26

7 years ago

0.5.25

7 years ago

0.5.24

7 years ago

0.5.23

7 years ago

0.5.22

7 years ago

0.5.21

7 years ago

0.5.20

7 years ago

0.5.19

7 years ago

0.5.18

7 years ago

0.5.17

7 years ago

0.5.16

7 years ago

0.5.15

7 years ago

0.5.14

7 years ago

0.5.12

7 years ago

0.5.11

7 years ago

0.5.10

7 years ago

0.5.9

7 years ago

0.5.8

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.4.4

7 years ago