star-horse-lowcode 3.1.12 → 3.1.13
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 +6 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/comp/StarHorseDialog.vue.d.ts +31 -9
- package/dist/components/comp/StarHorseFormList.vue.d.ts +9 -0
- package/dist/components/comp/StarHorseFormTable.vue.d.ts +9 -0
- package/dist/components/comp/StarHorseStaticTable.vue.d.ts +1 -1
- package/dist/components/comp/items/tableItem.vue.d.ts +22 -0
- package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +1 -1
- package/dist/components/formcomp/utils/FormulaEngine.d.ts +8 -85
- package/dist/components/system/PageConfig.vue.d.ts +1 -1
- package/dist/components/system/code-editor/types.d.ts +40 -0
- package/dist/components/system/code-editor/useEditorGroups.d.ts +50 -0
- package/dist/components/types/ItemPreps.d.ts +4 -0
- package/dist/index.es.js +6 -6
- package/dist/lang/en_US.d.ts +17 -0
- package/dist/lang/zh_CN.d.ts +17 -0
- package/dist/store/ButtonPermission.d.ts +2 -20
- package/dist/store/ConsumerView.d.ts +2 -16
- package/dist/store/CopyerOperation.d.ts +2 -22
- package/dist/store/DesignForm.d.ts +3 -1155
- package/dist/store/DesignPage.d.ts +2 -100
- package/dist/store/DynamicForm.d.ts +2 -36
- package/dist/store/FormDataCache.d.ts +2 -3258
- package/dist/store/GlobalConfig.d.ts +2 -10
- package/dist/store/SelfOperation.d.ts +2 -472
- package/dist/store/StoreManager.d.ts +24 -24
- package/dist/store/UserInfo.d.ts +2 -30
- package/dist/types/components/comp/StarHorseDialog.vue.d.ts +31 -9
- package/dist/types/components/comp/StarHorseFormList.vue.d.ts +9 -0
- package/dist/types/components/comp/StarHorseFormTable.vue.d.ts +9 -0
- package/dist/types/components/comp/StarHorseStaticTable.vue.d.ts +1 -1
- package/dist/types/components/comp/items/tabPanelItem.vue.d.ts +10 -1
- package/dist/types/components/formcomp/utils/EditDataDialog.vue.d.ts +1 -1
- package/dist/types/components/formcomp/utils/FormulaEngine.d.ts +8 -85
- package/dist/types/components/system/PageConfig.vue.d.ts +1 -1
- package/dist/types/components/system/StarHorseCodeEditor.vue.d.ts +47 -1
- package/dist/types/components/system/code-editor/EditorPane.vue.d.ts +21 -0
- package/dist/types/components/system/code-editor/SplitView.vue.d.ts +35 -0
- package/dist/types/components/system/code-editor/types.d.ts +40 -0
- package/dist/types/components/system/code-editor/useEditorGroups.d.ts +50 -0
- package/dist/types/components/types/ItemPreps.d.ts +4 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/lang/en_US.d.ts +17 -0
- package/dist/types/lang/zh_CN.d.ts +17 -0
- package/dist/types/store/ButtonPermission.d.ts +2 -20
- package/dist/types/store/ConsumerView.d.ts +2 -16
- package/dist/types/store/CopyerOperation.d.ts +2 -22
- package/dist/types/store/DesignForm.d.ts +3 -1155
- package/dist/types/store/DesignPage.d.ts +2 -100
- package/dist/types/store/DynamicForm.d.ts +2 -36
- package/dist/types/store/FormDataCache.d.ts +2 -3258
- package/dist/types/store/GlobalConfig.d.ts +2 -10
- package/dist/types/store/SelfOperation.d.ts +2 -472
- package/dist/types/store/StoreManager.d.ts +24 -24
- package/dist/types/store/UserInfo.d.ts +2 -30
- package/package.json +16 -15
- package/dist/api/pcas-code.json.d.ts +0 -185519
|
@@ -756,7 +756,7 @@ export declare const getSelfOperationStore: () => import('pinia').Store<"selfOpe
|
|
|
756
756
|
getFormItem: (fieldName: string) => any;
|
|
757
757
|
init: (fieldList: import('..').PageFieldInfo, data: any, formRef: import('vue').Ref) => void;
|
|
758
758
|
clearAll: () => void;
|
|
759
|
-
}, "setFormInstance" | "setFormFields" | "setFormData" | "addFormItem" | "addFormItemList" | "getFormItem" | "init"
|
|
759
|
+
}, "clearAll" | "setFormInstance" | "setFormFields" | "setFormData" | "addFormItem" | "addFormItemList" | "getFormItem" | "init">>;
|
|
760
760
|
/**
|
|
761
761
|
* 获取全局配置 Store
|
|
762
762
|
*/
|
|
@@ -772,7 +772,7 @@ export declare const getGlobalConfigStore: () => import('pinia').Store<"globalCo
|
|
|
772
772
|
configFormInfo: import('vue').Ref<any, any>;
|
|
773
773
|
setConfigFormInfo: (data: any) => void;
|
|
774
774
|
clearAll: (isDark?: string) => void;
|
|
775
|
-
}, "
|
|
775
|
+
}, "setConfigFormInfo" | "clearAll">>;
|
|
776
776
|
/**
|
|
777
777
|
* 获取动态表单 Store
|
|
778
778
|
*/
|
|
@@ -827,7 +827,7 @@ export declare const getDynamicFormStore: () => import('pinia').Store<"dynamicFo
|
|
|
827
827
|
getFieldValue: (fieldName: string) => any;
|
|
828
828
|
getBatchFieldValue: (batchName: string, fieldName: string, rowIndex?: number) => any;
|
|
829
829
|
clearAll: () => void;
|
|
830
|
-
}, "
|
|
830
|
+
}, "clearAll" | "setFormData" | "dataForm" | "selectData" | "dataId" | "setSelectData" | "setDataId" | "addBatchData" | "delField" | "delBatchField" | "addOrUpdateField" | "batchAddOrUpdateField" | "renameField" | "batchRenameField" | "getFieldValue" | "getBatchFieldValue">>;
|
|
831
831
|
/**
|
|
832
832
|
* 获取设计页面 Store
|
|
833
833
|
*/
|
|
@@ -978,7 +978,7 @@ export declare const getDesignPageStore: () => import('pinia').Store<"designPage
|
|
|
978
978
|
setIsEdit: (edit: boolean) => void;
|
|
979
979
|
maxZIndex: () => any;
|
|
980
980
|
init: () => void;
|
|
981
|
-
}, "
|
|
981
|
+
}, "clearAll" | "init" | "setNodeList" | "removeNode" | "addNode" | "selectNode" | "setIsEdit" | "maxZIndex">>;
|
|
982
982
|
/**
|
|
983
983
|
* 获取拷贝操作 Store
|
|
984
984
|
*/
|
|
@@ -1012,7 +1012,7 @@ export declare const getCopyerOperationStore: () => import('pinia').Store<"copye
|
|
|
1012
1012
|
setParentContainer: (container: any) => void;
|
|
1013
1013
|
setCopyerData: (data: any) => void;
|
|
1014
1014
|
clearAll: () => void;
|
|
1015
|
-
}, "
|
|
1015
|
+
}, "operation" | "clearAll" | "keyboardOperation" | "setAction" | "setParentContainer" | "setCopyerData">>;
|
|
1016
1016
|
/**
|
|
1017
1017
|
* 获取消费者视图 Store
|
|
1018
1018
|
*/
|
|
@@ -1594,7 +1594,7 @@ export declare const getDesignFormStore: () => import('pinia').Store<"designForm
|
|
|
1594
1594
|
currentItemId: import('vue').Ref<string, string>;
|
|
1595
1595
|
parentCompType: import('vue').Ref<string, string>;
|
|
1596
1596
|
currentItemType: import('vue').Ref<string, string>;
|
|
1597
|
-
currentFormPreps: import('vue').
|
|
1597
|
+
currentFormPreps: import('vue').ComputedRef<any>;
|
|
1598
1598
|
currentSubItemId: import('vue').Ref<string, string>;
|
|
1599
1599
|
currentSubItem: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
1600
1600
|
isEdit: import('vue').Ref<boolean, boolean>;
|
|
@@ -1648,7 +1648,7 @@ export declare const getDesignFormStore: () => import('pinia').Store<"designForm
|
|
|
1648
1648
|
getCurrentCompEditUserInfo: (compId: string) => import('..').UserInfo;
|
|
1649
1649
|
addCurrentCompEditUserInfo: (compId: string, userinfo: import('..').UserInfo) => void;
|
|
1650
1650
|
removeCurrentCompEditUserInfo: (compId: string) => void;
|
|
1651
|
-
}, "formData" | "
|
|
1651
|
+
}, "formData" | "formInfo" | "isEdit" | "compList" | "containerList" | "formDataList" | "selfFormDataList" | "allFormDataList" | "currentCompCategory" | "currentItemId" | "parentCompType" | "currentItemType" | "currentSubItemId" | "currentSubItem" | "isDragging" | "currentComp" | "draggingItem" | "refresh" | "historyRecord" | "componentVisible" | "batchEditFieldVisible" | "previewVisible" | "shortKeyDisabled">, Pick<{
|
|
1652
1652
|
formData: import('vue').Ref<any, any>;
|
|
1653
1653
|
formInfo: import('vue').Ref<any, any>;
|
|
1654
1654
|
compList: import('vue').Ref<any[], any[]>;
|
|
@@ -2170,7 +2170,7 @@ export declare const getDesignFormStore: () => import('pinia').Store<"designForm
|
|
|
2170
2170
|
currentItemId: import('vue').Ref<string, string>;
|
|
2171
2171
|
parentCompType: import('vue').Ref<string, string>;
|
|
2172
2172
|
currentItemType: import('vue').Ref<string, string>;
|
|
2173
|
-
currentFormPreps: import('vue').
|
|
2173
|
+
currentFormPreps: import('vue').ComputedRef<any>;
|
|
2174
2174
|
currentSubItemId: import('vue').Ref<string, string>;
|
|
2175
2175
|
currentSubItem: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
2176
2176
|
isEdit: import('vue').Ref<boolean, boolean>;
|
|
@@ -2224,7 +2224,7 @@ export declare const getDesignFormStore: () => import('pinia').Store<"designForm
|
|
|
2224
2224
|
getCurrentCompEditUserInfo: (compId: string) => import('..').UserInfo;
|
|
2225
2225
|
addCurrentCompEditUserInfo: (compId: string, userinfo: import('..').UserInfo) => void;
|
|
2226
2226
|
removeCurrentCompEditUserInfo: (compId: string) => void;
|
|
2227
|
-
},
|
|
2227
|
+
}, "currentFormPreps">, Pick<{
|
|
2228
2228
|
formData: import('vue').Ref<any, any>;
|
|
2229
2229
|
formInfo: import('vue').Ref<any, any>;
|
|
2230
2230
|
compList: import('vue').Ref<any[], any[]>;
|
|
@@ -2746,7 +2746,7 @@ export declare const getDesignFormStore: () => import('pinia').Store<"designForm
|
|
|
2746
2746
|
currentItemId: import('vue').Ref<string, string>;
|
|
2747
2747
|
parentCompType: import('vue').Ref<string, string>;
|
|
2748
2748
|
currentItemType: import('vue').Ref<string, string>;
|
|
2749
|
-
currentFormPreps: import('vue').
|
|
2749
|
+
currentFormPreps: import('vue').ComputedRef<any>;
|
|
2750
2750
|
currentSubItemId: import('vue').Ref<string, string>;
|
|
2751
2751
|
currentSubItem: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
2752
2752
|
isEdit: import('vue').Ref<boolean, boolean>;
|
|
@@ -2800,7 +2800,7 @@ export declare const getDesignFormStore: () => import('pinia').Store<"designForm
|
|
|
2800
2800
|
getCurrentCompEditUserInfo: (compId: string) => import('..').UserInfo;
|
|
2801
2801
|
addCurrentCompEditUserInfo: (compId: string, userinfo: import('..').UserInfo) => void;
|
|
2802
2802
|
removeCurrentCompEditUserInfo: (compId: string) => void;
|
|
2803
|
-
}, "
|
|
2803
|
+
}, "clearAll" | "setFormData" | "setIsEdit" | "setParentContainer" | "setCurrentSubTabName" | "selectItemById" | "setAllFormDataList" | "setSelfFormDataList" | "setFormDataList" | "setContainerList" | "getParentContainer" | "getParentCompType" | "addSelfFormDataList" | "addContainerList" | "addFormDataList" | "addHistoryRecord" | "redo" | "undo" | "selectItem" | "setRefresh" | "setSubItem" | "setFormInfo" | "setCompList" | "loadCompNames" | "addComp" | "setIsDragging" | "setCurrentComp" | "setCurrentItemType" | "setParentCompType" | "setCurrentItemId" | "setCurrentFormPreps" | "setDraggingItem" | "removePromise" | "setComponentVisible" | "setBatchEditFieldVisible" | "setPreviewVisible" | "setShortKeyDisabled" | "getFieldDataIndex" | "getCurrentCompEditUserInfo" | "addCurrentCompEditUserInfo" | "removeCurrentCompEditUserInfo">>;
|
|
2804
2804
|
/**
|
|
2805
2805
|
* 动态表单缓存
|
|
2806
2806
|
*/
|
|
@@ -7688,7 +7688,7 @@ export declare const getFormDataCacheStore: () => import('pinia').Store<"formDat
|
|
|
7688
7688
|
deleteFormData: (param: string) => void;
|
|
7689
7689
|
clearAll: () => void;
|
|
7690
7690
|
getCacheSize: () => number;
|
|
7691
|
-
}, "
|
|
7691
|
+
}, "clearAll" | "setFormData" | "getFormData" | "hasFormData" | "deleteFormData" | "getCacheSize">>;
|
|
7692
7692
|
declare const _default: {
|
|
7693
7693
|
getUserStore: () => import('pinia').Store<"userInfo", Pick<{
|
|
7694
7694
|
userInfo: import('vue').Ref<any, any>;
|
|
@@ -8438,7 +8438,7 @@ declare const _default: {
|
|
|
8438
8438
|
getFormItem: (fieldName: string) => any;
|
|
8439
8439
|
init: (fieldList: import('..').PageFieldInfo, data: any, formRef: import('vue').Ref) => void;
|
|
8440
8440
|
clearAll: () => void;
|
|
8441
|
-
}, "setFormInstance" | "setFormFields" | "setFormData" | "addFormItem" | "addFormItemList" | "getFormItem" | "init"
|
|
8441
|
+
}, "clearAll" | "setFormInstance" | "setFormFields" | "setFormData" | "addFormItem" | "addFormItemList" | "getFormItem" | "init">>;
|
|
8442
8442
|
getGlobalConfigStore: () => import('pinia').Store<"globalConfig", Pick<{
|
|
8443
8443
|
configFormInfo: import('vue').Ref<any, any>;
|
|
8444
8444
|
setConfigFormInfo: (data: any) => void;
|
|
@@ -8451,7 +8451,7 @@ declare const _default: {
|
|
|
8451
8451
|
configFormInfo: import('vue').Ref<any, any>;
|
|
8452
8452
|
setConfigFormInfo: (data: any) => void;
|
|
8453
8453
|
clearAll: (isDark?: string) => void;
|
|
8454
|
-
}, "
|
|
8454
|
+
}, "setConfigFormInfo" | "clearAll">>;
|
|
8455
8455
|
getDynamicFormStore: () => import('pinia').Store<"dynamicForm", Pick<{
|
|
8456
8456
|
dataForm: any;
|
|
8457
8457
|
selectData: any;
|
|
@@ -8503,7 +8503,7 @@ declare const _default: {
|
|
|
8503
8503
|
getFieldValue: (fieldName: string) => any;
|
|
8504
8504
|
getBatchFieldValue: (batchName: string, fieldName: string, rowIndex?: number) => any;
|
|
8505
8505
|
clearAll: () => void;
|
|
8506
|
-
}, "
|
|
8506
|
+
}, "clearAll" | "setFormData" | "dataForm" | "selectData" | "dataId" | "setSelectData" | "setDataId" | "addBatchData" | "delField" | "delBatchField" | "addOrUpdateField" | "batchAddOrUpdateField" | "renameField" | "batchRenameField" | "getFieldValue" | "getBatchFieldValue">>;
|
|
8507
8507
|
getDesignPageStore: () => import('pinia').Store<"designPage", Pick<{
|
|
8508
8508
|
nodeList: import('vue').Ref<{
|
|
8509
8509
|
id: string;
|
|
@@ -8651,7 +8651,7 @@ declare const _default: {
|
|
|
8651
8651
|
setIsEdit: (edit: boolean) => void;
|
|
8652
8652
|
maxZIndex: () => any;
|
|
8653
8653
|
init: () => void;
|
|
8654
|
-
}, "
|
|
8654
|
+
}, "clearAll" | "init" | "setNodeList" | "removeNode" | "addNode" | "selectNode" | "setIsEdit" | "maxZIndex">>;
|
|
8655
8655
|
getCopyerOperationStore: () => import('pinia').Store<"copyerOperation", Pick<{
|
|
8656
8656
|
action: import('vue').Ref<string, string>;
|
|
8657
8657
|
parentContainer: import('vue').Ref<any, any>;
|
|
@@ -8682,7 +8682,7 @@ declare const _default: {
|
|
|
8682
8682
|
setParentContainer: (container: any) => void;
|
|
8683
8683
|
setCopyerData: (data: any) => void;
|
|
8684
8684
|
clearAll: () => void;
|
|
8685
|
-
}, "
|
|
8685
|
+
}, "operation" | "clearAll" | "keyboardOperation" | "setAction" | "setParentContainer" | "setCopyerData">>;
|
|
8686
8686
|
getConsumerViewStore: () => import('pinia').Store<"consumerView", Pick<{
|
|
8687
8687
|
tableList: import('vue').Ref<any, any>;
|
|
8688
8688
|
dbConfigId: import('vue').Ref<string, string>;
|
|
@@ -9255,7 +9255,7 @@ declare const _default: {
|
|
|
9255
9255
|
currentItemId: import('vue').Ref<string, string>;
|
|
9256
9256
|
parentCompType: import('vue').Ref<string, string>;
|
|
9257
9257
|
currentItemType: import('vue').Ref<string, string>;
|
|
9258
|
-
currentFormPreps: import('vue').
|
|
9258
|
+
currentFormPreps: import('vue').ComputedRef<any>;
|
|
9259
9259
|
currentSubItemId: import('vue').Ref<string, string>;
|
|
9260
9260
|
currentSubItem: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
9261
9261
|
isEdit: import('vue').Ref<boolean, boolean>;
|
|
@@ -9309,7 +9309,7 @@ declare const _default: {
|
|
|
9309
9309
|
getCurrentCompEditUserInfo: (compId: string) => import('..').UserInfo;
|
|
9310
9310
|
addCurrentCompEditUserInfo: (compId: string, userinfo: import('..').UserInfo) => void;
|
|
9311
9311
|
removeCurrentCompEditUserInfo: (compId: string) => void;
|
|
9312
|
-
}, "formData" | "
|
|
9312
|
+
}, "formData" | "formInfo" | "isEdit" | "compList" | "containerList" | "formDataList" | "selfFormDataList" | "allFormDataList" | "currentCompCategory" | "currentItemId" | "parentCompType" | "currentItemType" | "currentSubItemId" | "currentSubItem" | "isDragging" | "currentComp" | "draggingItem" | "refresh" | "historyRecord" | "componentVisible" | "batchEditFieldVisible" | "previewVisible" | "shortKeyDisabled">, Pick<{
|
|
9313
9313
|
formData: import('vue').Ref<any, any>;
|
|
9314
9314
|
formInfo: import('vue').Ref<any, any>;
|
|
9315
9315
|
compList: import('vue').Ref<any[], any[]>;
|
|
@@ -9831,7 +9831,7 @@ declare const _default: {
|
|
|
9831
9831
|
currentItemId: import('vue').Ref<string, string>;
|
|
9832
9832
|
parentCompType: import('vue').Ref<string, string>;
|
|
9833
9833
|
currentItemType: import('vue').Ref<string, string>;
|
|
9834
|
-
currentFormPreps: import('vue').
|
|
9834
|
+
currentFormPreps: import('vue').ComputedRef<any>;
|
|
9835
9835
|
currentSubItemId: import('vue').Ref<string, string>;
|
|
9836
9836
|
currentSubItem: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
9837
9837
|
isEdit: import('vue').Ref<boolean, boolean>;
|
|
@@ -9885,7 +9885,7 @@ declare const _default: {
|
|
|
9885
9885
|
getCurrentCompEditUserInfo: (compId: string) => import('..').UserInfo;
|
|
9886
9886
|
addCurrentCompEditUserInfo: (compId: string, userinfo: import('..').UserInfo) => void;
|
|
9887
9887
|
removeCurrentCompEditUserInfo: (compId: string) => void;
|
|
9888
|
-
},
|
|
9888
|
+
}, "currentFormPreps">, Pick<{
|
|
9889
9889
|
formData: import('vue').Ref<any, any>;
|
|
9890
9890
|
formInfo: import('vue').Ref<any, any>;
|
|
9891
9891
|
compList: import('vue').Ref<any[], any[]>;
|
|
@@ -10407,7 +10407,7 @@ declare const _default: {
|
|
|
10407
10407
|
currentItemId: import('vue').Ref<string, string>;
|
|
10408
10408
|
parentCompType: import('vue').Ref<string, string>;
|
|
10409
10409
|
currentItemType: import('vue').Ref<string, string>;
|
|
10410
|
-
currentFormPreps: import('vue').
|
|
10410
|
+
currentFormPreps: import('vue').ComputedRef<any>;
|
|
10411
10411
|
currentSubItemId: import('vue').Ref<string, string>;
|
|
10412
10412
|
currentSubItem: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
10413
10413
|
isEdit: import('vue').Ref<boolean, boolean>;
|
|
@@ -10461,7 +10461,7 @@ declare const _default: {
|
|
|
10461
10461
|
getCurrentCompEditUserInfo: (compId: string) => import('..').UserInfo;
|
|
10462
10462
|
addCurrentCompEditUserInfo: (compId: string, userinfo: import('..').UserInfo) => void;
|
|
10463
10463
|
removeCurrentCompEditUserInfo: (compId: string) => void;
|
|
10464
|
-
}, "
|
|
10464
|
+
}, "clearAll" | "setFormData" | "setIsEdit" | "setParentContainer" | "setCurrentSubTabName" | "selectItemById" | "setAllFormDataList" | "setSelfFormDataList" | "setFormDataList" | "setContainerList" | "getParentContainer" | "getParentCompType" | "addSelfFormDataList" | "addContainerList" | "addFormDataList" | "addHistoryRecord" | "redo" | "undo" | "selectItem" | "setRefresh" | "setSubItem" | "setFormInfo" | "setCompList" | "loadCompNames" | "addComp" | "setIsDragging" | "setCurrentComp" | "setCurrentItemType" | "setParentCompType" | "setCurrentItemId" | "setCurrentFormPreps" | "setDraggingItem" | "removePromise" | "setComponentVisible" | "setBatchEditFieldVisible" | "setPreviewVisible" | "setShortKeyDisabled" | "getFieldDataIndex" | "getCurrentCompEditUserInfo" | "addCurrentCompEditUserInfo" | "removeCurrentCompEditUserInfo">>;
|
|
10465
10465
|
getFormDataCacheStore: () => import('pinia').Store<"formDataCache", Pick<{
|
|
10466
10466
|
cache: import('vue').Ref<Map<string, {
|
|
10467
10467
|
primaryKey: string;
|
|
@@ -15346,6 +15346,6 @@ declare const _default: {
|
|
|
15346
15346
|
deleteFormData: (param: string) => void;
|
|
15347
15347
|
clearAll: () => void;
|
|
15348
15348
|
getCacheSize: () => number;
|
|
15349
|
-
}, "
|
|
15349
|
+
}, "clearAll" | "setFormData" | "getFormData" | "hasFormData" | "deleteFormData" | "getCacheSize">>;
|
|
15350
15350
|
};
|
|
15351
15351
|
export default _default;
|
package/dist/store/UserInfo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenusInfo } from '../components/types/MenusInfo';
|
|
2
|
-
export declare const useUserInfoStore: import('pinia').
|
|
2
|
+
export declare const useUserInfoStore: import('pinia').SetupStoreDefinition<"userInfo", {
|
|
3
3
|
userInfo: import('vue').Ref<any, any>;
|
|
4
4
|
pageButtonPermission: import('vue').Ref<any, any>;
|
|
5
5
|
permissionMenus: import('vue').Ref<any, any>;
|
|
@@ -13,32 +13,4 @@ export declare const useUserInfoStore: import('pinia').StoreDefinition<"userInfo
|
|
|
13
13
|
addPageButtonPermission: (data: any) => void;
|
|
14
14
|
pushPageButtonPermission: (menuId: string, data: any) => void;
|
|
15
15
|
addDynamicMenus: (data: MenusInfo) => void;
|
|
16
|
-
}
|
|
17
|
-
userInfo: import('vue').Ref<any, any>;
|
|
18
|
-
pageButtonPermission: import('vue').Ref<any, any>;
|
|
19
|
-
permissionMenus: import('vue').Ref<any, any>;
|
|
20
|
-
dynamicMenus: import('vue').Ref<any, any>;
|
|
21
|
-
showLoginDialog: () => void;
|
|
22
|
-
loginDialogVisible: import('vue').Ref<boolean, boolean>;
|
|
23
|
-
closeLoginDialog: () => void;
|
|
24
|
-
login: (data: any) => void;
|
|
25
|
-
logout: () => void;
|
|
26
|
-
addPermissionMenus: (data: any) => void;
|
|
27
|
-
addPageButtonPermission: (data: any) => void;
|
|
28
|
-
pushPageButtonPermission: (menuId: string, data: any) => void;
|
|
29
|
-
addDynamicMenus: (data: MenusInfo) => void;
|
|
30
|
-
}, never>, Pick<{
|
|
31
|
-
userInfo: import('vue').Ref<any, any>;
|
|
32
|
-
pageButtonPermission: import('vue').Ref<any, any>;
|
|
33
|
-
permissionMenus: import('vue').Ref<any, any>;
|
|
34
|
-
dynamicMenus: import('vue').Ref<any, any>;
|
|
35
|
-
showLoginDialog: () => void;
|
|
36
|
-
loginDialogVisible: import('vue').Ref<boolean, boolean>;
|
|
37
|
-
closeLoginDialog: () => void;
|
|
38
|
-
login: (data: any) => void;
|
|
39
|
-
logout: () => void;
|
|
40
|
-
addPermissionMenus: (data: any) => void;
|
|
41
|
-
addPageButtonPermission: (data: any) => void;
|
|
42
|
-
pushPageButtonPermission: (menuId: string, data: any) => void;
|
|
43
|
-
addDynamicMenus: (data: MenusInfo) => void;
|
|
44
|
-
}, "showLoginDialog" | "closeLoginDialog" | "login" | "logout" | "addPermissionMenus" | "addPageButtonPermission" | "pushPageButtonPermission" | "addDynamicMenus">>;
|
|
16
|
+
}>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { PropType } from "vue";
|
|
2
|
-
import { DialogProps } from "../../components/types/DialogProps";
|
|
3
1
|
import { UserFuncInfo } from "../../components/types/PageFieldInfo";
|
|
4
2
|
declare var __VLS_64: {}, __VLS_66: {}, __VLS_69: {}, __VLS_149: {};
|
|
5
3
|
type __VLS_Slots = {} & {
|
|
@@ -16,9 +14,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
16
14
|
type: BooleanConstructor;
|
|
17
15
|
default: boolean;
|
|
18
16
|
};
|
|
19
|
-
|
|
20
|
-
type:
|
|
21
|
-
default:
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
22
20
|
};
|
|
23
21
|
isShowReset: {
|
|
24
22
|
type: BooleanConstructor;
|
|
@@ -104,6 +102,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
104
102
|
type: StringConstructor;
|
|
105
103
|
default: string;
|
|
106
104
|
};
|
|
105
|
+
/** 手动指定 z-index;0 表示打开时自动计算(取当前页面最高弹层 +1) */
|
|
106
|
+
zIndex: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
appendTo: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
107
114
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
108
115
|
merge: (...args: any[]) => void;
|
|
109
116
|
resetForm: (...args: any[]) => void;
|
|
@@ -111,14 +118,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
111
118
|
open: (...args: any[]) => void;
|
|
112
119
|
closeAction: (...args: any[]) => void;
|
|
113
120
|
minimize: (...args: any[]) => void;
|
|
121
|
+
"update:dialogVisible": (...args: any[]) => void;
|
|
122
|
+
"update:modelValue": (...args: any[]) => void;
|
|
114
123
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
115
124
|
dialogVisible: {
|
|
116
125
|
type: BooleanConstructor;
|
|
117
126
|
default: boolean;
|
|
118
127
|
};
|
|
119
|
-
|
|
120
|
-
type:
|
|
121
|
-
default:
|
|
128
|
+
modelValue: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
122
131
|
};
|
|
123
132
|
isShowReset: {
|
|
124
133
|
type: BooleanConstructor;
|
|
@@ -204,6 +213,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
204
213
|
type: StringConstructor;
|
|
205
214
|
default: string;
|
|
206
215
|
};
|
|
216
|
+
/** 手动指定 z-index;0 表示打开时自动计算(取当前页面最高弹层 +1) */
|
|
217
|
+
zIndex: {
|
|
218
|
+
type: NumberConstructor;
|
|
219
|
+
default: number;
|
|
220
|
+
};
|
|
221
|
+
appendTo: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
207
225
|
}>> & Readonly<{
|
|
208
226
|
onMerge?: (...args: any[]) => any;
|
|
209
227
|
onResetForm?: (...args: any[]) => any;
|
|
@@ -211,12 +229,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
211
229
|
onOpen?: (...args: any[]) => any;
|
|
212
230
|
onCloseAction?: (...args: any[]) => any;
|
|
213
231
|
onMinimize?: (...args: any[]) => any;
|
|
232
|
+
"onUpdate:dialogVisible"?: (...args: any[]) => any;
|
|
233
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
214
234
|
}>, {
|
|
215
235
|
source: number;
|
|
216
236
|
title: string;
|
|
237
|
+
zIndex: number;
|
|
217
238
|
selfFunc: boolean;
|
|
218
|
-
dialogProps: DialogProps;
|
|
219
239
|
dialogVisible: boolean;
|
|
240
|
+
modelValue: boolean;
|
|
220
241
|
isShowReset: boolean;
|
|
221
242
|
isShowSave: boolean;
|
|
222
243
|
isShowBtnContinue: boolean;
|
|
@@ -231,6 +252,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
231
252
|
userBtn: UserFuncInfo[];
|
|
232
253
|
btnTextContinue: string;
|
|
233
254
|
compSize: string;
|
|
255
|
+
appendTo: string;
|
|
234
256
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
235
257
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
236
258
|
declare const _default: typeof __VLS_export;
|
|
@@ -62,6 +62,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
62
62
|
type: BooleanConstructor;
|
|
63
63
|
default: boolean;
|
|
64
64
|
};
|
|
65
|
+
enableSubNode: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
65
69
|
commonFormat: {
|
|
66
70
|
type: FunctionConstructor;
|
|
67
71
|
default: () => void;
|
|
@@ -132,6 +136,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
132
136
|
type: BooleanConstructor;
|
|
133
137
|
default: boolean;
|
|
134
138
|
};
|
|
139
|
+
enableSubNode: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
135
143
|
commonFormat: {
|
|
136
144
|
type: FunctionConstructor;
|
|
137
145
|
default: () => void;
|
|
@@ -150,6 +158,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
150
158
|
initRows: number;
|
|
151
159
|
defaultValues: Record<string, any>;
|
|
152
160
|
staticColumn: string;
|
|
161
|
+
enableSubNode: boolean;
|
|
153
162
|
commonFormat: Function;
|
|
154
163
|
showCheckBox: boolean;
|
|
155
164
|
selectAll: boolean;
|
|
@@ -19,6 +19,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
19
19
|
type: NumberConstructor;
|
|
20
20
|
default: number;
|
|
21
21
|
};
|
|
22
|
+
enableSubNode: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
22
26
|
commonFormat: {
|
|
23
27
|
type: FunctionConstructor;
|
|
24
28
|
default: () => void;
|
|
@@ -48,6 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
48
52
|
type: NumberConstructor;
|
|
49
53
|
default: number;
|
|
50
54
|
};
|
|
55
|
+
enableSubNode: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
51
59
|
commonFormat: {
|
|
52
60
|
type: FunctionConstructor;
|
|
53
61
|
default: () => void;
|
|
@@ -61,6 +69,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
61
69
|
source: number;
|
|
62
70
|
size: string;
|
|
63
71
|
initRows: number;
|
|
72
|
+
enableSubNode: boolean;
|
|
64
73
|
commonFormat: Function;
|
|
65
74
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
75
|
declare const _default: typeof __VLS_export;
|
|
@@ -92,8 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
92
92
|
dataFormat: Function;
|
|
93
93
|
height: string;
|
|
94
94
|
compSize: string;
|
|
95
|
-
dialogInput: boolean;
|
|
96
95
|
expand: boolean;
|
|
96
|
+
dialogInput: boolean;
|
|
97
97
|
showBatchField: boolean;
|
|
98
98
|
allowSelectParent: boolean;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -36,6 +36,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
36
36
|
type: StringConstructor;
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
|
+
enableSubNode: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
39
43
|
commonFormat: {
|
|
40
44
|
type: FunctionConstructor;
|
|
41
45
|
default: () => void;
|
|
@@ -80,6 +84,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
80
84
|
type: StringConstructor;
|
|
81
85
|
default: string;
|
|
82
86
|
};
|
|
87
|
+
enableSubNode: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
83
91
|
commonFormat: {
|
|
84
92
|
type: FunctionConstructor;
|
|
85
93
|
default: () => void;
|
|
@@ -93,8 +101,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
93
101
|
source: number;
|
|
94
102
|
dataIndex: number;
|
|
95
103
|
compSize: string;
|
|
96
|
-
|
|
104
|
+
enableSubNode: boolean;
|
|
97
105
|
commonFormat: Function;
|
|
106
|
+
propPrefix: string;
|
|
98
107
|
itemKey: string | number;
|
|
99
108
|
parentType: string;
|
|
100
109
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
47
|
}>, {
|
|
48
48
|
title: string;
|
|
49
49
|
disabled: boolean;
|
|
50
|
-
boxWidth: string;
|
|
51
50
|
modelValue: boolean;
|
|
51
|
+
boxWidth: string;
|
|
52
52
|
showFormItem: boolean;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
54
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,129 +1,52 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 公式计算引擎
|
|
2
|
+
* 公式计算引擎 (Hardened Version)
|
|
3
3
|
*
|
|
4
4
|
* 统一字段引用语法:${fieldName}
|
|
5
|
-
* 支持 8 种公式类型:
|
|
6
|
-
* - calc: 数学运算 expression = '${price} * ${quantity}'
|
|
7
|
-
* - concat: 字符串拼接 expression = '${lastName}${firstName}'
|
|
8
|
-
* - condition: 多分支条件判断 branches = [{ when, then }]
|
|
9
|
-
* - lookup: 联动回填 lookupMappings = [{ key, values }]
|
|
10
|
-
* - aggregate: 聚合运算 expression = 'sum' / 'avg' / 'count' / 'min' / 'max'
|
|
11
|
-
* - dateCalc: 日期计算 expression = '${start} ~ ${end}', dateUnit = 'day'
|
|
12
|
-
* - format: 格式化 expression = 'thousands' / 'padStart' / 'toFixed' / 'regex'
|
|
13
|
-
* - ternary: 三元表达式 expression = '${score} >= 60 ? ${score} : 0'
|
|
5
|
+
* 支持 8 种公式类型:calc, concat, condition, lookup, aggregate, dateCalc, format, ternary
|
|
14
6
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* type: 'calc',
|
|
22
|
-
* sourceFields: ['price', 'quantity'],
|
|
23
|
-
* expression: '${price} * ${quantity}',
|
|
24
|
-
* precision: 2,
|
|
25
|
-
* suffix: '元',
|
|
26
|
-
* }
|
|
27
|
-
* }
|
|
28
|
-
* }
|
|
7
|
+
* 核心安全与兼容性保障:
|
|
8
|
+
* 1. 表达式求值与条件判断分离,杜绝代码注入与类型丢失
|
|
9
|
+
* 2. 字符串拼接独立实现,避免空值被当作字面量文本
|
|
10
|
+
* 3. 跨浏览器健壮的日期解析,兼容 Safari 及非标准格式
|
|
11
|
+
* 4. 三元表达式交由原生引擎解析,完美支持嵌套
|
|
12
|
+
* 5. 聚合与正则格式化增加完整的边界防护
|
|
29
13
|
*/
|
|
30
|
-
/** 公式类型 */
|
|
31
14
|
export type FormulaType = "calc" | "concat" | "condition" | "lookup" | "aggregate" | "dateCalc" | "format" | "ternary";
|
|
32
|
-
/** 条件分支配置 */
|
|
33
15
|
export interface ConditionBranch {
|
|
34
|
-
/** 匹配表达式,如 '${score} >= 90' */
|
|
35
16
|
when: string;
|
|
36
|
-
/** 匹配时返回的值,支持常量或 ${fieldName} 引用 */
|
|
37
17
|
then: any;
|
|
38
18
|
}
|
|
39
|
-
/** 联动回填映射配置 */
|
|
40
19
|
export interface LookupMapping {
|
|
41
|
-
/** 匹配的源字段值 */
|
|
42
20
|
key: string;
|
|
43
|
-
/** 回填目标字段名 -> 回填值的映射 */
|
|
44
21
|
values: Record<string, any>;
|
|
45
22
|
}
|
|
46
|
-
/** 公式配置 */
|
|
47
23
|
export interface FormulaConfig {
|
|
48
|
-
/** 是否启用 */
|
|
49
24
|
enable: boolean;
|
|
50
|
-
/** 公式类型 */
|
|
51
25
|
type: FormulaType;
|
|
52
|
-
/** 依赖字段列表 */
|
|
53
26
|
sourceFields: string[];
|
|
54
|
-
/** 公式表达式,统一使用 ${fieldName} 引用字段 */
|
|
55
27
|
expression?: string;
|
|
56
|
-
/** 条件分支(type=condition 时使用) */
|
|
57
28
|
branches?: ConditionBranch[];
|
|
58
|
-
/** 联动回填映射(type=lookup 时使用) */
|
|
59
29
|
lookupMappings?: LookupMapping[];
|
|
60
|
-
/** 精度,type=calc/format(toFixed) 时使用 */
|
|
61
30
|
precision?: number;
|
|
62
|
-
/** 前缀,type=calc 时使用,如 '¥' */
|
|
63
31
|
prefix?: string;
|
|
64
|
-
/** 后缀,type=calc 时使用,如 '%'、'元' */
|
|
65
32
|
suffix?: string;
|
|
66
|
-
/** 日期单位,type=dateCalc 时使用:'year'|'month'|'day'|'hour'|'minute'|'second' */
|
|
67
33
|
dateUnit?: "year" | "month" | "day" | "hour" | "minute" | "second";
|
|
68
|
-
/** 日期偏移量,type=dateCalc 且 mode=offset 时使用,正数向后,负数向前 */
|
|
69
34
|
dateOffset?: number;
|
|
70
|
-
/** 日期计算模式:diff(差值) | offset(偏移) | format(格式化) */
|
|
71
35
|
dateMode?: "diff" | "offset" | "format";
|
|
72
|
-
/** 日期输出格式,type=dateCalc 且 mode=format 时使用,如 'YYYY-MM-DD' */
|
|
73
36
|
dateFormat?: string;
|
|
74
|
-
/** 格式化子类型,type=format 时使用 */
|
|
75
37
|
formatType?: "thousands" | "padStart" | "toFixed" | "regex";
|
|
76
|
-
/** 格式化参数:padStart 的目标长度 / regex 的替换模式 */
|
|
77
38
|
formatArg?: string | number;
|
|
78
|
-
/** 格式化参数2:padStart 的填充字符 / regex 的替换值 */
|
|
79
39
|
formatArg2?: string;
|
|
80
|
-
/** 聚合子字段,type=aggregate 时使用,指定子表单中要聚合的字段名 */
|
|
81
40
|
aggregateField?: string;
|
|
82
|
-
/** 条件不匹配时的默认值,type=condition/ternary 时使用 */
|
|
83
41
|
defaultValue?: any;
|
|
84
42
|
}
|
|
85
|
-
/** 字段定义(最小集) */
|
|
86
43
|
export interface FormulaField {
|
|
87
44
|
fieldName: string;
|
|
88
45
|
type?: string;
|
|
89
46
|
formula?: FormulaConfig;
|
|
90
47
|
preps?: Record<string, any>;
|
|
91
48
|
}
|
|
92
|
-
/**
|
|
93
|
-
* 执行公式计算,返回计算结果
|
|
94
|
-
* @param formula 公式配置
|
|
95
|
-
* @param formData 表单数据
|
|
96
|
-
* @returns 计算结果
|
|
97
|
-
*/
|
|
98
49
|
export declare const executeFormula: (formula: FormulaConfig, formData: Record<string, any>) => any;
|
|
99
|
-
/**
|
|
100
|
-
* 执行公式并回填表单数据
|
|
101
|
-
* - lookup: 回填多个目标字段
|
|
102
|
-
* - 其他类型: 结果赋值给当前字段
|
|
103
|
-
*
|
|
104
|
-
* @param field 当前字段
|
|
105
|
-
* @param formInfo 所有字段列表
|
|
106
|
-
* @param formData 表单数据(会被直接修改)
|
|
107
|
-
*/
|
|
108
50
|
export declare const executeFormulaWithFill: (field: FormulaField, formInfo: FormulaField[], formData: Record<string, any>) => void;
|
|
109
|
-
/**
|
|
110
|
-
* 构建字段级别的 watch 监听器
|
|
111
|
-
* 当依赖字段变化时,自动触发公式计算并回填
|
|
112
|
-
*
|
|
113
|
-
* @param field 当前字段
|
|
114
|
-
* @param formInfo 所有字段列表
|
|
115
|
-
* @param formData 响应式表单数据
|
|
116
|
-
* @param watchFn Vue watch 函数
|
|
117
|
-
* @returns stop 函数数组,用于在 onBeforeUnmount 中清理
|
|
118
|
-
*/
|
|
119
51
|
export declare const setupFormulaWatchers: (field: FormulaField, formInfo: FormulaField[], formData: any, watchFn: typeof import("vue").watch) => (() => void)[];
|
|
120
|
-
/**
|
|
121
|
-
* 批量初始化表单中所有带 formula 配置的字段
|
|
122
|
-
* 适合在表单容器组件 onMounted 时调用
|
|
123
|
-
*
|
|
124
|
-
* @param formInfo 所有字段列表
|
|
125
|
-
* @param formData 响应式表单数据
|
|
126
|
-
* @param watchFn Vue watch 函数
|
|
127
|
-
* @returns stop 函数数组,用于在 onBeforeUnmount 中清理
|
|
128
|
-
*/
|
|
129
52
|
export declare const initFormFormulaWatchers: (formInfo: FormulaField[], formData: any, watchFn: typeof import("vue").watch) => (() => void)[];
|
|
@@ -50,9 +50,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
50
50
|
onSaveData?: (...args: any[]) => any;
|
|
51
51
|
}>, {
|
|
52
52
|
title: string;
|
|
53
|
+
modelValue: boolean;
|
|
53
54
|
compSize: string;
|
|
54
55
|
direction: string;
|
|
55
|
-
modelValue: boolean;
|
|
56
56
|
hideDefaultConfig: boolean;
|
|
57
57
|
resizable: boolean;
|
|
58
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|