star-horse-lowcode 2.7.45 → 2.7.47
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 +5 -2
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +361 -359
- package/dist/types/index.d.ts +25 -33
- package/package.json +8 -8
package/dist/types/index.d.ts
CHANGED
|
@@ -456,20 +456,6 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
456
456
|
};
|
|
457
457
|
};
|
|
458
458
|
|
|
459
|
-
/**
|
|
460
|
-
* 事件联动
|
|
461
|
-
*/
|
|
462
|
-
export declare interface ActionRelation {
|
|
463
|
-
/**
|
|
464
|
-
* 事件名
|
|
465
|
-
*/
|
|
466
|
-
eventName: string;
|
|
467
|
-
/**
|
|
468
|
-
* 事件方法
|
|
469
|
-
*/
|
|
470
|
-
actionMethod: Function;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
459
|
/**
|
|
474
460
|
* 公共Api接口
|
|
475
461
|
* @param appName 应用名称
|
|
@@ -1675,9 +1661,8 @@ export declare function copyText(text: any): Promise<void>;
|
|
|
1675
1661
|
/**
|
|
1676
1662
|
* 动态创建组件
|
|
1677
1663
|
* @param compInfo 组件信息
|
|
1678
|
-
* @param app 父组件
|
|
1679
1664
|
*/
|
|
1680
|
-
export declare function createComponent(compInfo: DyCompField
|
|
1665
|
+
export declare function createComponent(compInfo: DyCompField): string;
|
|
1681
1666
|
|
|
1682
1667
|
/**
|
|
1683
1668
|
* 创建条件
|
|
@@ -2824,7 +2809,7 @@ export declare interface FieldInfo {
|
|
|
2824
2809
|
minWidth?: number;
|
|
2825
2810
|
/**
|
|
2826
2811
|
* 备选数据列表,目前仅支持下拉
|
|
2827
|
-
*
|
|
2812
|
+
* 废弃 在2.8.0 版本中删除,请根据具体业务在preps 中添加 values 或者data
|
|
2828
2813
|
*/
|
|
2829
2814
|
optionList?: SelectOption[] | Ref<SelectOption[]>;
|
|
2830
2815
|
/**
|
|
@@ -2876,20 +2861,14 @@ export declare interface FieldInfo {
|
|
|
2876
2861
|
*/
|
|
2877
2862
|
precision?: number;
|
|
2878
2863
|
/**
|
|
2879
|
-
*
|
|
2864
|
+
* 弹窗数据配置,
|
|
2865
|
+
* 废弃,请将所有弹窗配置都放在preps 中
|
|
2880
2866
|
*/
|
|
2881
2867
|
params?: CompParams;
|
|
2882
|
-
/**
|
|
2883
|
-
* 事件联动,鸡肋定义,后面会删除
|
|
2884
|
-
*/
|
|
2885
|
-
actionRelation?: ActionRelation;
|
|
2886
|
-
/**
|
|
2887
|
-
* 参数
|
|
2888
|
-
*/
|
|
2889
2868
|
/**
|
|
2890
2869
|
* 组件个性化属性
|
|
2891
2870
|
*/
|
|
2892
|
-
preps?:
|
|
2871
|
+
preps?: any | CompParams;
|
|
2893
2872
|
/**
|
|
2894
2873
|
* 查询表前缀
|
|
2895
2874
|
*/
|
|
@@ -2915,7 +2894,7 @@ export declare interface FieldInfo {
|
|
|
2915
2894
|
*/
|
|
2916
2895
|
searchVisible?: boolean;
|
|
2917
2896
|
/**
|
|
2918
|
-
*
|
|
2897
|
+
* 校验规则,废弃 在2.8.0 版本中删除 请在preps 中配置rules
|
|
2919
2898
|
*/
|
|
2920
2899
|
rules?: RuleType[] | any;
|
|
2921
2900
|
/**
|
|
@@ -2947,6 +2926,13 @@ export declare interface FieldMapping {
|
|
|
2947
2926
|
distField: string;
|
|
2948
2927
|
}
|
|
2949
2928
|
|
|
2929
|
+
/**
|
|
2930
|
+
* 给组件添加placeholder属性
|
|
2931
|
+
* @param item
|
|
2932
|
+
* @param itemType
|
|
2933
|
+
*/
|
|
2934
|
+
export declare function fieldPlaceholder(item: any, itemType: string): void;
|
|
2935
|
+
|
|
2950
2936
|
/**
|
|
2951
2937
|
* 解析表单字段映射
|
|
2952
2938
|
* @param fieldList
|
|
@@ -3399,6 +3385,12 @@ export declare function isJson(v: any): boolean;
|
|
|
3399
3385
|
*/
|
|
3400
3386
|
export declare function isPromise<T = any>(obj: any): obj is Promise<T>;
|
|
3401
3387
|
|
|
3388
|
+
/**
|
|
3389
|
+
* 校验组件
|
|
3390
|
+
* @param item
|
|
3391
|
+
*/
|
|
3392
|
+
export declare function itemCheck(item: any): string;
|
|
3393
|
+
|
|
3402
3394
|
/**
|
|
3403
3395
|
* 查询条件组装数据对象
|
|
3404
3396
|
*/
|
|
@@ -3933,8 +3925,8 @@ onSelfFunc?: (...args: any[]) => any;
|
|
|
3933
3925
|
onSelectItem?: (...args: any[]) => any;
|
|
3934
3926
|
"onUpdate:formData"?: (value: any) => any;
|
|
3935
3927
|
}>, {
|
|
3936
|
-
formFieldList: unknown[];
|
|
3937
3928
|
disabled: boolean;
|
|
3929
|
+
formFieldList: unknown[];
|
|
3938
3930
|
isSearch: boolean;
|
|
3939
3931
|
bareFlag: boolean;
|
|
3940
3932
|
isDesign: boolean;
|
|
@@ -5025,14 +5017,14 @@ selectedData: (selectData: any) => any;
|
|
|
5025
5017
|
"onUpdate:modelValue"?: (modelValue: any) => any;
|
|
5026
5018
|
onSelectedData?: (selectData: any) => any;
|
|
5027
5019
|
}>, {
|
|
5020
|
+
placeholder: string;
|
|
5021
|
+
displayName: string;
|
|
5028
5022
|
disabled: boolean;
|
|
5029
5023
|
compSize: string;
|
|
5030
|
-
displayName: string;
|
|
5031
5024
|
displayValue: string;
|
|
5032
5025
|
pageSize: number;
|
|
5033
5026
|
multiple: boolean;
|
|
5034
5027
|
checkStrictly: boolean;
|
|
5035
|
-
placeholder: string;
|
|
5036
5028
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
5037
5029
|
dataPickerRef: CreateComponentPublicInstanceWithMixins<Readonly<DataDropdownProps> & Readonly<{
|
|
5038
5030
|
"onUpdate:modelValue"?: (modelValue: any) => any;
|
|
@@ -5041,8 +5033,8 @@ open: () => void;
|
|
|
5041
5033
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
5042
5034
|
"update:modelValue": (modelValue: any) => any;
|
|
5043
5035
|
}, PublicProps, {
|
|
5044
|
-
compSize: string;
|
|
5045
5036
|
displayName: string;
|
|
5037
|
+
compSize: string;
|
|
5046
5038
|
displayValue: string;
|
|
5047
5039
|
pageSize: number;
|
|
5048
5040
|
multiple: boolean;
|
|
@@ -5061,8 +5053,8 @@ Defaults: {};
|
|
|
5061
5053
|
}>, {
|
|
5062
5054
|
open: () => void;
|
|
5063
5055
|
}, {}, {}, {}, {
|
|
5064
|
-
compSize: string;
|
|
5065
5056
|
displayName: string;
|
|
5057
|
+
compSize: string;
|
|
5066
5058
|
displayValue: string;
|
|
5067
5059
|
pageSize: number;
|
|
5068
5060
|
multiple: boolean;
|
|
@@ -8324,8 +8316,8 @@ onSelfFunc?: (...args: any[]) => any;
|
|
|
8324
8316
|
onSelectItem?: (...args: any[]) => any;
|
|
8325
8317
|
"onUpdate:formData"?: (value: any) => any;
|
|
8326
8318
|
}>, {
|
|
8327
|
-
formFieldList: Record<string, any>;
|
|
8328
8319
|
disabled: boolean;
|
|
8320
|
+
formFieldList: Record<string, any>;
|
|
8329
8321
|
formInfo: Record<string, any>;
|
|
8330
8322
|
field: any;
|
|
8331
8323
|
isSearch: boolean;
|
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.7.
|
|
5
|
+
"version": "2.7.47",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
|
|
8
8
|
"keywords": [
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"星马低代码核心库"
|
|
18
18
|
],
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"homepage": "
|
|
20
|
+
"homepage": "https://gitee.com/lixingyu/knowledge_demo",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "
|
|
23
|
+
"url": "https://gitee.com/lixingyu/knowledge_demo"
|
|
24
24
|
},
|
|
25
25
|
"main": "dist/index.es.js",
|
|
26
26
|
"module": "dist/index.es.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
49
49
|
"@rollup/plugin-inject": "^5.0.5",
|
|
50
50
|
"@tailwindcss/vite": "^4.1.10",
|
|
51
|
-
"@vitejs/plugin-vue-jsx": "^
|
|
51
|
+
"@vitejs/plugin-vue-jsx": "^5.0.0",
|
|
52
52
|
"@vueup/vue-quill": "^1.2.0",
|
|
53
53
|
"axios": "^1.10.0",
|
|
54
54
|
"element-plus": "^2.10.2",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"json5": "^2.2.3",
|
|
58
58
|
"less": "^4.3.0",
|
|
59
59
|
"less-loader": "^12.3.0",
|
|
60
|
-
"md-editor-v3": "^5.7.
|
|
60
|
+
"md-editor-v3": "^5.7.1",
|
|
61
61
|
"path": "^0.12.7",
|
|
62
62
|
"pinia": "^3.0.3",
|
|
63
63
|
"pinia-plugin-persistedstate": "^4.3.0",
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
"@types/prismjs": "^1.26.5",
|
|
89
89
|
"@types/sortablejs": "^1.15.8",
|
|
90
90
|
"@types/uuid": "^10.0.0",
|
|
91
|
-
"@vitejs/plugin-vue": "^
|
|
91
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
92
92
|
"sass-embedded": "^1.89.2",
|
|
93
93
|
"svg2ttf": "^6.0.3",
|
|
94
94
|
"terser": "^5.43.1",
|
|
95
95
|
"ttf2woff": "^3.0.0",
|
|
96
|
-
"vite": "^
|
|
96
|
+
"vite": "^7.0.0"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|
|
99
|
-
"node": ">=20.
|
|
99
|
+
"node": ">=20.13.0"
|
|
100
100
|
}
|
|
101
101
|
}
|