适配移动端web app

样式来自Chavyleung
This commit is contained in:
Peng-YM
2020-08-26 21:33:00 +08:00
parent aee89acfe8
commit 8b4c972f77
7 changed files with 58 additions and 9 deletions

View File

@@ -34,4 +34,4 @@ export default {
}
}
}
</script>
</script>

View File

@@ -0,0 +1,40 @@
<template>
<v-list>
<v-list-item v-for="proxy in proxies" :key="proxy.name">
<v-list-item-content>
<v-list-item-title v-text="proxy.name" class="wrap-text"></v-list-item-title>
<v-list-item-subtitle v-text="getType(proxy.type)"></v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<v-btn icon>
<v-icon color="grey lighten-1">mdi-information</v-icon>
</v-btn>
</v-list-item-action>
</v-list-item>
</v-list>
</template>
<script>
export default {
name: "ProxyList",
props: ['proxies'],
methods: {
getType(type) {
switch (type) {
case 'ss':
return 'shadowsocks'
case 'ssr':
return 'shadowsocksr'
default:
return type
}
}
}
}
</script>
<style scoped>
.wrap-text {
white-space: normal;
}
</style>

View File

@@ -63,4 +63,4 @@ export default {
}
}
}
</script>
</script>