star-horse-lowcode 2.8.27 → 2.8.28
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/README.md +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +5 -5
- package/dist/types/index.d.ts +105 -4
- package/package.json +5 -6
package/dist/types/index.d.ts
CHANGED
|
@@ -796,6 +796,23 @@ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
|
796
796
|
};
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
+
/**
|
|
800
|
+
* 解析表单字段信息及层级
|
|
801
|
+
*/
|
|
802
|
+
export declare const analysisCompDatas: (dataList: any) => {
|
|
803
|
+
selectList: any[];
|
|
804
|
+
compListResult: Record<string, any>;
|
|
805
|
+
compFieldList: FieldInfo[];
|
|
806
|
+
fieldList?: undefined;
|
|
807
|
+
searchItemList?: undefined;
|
|
808
|
+
} | {
|
|
809
|
+
selectList: any[];
|
|
810
|
+
compListResult: Record<string, any>;
|
|
811
|
+
fieldList: FieldInfo[];
|
|
812
|
+
searchItemList: SearchProps[];
|
|
813
|
+
compFieldList?: undefined;
|
|
814
|
+
};
|
|
815
|
+
|
|
799
816
|
/**
|
|
800
817
|
* 公共Api接口
|
|
801
818
|
* @param appName 应用名称
|
|
@@ -1409,6 +1426,23 @@ isSearch: boolean;
|
|
|
1409
1426
|
showFormItem: boolean;
|
|
1410
1427
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1411
1428
|
|
|
1429
|
+
/**
|
|
1430
|
+
* 检查对象是否需要创建
|
|
1431
|
+
* @param dataForm 数据对象
|
|
1432
|
+
* @param item 表单属性
|
|
1433
|
+
* @param index 索引
|
|
1434
|
+
* @param parentIndex 父索引
|
|
1435
|
+
* @param prefix 前缀
|
|
1436
|
+
*/
|
|
1437
|
+
export declare function checkObject(dataForm: any, item: any, index: number, parentIndex: number, prefix: string): number;
|
|
1438
|
+
|
|
1439
|
+
/**
|
|
1440
|
+
* 检查是否可见
|
|
1441
|
+
* @param item
|
|
1442
|
+
* @param dataForm
|
|
1443
|
+
*/
|
|
1444
|
+
export declare function checkVisible(item: any, dataForm: any): any;
|
|
1445
|
+
|
|
1412
1446
|
/**
|
|
1413
1447
|
* 关闭加载框
|
|
1414
1448
|
*/
|
|
@@ -2503,6 +2537,13 @@ export declare interface DyCompField {
|
|
|
2503
2537
|
watch?: any;
|
|
2504
2538
|
}
|
|
2505
2539
|
|
|
2540
|
+
/**
|
|
2541
|
+
* 解析动态表单中的子节点数据是否需要合并到父节点中
|
|
2542
|
+
* @param props
|
|
2543
|
+
* @param dataForm
|
|
2544
|
+
*/
|
|
2545
|
+
export declare function dynamicFormAnalysis(props: any, dataForm: any): any;
|
|
2546
|
+
|
|
2506
2547
|
export declare interface DynamicNode {
|
|
2507
2548
|
/**
|
|
2508
2549
|
* 节点ID
|
|
@@ -2692,6 +2733,10 @@ export declare interface FieldInfo {
|
|
|
2692
2733
|
* 帮助信息
|
|
2693
2734
|
*/
|
|
2694
2735
|
helpMsg?: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* ID
|
|
2738
|
+
*/
|
|
2739
|
+
id?: string;
|
|
2695
2740
|
/**
|
|
2696
2741
|
* 类型名称,支持
|
|
2697
2742
|
* date 日期,
|
|
@@ -2840,6 +2885,13 @@ export declare interface FieldMapping {
|
|
|
2840
2885
|
*/
|
|
2841
2886
|
export declare function fieldPlaceholder(item: any, itemType: string): void;
|
|
2842
2887
|
|
|
2888
|
+
/**
|
|
2889
|
+
* 过滤对象属性
|
|
2890
|
+
* @param obj 要过滤的对象
|
|
2891
|
+
* @param keysToRemove 要移除的属性键数组
|
|
2892
|
+
*/
|
|
2893
|
+
export declare function filterProperties(obj: any, keysToRemove: string[]): void;
|
|
2894
|
+
|
|
2843
2895
|
/**
|
|
2844
2896
|
* 解析表单字段映射
|
|
2845
2897
|
* @param fieldList
|
|
@@ -2863,6 +2915,15 @@ export declare function generateDeviceId(userIp: string): Promise<string>;
|
|
|
2863
2915
|
*/
|
|
2864
2916
|
export declare function getAxiosInstance(): AxiosInstance;
|
|
2865
2917
|
|
|
2918
|
+
/**
|
|
2919
|
+
* 获取表单数据索引
|
|
2920
|
+
* @param data
|
|
2921
|
+
* @param prefix
|
|
2922
|
+
* @param parentIndex
|
|
2923
|
+
* @param index
|
|
2924
|
+
*/
|
|
2925
|
+
export declare function getDataIndex(data: any, prefix: string, parentIndex: any, index: any): number;
|
|
2926
|
+
|
|
2866
2927
|
export declare function getDynamicEvents(props: any, recall: Function): Record<string, any>;
|
|
2867
2928
|
|
|
2868
2929
|
/**
|
|
@@ -2870,14 +2931,31 @@ export declare function getDynamicEvents(props: any, recall: Function): Record<s
|
|
|
2870
2931
|
*/
|
|
2871
2932
|
export declare function getFingerId(): string;
|
|
2872
2933
|
|
|
2934
|
+
export declare function getFormData(item: any, dataForm: any, prefix: string, parentIndex: any, index: any): any;
|
|
2935
|
+
|
|
2873
2936
|
export declare function getMenuId(): string;
|
|
2874
2937
|
|
|
2938
|
+
/**
|
|
2939
|
+
* 计算表单Pron
|
|
2940
|
+
* @param data
|
|
2941
|
+
* @param prefix
|
|
2942
|
+
* @param parentIndex
|
|
2943
|
+
* @param index
|
|
2944
|
+
*/
|
|
2945
|
+
export declare function getPrefix(data: any, prefix: string, parentIndex: any, index: any): string;
|
|
2946
|
+
|
|
2875
2947
|
/**
|
|
2876
2948
|
* Get请求
|
|
2877
2949
|
* @param url
|
|
2878
2950
|
*/
|
|
2879
2951
|
export declare function getRequest(url: string): Promise<AxiosResponse<any, any, {}>>;
|
|
2880
2952
|
|
|
2953
|
+
/**
|
|
2954
|
+
* 获取验证类型
|
|
2955
|
+
* @param type
|
|
2956
|
+
*/
|
|
2957
|
+
export declare function getValidType(type: any, options?: any): any;
|
|
2958
|
+
|
|
2881
2959
|
export declare const htmleditorItem: DefineComponent<__VLS_PublicProps_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2882
2960
|
selectItem: (...args: any[]) => void;
|
|
2883
2961
|
selfFunc: (...args: any[]) => void;
|
|
@@ -3204,6 +3282,15 @@ export declare function loadGetData(url: string): Promise<{
|
|
|
3204
3282
|
error: string;
|
|
3205
3283
|
}>;
|
|
3206
3284
|
|
|
3285
|
+
/**
|
|
3286
|
+
* 生成验证属性
|
|
3287
|
+
* @param prefix 父表标识
|
|
3288
|
+
* @param fieldName 字段名称
|
|
3289
|
+
* @param parentIndex 父索引
|
|
3290
|
+
* @param currentIndex 当前索引
|
|
3291
|
+
*/
|
|
3292
|
+
export declare function loadProp(prefix: string, fieldName: string, parentIndex: number, currentIndex: number): string;
|
|
3293
|
+
|
|
3207
3294
|
export declare const markdownItem: DefineComponent<__VLS_PublicProps_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3208
3295
|
selectItem: (...args: any[]) => void;
|
|
3209
3296
|
selfFunc: (...args: any[]) => void;
|
|
@@ -3478,6 +3565,13 @@ starHorseTableCompRef: unknown;
|
|
|
3478
3565
|
|
|
3479
3566
|
export declare function parseDateByType(val: any, type: string, needSecond?: boolean, split?: string): any;
|
|
3480
3567
|
|
|
3568
|
+
/**
|
|
3569
|
+
* 解析列表数据
|
|
3570
|
+
* @param item
|
|
3571
|
+
* @param val
|
|
3572
|
+
*/
|
|
3573
|
+
export declare function parseListData(item: any, val: any): any;
|
|
3574
|
+
|
|
3481
3575
|
export declare const passwordItem: DefineComponent<__VLS_PublicProps_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3482
3576
|
selectItem: (...args: any[]) => void;
|
|
3483
3577
|
selfFunc: (...args: any[]) => void;
|
|
@@ -6485,6 +6579,7 @@ export declare interface TabFieldInfo {
|
|
|
6485
6579
|
* 批量表单属性,该属性对应的数据默认是其它表的数据,
|
|
6486
6580
|
*/
|
|
6487
6581
|
batchFieldList?: Array<BatchFieldInfo>;
|
|
6582
|
+
preps?: Record<string, any>;
|
|
6488
6583
|
}
|
|
6489
6584
|
|
|
6490
6585
|
export declare const tableContainer: DefineComponent<ExtractPropTypes< {
|
|
@@ -7330,7 +7425,6 @@ setRefresh: () => void;
|
|
|
7330
7425
|
setSubItemId: (subItemId: string) => void;
|
|
7331
7426
|
setFormInfo: (formData: any) => void;
|
|
7332
7427
|
setCompList: (comps: Array<any>) => void;
|
|
7333
|
-
forceLoadCompNames: () => any[];
|
|
7334
7428
|
loadCompNames: () => any;
|
|
7335
7429
|
addComp: (comp: any) => void;
|
|
7336
7430
|
setIsDragging: (flag: boolean) => void;
|
|
@@ -7852,7 +7946,6 @@ setRefresh: () => void;
|
|
|
7852
7946
|
setSubItemId: (subItemId: string) => void;
|
|
7853
7947
|
setFormInfo: (formData: any) => void;
|
|
7854
7948
|
setCompList: (comps: Array<any>) => void;
|
|
7855
|
-
forceLoadCompNames: () => any[];
|
|
7856
7949
|
loadCompNames: () => any;
|
|
7857
7950
|
addComp: (comp: any) => void;
|
|
7858
7951
|
setIsDragging: (flag: boolean) => void;
|
|
@@ -8374,7 +8467,6 @@ setRefresh: () => void;
|
|
|
8374
8467
|
setSubItemId: (subItemId: string) => void;
|
|
8375
8468
|
setFormInfo: (formData: any) => void;
|
|
8376
8469
|
setCompList: (comps: Array<any>) => void;
|
|
8377
|
-
forceLoadCompNames: () => any[];
|
|
8378
8470
|
loadCompNames: () => any;
|
|
8379
8471
|
addComp: (comp: any) => void;
|
|
8380
8472
|
setIsDragging: (flag: boolean) => void;
|
|
@@ -8393,7 +8485,7 @@ setBatchEditFieldVisible: (visible: boolean) => void;
|
|
|
8393
8485
|
setPreviewVisible: (visible: boolean) => void;
|
|
8394
8486
|
setShortKeyDisabled: (disabled: boolean) => void;
|
|
8395
8487
|
getFieldDataIndex: () => number;
|
|
8396
|
-
}, "setFormData" | "clearAll" | "setCurrentSubTabName" | "selectItemById" | "setAllFormDataList" | "setSelfFormDataList" | "setFormDataList" | "setContainerList" | "addSelfFormDataList" | "addContainerList" | "addFormDataList" | "addHistoryRecord" | "redo" | "undo" | "selectItem" | "setRefresh" | "setSubItemId" | "setFormInfo" | "setCompList" | "
|
|
8488
|
+
}, "setFormData" | "clearAll" | "setCurrentSubTabName" | "selectItemById" | "setAllFormDataList" | "setSelfFormDataList" | "setFormDataList" | "setContainerList" | "addSelfFormDataList" | "addContainerList" | "addFormDataList" | "addHistoryRecord" | "redo" | "undo" | "selectItem" | "setRefresh" | "setSubItemId" | "setFormInfo" | "setCompList" | "loadCompNames" | "addComp" | "setIsDragging" | "setIsEdit" | "setCurrentComp" | "setCurrentItemType" | "setParentCompType" | "setCurrentItemId" | "setCurrentFormPreps" | "setDraggingItem" | "removePromise" | "setComponentVisible" | "setBatchEditFieldVisible" | "setPreviewVisible" | "setShortKeyDisabled" | "getFieldDataIndex">>;
|
|
8397
8489
|
|
|
8398
8490
|
export declare const useDesignPageStore: StoreDefinition<"designPage", Pick<{
|
|
8399
8491
|
nodeList: Ref< {
|
|
@@ -9404,6 +9496,15 @@ export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
|
|
|
9404
9496
|
*/
|
|
9405
9497
|
export declare function uuid(): string;
|
|
9406
9498
|
|
|
9499
|
+
/**
|
|
9500
|
+
* 创建验证规则
|
|
9501
|
+
* @param item
|
|
9502
|
+
* @param dataForm
|
|
9503
|
+
*/
|
|
9504
|
+
export declare function validMsg(item: any, dataForm: any): any[];
|
|
9505
|
+
|
|
9506
|
+
export declare const validRulesList: Array<SelectOption>;
|
|
9507
|
+
|
|
9407
9508
|
export declare const viewMarkdownItem: DefineComponent<__VLS_PublicProps_39, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9408
9509
|
selectItem: (...args: any[]) => void;
|
|
9409
9510
|
selfFunc: (...args: any[]) => void;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "star-horse-lowcode",
|
|
3
3
|
"private": false,
|
|
4
4
|
"author": "l_1019@163.com",
|
|
5
|
-
"version": "2.8.
|
|
5
|
+
"version": "2.8.28",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
|
|
8
8
|
"keywords": [
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"globals": "^16.5.0",
|
|
68
68
|
"jquery": "^3.7.1",
|
|
69
69
|
"json5": "^2.2.3",
|
|
70
|
-
"md-editor-v3": "^6.
|
|
70
|
+
"md-editor-v3": "^6.2.0",
|
|
71
71
|
"path": "^0.12.7",
|
|
72
72
|
"pinia": "^3.0.4",
|
|
73
73
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
@@ -91,16 +91,15 @@
|
|
|
91
91
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
92
92
|
"@rollup/plugin-inject": "^5.0.5",
|
|
93
93
|
"@tailwindcss/vite": "^4.1.17",
|
|
94
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
94
|
+
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
|
95
95
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
96
96
|
"@types/jquery": "^3.5.33",
|
|
97
97
|
"@types/node": "^24.10.1",
|
|
98
98
|
"@types/prismjs": "^1.26.5",
|
|
99
99
|
"@types/sortablejs": "^1.15.9",
|
|
100
|
-
"@types/uuid": "^11.0.0",
|
|
101
100
|
"@typescript-eslint/eslint-plugin": "^8.47.0",
|
|
102
101
|
"@typescript-eslint/parser": "^8.47.0",
|
|
103
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
102
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
104
103
|
"unplugin-auto-import": "^20.2.0",
|
|
105
104
|
"unplugin-vue-components": "^30.0.0",
|
|
106
105
|
"eslint": "^9.39.1",
|
|
@@ -112,7 +111,7 @@
|
|
|
112
111
|
"vite-plugin-dts": "^4.5.4",
|
|
113
112
|
"sass-embedded": "^1.93.3",
|
|
114
113
|
"terser": "^5.44.1",
|
|
115
|
-
"vite": "^7.2.
|
|
114
|
+
"vite": "^7.2.4"
|
|
116
115
|
},
|
|
117
116
|
"engines": {
|
|
118
117
|
"node": ">=20.13.0"
|