star-horse-lowcode 2.7.41 → 2.7.42
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 +16 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +116 -110
- package/dist/index.umd.js +3 -3
- package/dist/types/index.d.ts +95 -26
- package/licenses.json +14194 -0
- package/package.json +1 -1
- package/src/components/types/ApiUrls.ts +158 -0
- package/src/components/types/BtnAction.ts +52 -0
- package/src/components/types/BtnAuth.ts +43 -0
- package/src/components/types/CompInfo.ts +81 -0
- package/src/components/types/DialogProps.ts +55 -0
- package/src/components/types/DyCompField.ts +23 -0
- package/src/components/types/DynamicNode.ts +42 -0
- package/src/components/types/MenusInfo.ts +45 -0
- package/src/components/types/PageFieldInfo.ts +566 -0
- package/src/components/types/PageProps.ts +25 -0
- package/src/components/types/Params.ts +93 -0
- package/src/components/types/RuleType.ts +10 -0
- package/src/components/types/SearchProps.ts +35 -0
- package/src/components/types/ShortKey.ts +30 -0
- package/src/components/types/StarHorseType.ts +18 -0
- package/src/components/types/index.ts +15 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1126,6 +1126,36 @@ export declare interface BtnAction {
|
|
|
1126
1126
|
code?: string;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
+
/**
|
|
1130
|
+
* 按钮自定义方法跳转
|
|
1131
|
+
*/
|
|
1132
|
+
export declare interface BtnAuth {
|
|
1133
|
+
/**
|
|
1134
|
+
* 按钮名字
|
|
1135
|
+
*/
|
|
1136
|
+
btnName: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* 图标
|
|
1139
|
+
*/
|
|
1140
|
+
icon?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* 标签名字
|
|
1143
|
+
*/
|
|
1144
|
+
labelName: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* 自定义调用方法
|
|
1147
|
+
*/
|
|
1148
|
+
exec?: Function;
|
|
1149
|
+
/**
|
|
1150
|
+
* 是否禁用 Y 是 N否
|
|
1151
|
+
*/
|
|
1152
|
+
disabled?: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* 子节点
|
|
1155
|
+
*/
|
|
1156
|
+
children?: BtnAuth[];
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1129
1159
|
/**
|
|
1130
1160
|
* 列表按钮隐藏条件
|
|
1131
1161
|
*/
|
|
@@ -4755,6 +4785,21 @@ export declare const piniaInstance: Pinia;
|
|
|
4755
4785
|
*/
|
|
4756
4786
|
export declare function postRequest(url: string, data: Array<any> | any): Promise<AxiosResponse<any, any>>;
|
|
4757
4787
|
|
|
4788
|
+
/**
|
|
4789
|
+
* 按钮响应事件前置校验
|
|
4790
|
+
*/
|
|
4791
|
+
export declare interface PreValid {
|
|
4792
|
+
authority: string;
|
|
4793
|
+
/**
|
|
4794
|
+
* 校验方法
|
|
4795
|
+
*/
|
|
4796
|
+
valid: Function;
|
|
4797
|
+
/**
|
|
4798
|
+
* 校验失败提示信息
|
|
4799
|
+
*/
|
|
4800
|
+
msg?: string;
|
|
4801
|
+
}
|
|
4802
|
+
|
|
4758
4803
|
export declare const qrcodeItem: DefineComponent<ExtractPropTypes< {
|
|
4759
4804
|
isDesign: {
|
|
4760
4805
|
type: BooleanConstructor;
|
|
@@ -5545,8 +5590,7 @@ extendBtns: {
|
|
|
5545
5590
|
type: PropType<UserFuncInfo[]>;
|
|
5546
5591
|
};
|
|
5547
5592
|
preValidFunc: {
|
|
5548
|
-
type:
|
|
5549
|
-
default: {};
|
|
5593
|
+
type: PropType<Array<PreValid>>;
|
|
5550
5594
|
};
|
|
5551
5595
|
btnPermissions: {
|
|
5552
5596
|
type: PropType<any>;
|
|
@@ -5556,11 +5600,11 @@ required: false;
|
|
|
5556
5600
|
setFormData: (val: any) => void;
|
|
5557
5601
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5558
5602
|
upload: (...args: any[]) => void;
|
|
5603
|
+
uploadProcess: (...args: any[]) => void;
|
|
5559
5604
|
uploadError: (...args: any[]) => void;
|
|
5560
5605
|
uploadSuccess: (...args: any[]) => void;
|
|
5561
|
-
tableCompFunc: (...args: any[]) => void;
|
|
5562
|
-
uploadProcess: (...args: any[]) => void;
|
|
5563
5606
|
btnOperation: (...args: any[]) => void;
|
|
5607
|
+
tableCompFunc: (...args: any[]) => void;
|
|
5564
5608
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
5565
5609
|
dialogProps: {
|
|
5566
5610
|
type: PropType<DialogProps>;
|
|
@@ -5578,8 +5622,7 @@ extendBtns: {
|
|
|
5578
5622
|
type: PropType<UserFuncInfo[]>;
|
|
5579
5623
|
};
|
|
5580
5624
|
preValidFunc: {
|
|
5581
|
-
type:
|
|
5582
|
-
default: {};
|
|
5625
|
+
type: PropType<Array<PreValid>>;
|
|
5583
5626
|
};
|
|
5584
5627
|
btnPermissions: {
|
|
5585
5628
|
type: PropType<any>;
|
|
@@ -5587,14 +5630,13 @@ required: false;
|
|
|
5587
5630
|
};
|
|
5588
5631
|
}>> & Readonly<{
|
|
5589
5632
|
onUpload?: (...args: any[]) => any;
|
|
5633
|
+
onUploadProcess?: (...args: any[]) => any;
|
|
5590
5634
|
onUploadError?: (...args: any[]) => any;
|
|
5591
5635
|
onUploadSuccess?: (...args: any[]) => any;
|
|
5592
|
-
onTableCompFunc?: (...args: any[]) => any;
|
|
5593
|
-
onUploadProcess?: (...args: any[]) => any;
|
|
5594
5636
|
onBtnOperation?: (...args: any[]) => any;
|
|
5637
|
+
onTableCompFunc?: (...args: any[]) => any;
|
|
5595
5638
|
}>, {
|
|
5596
5639
|
viewFlag: boolean;
|
|
5597
|
-
preValidFunc: Record<string, any>;
|
|
5598
5640
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
5599
5641
|
|
|
5600
5642
|
export declare const StarHorseDataSelector: DefineComponent<DataSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -5604,9 +5646,9 @@ selectedData: (selectData: any) => any;
|
|
|
5604
5646
|
"onUpdate:modelValue"?: (modelValue: any) => any;
|
|
5605
5647
|
onSelectedData?: (selectData: any) => any;
|
|
5606
5648
|
}>, {
|
|
5649
|
+
compSize: string;
|
|
5607
5650
|
displayName: string;
|
|
5608
5651
|
disabled: boolean;
|
|
5609
|
-
compSize: string;
|
|
5610
5652
|
displayValue: string;
|
|
5611
5653
|
pageSize: number;
|
|
5612
5654
|
multiple: boolean;
|
|
@@ -5620,8 +5662,8 @@ open: () => void;
|
|
|
5620
5662
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
5621
5663
|
"update:modelValue": (modelValue: any) => any;
|
|
5622
5664
|
}, PublicProps, {
|
|
5623
|
-
displayName: string;
|
|
5624
5665
|
compSize: string;
|
|
5666
|
+
displayName: string;
|
|
5625
5667
|
displayValue: string;
|
|
5626
5668
|
pageSize: number;
|
|
5627
5669
|
multiple: boolean;
|
|
@@ -5640,8 +5682,8 @@ Defaults: {};
|
|
|
5640
5682
|
}>, {
|
|
5641
5683
|
open: () => void;
|
|
5642
5684
|
}, {}, {}, {}, {
|
|
5643
|
-
displayName: string;
|
|
5644
5685
|
compSize: string;
|
|
5686
|
+
displayName: string;
|
|
5645
5687
|
displayValue: string;
|
|
5646
5688
|
pageSize: number;
|
|
5647
5689
|
multiple: boolean;
|
|
@@ -5732,9 +5774,9 @@ onDataLoaded?: (...args: any[]) => any;
|
|
|
5732
5774
|
}>, {
|
|
5733
5775
|
primaryKey: any;
|
|
5734
5776
|
subFormFlag: string;
|
|
5777
|
+
dataFormat: Function;
|
|
5735
5778
|
dynamicForm: boolean;
|
|
5736
5779
|
batchFieldName: string;
|
|
5737
|
-
dataFormat: Function;
|
|
5738
5780
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
5739
5781
|
|
|
5740
5782
|
export declare const StarHorseDataViewItems: DefineComponent<ExtractPropTypes< {
|
|
@@ -6171,9 +6213,9 @@ type: PropType<any>;
|
|
|
6171
6213
|
}>> & Readonly<{
|
|
6172
6214
|
"onUpdate:dataForm"?: (value: any) => any;
|
|
6173
6215
|
}>, {
|
|
6216
|
+
compSize: string;
|
|
6174
6217
|
batchName: string;
|
|
6175
6218
|
subFormFlag: string;
|
|
6176
|
-
compSize: string;
|
|
6177
6219
|
isEdit: boolean;
|
|
6178
6220
|
isView: boolean;
|
|
6179
6221
|
batchFieldName: string;
|
|
@@ -6625,6 +6667,14 @@ marginRight: {
|
|
|
6625
6667
|
type: StringConstructor;
|
|
6626
6668
|
default: string;
|
|
6627
6669
|
};
|
|
6670
|
+
borderRadius: {
|
|
6671
|
+
type: StringConstructor;
|
|
6672
|
+
default: string;
|
|
6673
|
+
};
|
|
6674
|
+
boorderPadding: {
|
|
6675
|
+
type: StringConstructor;
|
|
6676
|
+
default: string;
|
|
6677
|
+
};
|
|
6628
6678
|
boxShow: {
|
|
6629
6679
|
type: BooleanConstructor;
|
|
6630
6680
|
default: boolean;
|
|
@@ -6673,6 +6723,14 @@ marginRight: {
|
|
|
6673
6723
|
type: StringConstructor;
|
|
6674
6724
|
default: string;
|
|
6675
6725
|
};
|
|
6726
|
+
borderRadius: {
|
|
6727
|
+
type: StringConstructor;
|
|
6728
|
+
default: string;
|
|
6729
|
+
};
|
|
6730
|
+
boorderPadding: {
|
|
6731
|
+
type: StringConstructor;
|
|
6732
|
+
default: string;
|
|
6733
|
+
};
|
|
6676
6734
|
boxShow: {
|
|
6677
6735
|
type: BooleanConstructor;
|
|
6678
6736
|
default: boolean;
|
|
@@ -6693,13 +6751,15 @@ default: string;
|
|
|
6693
6751
|
title: string;
|
|
6694
6752
|
size: string;
|
|
6695
6753
|
width: string;
|
|
6696
|
-
color: string;
|
|
6697
|
-
cursor: string;
|
|
6698
6754
|
height: string;
|
|
6699
6755
|
marginLeft: string;
|
|
6700
6756
|
marginRight: string;
|
|
6757
|
+
borderRadius: string;
|
|
6758
|
+
boorderPadding: string;
|
|
6701
6759
|
boxShow: boolean;
|
|
6702
6760
|
border: boolean;
|
|
6761
|
+
color: string;
|
|
6762
|
+
cursor: string;
|
|
6703
6763
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
6704
6764
|
|
|
6705
6765
|
export declare const StarHorseJsonEditor: DefineComponent<ExtractPropTypes< {
|
|
@@ -7151,8 +7211,8 @@ dataList: {
|
|
|
7151
7211
|
type: ArrayConstructor;
|
|
7152
7212
|
};
|
|
7153
7213
|
}>> & Readonly<{}>, {
|
|
7154
|
-
compSize: string;
|
|
7155
7214
|
height: string;
|
|
7215
|
+
compSize: string;
|
|
7156
7216
|
dataFormat: Function;
|
|
7157
7217
|
dialogInput: boolean;
|
|
7158
7218
|
expand: boolean;
|
|
@@ -7264,9 +7324,9 @@ title: string;
|
|
|
7264
7324
|
data: any;
|
|
7265
7325
|
size: string;
|
|
7266
7326
|
width: number;
|
|
7327
|
+
height: number;
|
|
7267
7328
|
color: string;
|
|
7268
7329
|
cursor: string;
|
|
7269
|
-
height: number;
|
|
7270
7330
|
backgroundColor: string;
|
|
7271
7331
|
borderOffset: number;
|
|
7272
7332
|
borderColor: string;
|
|
@@ -7352,9 +7412,9 @@ default: any;
|
|
|
7352
7412
|
onFocusEvent?: (...args: any[]) => any;
|
|
7353
7413
|
onBlurEvent?: (...args: any[]) => any;
|
|
7354
7414
|
}>, {
|
|
7415
|
+
compSize: string;
|
|
7355
7416
|
cellEditable: boolean;
|
|
7356
7417
|
batchName: string;
|
|
7357
|
-
compSize: string;
|
|
7358
7418
|
sortable: boolean;
|
|
7359
7419
|
isDynamic: boolean;
|
|
7360
7420
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
@@ -7432,6 +7492,10 @@ type: StringConstructor;
|
|
|
7432
7492
|
extendBtns: {
|
|
7433
7493
|
type: PropType<UserFuncInfo[]>;
|
|
7434
7494
|
};
|
|
7495
|
+
preValidFunc: {
|
|
7496
|
+
type: PropType<Array<PreValid>>;
|
|
7497
|
+
default: {};
|
|
7498
|
+
};
|
|
7435
7499
|
multipleSelect: {
|
|
7436
7500
|
type: BooleanConstructor;
|
|
7437
7501
|
default: boolean;
|
|
@@ -7561,6 +7625,10 @@ type: StringConstructor;
|
|
|
7561
7625
|
extendBtns: {
|
|
7562
7626
|
type: PropType<UserFuncInfo[]>;
|
|
7563
7627
|
};
|
|
7628
|
+
preValidFunc: {
|
|
7629
|
+
type: PropType<Array<PreValid>>;
|
|
7630
|
+
default: {};
|
|
7631
|
+
};
|
|
7564
7632
|
multipleSelect: {
|
|
7565
7633
|
type: BooleanConstructor;
|
|
7566
7634
|
default: boolean;
|
|
@@ -7610,6 +7678,7 @@ required: false;
|
|
|
7610
7678
|
onSelectItem?: (...args: any[]) => any;
|
|
7611
7679
|
}>, {
|
|
7612
7680
|
height: string;
|
|
7681
|
+
preValidFunc: PreValid[];
|
|
7613
7682
|
dataFormat: Function;
|
|
7614
7683
|
dialogInput: boolean;
|
|
7615
7684
|
expand: boolean;
|
|
@@ -7887,9 +7956,9 @@ onRemoveData?: (...args: any[]) => any;
|
|
|
7887
7956
|
onChangeCollapse?: (...args: any[]) => any;
|
|
7888
7957
|
"onUpdate:treeDatas"?: (value: any) => any;
|
|
7889
7958
|
}>, {
|
|
7959
|
+
height: number;
|
|
7890
7960
|
checkStrictly: boolean;
|
|
7891
7961
|
checkOnClickNode: boolean;
|
|
7892
|
-
height: number;
|
|
7893
7962
|
preps: Record<string, any>;
|
|
7894
7963
|
showCheckBox: boolean;
|
|
7895
7964
|
expand: boolean;
|
|
@@ -9142,7 +9211,7 @@ setBatchEditFieldVisible: (visible: boolean) => void;
|
|
|
9142
9211
|
setPreviewVisible: (visible: boolean) => void;
|
|
9143
9212
|
setShortKeyDisabled: (disabled: boolean) => void;
|
|
9144
9213
|
getFieldDataIndex: () => number;
|
|
9145
|
-
}, "
|
|
9214
|
+
}, "refresh" | "formData" | "formInfo" | "isEdit" | "compList" | "containerList" | "formDataList" | "selfFormDataList" | "allFormDataList" | "currentCompCategory" | "currentItemId" | "parentCompType" | "currentItemType" | "currentFormPreps" | "currentSubItemId" | "isDragging" | "currentComp" | "draggingItem" | "historyRecord" | "componentVisible" | "batchEditFieldVisible" | "previewVisible" | "shortKeyDisabled">, Pick<{
|
|
9146
9215
|
formData: Ref<any, any>;
|
|
9147
9216
|
formInfo: Ref<any, any>;
|
|
9148
9217
|
compList: Ref<any[], any[]>;
|
|
@@ -9254,7 +9323,7 @@ setBatchEditFieldVisible: (visible: boolean) => void;
|
|
|
9254
9323
|
setPreviewVisible: (visible: boolean) => void;
|
|
9255
9324
|
setShortKeyDisabled: (disabled: boolean) => void;
|
|
9256
9325
|
getFieldDataIndex: () => number;
|
|
9257
|
-
}, "
|
|
9326
|
+
}, "clearAll" | "setFormData" | "undo" | "setCurrentSubTabName" | "selectItemById" | "setAllFormDataList" | "setSelfFormDataList" | "setFormDataList" | "setContainerList" | "addHistoryRecord" | "redo" | "selectItem" | "setRefresh" | "setSubItemId" | "setFormInfo" | "setCompList" | "loadCompNames" | "addComp" | "setIsDragging" | "setIsEdit" | "setCurrentComp" | "setCurrentItemType" | "setParentCompType" | "setCurrentItemId" | "setCurrentFormPreps" | "setDraggingItem" | "removePromise" | "setComponentVisible" | "setBatchEditFieldVisible" | "setPreviewVisible" | "setShortKeyDisabled" | "getFieldDataIndex">>;
|
|
9258
9327
|
|
|
9259
9328
|
export declare const useDesignPageStore: StoreDefinition<"designPage", Pick<{
|
|
9260
9329
|
nodeList: Ref< {
|
|
@@ -9427,7 +9496,7 @@ clearAll: () => void;
|
|
|
9427
9496
|
setIsEdit: (edit: boolean) => void;
|
|
9428
9497
|
maxZIndex: () => number;
|
|
9429
9498
|
init: () => void;
|
|
9430
|
-
}, "
|
|
9499
|
+
}, "clearAll" | "init" | "setIsEdit" | "setNodeList" | "removeNode" | "addNode" | "selectNode" | "maxZIndex">>;
|
|
9431
9500
|
|
|
9432
9501
|
export declare const useDynamicFormStore: StoreDefinition<"dynamicForm", Pick<{
|
|
9433
9502
|
dataForm: any;
|
|
@@ -9480,7 +9549,7 @@ batchRenameField: (batchName: string, sourceField: string, distField: string, ne
|
|
|
9480
9549
|
getFieldValue: (fieldName: string) => any;
|
|
9481
9550
|
getBatchFieldValue: (batchName: string, fieldName: string, rowIndex?: number) => any;
|
|
9482
9551
|
clearAll: () => void;
|
|
9483
|
-
}, "
|
|
9552
|
+
}, "clearAll" | "setFormData" | "dataForm" | "selectData" | "dataId" | "setSelectData" | "setDataId" | "addBatchData" | "delField" | "delBatchField" | "addOrUpdateField" | "batchAddOrUpdateField" | "renameField" | "batchRenameField" | "getFieldValue" | "getBatchFieldValue">>;
|
|
9484
9553
|
|
|
9485
9554
|
export declare const useGlobalConfigStore: StoreDefinition<"globalConfig", Pick<{
|
|
9486
9555
|
configFormInfo: Ref<any, any>;
|
|
@@ -9494,7 +9563,7 @@ clearAll: (isDark?: string) => void;
|
|
|
9494
9563
|
configFormInfo: Ref<any, any>;
|
|
9495
9564
|
setConfigFormInfo: (data: any) => void;
|
|
9496
9565
|
clearAll: (isDark?: string) => void;
|
|
9497
|
-
}, "
|
|
9566
|
+
}, "setConfigFormInfo" | "clearAll">>;
|
|
9498
9567
|
|
|
9499
9568
|
/**
|
|
9500
9569
|
* 用户自定义按钮
|
|
@@ -10345,7 +10414,7 @@ addFormItemList: (formItems: Array<any>) => void;
|
|
|
10345
10414
|
getFormItem: (fieldName: string) => any;
|
|
10346
10415
|
init: (fieldList: PageFieldInfo, data: any, formRef: Ref) => void;
|
|
10347
10416
|
clearAll: () => void;
|
|
10348
|
-
}, "
|
|
10417
|
+
}, "clearAll" | "setFormData" | "setFormInstance" | "setFormFields" | "addFormItem" | "addFormItemList" | "getFormItem" | "init">>;
|
|
10349
10418
|
|
|
10350
10419
|
export declare const useUserInfoStore: StoreDefinition<"userInfo", Pick<{
|
|
10351
10420
|
userInfo: Ref<any, any>;
|