diff --git a/src/components/form-designer/form-widget/field-widget/fieldMixin.js b/src/components/form-designer/form-widget/field-widget/fieldMixin.js index 08e1d8d..2008d50 100644 --- a/src/components/form-designer/form-widget/field-widget/fieldMixin.js +++ b/src/components/form-designer/form-widget/field-widget/fieldMixin.js @@ -532,7 +532,7 @@ export default { * 返回radio/checkbox/select/cascader的选项数据 * @returns 选择项数组 */ - getOptions() { + getOptions() { return this.field.options.optionItems }, diff --git a/src/utils/sfc-generator.js b/src/utils/sfc-generator.js index adcd2b5..305925c 100644 --- a/src/utils/sfc-generator.js +++ b/src/utils/sfc-generator.js @@ -177,7 +177,7 @@ function getElAttrs(widget, formConfig) { //获取El组件属性 pictureUploadIconChild: ``, fileUploadIconChild: ``, - buttonType: !!wop.type ? `type="${wop.type}` : '', + buttonType: !!wop.type ? `type="${wop.type}"` : '', buttonPlain: !!wop.plain ? `plain` : '', buttonRound: !!wop.round ? `round` : '', buttonCircle: !!wop.circle ? `circle` : '',