star-horse-lowcode 2.8.26 → 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 +2 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +5 -5
- package/dist/types/index.d.ts +112 -7
- package/package.json +12 -14
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 应用名称
|
|
@@ -1276,6 +1293,10 @@ export declare interface BtnHideCondition {
|
|
|
1276
1293
|
* 值
|
|
1277
1294
|
*/
|
|
1278
1295
|
value: any;
|
|
1296
|
+
/**
|
|
1297
|
+
* 是否可见
|
|
1298
|
+
*/
|
|
1299
|
+
visible: boolean;
|
|
1279
1300
|
}
|
|
1280
1301
|
|
|
1281
1302
|
export declare const buttonItem: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1405,6 +1426,23 @@ isSearch: boolean;
|
|
|
1405
1426
|
showFormItem: boolean;
|
|
1406
1427
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1407
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
|
+
|
|
1408
1446
|
/**
|
|
1409
1447
|
* 关闭加载框
|
|
1410
1448
|
*/
|
|
@@ -2499,6 +2537,13 @@ export declare interface DyCompField {
|
|
|
2499
2537
|
watch?: any;
|
|
2500
2538
|
}
|
|
2501
2539
|
|
|
2540
|
+
/**
|
|
2541
|
+
* 解析动态表单中的子节点数据是否需要合并到父节点中
|
|
2542
|
+
* @param props
|
|
2543
|
+
* @param dataForm
|
|
2544
|
+
*/
|
|
2545
|
+
export declare function dynamicFormAnalysis(props: any, dataForm: any): any;
|
|
2546
|
+
|
|
2502
2547
|
export declare interface DynamicNode {
|
|
2503
2548
|
/**
|
|
2504
2549
|
* 节点ID
|
|
@@ -2688,6 +2733,10 @@ export declare interface FieldInfo {
|
|
|
2688
2733
|
* 帮助信息
|
|
2689
2734
|
*/
|
|
2690
2735
|
helpMsg?: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* ID
|
|
2738
|
+
*/
|
|
2739
|
+
id?: string;
|
|
2691
2740
|
/**
|
|
2692
2741
|
* 类型名称,支持
|
|
2693
2742
|
* date 日期,
|
|
@@ -2836,6 +2885,13 @@ export declare interface FieldMapping {
|
|
|
2836
2885
|
*/
|
|
2837
2886
|
export declare function fieldPlaceholder(item: any, itemType: string): void;
|
|
2838
2887
|
|
|
2888
|
+
/**
|
|
2889
|
+
* 过滤对象属性
|
|
2890
|
+
* @param obj 要过滤的对象
|
|
2891
|
+
* @param keysToRemove 要移除的属性键数组
|
|
2892
|
+
*/
|
|
2893
|
+
export declare function filterProperties(obj: any, keysToRemove: string[]): void;
|
|
2894
|
+
|
|
2839
2895
|
/**
|
|
2840
2896
|
* 解析表单字段映射
|
|
2841
2897
|
* @param fieldList
|
|
@@ -2859,6 +2915,15 @@ export declare function generateDeviceId(userIp: string): Promise<string>;
|
|
|
2859
2915
|
*/
|
|
2860
2916
|
export declare function getAxiosInstance(): AxiosInstance;
|
|
2861
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
|
+
|
|
2862
2927
|
export declare function getDynamicEvents(props: any, recall: Function): Record<string, any>;
|
|
2863
2928
|
|
|
2864
2929
|
/**
|
|
@@ -2866,14 +2931,31 @@ export declare function getDynamicEvents(props: any, recall: Function): Record<s
|
|
|
2866
2931
|
*/
|
|
2867
2932
|
export declare function getFingerId(): string;
|
|
2868
2933
|
|
|
2934
|
+
export declare function getFormData(item: any, dataForm: any, prefix: string, parentIndex: any, index: any): any;
|
|
2935
|
+
|
|
2869
2936
|
export declare function getMenuId(): string;
|
|
2870
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
|
+
|
|
2871
2947
|
/**
|
|
2872
2948
|
* Get请求
|
|
2873
2949
|
* @param url
|
|
2874
2950
|
*/
|
|
2875
2951
|
export declare function getRequest(url: string): Promise<AxiosResponse<any, any, {}>>;
|
|
2876
2952
|
|
|
2953
|
+
/**
|
|
2954
|
+
* 获取验证类型
|
|
2955
|
+
* @param type
|
|
2956
|
+
*/
|
|
2957
|
+
export declare function getValidType(type: any, options?: any): any;
|
|
2958
|
+
|
|
2877
2959
|
export declare const htmleditorItem: DefineComponent<__VLS_PublicProps_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2878
2960
|
selectItem: (...args: any[]) => void;
|
|
2879
2961
|
selfFunc: (...args: any[]) => void;
|
|
@@ -3200,6 +3282,15 @@ export declare function loadGetData(url: string): Promise<{
|
|
|
3200
3282
|
error: string;
|
|
3201
3283
|
}>;
|
|
3202
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
|
+
|
|
3203
3294
|
export declare const markdownItem: DefineComponent<__VLS_PublicProps_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3204
3295
|
selectItem: (...args: any[]) => void;
|
|
3205
3296
|
selfFunc: (...args: any[]) => void;
|
|
@@ -3474,6 +3565,13 @@ starHorseTableCompRef: unknown;
|
|
|
3474
3565
|
|
|
3475
3566
|
export declare function parseDateByType(val: any, type: string, needSecond?: boolean, split?: string): any;
|
|
3476
3567
|
|
|
3568
|
+
/**
|
|
3569
|
+
* 解析列表数据
|
|
3570
|
+
* @param item
|
|
3571
|
+
* @param val
|
|
3572
|
+
*/
|
|
3573
|
+
export declare function parseListData(item: any, val: any): any;
|
|
3574
|
+
|
|
3477
3575
|
export declare const passwordItem: DefineComponent<__VLS_PublicProps_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3478
3576
|
selectItem: (...args: any[]) => void;
|
|
3479
3577
|
selfFunc: (...args: any[]) => void;
|
|
@@ -5877,7 +5975,7 @@ type: PropType<any>;
|
|
|
5877
5975
|
default: any[];
|
|
5878
5976
|
};
|
|
5879
5977
|
btnPermissions: {
|
|
5880
|
-
type: PropType<
|
|
5978
|
+
type: PropType<Record<string, string>>;
|
|
5881
5979
|
required: false;
|
|
5882
5980
|
};
|
|
5883
5981
|
}>, {
|
|
@@ -5890,7 +5988,7 @@ multipleSelection: Ref<any, any>;
|
|
|
5890
5988
|
setDataInfo: (fieldName: string, val: any) => void;
|
|
5891
5989
|
tableCompFunc: (authority: any) => void;
|
|
5892
5990
|
getDatas: (limitSize?: number, params?: SearchParams[], orderBys?: OrderByInfo[], url?: string, usePageCondition?: boolean) => Promise<any>;
|
|
5893
|
-
permissionList: () =>
|
|
5991
|
+
permissionList: () => Record<string, string>;
|
|
5894
5992
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5895
5993
|
selectItem: (...args: any[]) => void;
|
|
5896
5994
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -6010,7 +6108,7 @@ type: PropType<any>;
|
|
|
6010
6108
|
default: any[];
|
|
6011
6109
|
};
|
|
6012
6110
|
btnPermissions: {
|
|
6013
|
-
type: PropType<
|
|
6111
|
+
type: PropType<Record<string, string>>;
|
|
6014
6112
|
required: false;
|
|
6015
6113
|
};
|
|
6016
6114
|
}>> & Readonly<{
|
|
@@ -6481,6 +6579,7 @@ export declare interface TabFieldInfo {
|
|
|
6481
6579
|
* 批量表单属性,该属性对应的数据默认是其它表的数据,
|
|
6482
6580
|
*/
|
|
6483
6581
|
batchFieldList?: Array<BatchFieldInfo>;
|
|
6582
|
+
preps?: Record<string, any>;
|
|
6484
6583
|
}
|
|
6485
6584
|
|
|
6486
6585
|
export declare const tableContainer: DefineComponent<ExtractPropTypes< {
|
|
@@ -7326,7 +7425,6 @@ setRefresh: () => void;
|
|
|
7326
7425
|
setSubItemId: (subItemId: string) => void;
|
|
7327
7426
|
setFormInfo: (formData: any) => void;
|
|
7328
7427
|
setCompList: (comps: Array<any>) => void;
|
|
7329
|
-
forceLoadCompNames: () => any[];
|
|
7330
7428
|
loadCompNames: () => any;
|
|
7331
7429
|
addComp: (comp: any) => void;
|
|
7332
7430
|
setIsDragging: (flag: boolean) => void;
|
|
@@ -7848,7 +7946,6 @@ setRefresh: () => void;
|
|
|
7848
7946
|
setSubItemId: (subItemId: string) => void;
|
|
7849
7947
|
setFormInfo: (formData: any) => void;
|
|
7850
7948
|
setCompList: (comps: Array<any>) => void;
|
|
7851
|
-
forceLoadCompNames: () => any[];
|
|
7852
7949
|
loadCompNames: () => any;
|
|
7853
7950
|
addComp: (comp: any) => void;
|
|
7854
7951
|
setIsDragging: (flag: boolean) => void;
|
|
@@ -8370,7 +8467,6 @@ setRefresh: () => void;
|
|
|
8370
8467
|
setSubItemId: (subItemId: string) => void;
|
|
8371
8468
|
setFormInfo: (formData: any) => void;
|
|
8372
8469
|
setCompList: (comps: Array<any>) => void;
|
|
8373
|
-
forceLoadCompNames: () => any[];
|
|
8374
8470
|
loadCompNames: () => any;
|
|
8375
8471
|
addComp: (comp: any) => void;
|
|
8376
8472
|
setIsDragging: (flag: boolean) => void;
|
|
@@ -8389,7 +8485,7 @@ setBatchEditFieldVisible: (visible: boolean) => void;
|
|
|
8389
8485
|
setPreviewVisible: (visible: boolean) => void;
|
|
8390
8486
|
setShortKeyDisabled: (disabled: boolean) => void;
|
|
8391
8487
|
getFieldDataIndex: () => number;
|
|
8392
|
-
}, "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">>;
|
|
8393
8489
|
|
|
8394
8490
|
export declare const useDesignPageStore: StoreDefinition<"designPage", Pick<{
|
|
8395
8491
|
nodeList: Ref< {
|
|
@@ -9400,6 +9496,15 @@ export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
|
|
|
9400
9496
|
*/
|
|
9401
9497
|
export declare function uuid(): string;
|
|
9402
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
|
+
|
|
9403
9508
|
export declare const viewMarkdownItem: DefineComponent<__VLS_PublicProps_39, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9404
9509
|
selectItem: (...args: any[]) => void;
|
|
9405
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": [
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@vueup/vue-quill": "^1.2.0",
|
|
65
65
|
"axios": "^1.13.2",
|
|
66
|
-
"element-plus": "^2.11.
|
|
66
|
+
"element-plus": "^2.11.8",
|
|
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",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"quill-image-uploader": "^1.3.0",
|
|
76
76
|
"smooth-signature": "^1.1.0",
|
|
77
77
|
"sortablejs": "^1.15.6",
|
|
78
|
-
"tailwindcss": "^4.1.
|
|
78
|
+
"tailwindcss": "^4.1.17",
|
|
79
79
|
"uuid": "^13.0.0",
|
|
80
80
|
"vanilla-jsoneditor": "^3.10.0",
|
|
81
|
-
"vue": "^3.5.
|
|
81
|
+
"vue": "^3.5.24",
|
|
82
82
|
"vue-i18n": "^11.1.12",
|
|
83
83
|
"vue-m-message": "^4.0.2",
|
|
84
84
|
"vue-router": "^4.6.3",
|
|
@@ -90,19 +90,17 @@
|
|
|
90
90
|
"@eslint/js": "^9.39.1",
|
|
91
91
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
92
92
|
"@rollup/plugin-inject": "^5.0.5",
|
|
93
|
-
"@tailwindcss/vite": "^4.1.
|
|
94
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
93
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
94
|
+
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
|
95
95
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
96
96
|
"@types/jquery": "^3.5.33",
|
|
97
|
-
"@types/node": "^24.10.
|
|
97
|
+
"@types/node": "^24.10.1",
|
|
98
98
|
"@types/prismjs": "^1.26.5",
|
|
99
99
|
"@types/sortablejs": "^1.15.9",
|
|
100
|
-
"@
|
|
101
|
-
"@typescript-eslint/
|
|
102
|
-
"@
|
|
103
|
-
"@vitejs/plugin-vue": "^6.0.1",
|
|
100
|
+
"@typescript-eslint/eslint-plugin": "^8.47.0",
|
|
101
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
102
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
104
103
|
"unplugin-auto-import": "^20.2.0",
|
|
105
|
-
"unplugin-element-plus": "^0.10.0",
|
|
106
104
|
"unplugin-vue-components": "^30.0.0",
|
|
107
105
|
"eslint": "^9.39.1",
|
|
108
106
|
"vue-eslint-parser": "^10.2.0",
|
|
@@ -113,7 +111,7 @@
|
|
|
113
111
|
"vite-plugin-dts": "^4.5.4",
|
|
114
112
|
"sass-embedded": "^1.93.3",
|
|
115
113
|
"terser": "^5.44.1",
|
|
116
|
-
"vite": "^7.2.
|
|
114
|
+
"vite": "^7.2.4"
|
|
117
115
|
},
|
|
118
116
|
"engines": {
|
|
119
117
|
"node": ">=20.13.0"
|