From fd61ae7dfb3c0cf61a0cf70451fbf9e198ee2887 Mon Sep 17 00:00:00 2001
From: devin
一个 Vue 3 组件库
+皮肤可定制,使用 TypeScript
-- vue3 components for opendesign + +## 特性 + + +### 皮肤可定制 + +提供组件变量体系,可以快速定义一套新皮肤 + +### 使用 TypeScript + +opendesign 全量使用 TypeScript 编写,和你的 TypeScript 项目无缝衔接。 + + +## 安装 + +### npm + +使用 npm/pnpm 安装。 + +```bash +# npm +npm i @opensig/opendesign + +#pnpm +pnpm add @opensig/opendesign + +``` + + +## 使用 + +### 引入样式文件 +``` +import '@opensig/opendesign/es/index.scss' +``` + +### 使用组件 +``` + + +用于构件opendesign组件库、图标库
-# 1.0.0 +## 特性 -- 【fix】统一gen-icon在不同系统下生成path的分隔符风格 -# 0.0.20 +### 组件构建 -- 【fix】修复图标路径兼容性、文件名转变量名兼容性、不同实例同 id 的相互影响 +支持构建vue组件库,编译样式文件 + +### 图标构建 + +支持将svg文件构建为vue组件 + + +### token构建 + +支持基于配置文件生成token文件 + + +## 安装 + +### npm + +使用 npm/pnpm 安装。 + +```bash +# npm +npm i @opensig/open-scripts + +#pnpm +pnpm add @opensig/open-scripts + +``` + + +## 许可 + +opendesign 使用 [MIT license](https://opensource.org/licenses/MIT) 许可证书。 \ No newline at end of file -- Gitee From 01600aefa9504aebee9d85c4dfb07b45386cb0f7 Mon Sep 17 00:00:00 2001 From: sakurayinfei <970412446@qq.com> Date: Thu, 31 Jul 2025 15:43:23 +0800 Subject: [PATCH 03/17] =?UTF-8?q?feat[doc]:=20=E6=96=B0=E5=A2=9Eicon?= =?UTF-8?q?=E5=9B=BE=E6=A0=87out-link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/docs/icons/svgs/fill/out-link.svg | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/docs/icons/svgs/fill/out-link.svg diff --git a/packages/docs/icons/svgs/fill/out-link.svg b/packages/docs/icons/svgs/fill/out-link.svg new file mode 100644 index 00000000..ffe90d5c --- /dev/null +++ b/packages/docs/icons/svgs/fill/out-link.svg @@ -0,0 +1,5 @@ + \ No newline at end of file -- Gitee From f49ca6153b7ddf40f1286036d37b7ed502ad1824 Mon Sep 17 00:00:00 2001 From: sakurayinfei <970412446@qq.com> Date: Thu, 31 Jul 2025 15:48:56 +0800 Subject: [PATCH 04/17] =?UTF-8?q?feat[doc]:=20=E6=96=B0=E5=A2=9EDocLink?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=8A=E5=AF=B9=E5=BA=94markdown=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E7=94=A8=E4=BA=8E=E5=B0=86a=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=B8=B2=E6=9F=93=E4=B8=BAOLink=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=9B=E5=85=A8=E5=B1=80=E6=B3=A8=E5=86=8CDocIcon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/docs/plugins/markdown/common.ts | 3 +- packages/docs/plugins/markdown/link.ts | 8 +++++ packages/docs/src/components/DocLink.vue | 37 ++++++++++++++++++++++++ packages/docs/src/main.ts | 6 ++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 packages/docs/plugins/markdown/link.ts create mode 100644 packages/docs/src/components/DocLink.vue diff --git a/packages/docs/plugins/markdown/common.ts b/packages/docs/plugins/markdown/common.ts index 0da8649b..ef2683f5 100644 --- a/packages/docs/plugins/markdown/common.ts +++ b/packages/docs/plugins/markdown/common.ts @@ -3,6 +3,7 @@ import lineNumber from './lineNumber'; import popover from './popover'; import wrapTable from './wrapTable'; import wrapCodeContainer from './wrapCodeContainer'; +import link from './link'; import { createHighlighter } from './highlight'; export const highlight = createHighlighter(); @@ -12,7 +13,7 @@ export const markdownItOptions: MarkdownItAsyncOptions = { typographer: true, highlight, }; -export const markdownItPlugins = [lineNumber, popover, wrapCodeContainer, wrapTable]; +export const markdownItPlugins = [lineNumber, popover, wrapCodeContainer, wrapTable, link]; /** * 引入项目中所有 markdown 插件,并导出 MarkdownItAsync 实例,以便在其他模块中调用 */ diff --git a/packages/docs/plugins/markdown/link.ts b/packages/docs/plugins/markdown/link.ts new file mode 100644 index 00000000..5bf27d72 --- /dev/null +++ b/packages/docs/plugins/markdown/link.ts @@ -0,0 +1,8 @@ +import { MarkdownItAsync } from 'markdown-it-async'; +export default function customLinkPlugin(md: MarkdownItAsync) { + md.renderer.rules.link_open = (tokens, idx) => { + const token = tokens[idx]; + return `this is content this is content this is content this is content this is content this is content this is content this is content
+this is content this is content this is content this is content this is content this is content this is content this is content
+未设置ConfigProvider
+