Skip to main content

标准组件库

基础:按钮 cloudcc-button

属性

  • 主题:可选值primary / success / warning / danger / info / text
  • 组件ID,使用英文逗号分隔:通过其他组件的ID获取组件的值,
  • 方法体:根据实际需求给按钮写入方法函数,可使用vuale.getValue()获取其他组件的值
function test(conext,value) {
    alert(JSON.stringify(value.getObject()))
}
  • 网络请求地址:写入上述定义的方法中用到的请求数据接口地址
  • 返回体处理:用于处理响应数据后的动作,例如:提示提交成功
// self:当前组件上下文,res:响应数据
function test(self,res) {
    console.log(res)
}

事件

  • 鼠标移入
function myMouseover(self) {
    // self即this,本组件的vue实例
}