Download web/src/components/common/PlusSupportTip.vue from jimlv/ssh: direct link, hf CLI and curl.
- Browser
- Download file 835 Bytes
-
https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/components/common/PlusSupportTip.vue
- Command line
-
hf download hf://spaces/jimlv/ssh/web/src/components/common/PlusSupportTip.vue
-
curl -L -o PlusSupportTip.vue https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/components/common/PlusSupportTip.vue
835 Bytes
| <template> | |
| <el-tooltip | |
| :disabled="isPlusActive" | |
| placement="top" | |
| > | |
| <template #content> | |
| <div class="plus_support_tip"> | |
| 此功能需要激活Plus后使用, | |
| <el-button | |
| size="small" | |
| type="primary" | |
| link | |
| @click="gotoPlusPage" | |
| > | |
| 去激活 | |
| </el-button> | |
| </div> | |
| </template> | |
| <slot /> | |
| </el-tooltip> | |
| </template> | |
| <script setup> | |
| import { computed, getCurrentInstance } from 'vue' | |
| import { useRouter } from 'vue-router' | |
| const { proxy: { $store } } = getCurrentInstance() | |
| const router = useRouter() | |
| const isPlusActive = computed(() => $store.isPlusActive) | |
| const gotoPlusPage = () => { | |
| router.push('/setting?tabKey=plus') | |
| } | |
| </script> | |
| <style lang="scss"> | |
| .plus_support_tip { | |
| display: flex; | |
| align-items: center; | |
| } | |
| </style> | |