Browse Source

修复预览自动化代码全选和复制的bug

修复预览自动化代码全选和复制的bug
main
奇淼(piexlmax 3 years ago
committed by GitHub
parent
commit
468e15eee5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      web/src/style/element_visiable.scss
  2. 8
      web/src/view/systemTools/autoCode/index.vue

3
web/src/style/element_visiable.scss

@ -177,8 +177,7 @@
top: 16px;
}
.el-dialog__footer {
margin-top: -12px;
padding: 0 0 16px 0;
padding: 0 16px 16px 0;
.dialog-footer {
.el-button {
padding-left: 24px;

8
web/src/view/systemTools/autoCode/index.vue

@ -155,7 +155,7 @@
<el-button size="mini" type="primary" @click="copy">复制</el-button>
</div>
</template>
<PreviewCodeDialog v-if="previewFlag" :preview-code="preViewCode" />
<PreviewCodeDialog v-if="previewFlag" ref="preview" :preview-code="preViewCode" />
<template #footer>
<div class="dialog-footer" style="padding-top:14px;padding-right:14px">
<el-button size="small" type="primary" @click="previewFlag = false"> </el-button>
@ -246,6 +246,12 @@ export default {
}
},
methods: {
selectText() {
this.$refs.preview.selectText()
},
copy() {
this.$refs.preview.copy()
},
editAndAddField(item) {
this.dialogFlag = true
if (item) {

Loading…
Cancel
Save