hs-admin-ui 17.4.0 → 17.4.2
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/{bcIcon-DiInWPI7.js → bcIcon-Dm5wEW30.js} +1 -1
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-BVInxDw2.js → bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CFZqjLj6.js} +12541 -12404
- package/dist/{components-CE_BWci9.js → components-BWL5RTL7.js} +1 -1
- package/dist/element-plus-ui.mjs +5 -5
- package/dist/h5.mjs +65 -65
- package/dist/{index-BQ6SuuGs.js → index-Bt5ey1ti.js} +2 -2
- package/dist/{index-DHDetPux.js → index-Cd6stN64.js} +7 -7
- package/dist/{index-DQVrQj3J.js → index-Cy6WUfqK.js} +1 -1
- package/dist/{index-D0nT2Exh.js → index-ajuP5BtY.js} +1 -1
- package/dist/index.mjs +6 -6
- package/dist/{setting-Dubsw7li.js → setting-CbjsZL0h.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{table-D7n14TlR.js → table-zr8MNu7N.js} +2 -2
- package/dist/types/src/components/business/bcTable/utils/parseTable.d.ts +2 -0
- package/dist/types/src/components/business/bcUpload/upload.vue.d.ts +3 -3
- package/dist/types/src/components/h5/Upload/Upload.vue.d.ts +3 -2
- package/dist/types/src/utils/ast/env.d.ts +5 -0
- package/dist/types/src/utils/ast/evaluate.d.ts +104 -0
- package/dist/types/src/utils/ast/example/index.d.ts +9 -0
- package/dist/types/src/utils/ast/example/performance.d.ts +6 -0
- package/dist/types/src/utils/ast/example/vm.d.ts +6 -0
- package/dist/types/src/utils/ast/index.d.ts +6 -0
- package/dist/types/src/utils/ast/parse.d.ts +9 -0
- package/dist/types/src/utils/ast/tokenize.d.ts +29 -0
- package/dist/types/src/utils/ast/vm.d.ts +64 -0
- package/dist/vxe-table-ui.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, inject as i, shallowRef as b, resolveComponent as h, createElementBlock as y, openBlock as C, createVNode as k, unref as v, toValue as D } from "vue";
|
|
2
|
-
import { f as x } from "./index-
|
|
3
|
-
import { a4 as E } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-
|
|
2
|
+
import { f as x } from "./index-Cd6stN64.js";
|
|
3
|
+
import { a4 as E } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CFZqjLj6.js";
|
|
4
4
|
const T = { class: "table-wrapter" }, I = /* @__PURE__ */ m({
|
|
5
5
|
__name: "table",
|
|
6
6
|
setup(g, { expose: _ }) {
|
|
@@ -71,6 +71,8 @@ export declare const componentTipList: string[];
|
|
|
71
71
|
export declare function isShowItem(params: Record<"isShow" | "fieldShow" | "userFieldShow", boolean> & ICustomData.Data): boolean;
|
|
72
72
|
/** json 转化字符串数据,用于解析正则在序列化数据时丢失 */
|
|
73
73
|
export declare function jsonStringify(obj: any): string;
|
|
74
|
+
/** 解析js字符串数据 */
|
|
75
|
+
export declare function parseJS(params: string): any;
|
|
74
76
|
export declare function getRender(baseData: ICustomData.FormItemConfigData["baseData"]): any;
|
|
75
77
|
export declare function getRenderComponent(el: ICustomData.ANY): any;
|
|
76
78
|
/** 格式化搜索区域表单数据 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare var __VLS_7: {
|
|
2
2
|
loading: boolean;
|
|
3
|
-
}, __VLS_9: {}, __VLS_16: {},
|
|
3
|
+
}, __VLS_9: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {}, __VLS_43: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_7) => any;
|
|
6
6
|
} & {
|
|
@@ -8,9 +8,9 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
upolad_text?: (props: typeof __VLS_16) => any;
|
|
10
10
|
} & {
|
|
11
|
-
prepend?: (props: typeof
|
|
11
|
+
prepend?: (props: typeof __VLS_18) => any;
|
|
12
12
|
} & {
|
|
13
|
-
pat_icon?: (props: typeof
|
|
13
|
+
pat_icon?: (props: typeof __VLS_20) => any;
|
|
14
14
|
} & {
|
|
15
15
|
append?: (props: typeof __VLS_43) => any;
|
|
16
16
|
};
|
|
@@ -6,7 +6,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
6
6
|
};
|
|
7
7
|
proxy: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
|
|
9
|
+
default: string;
|
|
10
10
|
};
|
|
11
11
|
headers: {
|
|
12
12
|
type: ObjectConstructor;
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
};
|
|
42
42
|
proxy: {
|
|
43
43
|
type: StringConstructor;
|
|
44
|
-
|
|
44
|
+
default: string;
|
|
45
45
|
};
|
|
46
46
|
headers: {
|
|
47
47
|
type: ObjectConstructor;
|
|
@@ -75,6 +75,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
75
75
|
accept: string;
|
|
76
76
|
listType: "picture" | "text" | "picture-card";
|
|
77
77
|
limit: number;
|
|
78
|
+
proxy: string;
|
|
78
79
|
ossUrl: string;
|
|
79
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
80
81
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建返回值包装对象
|
|
3
|
+
* @param {any} value - 返回值
|
|
4
|
+
* @returns {Object} 带类型标记的返回值对象
|
|
5
|
+
*/
|
|
6
|
+
export function createReturnValue(value: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* 检查是否为返回值对象
|
|
9
|
+
* @param {any} obj - 待检查对象
|
|
10
|
+
* @returns {boolean} 是否为返回值
|
|
11
|
+
*/
|
|
12
|
+
export function isReturn(obj: any): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 创建 break 标记对象
|
|
15
|
+
* @returns {Object} break 标记对象
|
|
16
|
+
*/
|
|
17
|
+
export function createBreak(): any;
|
|
18
|
+
/**
|
|
19
|
+
* 检查是否为 break 标记
|
|
20
|
+
* @param {any} obj - 待检查对象
|
|
21
|
+
* @returns {boolean} 是否为 break 标记
|
|
22
|
+
*/
|
|
23
|
+
export function isBreak(obj: any): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 创建 continue 标记对象
|
|
26
|
+
* @returns {Object} continue 标记对象
|
|
27
|
+
*/
|
|
28
|
+
export function createContinue(): any;
|
|
29
|
+
/**
|
|
30
|
+
* 检查是否为 continue 标记
|
|
31
|
+
* @param {any} obj - 待检查对象
|
|
32
|
+
* @returns {boolean} 是否为 continue 标记
|
|
33
|
+
*/
|
|
34
|
+
export function isContinue(obj: any): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 创建执行环境(作用域)
|
|
37
|
+
* 使用数组存储 + Map 索引映射,替代对象属性存储
|
|
38
|
+
* @param {Object|null} [parentEnv=null] - 父级环境
|
|
39
|
+
* @param {boolean} [isBlockScope=false] - 是否为块级作用域
|
|
40
|
+
* @returns {Environment} 环境对象
|
|
41
|
+
* @property {Object|null} parent - 父环境引用
|
|
42
|
+
* @property {Array} vars - 变量值数组(通过索引访问)
|
|
43
|
+
* @property {Map} names - 变量名到索引信息的映射
|
|
44
|
+
* @property {boolean} isBlockScope - 是否为块级作用域
|
|
45
|
+
* @property {number} depth - 作用域嵌套深度
|
|
46
|
+
*/
|
|
47
|
+
export function createEnv(parentEnv?: any | null, isBlockScope?: boolean): Environment;
|
|
48
|
+
/**
|
|
49
|
+
* 在当前环境中定义变量(支持解构模式)
|
|
50
|
+
* 数组索引存储,O(1) 访问
|
|
51
|
+
* @param {Environment} env - 当前环境
|
|
52
|
+
* @param {string|ASTNode} pattern - 变量名或解构模式
|
|
53
|
+
* @param {any} value - 变量值
|
|
54
|
+
* @param {string} [kind='var'] - 声明类型
|
|
55
|
+
*/
|
|
56
|
+
export function defineVar(env: Environment, pattern: string | ASTNode, value: any, kind?: string): void;
|
|
57
|
+
/**
|
|
58
|
+
* 沿作用域链查找变量值(直接索引访问)
|
|
59
|
+
* @param {Environment} env - 当前环境
|
|
60
|
+
* @param {string} name - 变量名
|
|
61
|
+
* @returns {any} 变量值
|
|
62
|
+
* @throws {Error} 变量未定义或在 TDZ 中时抛出
|
|
63
|
+
*/
|
|
64
|
+
export function getVar(env: Environment, name: string): any;
|
|
65
|
+
/**
|
|
66
|
+
* 节点求值主入口
|
|
67
|
+
* 使用 O(1) 哈希表查找替代 O(n) switch 分支
|
|
68
|
+
* @param {ASTNode} node - AST 节点
|
|
69
|
+
* @param {Environment} env - 执行环境
|
|
70
|
+
* @returns {any} 求值结果
|
|
71
|
+
* @throws {Error} 未知节点类型时抛出
|
|
72
|
+
*/
|
|
73
|
+
export function evaluateNode(node: ASTNode, env: Environment): any;
|
|
74
|
+
/**
|
|
75
|
+
* 关键执行函数,解析ast节点数据
|
|
76
|
+
* @param {ASTNode} rootNode - AST 根节点
|
|
77
|
+
* @param {Environment} env - 执行环境
|
|
78
|
+
* @returns {any} 程序执行结果
|
|
79
|
+
*/
|
|
80
|
+
export function evaluate(rootNode: ASTNode, env: Environment): any;
|
|
81
|
+
/**
|
|
82
|
+
* ✅ 解释器函数:即时编译解析代码,执行结果
|
|
83
|
+
* @param {string} code - JavaScript 源代码
|
|
84
|
+
* @returns {any} 程序执行结果
|
|
85
|
+
*/
|
|
86
|
+
export function interpreter(code: string, _env: any): any;
|
|
87
|
+
/**
|
|
88
|
+
* ✅ 编译器函数:把代码编译成可调用的原生函数
|
|
89
|
+
* 使用方式与 new Function 完全一致,调用时自动注入参数
|
|
90
|
+
* @param {...(string|Environment)} params - 参数名列表,最后一个是函数体,可选最后传环境
|
|
91
|
+
* @returns {Function} 可执行函数,接收参数返回执行结果
|
|
92
|
+
* @example
|
|
93
|
+
* const fn = compile("value", "return value + 1;");
|
|
94
|
+
* const fn = compile("value", code, customEnv);
|
|
95
|
+
* const result = fn("hello");
|
|
96
|
+
*/
|
|
97
|
+
export function compile(...params: (string | Environment)[]): Function;
|
|
98
|
+
/**
|
|
99
|
+
* AST 节点处理函数映射表(替代 switch 进行 O(1) 分发)
|
|
100
|
+
* @type {Object<string, Function>}
|
|
101
|
+
*/
|
|
102
|
+
export const nodeHandlers: {
|
|
103
|
+
[x: string]: Function;
|
|
104
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 高性能词法分析主函数
|
|
3
|
+
* @param {string} code - JavaScript 源代码字符串
|
|
4
|
+
* @returns {Array<{type: number, value: any}>} Token 数组
|
|
5
|
+
* @example
|
|
6
|
+
* tokenize('var x = 1 + 2;')
|
|
7
|
+
* // 返回: [
|
|
8
|
+
* // { type: 2, value: 'var' }, // KEYWORD
|
|
9
|
+
* // { type: 3, value: 'x' }, // IDENT
|
|
10
|
+
* // { type: 4, value: '=' }, // OPERATOR
|
|
11
|
+
* // { type: 1, value: 1 }, // NUMBER
|
|
12
|
+
* // { type: 4, value: '+' }, // OPERATOR
|
|
13
|
+
* // { type: 1, value: 2 }, // NUMBER
|
|
14
|
+
* // { type: 5, value: ';' } // PUNCT
|
|
15
|
+
* // ]
|
|
16
|
+
*/
|
|
17
|
+
export function tokenize(code: string): Array<{
|
|
18
|
+
type: number;
|
|
19
|
+
value: any;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* JavaScript 词法分析器
|
|
23
|
+
* Token 类型常量(数字类型,性能最优)
|
|
24
|
+
* @type {Object<string, number>}
|
|
25
|
+
* @const
|
|
26
|
+
*/
|
|
27
|
+
export const TOKEN_TYPE: {
|
|
28
|
+
[x: string]: number;
|
|
29
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 将 AST 编译为字节码(内部使用)
|
|
3
|
+
* @param {ASTNode} ast - 抽象语法树根节点
|
|
4
|
+
* @returns {Object} 编译产物 { bytecode, constantPool, varNames }
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
7
|
+
export function compileBytecode(ast: ASTNode): any;
|
|
8
|
+
/**
|
|
9
|
+
* 执行已编译的字节码
|
|
10
|
+
* @param {Array<number>} bytecode - 字节码指令
|
|
11
|
+
* @param {Array<any>} constantPool - 常量池
|
|
12
|
+
* @param {Array<string>} varNames - 变量名表
|
|
13
|
+
* @returns {any} 程序执行结果
|
|
14
|
+
*/
|
|
15
|
+
export function execute(bytecode: Array<number>, constantPool: Array<any>, varNames: Array<string>): any;
|
|
16
|
+
/**
|
|
17
|
+
* 一站式 interpreterVM 执行(与 interpreter 接口对齐)
|
|
18
|
+
* tokenize → parse → 编译字节码 → 执行
|
|
19
|
+
* @param {string} code - JavaScript 源代码
|
|
20
|
+
* @param {Environment} _env - 可选自定义执行环境
|
|
21
|
+
* @returns {any} 程序执行结果
|
|
22
|
+
*/
|
|
23
|
+
export function interpreterVM(code: string, _env: Environment): any;
|
|
24
|
+
/**
|
|
25
|
+
* 字节码操作码定义
|
|
26
|
+
* 按功能分类:栈操作、变量操作、运算、控制流、调用、对象/数组、其他
|
|
27
|
+
* @type {Object<string, number>}
|
|
28
|
+
*/
|
|
29
|
+
export const OPCODES: {
|
|
30
|
+
[x: string]: number;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 基于栈的字节码虚拟机
|
|
34
|
+
* 执行模型: 单循环 + 指令指针 + 操作数栈 + 作用域栈
|
|
35
|
+
*/
|
|
36
|
+
export class StackVM {
|
|
37
|
+
/**
|
|
38
|
+
* 初始化虚拟机状态
|
|
39
|
+
* @param {Array<number>} bytecode - 字节码指令
|
|
40
|
+
* @param {Array<any>} constantPool - 常量池
|
|
41
|
+
* @param {Array<string>} varNames - 变量名表
|
|
42
|
+
* @param {Environment} customEnv - 可选自定义执行环境
|
|
43
|
+
*/
|
|
44
|
+
constructor(bytecode: Array<number>, constantPool: Array<any>, varNames: Array<string>, customEnv: Environment);
|
|
45
|
+
/** 字节码指令数组 */
|
|
46
|
+
bc: number[];
|
|
47
|
+
/** 常量池 */
|
|
48
|
+
cp: any[];
|
|
49
|
+
/** 变量名表 */
|
|
50
|
+
varnames: string[];
|
|
51
|
+
/** 操作数栈 */
|
|
52
|
+
stack: any[];
|
|
53
|
+
/** 指令指针 */
|
|
54
|
+
ip: number;
|
|
55
|
+
/** 作用域栈 */
|
|
56
|
+
scopes: any[];
|
|
57
|
+
/** this 绑定值 */
|
|
58
|
+
thisValue: any;
|
|
59
|
+
/**
|
|
60
|
+
* 执行字节码主循环
|
|
61
|
+
* @returns {any} 栈顶结果值
|
|
62
|
+
*/
|
|
63
|
+
run(): any;
|
|
64
|
+
}
|
package/dist/vxe-table-ui.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { aU as r, b2 as u, b3 as x, b4 as l, H as m, aS as s, b5 as E } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-
|
|
2
|
-
import { W as _, b6 as g, b7 as H, b8 as N, ax as U } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-
|
|
3
|
-
import { V as b } from "./components-
|
|
1
|
+
import { aU as r, b2 as u, b3 as x, b4 as l, H as m, aS as s, b5 as E } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CFZqjLj6.js";
|
|
2
|
+
import { W as _, b6 as g, b7 as H, b8 as N, ax as U } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CFZqjLj6.js";
|
|
3
|
+
import { V as b } from "./components-BWL5RTL7.js";
|
|
4
4
|
import "vue";
|
|
5
|
-
import { i as M } from "./index-
|
|
5
|
+
import { i as M } from "./index-ajuP5BtY.js";
|
|
6
6
|
function t(a, e) {
|
|
7
7
|
r.value = e == null ? void 0 : e.NEXT_NAME, u.value = e == null ? void 0 : e.IS_DEV, x.value = e == null ? void 0 : e.currentRoute, l.value = e == null ? void 0 : e.currentRouter, m.has(a, "_context.directives.loading") || a.directive("loading", s.directive), a.use(E).use(b);
|
|
8
8
|
}
|