| | |
| | | { value: 'text', text: '文本'}, |
| | | { value: 'number', text: '数值'}, |
| | | { value: 'picture', text: '图片'}, |
| | | { value: 'video', text: '视频'}, |
| | | { value: 'icon', text: '图标'}, |
| | | { value: 'slider', text: '进度条'}, |
| | | { value: 'splitline', text: '分割线'}, |
| | |
| | | { |
| | | type: 'file', |
| | | key: 'url', |
| | | label: '图片', |
| | | label: '图片/文件', |
| | | initVal: card.url || '', |
| | | maxfile: 1, |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'autoPlay', |
| | | label: '自动播放', |
| | | initVal: card.autoPlay || 'false', |
| | | required: false, |
| | | options: [ |
| | | { value: 'true', text: '是' }, |
| | | { value: 'false', text: '否' } |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'aspectRatio', |
| | | label: '长宽比', |
| | | initVal: card.aspectRatio || '16:9', |
| | | required: true, |
| | | options: [ |
| | | { value: '4:3', text: '4:3' }, |
| | | { value: '16:9', text: '16:9' } |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'joint', |
| | | label: Formdict['model.form.paramJoint'], |