Skip to content

Commit

Permalink
feat: vs code plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Mar 17, 2023
1 parent b1854ab commit 241d96b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { kebabCase, bigCamelize } from "./utils";
import { componentMap } from "./componentMap";
import { ComponentDesc } from "./componentDesc";

const DOC = "";
const VUEDOC = "https://quark-design.hellobike.com/#/zh-CN/component/button";

const LINK_REG = /(?<=<quark-)([\w-]+)/g;
const BIG_LINK_REG = /(?<=<Quark-)([\w-])+/g;
Expand All @@ -28,9 +28,9 @@ const provideHover = (
const { site } = componentMap[item];

return new vscode.MarkdownString(
`[QuarkDesign -> $(references) 请查看 ${bigCamelize(
`Quark Design -> ${bigCamelize(
item
)} 组件官方文档](${DOC}${site})\n`,
)} 组件文档 [[Quark]](${VUEDOC}${site})\n`,
true
);
});
Expand Down

0 comments on commit 241d96b

Please sign in to comment.