perf: 优化搜索
This commit is contained in:
parent
2da4d65098
commit
16bd225535
61
src/components/SearchDialog/index.vue
Normal file
61
src/components/SearchDialog/index.vue
Normal file
@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog style="{'font-weight': 600}" :visible.sync="searchDialogVisible" @close="searchDialogClose">
|
||||
<div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import IconFile from "@/components/Icon/IconFile";
|
||||
import Icon from "@/components/Icon/Icon.vue";
|
||||
|
||||
|
||||
export default {
|
||||
name: "SearchDialog",
|
||||
components: {
|
||||
Icon,
|
||||
IconFile
|
||||
},
|
||||
props: {
|
||||
status: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
imageUrl: `${process.env.VUE_APP_BASE_API}/view/thumbnail?jmal-token=${this.$store.state.user.token}&name=${this.$store.state.user.name}&id=`,
|
||||
audioCoverUrl: `${process.env.VUE_APP_BASE_API}/view/cover?jmal-token=${this.$store.state.user.token}&name=${this.$store.state.user.name}&id=`,
|
||||
searchDialogVisible: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
watch: {
|
||||
status(visible) {
|
||||
if (visible) {
|
||||
this.searchDialogVisible = true
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
searchDialogClose() {
|
||||
this.$emit('update:status', this.searchDialogVisible)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
>>> .el-dialog {
|
||||
max-width: 460px;
|
||||
|
||||
.el-dialog__title {
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user