Download playground/src/views/examples/doc-button.vue from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/views/examples/doc-button.vue
- Command line
-
hf download hf://spaces/binhugg3/admin/playground/src/views/examples/doc-button.vue
-
curl -L -o doc-button.vue https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/views/examples/doc-button.vue
537 Bytes
| <script lang="ts" setup> | |
| import { VBEN_DOC_URL } from '@vben/constants'; | |
| import { openWindow } from '@vben/utils'; | |
| import { Button } from 'ant-design-vue'; | |
| const props = defineProps<{ path: string }>(); | |
| function handleClick() { | |
| // 如果没有.html,打开页面时可能会出现404 | |
| const path = | |
| VBEN_DOC_URL + | |
| (props.path.toLowerCase().endsWith('.html') | |
| ? props.path | |
| : `${props.path}.html`); | |
| openWindow(path); | |
| } | |
| </script> | |
| <template> | |
| <Button @click="handleClick">查看组件文档</Button> | |
| </template> | |