doc-button.vue 379 B

12345678910111213141516
  1. <script lang="ts" setup>
  2. import { VBEN_DOC_URL } from '@vben/constants';
  3. import { openWindow } from '@vben/utils';
  4. import { Button } from 'ant-design-vue';
  5. const props = defineProps<{ path: string }>();
  6. function handleClick() {
  7. openWindow(VBEN_DOC_URL + props.path);
  8. }
  9. </script>
  10. <template>
  11. <Button type="link" @click="handleClick">查看组件文档</Button>
  12. </template>