text: 
  import assembly from './assembly'
  export default class MRadio extends assembly {
    constructor(
      type = 'Radio',
      name = '单选',
      col = 24,
      key = 'Radio' + new Date().getTime()
    ) {
      super(type, name, col, key)
      this.showFrom = ['name', 'col', 'key',
        'disabled', 'radioType', 'dataType', 'option', 'url'
      ]
      // button
      this.radioType = 'yuan'
      this.disabled = false
  
      // 数据类型 option 和 url
      this.dataType = 'option'
      // 请求接口
      this.url = ''
      // 下拉框的选项
      this.option = [{
        value: 'Beijing',
        label: '北京'
      }, {
        value: 'Shanghai',
        label: '上海'
      }, {
        value: 'Tianjin',
        label: '天津'
      }, {
        value: 'ChongQing',
        label: '重庆'
      }]
      // 校验
      this.rules = [
        { required: false, message: '请输入' + this.name, trigger: 'change' }
      ]
    }
  
    deleteOption(index) {
      this.option.splice(index, 1)
    }
    addoption() {
      this.option.push({ label: '新的选择', value: 'newValue' })
    }
    deleteRules(index) {
      this.rules.splice(index + 1, 1)
    }
    addRules(data) {
      this.rules.push(data)
    }
  }
  