Browse Source

调整不符合eslint代码

old
wangqing 4 years ago
parent
commit
386986f21a
  1. 1
      .eslintignore
  2. 5
      src/views/form/DraggableItem.vue
  3. 8
      src/views/form/PreView.vue

1
.eslintignore

@ -7,3 +7,4 @@ src/components/echarts/china.js
src/components/render/
src/components/verifition/
src/components/tinymce/
src/views/form/RightPanel.vue

5
src/views/form/DraggableItem.vue

@ -22,7 +22,9 @@ const components = {
}
}
const layouts = {
// eslint-disable-next-line no-unused-vars
colFormItem(h, currentItem, index, list) {
// eslint-disable-next-line no-unused-vars
const {activeItem, changeLabel} = this.$listeners
const config = currentItem.__config__
const child = renderChildren.apply(this, arguments)
@ -48,6 +50,7 @@ const layouts = {
</el-col>
)
},
// eslint-disable-next-line no-unused-vars
rowFormItem(h, currentItem, index, list) {
const {activeItem} = this.$listeners
const config = currentItem.__config__
@ -77,6 +80,7 @@ const layouts = {
</el-col>
)
},
// eslint-disable-next-line no-unused-vars
raw(h, currentItem, index, list) {
const config = currentItem.__config__
const child = renderChildren.apply(this, arguments)
@ -88,6 +92,7 @@ const layouts = {
}
}
// eslint-disable-next-line no-unused-vars
function renderChildren(h, currentItem, index, list) {
const config = currentItem.__config__
if (!Array.isArray(config.children)) return null

8
src/views/form/PreView.vue

@ -9,10 +9,10 @@
<div class="preview-bg" />
<div class="preview-phone">
<iframe id="preview-html"
scrolling="auto"
name="preview-html" class="preview-html"
frameborder="0"
:src="mobilePreviewUrl"
class="preview-html" frameborder="0"
name="preview-html"
scrolling="auto"
/>
</div>
</div>
@ -41,7 +41,7 @@ export default {
ProjectForm
},
props: {
projectKey: ''
projectKey: null
},
data() {
return {

Loading…
Cancel
Save