star-horse-lowcode 3.1.1 → 3.1.3
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 +11 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +6 -6
- package/dist/types/index.d.ts +0 -5
- package/package.json +15 -15
- package/dist/App.vue.d.ts +0 -3
- package/dist/api/WebSocketUtils.d.ts +0 -97
- package/dist/api/date_utils.d.ts +0 -58
- package/dist/api/device.d.ts +0 -21
- package/dist/api/finger_utils.d.ts +0 -9
- package/dist/api/form_utils.d.ts +0 -147
- package/dist/api/settings.d.ts +0 -1
- package/dist/api/star_horse_apis.d.ts +0 -93
- package/dist/api/star_horse_utils.d.ts +0 -213
- package/dist/api/system.d.ts +0 -78
- package/dist/api/user_func.d.ts +0 -25
- package/dist/api/valid_utils.d.ts +0 -8
- package/dist/components/comp/ShDynamicForm.vue.d.ts +0 -56
- package/dist/components/comp/ShForm.vue.d.ts +0 -58
- package/dist/components/comp/ShTableListColumn.vue.d.ts +0 -79
- package/dist/components/comp/StarHorseDataSelector.vue.d.ts +0 -50
- package/dist/components/comp/StarHorseDataView.vue.d.ts +0 -161
- package/dist/components/comp/StarHorseDialog.vue.d.ts +0 -231
- package/dist/components/comp/StarHorseDraggable.vue.d.ts +0 -82
- package/dist/components/comp/StarHorseForm.vue.d.ts +0 -176
- package/dist/components/comp/StarHorseFormItem.vue.d.ts +0 -22
- package/dist/components/comp/StarHorseFormList.vue.d.ts +0 -159
- package/dist/components/comp/StarHorseFormTable.vue.d.ts +0 -67
- package/dist/components/comp/StarHorseIcon.vue.d.ts +0 -119
- package/dist/components/comp/StarHorseItem.vue.d.ts +0 -100
- package/dist/components/comp/StarHorseJsonEditor.vue.d.ts +0 -44
- package/dist/components/comp/StarHorsePopover.vue.d.ts +0 -50
- package/dist/components/comp/StarHorseSearchComp.vue.d.ts +0 -48
- package/dist/components/comp/StarHorseSearchForm.vue.d.ts +0 -77
- package/dist/components/comp/StarHorseStaticTable.vue.d.ts +0 -101
- package/dist/components/comp/StarHorseTableColumn.vue.d.ts +0 -116
- package/dist/components/comp/StarHorseTableComp.vue.d.ts +0 -43
- package/dist/components/comp/StarHorseTree.vue.d.ts +0 -256
- package/dist/components/comp/app/MainBar.vue.d.ts +0 -20
- package/dist/components/comp/app/MainContainer.vue.d.ts +0 -18
- package/dist/components/comp/app/MainContent.vue.d.ts +0 -26
- package/dist/components/comp/app/MainSubBar.vue.d.ts +0 -36
- package/dist/components/comp/app/MenuShot.vue.d.ts +0 -79
- package/dist/components/comp/index.d.ts +0 -25
- package/dist/components/comp/items/UTableColumn.vue.d.ts +0 -72
- package/dist/components/comp/items/boxItem.vue.d.ts +0 -22
- package/dist/components/comp/items/callitem.d.ts +0 -2
- package/dist/components/comp/items/dytableItem.vue.d.ts +0 -22
- package/dist/components/comp/items/groupItem.vue.d.ts +0 -23
- package/dist/components/comp/items/tableColumnItem.vue.d.ts +0 -96
- package/dist/components/comp/items/tablebtn.vue.d.ts +0 -60
- package/dist/components/comp/selfcomp.d.ts +0 -2
- package/dist/components/comp/utils/DataPicker.vue.d.ts +0 -85
- package/dist/components/comp/utils/DataSelectorUtils.d.ts +0 -23
- package/dist/components/cron/Crontab-Day.vue.d.ts +0 -29
- package/dist/components/cron/Crontab-Hour.vue.d.ts +0 -28
- package/dist/components/cron/Crontab-Min.vue.d.ts +0 -28
- package/dist/components/cron/Crontab-Month.vue.d.ts +0 -28
- package/dist/components/cron/Crontab-Second.vue.d.ts +0 -31
- package/dist/components/cron/Crontab-Week.vue.d.ts +0 -29
- package/dist/components/cron/Crontab-Year.vue.d.ts +0 -30
- package/dist/components/cron/Crontab.vue.d.ts +0 -15
- package/dist/components/enums/ModuleEnums.d.ts +0 -10
- package/dist/components/enums/ServiceEnums.d.ts +0 -18
- package/dist/components/formcomp/items/allitem.d.ts +0 -2
- package/dist/components/formcomp/items/area-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/audio-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/autocomplete-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/barcode-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/button-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/cascade-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/checkbox-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/color-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/cron-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/datapicker-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/datetime-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/depart-item.vue.d.ts +0 -16
- package/dist/components/formcomp/items/description-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/dialog-input-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/dialog-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/divider-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/drawer-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/empty-item.vue.d.ts +0 -16
- package/dist/components/formcomp/items/html-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/htmleditor-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/icon-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/image-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/index.d.ts +0 -56
- package/dist/components/formcomp/items/input-item.vue.d.ts +0 -13
- package/dist/components/formcomp/items/input-tag-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/json-array-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/json-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/link-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/location-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/markdown-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/number-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/number-range-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/org-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/page-select-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/password-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/progress-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/qrcode-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/radio-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/rate-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/select-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/signature-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/slider-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/starhorse-form-item.vue.d.ts +0 -23
- package/dist/components/formcomp/items/switch-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/tag-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/text-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/textarea-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/time-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/time-picker-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/transfer-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/tree-select-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/tselect-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/unknown-item.vue.d.ts +0 -16
- package/dist/components/formcomp/items/upload-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/user-item.vue.d.ts +0 -19
- package/dist/components/formcomp/items/usercomp-item.vue.d.ts +0 -20
- package/dist/components/formcomp/items/view-markdown-item.vue.d.ts +0 -19
- package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +0 -55
- package/dist/components/formcomp/utils/FieldList.vue.d.ts +0 -7
- package/dist/components/formcomp/utils/FormulaEngine.d.ts +0 -129
- package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +0 -16
- package/dist/components/formcomp/utils/prefixSuffixUtils.d.ts +0 -28
- package/dist/components/help.vue.d.ts +0 -26
- package/dist/components/menu/MenuItem.vue.d.ts +0 -49
- package/dist/components/system/ContentMenu.vue.d.ts +0 -77
- package/dist/components/system/PageConfig.vue.d.ts +0 -66
- package/dist/components/system/StarHorseButtonList.vue.d.ts +0 -72
- package/dist/components/system/StarHorseEditor.vue.d.ts +0 -82
- package/dist/components/system/StarHorseMenu.vue.d.ts +0 -38
- package/dist/components/system/StarHorseSidebar.vue.d.ts +0 -13
- package/dist/components/system/StarHorseSvg.vue.d.ts +0 -112
- package/dist/components/system/SvgLoader.vue.d.ts +0 -59
- package/dist/components/system/SystemComp.d.ts +0 -2
- package/dist/components/system/index.d.ts +0 -8
- package/dist/components/types/ApiUrls.d.ts +0 -175
- package/dist/components/types/BtnAction.d.ts +0 -35
- package/dist/components/types/BtnAuth.d.ts +0 -43
- package/dist/components/types/CompInfo.d.ts +0 -50
- package/dist/components/types/DialogProps.d.ts +0 -54
- package/dist/components/types/DyCompField.d.ts +0 -14
- package/dist/components/types/DynamicNode.d.ts +0 -34
- package/dist/components/types/FormType.d.ts +0 -113
- package/dist/components/types/ItemPreps.d.ts +0 -155
- package/dist/components/types/MenusInfo.d.ts +0 -44
- package/dist/components/types/PageFieldInfo.d.ts +0 -559
- package/dist/components/types/PageProps.d.ts +0 -177
- package/dist/components/types/Params.d.ts +0 -146
- package/dist/components/types/RuleType.d.ts +0 -10
- package/dist/components/types/SearchProps.d.ts +0 -59
- package/dist/components/types/ShortKey.d.ts +0 -30
- package/dist/components/types/StarHorseType.d.ts +0 -18
- package/dist/components/types/UserinfoType.d.ts +0 -46
- package/dist/components/types/index.d.ts +0 -18
- package/dist/index.d.ts +0 -54
- package/dist/lang/en_US.d.ts +0 -871
- package/dist/lang/index.d.ts +0 -17
- package/dist/lang/zh_CN.d.ts +0 -872
- package/dist/main.d.ts +0 -0
- package/dist/plugins/AblesPlugin.d.ts +0 -48
- package/dist/plugins/registerCompPlugin.d.ts +0 -10
- package/dist/router/index.d.ts +0 -2
- package/dist/sample/commonpage/CommonSkeleton.vue.d.ts +0 -87
- package/dist/sample/commonpage/NormalPage.vue.d.ts +0 -15
- package/dist/sample/commonpage/dynamic_form_utils.d.ts +0 -89
- package/dist/store/ButtonPermission.d.ts +0 -32
- package/dist/store/ConsumerView.d.ts +0 -22
- package/dist/store/CopyerOperation.d.ts +0 -35
- package/dist/store/DesignForm.d.ts +0 -1731
- package/dist/store/DesignPage.d.ts +0 -149
- package/dist/store/DynamicForm.d.ts +0 -52
- package/dist/store/FormDataCache.d.ts +0 -4430
- package/dist/store/GlobalConfig.d.ts +0 -13
- package/dist/store/SelfOperation.d.ts +0 -657
- package/dist/store/StoreManager.d.ts +0 -14331
- package/dist/store/UserInfo.d.ts +0 -44
- package/dist/store/index.d.ts +0 -2
- package/dist/theme/localStorge.d.ts +0 -10
- package/dist/theme/theme.d.ts +0 -24
- package/dist/utils/FieldOperationUtils.d.ts +0 -6
- package/dist/utils/auth.d.ts +0 -25
- package/dist/utils/message.d.ts +0 -25
- package/dist/utils/preview.d.ts +0 -16
- package/dist/views/NotFound.vue.d.ts +0 -3
package/dist/types/index.d.ts
CHANGED
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": "3.1.
|
|
5
|
+
"version": "3.1.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
|
|
8
8
|
"keywords": [
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
83
83
|
"axios": "^1.16.1",
|
|
84
84
|
"codemirror": "^6.0.2",
|
|
85
|
-
"element-plus": "^2.14.
|
|
85
|
+
"element-plus": "^2.14.1",
|
|
86
86
|
"jquery": "^4.0.0",
|
|
87
87
|
"json5": "^2.2.3",
|
|
88
|
-
"markdown-it": "^14.
|
|
89
|
-
"md-editor-v3": "^6.5.
|
|
88
|
+
"markdown-it": "^14.2.0",
|
|
89
|
+
"md-editor-v3": "^6.5.1",
|
|
90
90
|
"path": "^0.12.7",
|
|
91
91
|
"pinia": "^3.0.4",
|
|
92
92
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
@@ -99,10 +99,10 @@
|
|
|
99
99
|
"thememirror": "^2.0.1",
|
|
100
100
|
"uuid": "^14.0.0",
|
|
101
101
|
"vanilla-jsoneditor": "^3.12.0",
|
|
102
|
-
"vue": "^3.5.
|
|
102
|
+
"vue": "^3.5.35",
|
|
103
103
|
"vue-i18n": "^11.4.4",
|
|
104
104
|
"vue-m-message": "^4.0.2",
|
|
105
|
-
"vue-router": "^5.0
|
|
105
|
+
"vue-router": "^5.1.0",
|
|
106
106
|
"vue3-barcode": "^1.0.1",
|
|
107
107
|
"vue3-signature": "^0.4.4",
|
|
108
108
|
"vue3-ts-jsoneditor": "^3.4.1",
|
|
@@ -115,22 +115,22 @@
|
|
|
115
115
|
"@types/jquery": "^4.0.0",
|
|
116
116
|
"@types/prismjs": "^1.26.6",
|
|
117
117
|
"@types/sortablejs": "^1.15.9",
|
|
118
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
119
|
-
"@typescript-eslint/parser": "^8.
|
|
118
|
+
"@typescript-eslint/eslint-plugin": "^8.60.1",
|
|
119
|
+
"@typescript-eslint/parser": "^8.60.1",
|
|
120
120
|
"@typescript/typescript6": "^6.0.1",
|
|
121
121
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
122
|
-
"@vue/language-core": "^3.3.
|
|
123
|
-
"eslint": "^10.4.
|
|
122
|
+
"@vue/language-core": "^3.3.3",
|
|
123
|
+
"eslint": "^10.4.1",
|
|
124
124
|
"eslint-plugin-vue": "^10.9.1",
|
|
125
125
|
"globals": "^17.6.0",
|
|
126
126
|
"prettier": "^3.8.3",
|
|
127
|
-
"sass-embedded": "^1.
|
|
128
|
-
"terser": "^5.
|
|
127
|
+
"sass-embedded": "^1.100.0",
|
|
128
|
+
"terser": "^5.48.0",
|
|
129
129
|
"unplugin-auto-import": "^21.0.0",
|
|
130
130
|
"unplugin-vue-components": "^32.1.0",
|
|
131
|
-
"vite": "^8.0.
|
|
132
|
-
"vite-plugin-dts": "^5.0.
|
|
133
|
-
"vue-eslint-parser": "^10.4.
|
|
131
|
+
"vite": "^8.0.16",
|
|
132
|
+
"vite-plugin-dts": "^5.0.2",
|
|
133
|
+
"vue-eslint-parser": "^10.4.1"
|
|
134
134
|
},
|
|
135
135
|
"engines": {
|
|
136
136
|
"node": ">=20.13.0"
|
package/dist/App.vue.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
interface WebSocketOptions {
|
|
2
|
-
/** 重连间隔(毫秒),默认 3000 */
|
|
3
|
-
reconnectInterval?: number;
|
|
4
|
-
/** 最大重连次数,0 表示无限重试,默认 10 */
|
|
5
|
-
maxReconnectAttempts?: number;
|
|
6
|
-
/** 心跳间隔(毫秒),默认 10000 */
|
|
7
|
-
heartbeatInterval?: number;
|
|
8
|
-
/** 心跳消息内容,默认 "ping" */
|
|
9
|
-
heartbeatMsg?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 自定义回调函数类型
|
|
13
|
-
*/
|
|
14
|
-
interface WebSocketCallbacks {
|
|
15
|
-
/** 连接成功回调 */
|
|
16
|
-
onopen?: (event: Event) => void;
|
|
17
|
-
/** 连接关闭回调 */
|
|
18
|
-
onclose?: (event: CloseEvent) => void;
|
|
19
|
-
/** 连接错误回调 */
|
|
20
|
-
onerror?: (event: Event) => void;
|
|
21
|
-
/** 接收消息回调 */
|
|
22
|
-
onmessage?: (event: MessageEvent) => void;
|
|
23
|
-
/** 达到最大重连次数回调 */
|
|
24
|
-
onmaxreconnect?: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 带自动重连和心跳检测的 WebSocket 类(TS 版本)
|
|
28
|
-
*/
|
|
29
|
-
declare class WebSocketUtils implements WebSocketCallbacks {
|
|
30
|
-
private readonly url;
|
|
31
|
-
private readonly reconnectInterval;
|
|
32
|
-
private readonly maxReconnectAttempts;
|
|
33
|
-
private readonly heartbeatInterval;
|
|
34
|
-
private readonly heartbeatMsg;
|
|
35
|
-
private ws;
|
|
36
|
-
private reconnectAttempts;
|
|
37
|
-
private isManualClose;
|
|
38
|
-
private heartbeatTimer;
|
|
39
|
-
onopen?: (event: Event) => void;
|
|
40
|
-
onclose?: (event: CloseEvent) => void;
|
|
41
|
-
onerror?: (event: Event) => void;
|
|
42
|
-
onmessage?: (event: MessageEvent) => void;
|
|
43
|
-
onmaxreconnect?: () => void;
|
|
44
|
-
constructor(url: string, options?: WebSocketOptions);
|
|
45
|
-
/**
|
|
46
|
-
* 初始化/重连 WebSocket 连接
|
|
47
|
-
*/
|
|
48
|
-
private connect;
|
|
49
|
-
/**
|
|
50
|
-
* 连接成功事件处理
|
|
51
|
-
*/
|
|
52
|
-
private handleOpen;
|
|
53
|
-
/**
|
|
54
|
-
* 连接关闭事件处理
|
|
55
|
-
*/
|
|
56
|
-
private handleClose;
|
|
57
|
-
/**
|
|
58
|
-
* 连接错误事件处理
|
|
59
|
-
*/
|
|
60
|
-
private handleError;
|
|
61
|
-
/**
|
|
62
|
-
* 消息接收事件处理
|
|
63
|
-
*/
|
|
64
|
-
private handleMessage;
|
|
65
|
-
/**
|
|
66
|
-
* 调度重连(带指数退避策略)
|
|
67
|
-
*/
|
|
68
|
-
private scheduleReconnect;
|
|
69
|
-
/**
|
|
70
|
-
* 发送心跳消息
|
|
71
|
-
*/
|
|
72
|
-
private sendHeartbeat;
|
|
73
|
-
/**
|
|
74
|
-
* 启动心跳检测
|
|
75
|
-
*/
|
|
76
|
-
private startHeartbeat;
|
|
77
|
-
/**
|
|
78
|
-
* 停止心跳检测
|
|
79
|
-
*/
|
|
80
|
-
private stopHeartbeat;
|
|
81
|
-
/**
|
|
82
|
-
* 对外暴露:发送消息
|
|
83
|
-
* @param data 要发送的消息(支持 string/ArrayBuffer/Blob)
|
|
84
|
-
*/
|
|
85
|
-
send(data: string | ArrayBuffer | Blob): void;
|
|
86
|
-
/**
|
|
87
|
-
* 对外暴露:手动关闭连接(不会触发重连)
|
|
88
|
-
* @param code 关闭码(默认 1000,表示正常关闭)
|
|
89
|
-
* @param reason 关闭原因
|
|
90
|
-
*/
|
|
91
|
-
close(code?: number, reason?: string): void;
|
|
92
|
-
/**
|
|
93
|
-
* 辅助方法:获取连接状态文本
|
|
94
|
-
*/
|
|
95
|
-
getReadyStateText(): string;
|
|
96
|
-
}
|
|
97
|
-
export default WebSocketUtils;
|
package/dist/api/date_utils.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 日期类型
|
|
3
|
-
* @type {string[]}
|
|
4
|
-
*/
|
|
5
|
-
export declare const dateTypes: string[];
|
|
6
|
-
/**
|
|
7
|
-
* 创建日期
|
|
8
|
-
* @param val
|
|
9
|
-
* @returns {string}
|
|
10
|
-
*/
|
|
11
|
-
export declare function createDate(val: any): string;
|
|
12
|
-
/**
|
|
13
|
-
* 当前日期
|
|
14
|
-
* @param split
|
|
15
|
-
*/
|
|
16
|
-
export declare function currentDate(split?: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* 获取当月的开始和结束时间
|
|
19
|
-
*/
|
|
20
|
-
export declare function currentMonthRange(): {
|
|
21
|
-
startDate?: undefined;
|
|
22
|
-
starDateStr?: undefined;
|
|
23
|
-
lastDate?: undefined;
|
|
24
|
-
lastDateStr?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
startDate: Date;
|
|
27
|
-
starDateStr: string;
|
|
28
|
-
lastDate: Date;
|
|
29
|
-
lastDateStr: string;
|
|
30
|
-
};
|
|
31
|
-
export declare function monthRange(date: Date): {
|
|
32
|
-
startDate?: undefined;
|
|
33
|
-
starDateStr?: undefined;
|
|
34
|
-
lastDate?: undefined;
|
|
35
|
-
lastDateStr?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
startDate: Date;
|
|
38
|
-
starDateStr: string;
|
|
39
|
-
lastDate: Date;
|
|
40
|
-
lastDateStr: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* 将日期解析为字符串
|
|
44
|
-
* @param date
|
|
45
|
-
* @param needTime
|
|
46
|
-
* @param split
|
|
47
|
-
* @param needSecond
|
|
48
|
-
*/
|
|
49
|
-
export declare function dateParse(date: Date, needTime?: boolean, split?: string, needSecond?: boolean): string;
|
|
50
|
-
/**
|
|
51
|
-
* 创建年月日时分秒
|
|
52
|
-
* @param val
|
|
53
|
-
* @param isDateTime
|
|
54
|
-
* @param needSecond
|
|
55
|
-
* @param split
|
|
56
|
-
*/
|
|
57
|
-
export declare function createDatetime(val: any, isDateTime?: boolean, needSecond?: boolean, split?: string): any;
|
|
58
|
-
export declare function parseDateByType(val: any, type: string, needSecond?: boolean, split?: string): any;
|
package/dist/api/device.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 设置测试
|
|
3
|
-
* @param testFlag
|
|
4
|
-
* @param type
|
|
5
|
-
*/
|
|
6
|
-
export declare function setTest(testFlag: boolean, type?: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* 获取当前设备类型
|
|
9
|
-
*/
|
|
10
|
-
export declare function getDeviceInfo(): any;
|
|
11
|
-
export declare const device: any;
|
|
12
|
-
export declare const isPc: boolean;
|
|
13
|
-
export declare const isMobile: boolean;
|
|
14
|
-
export declare const isTablet: boolean;
|
|
15
|
-
export declare const isWindows: boolean;
|
|
16
|
-
export declare const isMac: boolean;
|
|
17
|
-
export declare const isLinux: boolean;
|
|
18
|
-
export declare const isAndroid: boolean;
|
|
19
|
-
export declare const isIos: boolean;
|
|
20
|
-
export declare const isHarmony: any;
|
|
21
|
-
export declare const isHuawei: any;
|
package/dist/api/form_utils.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { FieldInfo, PageFieldInfo, SearchProps } from '../components/types';
|
|
2
|
-
/**
|
|
3
|
-
* 解析表单字段信息及层级
|
|
4
|
-
*/
|
|
5
|
-
export declare const analysisCompDatas: (dataList: any) => {
|
|
6
|
-
selectList: any[];
|
|
7
|
-
compListResult: Record<string, any>;
|
|
8
|
-
compFieldList: FieldInfo[];
|
|
9
|
-
fieldList: any[];
|
|
10
|
-
searchFieldList: SearchProps[];
|
|
11
|
-
searchItemList?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
selectList: any[];
|
|
14
|
-
compListResult: Record<string, any>;
|
|
15
|
-
fieldList: FieldInfo[];
|
|
16
|
-
searchItemList: SearchProps[];
|
|
17
|
-
compFieldList?: undefined;
|
|
18
|
-
searchFieldList?: undefined;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 解析自动匹配平台格式的数据
|
|
22
|
-
* @param fieldList
|
|
23
|
-
*/
|
|
24
|
-
export declare const analysisAutoFitOsCompDatas: (fieldList: any) => {
|
|
25
|
-
selectList: any[];
|
|
26
|
-
compListResult: Record<string, any>;
|
|
27
|
-
compFieldList: FieldInfo[];
|
|
28
|
-
fieldList: any[];
|
|
29
|
-
searchFieldList: SearchProps[];
|
|
30
|
-
searchItemList?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
selectList: any[];
|
|
33
|
-
compListResult: Record<string, any>;
|
|
34
|
-
fieldList: any;
|
|
35
|
-
searchItemList: SearchProps[];
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* 解析所有组件按顺序排列,去掉所有容器布局,
|
|
39
|
-
* 需考虑如果是主子表单的情况需要怎么操作,
|
|
40
|
-
* 除了box,dytable,其它的是否只需要解析容器内部的子容器,
|
|
41
|
-
* 第一步,先将dytable容器的数据解析完成
|
|
42
|
-
* @param dataList
|
|
43
|
-
*/
|
|
44
|
-
export declare function analysisAppComps(dataList: any): {
|
|
45
|
-
selectList: any[];
|
|
46
|
-
compListResult: Record<string, any>;
|
|
47
|
-
fieldList: any;
|
|
48
|
-
searchItemList: SearchProps[];
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* 将pc模型转为app模型
|
|
52
|
-
* @param pageInfo
|
|
53
|
-
*/
|
|
54
|
-
export declare function convertPcCompToFitPlatformComps(pageInfo: PageFieldInfo): PageFieldInfo | {
|
|
55
|
-
fieldList: any[];
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* 将pc模型转为app模型
|
|
59
|
-
* @param pageInfo
|
|
60
|
-
*/
|
|
61
|
-
export declare function convertCompToAppComps(pageInfo: PageFieldInfo): {
|
|
62
|
-
fieldList: any[];
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* 解析动态表单中的子节点数据是否需要合并到父节点中
|
|
66
|
-
* @param props
|
|
67
|
-
* @param dataForm
|
|
68
|
-
*/
|
|
69
|
-
export declare function dynamicFormAnalysis(props: any, dataForm: any): any;
|
|
70
|
-
/**
|
|
71
|
-
* 创建验证规则
|
|
72
|
-
* @param item
|
|
73
|
-
* @param dataForm
|
|
74
|
-
*/
|
|
75
|
-
export declare function validMsg(item: any, dataForm: any): any[];
|
|
76
|
-
/**
|
|
77
|
-
* 检查对象是否需要创建
|
|
78
|
-
* @param dataForm 数据对象
|
|
79
|
-
* @param item 表单属性
|
|
80
|
-
* @param index 索引
|
|
81
|
-
* @param parentIndex 父索引
|
|
82
|
-
* @param prefix 前缀
|
|
83
|
-
*/
|
|
84
|
-
export declare function checkObject(dataForm: any, item: any, index: number, parentIndex: number, prefix: string): number;
|
|
85
|
-
/**
|
|
86
|
-
* 存在映射关系时的校验函数
|
|
87
|
-
* @param item
|
|
88
|
-
* @param dataForm
|
|
89
|
-
* @param prefix
|
|
90
|
-
* @param parentIndex
|
|
91
|
-
* @param index
|
|
92
|
-
*/
|
|
93
|
-
export declare function getFormData(item: any, dataForm: any, prefix: string, parentIndex: any, index: any): any;
|
|
94
|
-
/**
|
|
95
|
-
* 获取表单数据索引
|
|
96
|
-
* @param data
|
|
97
|
-
* @param prefix
|
|
98
|
-
* @param parentIndex
|
|
99
|
-
* @param index
|
|
100
|
-
*/
|
|
101
|
-
export declare function getDataIndex(data: any, prefix: string, parentIndex: any, index: any): number;
|
|
102
|
-
/**
|
|
103
|
-
* 生成验证属性
|
|
104
|
-
* @param prefix 父表标识
|
|
105
|
-
* @param fieldName 字段名称
|
|
106
|
-
* @param parentIndex 父索引
|
|
107
|
-
* @param currentIndex 当前索引
|
|
108
|
-
*/
|
|
109
|
-
export declare function loadProp(prefix: string, fieldName: string, parentIndex: number, currentIndex: number): string;
|
|
110
|
-
/**
|
|
111
|
-
* 计算表单Pron
|
|
112
|
-
* @param data
|
|
113
|
-
* @param prefix
|
|
114
|
-
* @param parentIndex
|
|
115
|
-
* @param index
|
|
116
|
-
*/
|
|
117
|
-
export declare function getPrefix(data: any, prefix: string, parentIndex: any, index: any): string;
|
|
118
|
-
/**
|
|
119
|
-
* 检查是否可见
|
|
120
|
-
* @param item
|
|
121
|
-
* @param dataForm
|
|
122
|
-
*/
|
|
123
|
-
export declare function checkVisible(item: any, dataForm: any): any;
|
|
124
|
-
/**
|
|
125
|
-
* 解析列表数据
|
|
126
|
-
* @param item
|
|
127
|
-
* @param val
|
|
128
|
-
*/
|
|
129
|
-
export declare function parseListData(item: any, val: any): any;
|
|
130
|
-
/**
|
|
131
|
-
* 过滤对象属性
|
|
132
|
-
* @param obj 要过滤的对象
|
|
133
|
-
* @param keysToRemove 要移除的属性键数组
|
|
134
|
-
*/
|
|
135
|
-
export declare function filterProperties(obj: any, keysToRemove: string[]): void;
|
|
136
|
-
/**
|
|
137
|
-
* 判断标签是否需要显示
|
|
138
|
-
* @param item
|
|
139
|
-
*/
|
|
140
|
-
export declare function labelVisibleCheck(item: any): any;
|
|
141
|
-
/**
|
|
142
|
-
* 处理属性
|
|
143
|
-
* @param fieldList
|
|
144
|
-
* @param parentKey
|
|
145
|
-
* @param result
|
|
146
|
-
*/
|
|
147
|
-
export declare const processFieldList: (fieldList: any[], parentKey: string, result: any[]) => void;
|
package/dist/api/settings.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Config: any;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { SearchParams } from '../components/types/Params';
|
|
3
|
-
import { OrderByInfo } from '../components/types/PageFieldInfo';
|
|
4
|
-
import { SelectOption } from '../components/types/SearchProps';
|
|
5
|
-
declare const starHorseAxios: import('axios').AxiosInstance;
|
|
6
|
-
export { starHorseAxios };
|
|
7
|
-
export declare function getMenuId(): string;
|
|
8
|
-
/**
|
|
9
|
-
* 获取axios实例
|
|
10
|
-
*/
|
|
11
|
-
export declare function getAxiosInstance(): import('axios').AxiosInstance;
|
|
12
|
-
/**
|
|
13
|
-
* 下载文件,
|
|
14
|
-
* @param url 路径
|
|
15
|
-
* @param param 参数
|
|
16
|
-
*/
|
|
17
|
-
export declare function download(url: string, param: any): Promise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* 下载文件,
|
|
20
|
-
* @param data 数据
|
|
21
|
-
* @param name 文件名称
|
|
22
|
-
*/
|
|
23
|
-
export declare function downloadData(data: any, name: string): void;
|
|
24
|
-
/**
|
|
25
|
-
* 加载资源文件
|
|
26
|
-
* @param url
|
|
27
|
-
* @param method
|
|
28
|
-
*/
|
|
29
|
-
export declare function blobData(url: string, method?: string): Promise<any>;
|
|
30
|
-
/**
|
|
31
|
-
* Post 请求
|
|
32
|
-
* @param url
|
|
33
|
-
* @param data
|
|
34
|
-
*/
|
|
35
|
-
export declare function postRequest(url: string, data: Array<any> | any): Promise<AxiosResponse<any, any, {}>>;
|
|
36
|
-
/**
|
|
37
|
-
* Get请求
|
|
38
|
-
* @param url
|
|
39
|
-
*/
|
|
40
|
-
export declare function getRequest(url: string): Promise<AxiosResponse<any, any, {}>>;
|
|
41
|
-
/**
|
|
42
|
-
* Request 请求
|
|
43
|
-
* @param url 请求地址
|
|
44
|
-
* @param data 请求参数
|
|
45
|
-
* @param method 请求方法
|
|
46
|
-
*/
|
|
47
|
-
export declare function httpRequest(url: string, method: string, data: any): Promise<AxiosResponse<any, any, {}>>;
|
|
48
|
-
/**
|
|
49
|
-
* Post Upload 请求
|
|
50
|
-
* @param url
|
|
51
|
-
* @param data
|
|
52
|
-
*/
|
|
53
|
-
export declare function uploadRequest(url: string, data: Array<any>): Promise<AxiosResponse<any, any, {}>>;
|
|
54
|
-
/**
|
|
55
|
-
* 加载Post 数据
|
|
56
|
-
* @param url 接口地址
|
|
57
|
-
* @param params 参数
|
|
58
|
-
* @param orderBy 排序
|
|
59
|
-
*/
|
|
60
|
-
export declare function loadData(url: string, params: SearchParams[] | any, orderBy?: OrderByInfo[]): Promise<{
|
|
61
|
-
data: any;
|
|
62
|
-
error: string;
|
|
63
|
-
}>;
|
|
64
|
-
/**
|
|
65
|
-
* 加载Get 数据
|
|
66
|
-
* @param url 接口地址
|
|
67
|
-
* @param params 参数
|
|
68
|
-
*/
|
|
69
|
-
export declare function loadGetData(url: string): Promise<{
|
|
70
|
-
data: any;
|
|
71
|
-
error: string;
|
|
72
|
-
}>;
|
|
73
|
-
/**
|
|
74
|
-
* 加载Id数据
|
|
75
|
-
* @param url
|
|
76
|
-
* @param id
|
|
77
|
-
* @param params
|
|
78
|
-
*/
|
|
79
|
-
export declare function loadById(url: string, id: any, params?: any): Promise<any>;
|
|
80
|
-
/**
|
|
81
|
-
* 根据Id删除数据
|
|
82
|
-
* @param url
|
|
83
|
-
* @param ids
|
|
84
|
-
* @param msg 删除提示
|
|
85
|
-
*/
|
|
86
|
-
export declare function deleteByIds(url: string, ids: any, msg?: string): Promise<boolean>;
|
|
87
|
-
/**
|
|
88
|
-
* 根据字典类别获取字典数据
|
|
89
|
-
* @param dictType 字典类别
|
|
90
|
-
* @param exclusion 排除字典项
|
|
91
|
-
* @param userUrl 用户自定义接口
|
|
92
|
-
*/
|
|
93
|
-
export declare function dictData(dictType: string, exclusion?: Array<string>, userUrl?: string): Promise<SelectOption[]>;
|