@kengic/vue 0.26.0 → 0.26.1
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/CHANGELOG.md +1 -5
- package/dist/kengic-vue.js +11571 -11479
- package/dist/src/components/KgSubmit/index.hooks.d.ts +7 -0
- package/dist/src/components/KgSubmit/index.store.d.ts +7 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +22 -0
- package/dist/src/components/KgVar/index.store.d.ts +4 -1
- package/dist/src/utils/kg.util.d.ts +6 -0
- package/package.json +3 -1
@@ -4,6 +4,13 @@ import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
|
4
4
|
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
|
5
5
|
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
|
6
6
|
export interface IUseKgSubmit {
|
7
|
+
/**
|
8
|
+
* <p>添加一个「提交表单字段」.</p>
|
9
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
10
|
+
*
|
11
|
+
* @param varSubmitDetail 要添加的「提交表单字段」.
|
12
|
+
*/
|
13
|
+
createVarSubmitDetail(varSubmitDetail: VarSubmitDetail): void;
|
7
14
|
/**
|
8
15
|
* <p>「当前按钮」的「提交表单配置」.</p>
|
9
16
|
*/
|
@@ -148,6 +148,13 @@ export interface IUseKgSubmitStoreActions {
|
|
148
148
|
* @param listener 事件监听函数.
|
149
149
|
*/
|
150
150
|
addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
|
151
|
+
/**
|
152
|
+
* 添加一个「提交表单字段」.
|
153
|
+
*
|
154
|
+
* @param formID 页面标识.
|
155
|
+
* @param varSubmitDetail 要添加的「提交表单字段」.
|
156
|
+
*/
|
157
|
+
createVarSubmitDetail(formID: string | null | undefined, varSubmitDetail: VarSubmitDetail): void;
|
151
158
|
/**
|
152
159
|
* 清理数据.
|
153
160
|
* @param formID 页面标识.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
+
import { VarConfigControl, VarConfigDescription, VarConfigPossibility } from '../../apis/WMS/models';
|
2
3
|
import { IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE } from '../../consts';
|
3
4
|
import { IUseKgButton } from '../KgButton';
|
4
5
|
import { IUseKgForm } from '../KgForm';
|
@@ -8,6 +9,27 @@ import { IUseKgTable } from '../KgTable';
|
|
8
9
|
import { IUseKgVarConfig } from '../KgVarConfig';
|
9
10
|
import { IKgVarRetrieveEventListener, IKgVarStore } from './index.store';
|
10
11
|
export declare type IUseKgVar = {
|
12
|
+
/**
|
13
|
+
* <p>添加一个「变量配置:表单控件」.</p>
|
14
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
15
|
+
*
|
16
|
+
* @param varConfigControl 要添加的「变量配置:表单控件」.
|
17
|
+
*/
|
18
|
+
createVarConfigControl(varConfigControl: VarConfigControl): void;
|
19
|
+
/**
|
20
|
+
* <p>添加一个「变量配置:变量翻译」.</p>
|
21
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
22
|
+
*
|
23
|
+
* @param varConfigDescription 要添加的「变量配置:变量翻译」.
|
24
|
+
*/
|
25
|
+
createVarConfigDescription(varConfigDescription: VarConfigDescription): void;
|
26
|
+
/**
|
27
|
+
* <p>添加一个「变量配置:列表数据」.</p>
|
28
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
29
|
+
*
|
30
|
+
* @param varConfigPossibility 要添加的「变量配置:列表数据」.
|
31
|
+
*/
|
32
|
+
createVarConfigPossibility(varConfigPossibility: VarConfigPossibility): void;
|
11
33
|
/** 当前的 VarGridDetail 列表. */
|
12
34
|
currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
|
13
35
|
/** 当前的 VarGridMaster ID. */
|
@@ -151,7 +151,10 @@ export interface IUseKgVarStoreActions {
|
|
151
151
|
* @param event 事件名称.
|
152
152
|
* @param listener 事件监听函数.
|
153
153
|
*/
|
154
|
-
addEventListener(formID: string, event: IKgVarEvent, listener: IKgVarEventListener): void;
|
154
|
+
addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: IKgVarEventListener): void;
|
155
|
+
createVarConfigControl(formID: string | null | undefined, varConfigControl: VarConfigControl): void;
|
156
|
+
createVarConfigDescription(formID: string | null | undefined, varConfigDescription: VarConfigDescription): void;
|
157
|
+
createVarConfigPossibility(formID: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
|
155
158
|
/**
|
156
159
|
* <p>离开一个界面, 即销毁一个界面.</p>
|
157
160
|
* <p>删除它的变量配置数据.</p>
|
@@ -122,6 +122,12 @@ export declare class KgUtil {
|
|
122
122
|
* @return 转换后的字符串.
|
123
123
|
*/
|
124
124
|
static snakeCase(value: any): string;
|
125
|
+
/**
|
126
|
+
* 获取唯一标识.
|
127
|
+
*
|
128
|
+
* @return UUID.
|
129
|
+
*/
|
130
|
+
static uuid(): string;
|
125
131
|
}
|
126
132
|
export declare type ModalFunc = {
|
127
133
|
destroy: () => void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.26.
|
3
|
+
"version": "0.26.1",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -54,6 +54,7 @@
|
|
54
54
|
"@types/node": "18.18.4",
|
55
55
|
"@types/semver": "7.5.3",
|
56
56
|
"@types/store": "2.0.3",
|
57
|
+
"@types/uuid": "10.0.0",
|
57
58
|
"@vitejs/plugin-legacy": "2.3.1",
|
58
59
|
"@vitejs/plugin-vue": "3.2.0",
|
59
60
|
"@vitejs/plugin-vue-jsx": "1.3.10",
|
@@ -81,6 +82,7 @@
|
|
81
82
|
"store": "2.0.12",
|
82
83
|
"tsx": "3.12.3",
|
83
84
|
"typescript": "~4.8.4",
|
85
|
+
"uuid": "10.0.0",
|
84
86
|
"vite": "3.2.3",
|
85
87
|
"vite-plugin-compression": "0.5.1",
|
86
88
|
"vite-plugin-html": "3.2.0",
|