statisticsList.js 1.07 KB
// components/dateScreen/dateScreen.js
Component({
	options: {
		multipleSlots: true,
	},
	/**
	 * 组件的属性列表
	 */
	properties: {
		// hideColon 是否隐藏colon , 默认false
		// name : - 唯一key  , 数据的键值
		// label : 文案
		// col : 占24分之几
		// valueWidth : 值的宽度,默认为100%
		// labelWidth : 标签宽度,默认为150px
		// slot : 整体的插槽名,优先级高于name
		// itemStyle: 每一项的样式
		// tooltip: boolean  是否用tooltip 展示data数据
		// tooltipProps: el-tooltip 的传参
		// render ?:(h,{ data,schemaItem,schema } )=>{}   自定义渲染
		// isHide 是否隐藏  (data)=>boolean ||  boolean
		// parentProps:{
		//	 className:'text-hide'  // 默认
		// },
		itemSchemaList: {},
		title: {},
		itemTitleKey: {
			type: String,
			value: "employeeName",
		},
		list: {
			type: Array,
			value: [],
		},
	},

	lifetimes: {
		ready() {},
	},

	/**
	 * 组件的初始数据
	 */
	data: {},

	/**
	 * 组件的方法列表
	 */
	methods: {
		handleTapItem() {
			this.triggerEvent("tapItem", {});
		},
	},
});