style:弹框组件修改完成
Showing
1 changed file
with
1 additions
and
15 deletions
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | </div> | 15 | </div> |
16 | <div slot="footer" class="dialog_footer" ref="dialogFooter" v-if="isButton"> | 16 | <div slot="footer" class="dialog_footer" ref="dialogFooter" v-if="isButton"> |
17 | <div class="dialog_button"> | 17 | <div class="dialog_button"> |
18 | <el-button @click="closeDialog(false)" v-if="isReset">取消</el-button> | 18 | <el-button @click="closeDialog" v-if="isReset">取消</el-button> |
19 | <el-button type="primary" plain @click="submitForm" v-if="isSave" :loading="saveloding"> | 19 | <el-button type="primary" plain @click="submitForm" v-if="isSave" :loading="saveloding"> |
20 | {{ saveButton }}</el-button> | 20 | {{ saveButton }}</el-button> |
21 | </div> | 21 | </div> |
... | @@ -34,10 +34,6 @@ export default { | ... | @@ -34,10 +34,6 @@ export default { |
34 | type: Boolean, | 34 | type: Boolean, |
35 | default: true, | 35 | default: true, |
36 | }, | 36 | }, |
37 | multiple: { | ||
38 | type: Boolean, | ||
39 | default: true, | ||
40 | }, | ||
41 | width: { | 37 | width: { |
42 | type: String, | 38 | type: String, |
43 | default: '70%', | 39 | default: '70%', |
... | @@ -93,23 +89,13 @@ export default { | ... | @@ -93,23 +89,13 @@ export default { |
93 | submitForm () { | 89 | submitForm () { |
94 | this.key++ | 90 | this.key++ |
95 | this.$emit('input', false) | 91 | this.$emit('input', false) |
96 | if (!this.multiple) { | ||
97 | this.$parent.submitForm() | ||
98 | } else { | ||
99 | this.$emit('submitForm'); | 92 | this.$emit('submitForm'); |
100 | } | ||
101 | }, | 93 | }, |
102 | closeDialog () { | 94 | closeDialog () { |
103 | this.key++ | 95 | this.key++ |
104 | this.$emit('input', false) | 96 | this.$emit('input', false) |
105 | if (!this.multiple) { | ||
106 | if (this.$parent.closeDialog) { | ||
107 | this.$parent.closeDialog() | ||
108 | } | ||
109 | } else { | ||
110 | this.$emit('closeDialog'); | 97 | this.$emit('closeDialog'); |
111 | } | 98 | } |
112 | } | ||
113 | }, | 99 | }, |
114 | } | 100 | } |
115 | </script> | 101 | </script> | ... | ... |
-
Please register or sign in to post a comment