14 changed files with 1293 additions and 1126 deletions
			
			
		| @ -1,13 +1,21 @@ | |||||
| export default { | export default { | ||||
|   options(h, conf, key) { |     options(h, conf, key, that) { | ||||
|     const list = [] |         const list = [] | ||||
|     conf.__slot__.options.forEach(item => { |         conf.__slot__.options.forEach(item => { | ||||
|       if (conf.__config__.optionType === 'button') { |             if (conf.__config__.optionType === 'button') { | ||||
|         list.push(<el-checkbox-button label={item.value}>{item.label}</el-checkbox-button>) |                 list.push(<el-checkbox-button label={item.value}>{item.label}</el-checkbox-button>) | ||||
|       } else { |             } else { | ||||
|         list.push(<el-checkbox label={item.value} border={conf.border}>{item.label}</el-checkbox>) |                 if (item.value == 0) { | ||||
|       } |                     list.push(<el-checkbox label={item.value} | ||||
|     }) |                                            border={conf.border}>{item.label} | ||||
|     return list |                         <input class='item-other-input' onChange={event => { | ||||
|   } |                             that.$emit('selectOtherChange', event.target.value, conf) | ||||
|  |                         }}/></el-checkbox>) | ||||
|  |                 } else { | ||||
|  |                     list.push(<el-checkbox label={item.value} border={conf.border}>{item.label}</el-checkbox>) | ||||
|  |                 } | ||||
|  |             } | ||||
|  |         }) | ||||
|  |         return list | ||||
|  |     } | ||||
| } | } | ||||
|  | |||||
| @ -1,13 +1,21 @@ | |||||
| export default { | export default { | ||||
|   options(h, conf, key) { |     options(h, conf, key, that) { | ||||
|     const list = [] |         const list = [] | ||||
|     conf.__slot__.options.forEach(item => { |         conf.__slot__.options.forEach(item => { | ||||
|       if (conf.__config__.optionType === 'button') { |             if (conf.__config__.optionType === 'button') { | ||||
|         list.push(<el-radio-button label={item.value}>{item.label}</el-radio-button>) |                 list.push(<el-radio-button label={item.value}>{item.label}</el-radio-button>) | ||||
|       } else { |             } else { | ||||
|         list.push(<el-radio label={item.value} border={conf.border}>{item.label}</el-radio>) |                 if (item.value == 0) { | ||||
|       } |                     list.push(<el-radio label={item.value} border={conf.border} > | ||||
|     }) |                         {item.label}<input class='item-other-input' onChange={event => { | ||||
|     return list |                          that.$emit('selectOtherChange', event.target.value,conf) | ||||
|   } |                     }}/> | ||||
|  |                     </el-radio>) | ||||
|  |                 } else { | ||||
|  |                     list.push(<el-radio label={item.value} border={conf.border}>{item.label}</el-radio>) | ||||
|  |                 } | ||||
|  |             } | ||||
|  |         }) | ||||
|  |         return list | ||||
|  |     } | ||||
| } | } | ||||
|  | |||||
								
									
										File diff suppressed because it is too large
									
								
							
						
					
					Loading…
					
					
				
		Reference in new issue