@me-framework/me-ui-antdv-next 0.0.29 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/code-box/code-item.vue.d.ts +14 -0
- package/dist/code-box/index.css +1 -0
- package/dist/code-box/index.d.ts +5 -0
- package/dist/code-box/index.js +178 -0
- package/dist/code-box/index.vue.d.ts +20 -0
- package/dist/code-box/types.d.ts +64 -0
- package/dist/env.d.ts +12 -0
- package/dist/index.d.ts +3 -1
- package/dist/input-property/index.css +1 -1
- package/dist/input-property/index.js +697 -119
- package/dist/input-property/index.vue.d.ts +11 -6
- package/dist/input-property/types.d.ts +94 -7
- package/dist/input-property/validate.d.ts +62 -5
- package/dist/me-ui-antdv-next.js +3826 -620
- package/dist/me-ui-antdv-next.umd.cjs +11 -9
- package/dist/menu/index.vue.d.ts +1 -1
- package/dist/resolver/index.js +3 -1
- package/dist/style.css +1 -1
- package/dist/utils/hljs.d.ts +19 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as hljs } from 'highlight.js/lib/core';
|
|
2
|
+
/**
|
|
3
|
+
* 对高亮后的 HTML 添加行号,返回带编号列的表格结构。
|
|
4
|
+
* 自实现(复用 highlightjs-line-numbers.js 的算法思路)而非引入该插件:
|
|
5
|
+
* 插件为依赖 window.hljs 的 IIFE,动态 import 会破坏 UMD 库构建,静态 import 又无法保证
|
|
6
|
+
* 挂载顺序且访问 window/document 影响 Node 下 import 库。
|
|
7
|
+
*
|
|
8
|
+
* @param html - highlight.js 输出的 HTML
|
|
9
|
+
* @param singleLine - 单行代码是否也显示行号,默认 true
|
|
10
|
+
*/
|
|
11
|
+
export declare const addLineNumbers: (html: string, singleLine?: boolean) => string;
|
|
12
|
+
/**
|
|
13
|
+
* 语法高亮代码片段。
|
|
14
|
+
* @param code - 原始代码文本
|
|
15
|
+
* @param language - 语言标识(如 vue/ts/js/html/css/scss/json/bash)
|
|
16
|
+
* @returns 高亮后的 HTML(hljs 已对代码转义,可安全 v-html)
|
|
17
|
+
*/
|
|
18
|
+
export declare const highlightCode: (code: string, language?: string) => string;
|
|
19
|
+
export default hljs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@me-framework/me-ui-antdv-next",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"description": "A Vue 3 + TypeScript UI component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/me-ui-antdv-next.umd.cjs",
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"@types/node": "^26.2.0",
|
|
69
69
|
"@typescript/typescript6": "^6.0.2",
|
|
70
70
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
71
|
-
"highlight.js": "^11.12.0",
|
|
72
71
|
"highlightjs-line-numbers.js": "^2.9.1",
|
|
73
72
|
"marked": "^18.0.10",
|
|
74
73
|
"puppeteer": "^25.9.0",
|
|
@@ -84,6 +83,7 @@
|
|
|
84
83
|
},
|
|
85
84
|
"dependencies": {
|
|
86
85
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
86
|
+
"highlight.js": "^11.12.0",
|
|
87
87
|
"@lucide/vue": "^1.41.0",
|
|
88
88
|
"remixicon": "^4.9.1",
|
|
89
89
|
"antdv-next": "^1.5.2",
|