| | |
| | | const types = ['radio', 'checkbox', 'select']; |
| | | return types.includes(this.form.itemType); // 展示 |
| | | }, |
| | | |
| | | itemStyleTypeStatus() { |
| | | const types = ['hidden', 'webeditor', 'radio', 'checkbox']; |
| | | return !types.includes(this.form.itemType); // 不展示 |
| | |
| | | this.formList = this.formList.map(item => { |
| | | return { |
| | | ...item, |
| | | itemField: item.text // 将itemField赋值为text,因为忘记父组件为什么在编辑回填时把itemField赋值为text了 |
| | | itemField: item.text // 将itemField重新赋值为text,因为忘记当时在父组件编辑回填方法里为什么把itemField赋值为text了 |
| | | }; |
| | | }); |
| | | const params = { |
| | |
| | | font-size: 14px |
| | | } |
| | | |
| | | .formItemMargin { |
| | | margin: 10px 0 10px 0; |
| | | } |
| | | //.formItemMargin { |
| | | // margin: 10px 0 10px 0; |
| | | //} |
| | | |
| | | </style> |