star-horse-lowcode 2.8.17 → 2.8.18
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 +7 -5
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +22356 -196418
- package/dist/types/index.d.ts +87 -102
- package/package.json +10 -10
package/dist/types/index.d.ts
CHANGED
|
@@ -257,9 +257,12 @@ showLine: {
|
|
|
257
257
|
type: BooleanConstructor;
|
|
258
258
|
default: boolean;
|
|
259
259
|
};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
/**
|
|
261
|
+
* 大小控制类型,percent:百分比,px:像素
|
|
262
|
+
*/
|
|
263
|
+
sizeControlType: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
default: string;
|
|
263
266
|
};
|
|
264
267
|
isDesign: {
|
|
265
268
|
type: BooleanConstructor;
|
|
@@ -284,9 +287,12 @@ showLine: {
|
|
|
284
287
|
type: BooleanConstructor;
|
|
285
288
|
default: boolean;
|
|
286
289
|
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
/**
|
|
291
|
+
* 大小控制类型,percent:百分比,px:像素
|
|
292
|
+
*/
|
|
293
|
+
sizeControlType: {
|
|
294
|
+
type: StringConstructor;
|
|
295
|
+
default: string;
|
|
290
296
|
};
|
|
291
297
|
isDesign: {
|
|
292
298
|
type: BooleanConstructor;
|
|
@@ -297,9 +303,10 @@ onSelectNode?: (...args: any[]) => any;
|
|
|
297
303
|
}>, {
|
|
298
304
|
isActive: boolean;
|
|
299
305
|
showLine: boolean;
|
|
300
|
-
|
|
306
|
+
sizeControlType: string;
|
|
301
307
|
isDesign: boolean;
|
|
302
308
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
309
|
+
nodeRef: HTMLDivElement;
|
|
303
310
|
contentMenuRef: unknown;
|
|
304
311
|
}, any>;
|
|
305
312
|
|
|
@@ -705,6 +712,7 @@ declare function __VLS_template_2(): {
|
|
|
705
712
|
default?(_: {}): any;
|
|
706
713
|
};
|
|
707
714
|
refs: {
|
|
715
|
+
nodeRef: HTMLDivElement;
|
|
708
716
|
contentMenuRef: unknown;
|
|
709
717
|
};
|
|
710
718
|
rootEl: any;
|
|
@@ -2257,7 +2265,7 @@ declare const _default: {
|
|
|
2257
2265
|
axiosInstance?: AxiosInstance;
|
|
2258
2266
|
elementPlusOptions?: any;
|
|
2259
2267
|
lang?: LangType;
|
|
2260
|
-
}) => void;
|
|
2268
|
+
}, initElementPlus?: boolean) => void;
|
|
2261
2269
|
piniaInstance: Pinia;
|
|
2262
2270
|
starHorseAxios: AxiosInstance;
|
|
2263
2271
|
};
|
|
@@ -2423,29 +2431,17 @@ export declare interface DynamicNode {
|
|
|
2423
2431
|
*/
|
|
2424
2432
|
id: string;
|
|
2425
2433
|
/**
|
|
2426
|
-
*
|
|
2427
|
-
*/
|
|
2428
|
-
zIndex?: number;
|
|
2429
|
-
/**
|
|
2430
|
-
* 节点的宽度
|
|
2431
|
-
*/
|
|
2432
|
-
width: number;
|
|
2433
|
-
/**
|
|
2434
|
-
* 节点的高度
|
|
2435
|
-
*/
|
|
2436
|
-
height: number;
|
|
2437
|
-
/**
|
|
2438
|
-
* 节点的left位置
|
|
2434
|
+
* 节点标签
|
|
2439
2435
|
*/
|
|
2440
|
-
|
|
2441
|
-
/**
|
|
2442
|
-
* 节点的Top位置
|
|
2443
|
-
*/
|
|
2444
|
-
top: number;
|
|
2436
|
+
label: string;
|
|
2445
2437
|
/**
|
|
2446
2438
|
* 节点名称
|
|
2447
2439
|
*/
|
|
2448
2440
|
name: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* 节点图标
|
|
2443
|
+
*/
|
|
2444
|
+
icon?: string;
|
|
2449
2445
|
/**
|
|
2450
2446
|
* 节点类型
|
|
2451
2447
|
*/
|
|
@@ -2453,7 +2449,11 @@ export declare interface DynamicNode {
|
|
|
2453
2449
|
/**
|
|
2454
2450
|
* 节点属性
|
|
2455
2451
|
*/
|
|
2456
|
-
|
|
2452
|
+
preps?: Record<string, any>;
|
|
2453
|
+
/**
|
|
2454
|
+
* 节点样式
|
|
2455
|
+
*/
|
|
2456
|
+
styles?: Record<string, any>;
|
|
2457
2457
|
/**
|
|
2458
2458
|
* 子节点
|
|
2459
2459
|
*/
|
|
@@ -6014,6 +6014,10 @@ default: boolean;
|
|
|
6014
6014
|
compUrl: {
|
|
6015
6015
|
type: PropType<ApiUrls>;
|
|
6016
6016
|
};
|
|
6017
|
+
orderBy: {
|
|
6018
|
+
type: PropType<OrderByInfo[]>;
|
|
6019
|
+
default: () => any[];
|
|
6020
|
+
};
|
|
6017
6021
|
btnTitle: {
|
|
6018
6022
|
type: StringConstructor;
|
|
6019
6023
|
default: () => any;
|
|
@@ -6129,6 +6133,10 @@ default: boolean;
|
|
|
6129
6133
|
compUrl: {
|
|
6130
6134
|
type: PropType<ApiUrls>;
|
|
6131
6135
|
};
|
|
6136
|
+
orderBy: {
|
|
6137
|
+
type: PropType<OrderByInfo[]>;
|
|
6138
|
+
default: () => any[];
|
|
6139
|
+
};
|
|
6132
6140
|
btnTitle: {
|
|
6133
6141
|
type: StringConstructor;
|
|
6134
6142
|
default: () => any;
|
|
@@ -6170,6 +6178,7 @@ onAddData?: (...args: any[]) => any;
|
|
|
6170
6178
|
onRemoveData?: (...args: any[]) => any;
|
|
6171
6179
|
"onUpdate:treeDatas"?: (value: any) => any;
|
|
6172
6180
|
}>, {
|
|
6181
|
+
orderBy: OrderByInfo[];
|
|
6173
6182
|
preps: any;
|
|
6174
6183
|
height: number;
|
|
6175
6184
|
checkStrictly: boolean;
|
|
@@ -6897,48 +6906,40 @@ getFieldDataIndex: () => number;
|
|
|
6897
6906
|
export declare const useDesignPageStore: StoreDefinition<"designPage", Pick<{
|
|
6898
6907
|
nodeList: Ref< {
|
|
6899
6908
|
id: string;
|
|
6900
|
-
|
|
6901
|
-
width: number;
|
|
6902
|
-
height: number;
|
|
6903
|
-
left: number;
|
|
6904
|
-
top: number;
|
|
6909
|
+
label: string;
|
|
6905
6910
|
name: string;
|
|
6911
|
+
icon?: string;
|
|
6906
6912
|
type?: string;
|
|
6907
|
-
|
|
6913
|
+
preps?: Record<string, any>;
|
|
6914
|
+
styles?: Record<string, any>;
|
|
6908
6915
|
children?: /*elided*/ any[];
|
|
6909
6916
|
}[], DynamicNode[] | {
|
|
6910
6917
|
id: string;
|
|
6911
|
-
|
|
6912
|
-
width: number;
|
|
6913
|
-
height: number;
|
|
6914
|
-
left: number;
|
|
6915
|
-
top: number;
|
|
6918
|
+
label: string;
|
|
6916
6919
|
name: string;
|
|
6920
|
+
icon?: string;
|
|
6917
6921
|
type?: string;
|
|
6918
|
-
|
|
6922
|
+
preps?: Record<string, any>;
|
|
6923
|
+
styles?: Record<string, any>;
|
|
6919
6924
|
children?: /*elided*/ any[];
|
|
6920
6925
|
}[]>;
|
|
6921
6926
|
currentNode: Ref< {
|
|
6922
6927
|
id: string;
|
|
6923
|
-
|
|
6924
|
-
width: number;
|
|
6925
|
-
height: number;
|
|
6926
|
-
left: number;
|
|
6927
|
-
top: number;
|
|
6928
|
+
label: string;
|
|
6928
6929
|
name: string;
|
|
6930
|
+
icon?: string;
|
|
6929
6931
|
type?: string;
|
|
6930
|
-
|
|
6932
|
+
preps?: Record<string, any>;
|
|
6933
|
+
styles?: Record<string, any>;
|
|
6931
6934
|
children?: /*elided*/ any[];
|
|
6932
6935
|
}, DynamicNode | {
|
|
6933
6936
|
id: string;
|
|
6934
|
-
|
|
6935
|
-
width: number;
|
|
6936
|
-
height: number;
|
|
6937
|
-
left: number;
|
|
6938
|
-
top: number;
|
|
6937
|
+
label: string;
|
|
6939
6938
|
name: string;
|
|
6939
|
+
icon?: string;
|
|
6940
6940
|
type?: string;
|
|
6941
|
-
|
|
6941
|
+
preps?: Record<string, any>;
|
|
6942
|
+
styles?: Record<string, any>;
|
|
6942
6943
|
children?: /*elided*/ any[];
|
|
6943
6944
|
}>;
|
|
6944
6945
|
isEdit: Ref<boolean, boolean>;
|
|
@@ -6949,53 +6950,45 @@ addNode: (node: DynamicNode) => void;
|
|
|
6949
6950
|
selectNode: (node: DynamicNode) => void;
|
|
6950
6951
|
clearAll: () => void;
|
|
6951
6952
|
setIsEdit: (edit: boolean) => void;
|
|
6952
|
-
maxZIndex: () =>
|
|
6953
|
+
maxZIndex: () => any;
|
|
6953
6954
|
init: () => void;
|
|
6954
6955
|
}, "isEdit" | "nodeList" | "currentNode" | "defaultZindex">, Pick<{
|
|
6955
6956
|
nodeList: Ref< {
|
|
6956
6957
|
id: string;
|
|
6957
|
-
|
|
6958
|
-
width: number;
|
|
6959
|
-
height: number;
|
|
6960
|
-
left: number;
|
|
6961
|
-
top: number;
|
|
6958
|
+
label: string;
|
|
6962
6959
|
name: string;
|
|
6960
|
+
icon?: string;
|
|
6963
6961
|
type?: string;
|
|
6964
|
-
|
|
6962
|
+
preps?: Record<string, any>;
|
|
6963
|
+
styles?: Record<string, any>;
|
|
6965
6964
|
children?: /*elided*/ any[];
|
|
6966
6965
|
}[], DynamicNode[] | {
|
|
6967
6966
|
id: string;
|
|
6968
|
-
|
|
6969
|
-
width: number;
|
|
6970
|
-
height: number;
|
|
6971
|
-
left: number;
|
|
6972
|
-
top: number;
|
|
6967
|
+
label: string;
|
|
6973
6968
|
name: string;
|
|
6969
|
+
icon?: string;
|
|
6974
6970
|
type?: string;
|
|
6975
|
-
|
|
6971
|
+
preps?: Record<string, any>;
|
|
6972
|
+
styles?: Record<string, any>;
|
|
6976
6973
|
children?: /*elided*/ any[];
|
|
6977
6974
|
}[]>;
|
|
6978
6975
|
currentNode: Ref< {
|
|
6979
6976
|
id: string;
|
|
6980
|
-
|
|
6981
|
-
width: number;
|
|
6982
|
-
height: number;
|
|
6983
|
-
left: number;
|
|
6984
|
-
top: number;
|
|
6977
|
+
label: string;
|
|
6985
6978
|
name: string;
|
|
6979
|
+
icon?: string;
|
|
6986
6980
|
type?: string;
|
|
6987
|
-
|
|
6981
|
+
preps?: Record<string, any>;
|
|
6982
|
+
styles?: Record<string, any>;
|
|
6988
6983
|
children?: /*elided*/ any[];
|
|
6989
6984
|
}, DynamicNode | {
|
|
6990
6985
|
id: string;
|
|
6991
|
-
|
|
6992
|
-
width: number;
|
|
6993
|
-
height: number;
|
|
6994
|
-
left: number;
|
|
6995
|
-
top: number;
|
|
6986
|
+
label: string;
|
|
6996
6987
|
name: string;
|
|
6988
|
+
icon?: string;
|
|
6997
6989
|
type?: string;
|
|
6998
|
-
|
|
6990
|
+
preps?: Record<string, any>;
|
|
6991
|
+
styles?: Record<string, any>;
|
|
6999
6992
|
children?: /*elided*/ any[];
|
|
7000
6993
|
}>;
|
|
7001
6994
|
isEdit: Ref<boolean, boolean>;
|
|
@@ -7006,53 +6999,45 @@ addNode: (node: DynamicNode) => void;
|
|
|
7006
6999
|
selectNode: (node: DynamicNode) => void;
|
|
7007
7000
|
clearAll: () => void;
|
|
7008
7001
|
setIsEdit: (edit: boolean) => void;
|
|
7009
|
-
maxZIndex: () =>
|
|
7002
|
+
maxZIndex: () => any;
|
|
7010
7003
|
init: () => void;
|
|
7011
7004
|
}, never>, Pick<{
|
|
7012
7005
|
nodeList: Ref< {
|
|
7013
7006
|
id: string;
|
|
7014
|
-
|
|
7015
|
-
width: number;
|
|
7016
|
-
height: number;
|
|
7017
|
-
left: number;
|
|
7018
|
-
top: number;
|
|
7007
|
+
label: string;
|
|
7019
7008
|
name: string;
|
|
7009
|
+
icon?: string;
|
|
7020
7010
|
type?: string;
|
|
7021
|
-
|
|
7011
|
+
preps?: Record<string, any>;
|
|
7012
|
+
styles?: Record<string, any>;
|
|
7022
7013
|
children?: /*elided*/ any[];
|
|
7023
7014
|
}[], DynamicNode[] | {
|
|
7024
7015
|
id: string;
|
|
7025
|
-
|
|
7026
|
-
width: number;
|
|
7027
|
-
height: number;
|
|
7028
|
-
left: number;
|
|
7029
|
-
top: number;
|
|
7016
|
+
label: string;
|
|
7030
7017
|
name: string;
|
|
7018
|
+
icon?: string;
|
|
7031
7019
|
type?: string;
|
|
7032
|
-
|
|
7020
|
+
preps?: Record<string, any>;
|
|
7021
|
+
styles?: Record<string, any>;
|
|
7033
7022
|
children?: /*elided*/ any[];
|
|
7034
7023
|
}[]>;
|
|
7035
7024
|
currentNode: Ref< {
|
|
7036
7025
|
id: string;
|
|
7037
|
-
|
|
7038
|
-
width: number;
|
|
7039
|
-
height: number;
|
|
7040
|
-
left: number;
|
|
7041
|
-
top: number;
|
|
7026
|
+
label: string;
|
|
7042
7027
|
name: string;
|
|
7028
|
+
icon?: string;
|
|
7043
7029
|
type?: string;
|
|
7044
|
-
|
|
7030
|
+
preps?: Record<string, any>;
|
|
7031
|
+
styles?: Record<string, any>;
|
|
7045
7032
|
children?: /*elided*/ any[];
|
|
7046
7033
|
}, DynamicNode | {
|
|
7047
7034
|
id: string;
|
|
7048
|
-
|
|
7049
|
-
width: number;
|
|
7050
|
-
height: number;
|
|
7051
|
-
left: number;
|
|
7052
|
-
top: number;
|
|
7035
|
+
label: string;
|
|
7053
7036
|
name: string;
|
|
7037
|
+
icon?: string;
|
|
7054
7038
|
type?: string;
|
|
7055
|
-
|
|
7039
|
+
preps?: Record<string, any>;
|
|
7040
|
+
styles?: Record<string, any>;
|
|
7056
7041
|
children?: /*elided*/ any[];
|
|
7057
7042
|
}>;
|
|
7058
7043
|
isEdit: Ref<boolean, boolean>;
|
|
@@ -7063,7 +7048,7 @@ addNode: (node: DynamicNode) => void;
|
|
|
7063
7048
|
selectNode: (node: DynamicNode) => void;
|
|
7064
7049
|
clearAll: () => void;
|
|
7065
7050
|
setIsEdit: (edit: boolean) => void;
|
|
7066
|
-
maxZIndex: () =>
|
|
7051
|
+
maxZIndex: () => any;
|
|
7067
7052
|
init: () => void;
|
|
7068
7053
|
}, "init" | "clearAll" | "setIsEdit" | "setNodeList" | "removeNode" | "addNode" | "selectNode" | "maxZIndex">>;
|
|
7069
7054
|
|
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.18",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
|
|
8
8
|
"keywords": [
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@element-plus/icons-vue": "^2.3.2",
|
|
65
|
-
"@eslint/js": "^9.
|
|
65
|
+
"@eslint/js": "^9.36.0",
|
|
66
66
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
67
67
|
"@rollup/plugin-inject": "^5.0.5",
|
|
68
68
|
"@tailwindcss/vite": "^4.1.13",
|
|
69
69
|
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
70
70
|
"@vueup/vue-quill": "^1.2.0",
|
|
71
71
|
"axios": "^1.12.2",
|
|
72
|
-
"element-plus": "^2.11.
|
|
72
|
+
"element-plus": "^2.11.3",
|
|
73
73
|
"eslint-config-prettier": "^10.1.8",
|
|
74
74
|
"eslint-plugin-prettier": "^5.5.4",
|
|
75
75
|
"globals": "^16.4.0",
|
|
@@ -100,21 +100,21 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@types/jquery": "^3.5.33",
|
|
103
|
-
"@types/node": "^24.
|
|
103
|
+
"@types/node": "^24.5.2",
|
|
104
104
|
"@types/prismjs": "^1.26.5",
|
|
105
105
|
"@types/sortablejs": "^1.15.8",
|
|
106
|
-
"@types/uuid": "^
|
|
107
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
108
|
-
"@typescript-eslint/parser": "^8.
|
|
106
|
+
"@types/uuid": "^11.0.0",
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
108
|
+
"@typescript-eslint/parser": "^8.44.0",
|
|
109
109
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
110
|
-
"eslint": "^9.
|
|
110
|
+
"eslint": "^9.36.0",
|
|
111
111
|
"eslint-config-prettier": "^10.1.8",
|
|
112
112
|
"eslint-plugin-prettier": "^5.5.4",
|
|
113
113
|
"eslint-plugin-vue": "^10.4.0",
|
|
114
114
|
"prettier": "^3.6.2",
|
|
115
|
-
"sass-embedded": "^1.
|
|
115
|
+
"sass-embedded": "^1.93.0",
|
|
116
116
|
"terser": "^5.44.0",
|
|
117
|
-
"vite": "^7.1.
|
|
117
|
+
"vite": "^7.1.6"
|
|
118
118
|
},
|
|
119
119
|
"engines": {
|
|
120
120
|
"node": ">=20.13.0"
|