类名 common/base/event/UpdateContent.js
import { defaultValue } from '../../util'

/**
 * 更新内容对象
 * @class UpdateContent
 * @moduleEX BaseModule
 * @param {Object} options 构造参数
 * @param {Boolean} [options.dataChanged = true] 数据是否发生变化
 * @param {String} [options.name = null] 事件名称(类型)
 * @param {String} [options.operationType = 'property'] 事件操作类型,property:属性事件,method:方法事件
 * @param {Array} [options.params = []] 事件操作中使用的参数
 */
class UpdateContent {
  constructor(options) {
    options = defaultValue(options, {})
    /**
     * 数据是否发生变化
     * @member {Boolean} UpdateContent.prototype.dataChanged
     */
    this.dataChanged = defaultValue(options.dataChanged, true)
    /**
     * 事件名称(类型)
     * @member {String} UpdateContent.prototype.name
     */
    this.name = defaultValue(options.name, '')
    /**
     * 事件操作类型,property:属性事件,method:方法事件
     * @member {String} UpdateContent.prototype.operationType
     */
    this.operationType = defaultValue(options.operationType, 'property')
    /**
     * 事件操作中使用的参数
     * @member {Array} UpdateContent.prototype.params
     */
    this.params = defaultValue(options.params, [])
  }
}

export default UpdateContent
构造函数
成员变量
方法
事件