@kengic/vue 0.23.3 → 0.23.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +2047 -2036
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +6 -6
- package/dist/src/components/KgAppSelect/index.store.d.ts +4 -4
- package/dist/src/components/KgButton/KgButton.Item.d.ts +3 -3
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +2 -2
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +2 -2
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -3
- package/dist/src/components/KgButton/index.hooks.d.ts +39 -35
- package/dist/src/components/KgButton/index.store.d.ts +13 -12
- package/dist/src/components/KgForm/index.hooks.d.ts +17 -17
- package/dist/src/components/KgForm/index.store.d.ts +4 -4
- package/dist/src/components/KgSearch/index.hooks.d.ts +9 -9
- package/dist/src/components/KgSearch/index.store.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +31 -31
- package/dist/src/components/KgSubmit/index.store.d.ts +8 -8
- package/dist/src/components/KgTable/index.hooks.d.ts +24 -24
- package/dist/src/components/KgTable/index.store.d.ts +11 -5
- package/dist/src/components/KgVar/index.hooks.d.ts +6 -6
- package/dist/src/components/KgVar/index.store.d.ts +6 -7
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +1 -1
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +6 -12
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +3 -3
- package/dist/src/components/KgWarehouse/index.store.d.ts +4 -4
- package/dist/src/components/util.d.ts +5 -5
- package/dist/src/consts/index.vm.d.ts +25 -2
- package/package.json +1 -1
@@ -6,9 +6,9 @@ import { IKgEventListener, IRemoveEventListenerHandler } from '../consts';
|
|
6
6
|
* @param event 事件名称.
|
7
7
|
*/
|
8
8
|
export declare function onEventFactory<S extends {
|
9
|
-
addEventListener(formID: string, event: E,
|
10
|
-
removeEventListener(formID: string, event: E,
|
9
|
+
addEventListener(formID: string, event: E, listener: L): void;
|
10
|
+
removeEventListener(formID: string, event: E, listener?: L): void;
|
11
11
|
} | {
|
12
|
-
addEventListener(event: E,
|
13
|
-
removeEventListener(event: E,
|
14
|
-
} = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (
|
12
|
+
addEventListener(event: E, listener: L): void;
|
13
|
+
removeEventListener(event: E, listener?: L): void;
|
14
|
+
} = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListenerHandler;
|
@@ -166,7 +166,7 @@ export declare const enum KG__VAR_GRID_DETAIL__DISPLAY_TYPE {
|
|
166
166
|
*/
|
167
167
|
ICON = "ICON"
|
168
168
|
}
|
169
|
-
/**
|
169
|
+
/** @deprecated 已弃用, 请使用 {@link KG__VAR_BUTTON__TYPE}. */
|
170
170
|
export declare const enum KG_BUTTON_TYPE {
|
171
171
|
/** 查询. */
|
172
172
|
SEARCH = "SEARCH",
|
@@ -187,6 +187,29 @@ export declare const enum KG_BUTTON_TYPE {
|
|
187
187
|
/** 其他. */
|
188
188
|
OTHER = "OTHER"
|
189
189
|
}
|
190
|
+
/**
|
191
|
+
* 按钮类型.
|
192
|
+
*/
|
193
|
+
export declare const enum KG__VAR_BUTTON__TYPE {
|
194
|
+
/** 查询. */
|
195
|
+
SEARCH = "SEARCH",
|
196
|
+
/** 创建. */
|
197
|
+
CREATE = "CREATE",
|
198
|
+
/** 更新. */
|
199
|
+
UPDATE = "UPDATE",
|
200
|
+
/** 复制. */
|
201
|
+
COPY = "COPY",
|
202
|
+
/** 删除. */
|
203
|
+
DELETE = "DELETE",
|
204
|
+
/** 导入. */
|
205
|
+
IMPORT = "IMPORT",
|
206
|
+
/** 下载导入模板. */
|
207
|
+
IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
|
208
|
+
/** 导出. */
|
209
|
+
EXPORT = "EXPORT",
|
210
|
+
/** 其他. */
|
211
|
+
OTHER = "OTHER"
|
212
|
+
}
|
190
213
|
/**
|
191
214
|
* 按钮颜色.
|
192
215
|
*/
|
@@ -417,7 +440,7 @@ export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
|
417
440
|
export declare type IRemoveEventListenerHandler = () => void;
|
418
441
|
export declare type IKgEventListener = {
|
419
442
|
/** 是否只会触发一次. */
|
420
|
-
|
443
|
+
isOnce?: boolean;
|
421
444
|
/** 是否已经触发过一次了. */
|
422
445
|
invoked?: boolean;
|
423
446
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.23.
|
3
|
+
"version": "0.23.4",
|
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",
|