@beisen-cmps/cooperation
## 参数说明 ```ts interface IProps { id: string | number; //feed_id 无默认 isShowHead?: boolean; //是否显示头部 默认 true isOpenReward?: boolean; //是否开通打赏 默认false cooperationHeadName?: string; //协作组件title名称 默认“协作” isShowOperationRecord?: boolean; //是否显示操作记录 默认tru
Last updated 7 months ago by beisencorp .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @beisen-cmps/cooperation 
SYNC missed versions from official npm registry.

协作组件

参数说明

interface IProps {
 	id: string | number; //feed_id 无默认
	isShowHead?: boolean; //是否显示头部 默认 true
	isOpenReward?: boolean; //是否开通打赏  默认false
	cooperationHeadName?: string; //协作组件title名称 默认“协作”
	isShowOperationRecord?: boolean; //是否显示操作记录 默认true
	extendedComponentsData?: Array<ComponentsData>; //扩展  上部tab扩展
	userAdvanceMode?: boolean; //是否开启选人组件的高级模式 默认false
	isShowMentionAllBtn?: boolean; //是否显示@所有同事的按钮 默认true
	isShowMentionBtn?: boolean; //是否显示@同事按钮 默认true
	isShowEmojyBtn?: boolean; //是否显示表情包按钮 默认true
	isShowUploadBtn?: boolean; //是否显示上传按钮 默认 true
	isExtendBefor?:boolean;// 是否将扩展字段插入到tab前面显示 默认 false
	operationBtnExternal?: React.ReactElement | React.ReactElement[]; //下方沟通组件的扩展字段
}

interface ComponentsData{
	text:string; //显示的名称
	name:string, //内部标示key值
	components:ReactNode //下方需要显示的扩展内容
}
peerDependencies: {
		"react": "16.x.x",
		"react-dom": "16.x.x",
		"styled-components": "^4.2.0"
	}
//注意:组件内部使用Bsglobal里的相关字段,请确保承载页里有tenantInfo(租户信息)、loginUserInfo(用户信息)、apiPath(主站地址)

##配置说明

示例代码

// 一般用法
import * as React from 'react';
import Cooperation from './../../src/index';
interface IProps {}
const Test: React.FunctionComponent<IProps> = () => {
	const testProps = {
		id: '12312',
		isShowHead: false, //是否显示头部
		isShowOperationRecord: true,
		isOpenReward: false,
		cooperationHeadName: '协作',
		extendedComponentsData: [
			{ text: '扩展', name: 'test', components: <div>test</div> }
		],
		isShowMentionAllBtn: false,
		userAdvanceMode: true,
		isShowMentionBtn: false,
		isShowEmojyBtn: false,
		isShowVisible: true,
		operationBtnExternal: <div>扩展按钮</div>
	};
	return <Cooperation {...testProps} />;
};

export default Test;


##兼容性说明
1、ie、edge浏览器不支持粘贴上传
2、不支持windows系统下在资源管理器直接复制图片进行粘贴上传,支持截图粘贴上传

Current Tags

  • 1.3.7                                ...           latest (7 months ago)

85 Versions

  • 1.3.7                                ...           7 months ago
  • 1.3.6                                ...           8 months ago
  • 1.3.5                                ...           8 months ago
  • 1.3.4                                ...           8 months ago
  • 1.3.3                                ...           8 months ago
  • 1.3.1                                ...           8 months ago
  • 1.3.0                                ...           8 months ago
  • 1.2.49                                ...           8 months ago
  • 1.2.48                                ...           9 months ago
  • 1.2.47                                ...           9 months ago
  • 1.2.46                                ...           9 months ago
  • 1.2.44                                ...           9 months ago
  • 1.2.43                                ...           9 months ago
  • 1.2.42                                ...           9 months ago
  • 1.2.35                                ...           9 months ago
  • 1.2.41                                ...           10 months ago
  • 1.2.40                                ...           10 months ago
  • 1.2.39                                ...           10 months ago
  • 1.2.38                                ...           10 months ago
  • 1.2.37                                ...           10 months ago
  • 1.2.36                                ...           10 months ago
  • 1.2.34                                ...           10 months ago
  • 1.2.33                                ...           10 months ago
  • 1.2.32                                ...           10 months ago
  • 1.2.31                                ...           10 months ago
  • 1.2.30                                ...           10 months ago
  • 1.2.29                                ...           10 months ago
  • 1.2.28                                ...           10 months ago
  • 1.2.27                                ...           10 months ago
  • 1.2.26                                ...           10 months ago
  • 1.2.25                                ...           10 months ago
  • 1.2.24                                ...           10 months ago
  • 1.2.23                                ...           10 months ago
  • 1.2.22                                ...           10 months ago
  • 1.2.21                                ...           10 months ago
  • 1.2.20                                ...           10 months ago
  • 1.2.19                                ...           10 months ago
  • 1.2.18                                ...           10 months ago
  • 1.2.17                                ...           10 months ago
  • 1.2.16                                ...           10 months ago
  • 1.2.15                                ...           10 months ago
  • 1.2.14                                ...           10 months ago
  • 1.2.13                                ...           10 months ago
  • 1.2.12                                ...           10 months ago
  • 1.2.11                                ...           10 months ago
  • 1.2.10                                ...           10 months ago
  • 1.2.9                                ...           10 months ago
  • 1.2.8                                ...           10 months ago
  • 1.2.7                                ...           10 months ago
  • 1.2.6                                ...           10 months ago
  • 1.2.5                                ...           10 months ago
  • 1.2.3                                ...           10 months ago
  • 1.2.2                                ...           10 months ago
  • 1.2.1                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.11                                ...           a year ago
  • 1.1.10                                ...           a year ago
  • 1.1.9                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           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.20                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 0.0.4-4                                ...           a year ago
  • 0.0.4-3                                ...           a year ago
  • 0.0.4-2                                ...           a year ago
  • 0.0.4-1                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2-2                                ...           a year ago
  • 0.0.2-1                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1-1                                ...           a year ago
  • 0.0.1                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |