API
Component

OrgImage ($UI/system/components/justep/org/orgImage)

使用范围:UI2

Contents

component OrgImage ($UI/system/components/justep/org/orgImage) extends BlobImage

<b>使用场景</b>:显示组织人员头像; <b>使用方法</b>:添加orgImage组件,绑定要显示图片的路径;

Constructor Top

  OrgImage ()
  OrgImage ( options)

Properties Top

string orgKind

组件绑定的组织类型,取值范围:'person'

Attributes Top

string bind-ref

绑定数据,可以指向org的sID列或者sFID列

string orgKind

组件绑定的组织类型,取值范围:'person'

Methods Top

Object get (String name)
void set (json arg)

Constructor details Top

public OrgImage ()

<b>使用场景</b>:显示组织人员头像; <b>使用方法</b>:添加orgImage组件,绑定要显示图片的路径;

public OrgImage ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Properties Detail Top

public string orgKind

组件绑定的组织类型,取值范围:'person'

Attributes Detail Top

public string bind-ref

绑定数据,可以指向org的sID列或者sFID列

public string orgKind

组件绑定的组织类型,取值范围:'person'

Methods Detail Top

public Object get (String name)

获取属性值

Parameters

String name

属性名称,取值范围:"disabled"、"limitSize"、"imageType"、"orgKind"

Return Value

Object

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "disabled" : 禁用, "limitSize" : 上传文件限制大小,支持格式:1024,25B,100KB,390M,34G,单位支持:B、KB、M、G,默认单位是B,不设置标示不限制大小 "imageType" : 可以选择的image类型,使用','分隔,如:.jpg,.png "orgKind" : 组件绑定的组织类型,取值范围:'person' }

Return Value

void