Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

类型描述示例
configSlide

数字滑动条,用于配置数字型属性;
例如字体大小,宽、高等

Code Block
languagejs
{
 	title: "尺寸",
 	type: "configSlide",
 	bind: "itemLabelSize",
 	config: {
		slideStart: 0,
 		slideEnd: 100
 	}
 }
fontFamily字体设置
Code Block
languagejs
{
	title: "字体",
	type: "fontFamily",
	bind: "tFontFamily"
}
text-input-sl单行输入框
Code Block
languagejs
{
	title: "名称",
	type: "text-input-sl",
	bind: "name"
}
text-area多行输入框
Code Block
languagejs
{
	title: "内容",
	type: "text-area",
	bind: "content"
}
colorpicker颜色选择器
Code Block
languagejs
{
	title: "字体颜色",
	type: "colorpicker",
	bind: "fontColor"
}
iconpicker图标选择器
Code Block
languagejs
{
	title: "图标",
	type: "iconpicker",
	bind: "icon"
}
toggle-switch开关选择器
Code Block
languagejs
{
	title: "标题",
	bind: "showTitle",
	type: "toggle-switch",
	on: "显示",
	off: "隐藏"
}
button按钮
Code Block
languagejs
{
	title: "刷新控件",
	type: "button",
	btnClass: "btn-success",
	onClick: function(){
		scope.refreshComponent();
	}
}
imagepicker附件图片选择按钮
Code Block
languagejs
{
	title: "背景图片",
	type: "imagepicker",
	bind: {
		name: "backgroundImageName",
		data: "backgroundImage"
	}
}
radio文字型单选按钮
Code Block
languagejs
{
   title: "合计位置",
   type: "radio",
   bind: "summaryPosition",
   items: [{
      name: "最前",
      value: "first"
   },{
      name: "最后",
      value: "last"
   }]
}
radio-icon图标型单选按钮
Code Block
languagejs
{
   title: "对齐",
   type: "radio-icon",
   bind: "align",
   items: [{
      name: "左对齐",
      value: "alignLeft",
      icon: "fa fa-align-left"
   },{
      name: "自动",
      value: "auto",
      icon: "fa fa-arrows-h"
   },{
      name: "右对齐",
      value: "alignRight",
      icon: "fa fa-align-right"
   }]
}
select-s下拉框选择器
Code Block
languagejs
{
   title: "合计位置",
   type: "radio",
   bind: "summaryPosition",
   items: [{
      name: "最前",
      value: "first"
   },{
      name: "最后",
      value: "last"
   }]
}
horizontal-align水平对齐选择器
Code Block
languagejs
{
   title: "对齐",
   type: "horizontal-align",
   bind: "dAlign"
}
font-style字体风格
Code Block
languagejs
{
   title: "字体风格",
   type: "font-style",
   bind: "dFontStyle"
}
propertyMultiSelectmeasureMultiPicker指标选择器(多选)warning
Code Block
languagejs
{
   title: "查询指标",
   type: "propertyMultiSelectmeasureMultiPicker",
   bind: "theMeasures"
}
measureDropdownPicker

变量保存位置:
component.config.{bind}.queryProperties

   
   
   
指标选择器(下拉单选)
Code Block
languagejs
{
   title: "查询指标",
   type: "measureDropdownPicker",
   bind: "theMeasure"
}
dimensionMultiPicker维度选择器(多选)
Code Block
languagejs
{
   title: "维度",
   type: "dimensionMultiPicker",
   bind: "theDimensions"
}
dimensionDropdownPicker维度选择器(单选)
Code Block
languagejs
{
   title: "联动维度",
   type: "dimensionDropdownPicker",
   bind: "theDimension"
}