docs: fix docs-link and add EllipsisText docs (#5158)

* docs: fix docs-link and add `EllipsisText` docs

* fix: ellipsisText docs link
This commit is contained in:
Netfan
2024-12-17 14:41:03 +08:00
committed by GitHub
parent 593916d6aa
commit 4fe44611d3
9 changed files with 109 additions and 2 deletions

View File

@@ -7,7 +7,13 @@ import { Button } from 'ant-design-vue';
const props = defineProps<{ path: string }>();
function handleClick() {
openWindow(VBEN_DOC_URL + props.path);
// 如果没有.html打开页面时可能会出现404
const path =
VBEN_DOC_URL +
(props.path.toLowerCase().endsWith('.html')
? props.path
: `${props.path}.html`);
openWindow(path);
}
</script>