| | |
| | | <template> |
| | | <el-dialog :visible.sync="visible" width="400px" center> |
| | | <el-dialog :visible.sync="dialogVisible" width="400px" center> |
| | | <div |
| | | style="margin: 0 10px 10px;display: flex;align-items: center;gap: 10px;font-weight: 700;font-size: 20px;text-align: left;color: #3d4566;"> |
| | | <div |
| | |
| | | visible: { type: Boolean, required: true }, |
| | | password: { type: String, default: '' } |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogVisible: this.visible |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(val) { |
| | | this.dialogVisible = val |
| | | }, |
| | | dialogVisible(val) { |
| | | this.$emit('update:visible', val) |
| | | } |
| | | }, |
| | | methods: { |
| | | closeDialog() { |
| | | this.$emit('update:visible', false) |
| | | this.dialogVisible = false |
| | | }, |
| | | copyPassword() { |
| | | navigator.clipboard.writeText(this.password) |