@kengic/vue 0.27.1 → 0.27.2-beta.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/dist/index.css +1 -1
- package/dist/kengic-vue.js +57352 -56535
- package/dist/project/build/vite/plugin/index.ts +1 -1
- package/dist/project/types/global.d.ts +0 -1
- package/dist/src/component/KgAppSelect/KgAppSelect.event.d.ts +1 -1
- package/dist/src/component/KgButton/KgButton.event.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +1 -1
- package/dist/src/component/KgForm/KgForm.event.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +6 -6
- package/dist/src/component/KgSearch/KgSearch.event.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +4 -8
- package/dist/src/component/KgTable/KgTable.event.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.event.d.ts +1 -1
- package/dist/src/component/KgWarehouse/KgWarehouse.event.d.ts +1 -1
- package/dist/src/config/{index.hooks.d.ts → config.hooks.d.ts} +2 -6
- package/dist/src/config/index.d.ts +30 -3
- package/dist/src/const/index.d.ts +2 -3
- package/dist/src/{config/setup/setupKgLocale.d.ts → i18n/i18n.setup.d.ts} +2 -2
- package/dist/src/i18n/index.d.ts +3 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/project/src/hooks/index.d.ts +1 -0
- package/dist/src/project/src/hooks/setting/index.d.ts +2 -0
- package/dist/src/project/src/index.d.ts +1 -0
- package/dist/src/project/src/utils/env.d.ts +0 -2
- package/dist/src/project/src/utils/propTypes.d.ts +9 -0
- package/dist/src/project/types/config.d.ts +0 -3
- package/dist/src/store/index.d.ts +8 -0
- package/dist/src/util/kg-route.util.d.ts +0 -2
- package/dist/src/util/kg.util.d.ts +0 -6
- package/package.json +5 -4
- package/dist/src/config/setup/index.d.ts +0 -3
- package/dist/src/config/setup/setup.d.ts +0 -28
- package/dist/src/config/setup/setupKgStore.d.ts +0 -18
- package/dist/src/const/i18n/index.d.ts +0 -2
- /package/dist/{close-outlined-DMcSQWxQ.adfa0cf3.mjs → close-outlined-DMcSQWxQ.537d8ddf.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.20d450b7.mjs → exclamation-circle-outlined-DZrXCnvM.a3e96b6e.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.bceef6fa.mjs → fullscreen-exit-outlined-X1iYkFc4.37edd487.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.26d588f0.mjs → fullscreen-outlined-DDBrsRcy.db231def.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.761cc44e.mjs → search-outlined-Od1M_oxf.1b143df4.mjs} +0 -0
- /package/dist/src/config/{index.store.d.ts → config.store.d.ts} +0 -0
- /package/dist/src/const/{injection-keys.const.d.ts → const.injection-keys.d.ts} +0 -0
- /package/dist/src/const/{index.vm.d.ts → const.vm.d.ts} +0 -0
- /package/dist/src/{const/i18n → i18n}/en.d.ts +0 -0
- /package/dist/src/{const/i18n → i18n}/es_ES.d.ts +0 -0
- /package/dist/src/{const/i18n → i18n}/fr_FR.d.ts +0 -0
- /package/dist/src/{const/i18n → i18n}/km_KH.d.ts +0 -0
- /package/dist/src/{const/i18n → i18n}/ko_KR.d.ts +0 -0
- /package/dist/src/{const/i18n → i18n}/vi_VN.d.ts +0 -0
- /package/dist/src/{const/i18n → i18n}/zh_CN.d.ts +0 -0
- /package/dist/src/{helper → util}/ant-design-vue.d.ts +0 -0
- /package/dist/src/{helper → util}/tsx.helper.d.ts +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.5f916930.mjs → three-dots-loading-bIlrTJYR.bd624bcf.mjs} +0 -0
@@ -18,7 +18,7 @@ import { configThemePlugin } from './theme';
|
|
18
18
|
import { configVisualizerConfig } from './visualizer';
|
19
19
|
|
20
20
|
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
21
|
-
const { VITE_USE_IMAGEMIN,
|
21
|
+
const { VITE_USE_IMAGEMIN, VITE_LEGACY, VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv;
|
22
22
|
|
23
23
|
const vitePlugins: (PluginOption | PluginOption[])[] = [
|
24
24
|
// have to
|
@@ -13,7 +13,7 @@ export declare type IKgAppSelectOnGotoPathEventListenerParameter = {
|
|
13
13
|
export declare type IKgAppSelectOnGotoPathEventListener = ((param: IKgAppSelectOnGotoPathEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
14
14
|
export declare type IKgAppSelectEventListenerParameter = IKgAppSelectOnGotoAppEventListenerParameter | IKgAppSelectOnGotoPathEventListenerParameter;
|
15
15
|
export declare type IKgAppSelectEventListener = IKgAppSelectOnGotoAppEventListener | IKgAppSelectOnGotoPathEventListener;
|
16
|
-
export declare const
|
16
|
+
export declare const eventListeners: Record<string, {
|
17
17
|
onGotoApp: Array<IKgAppSelectOnGotoAppEventListener>;
|
18
18
|
onGotoPath: Array<IKgAppSelectOnGotoPathEventListener>;
|
19
19
|
}>;
|
@@ -37,7 +37,7 @@ export declare type IKgButtonOnAfterRequestEventListenerParameter = {
|
|
37
37
|
export declare type IKgButtonOnAfterRequestEventListener = ((param: IKgButtonOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
38
38
|
export declare type IKgButtonEventListenerParameter = IKgButtonOnClickEventListenerParameter | IKgButtonOnImportOkEventListenerParameter | IKgButtonOnSubmitSaveEventListenerParameter | IKgButtonOnSubmitCancelEventListenerParameter | IKgButtonOnBeforeRequestEventListenerParameter | IKgButtonOnAfterRequestEventListenerParameter;
|
39
39
|
export declare type IKgButtonEventListener = IKgButtonOnClickEventListener | IKgButtonOnImportOkEventListener | IKgButtonOnSubmitSaveEventListener | IKgButtonOnSubmitCancelEventListener | IKgButtonOnBeforeRequestEventListener | IKgButtonOnAfterRequestEventListener;
|
40
|
-
export declare const
|
40
|
+
export declare const eventListeners: Record<string, {
|
41
41
|
onClick: Array<IKgButtonOnClickEventListener>;
|
42
42
|
onImportOk: Array<IKgButtonOnImportOkEventListener>;
|
43
43
|
onSubmitSave: Array<IKgButtonOnSubmitSaveEventListener>;
|
@@ -153,7 +153,7 @@ export declare type IKgCanvasOnContextMenuCloseEventListenerParameter = {};
|
|
153
153
|
export declare type IKgCanvasOnContextMenuCloseEventListener = ((param: IKgCanvasOnContextMenuCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
154
154
|
export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter | IKgCanvasOnReloadEventListenerParameter | IKgCanvasOnResizeEventListenerParameter | IKgCanvasOnRightClickEventListenerParameter | IKgCanvasOnMouseMoveEventListenerParameter | IKgCanvasOnMouseEnterEventListenerParameter | IKgCanvasOnMouseLeaveEventListenerParameter | IKgCanvasOnClickEventListenerParameter | IKgCanvasOnContextMenuOpenEventListenerParameter | IKgCanvasOnContextMenuCloseEventListenerParameter;
|
155
155
|
export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener | IKgCanvasOnReloadEventListener | IKgCanvasOnResizeEventListener | IKgCanvasOnRightClickEventListener | IKgCanvasOnMouseMoveEventListener | IKgCanvasOnMouseEnterEventListener | IKgCanvasOnMouseLeaveEventListener | IKgCanvasOnClickEventListener | IKgCanvasOnContextMenuOpenEventListener | IKgCanvasOnContextMenuCloseEventListener;
|
156
|
-
export declare const
|
156
|
+
export declare const eventListeners: Record<string, {
|
157
157
|
onClick: Array<IKgCanvasOnClickEventListener>;
|
158
158
|
onContextMenuClose: Array<IKgCanvasOnContextMenuCloseEventListener>;
|
159
159
|
onContextMenuOpen: Array<IKgCanvasOnContextMenuOpenEventListener>;
|
@@ -181,7 +181,7 @@ export declare type IKgFormOnLookupOkEventListenerParameter = {
|
|
181
181
|
export declare type IKgFormOnLookupOkEventListener = ((param: IKgFormOnLookupOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
182
182
|
export declare type IKgFormEventListenerParameter = IKgFormOnChangeEventListenerParameter | IKgFormOnBlurEventListenerParameter | IKgFormOnSelectBeforeRequestEventListenerParameter | IKgFormOnSelectBeforeSetDatasEventListenerParameter | IKgFormOnSelectChangeEventListenerParameter | IKgFormOnLookupBeforeOpenEventListenerParameter | IKgFormOnLookupBeforeOkEventListenerParameter | IKgFormOnLookupOkEventListenerParameter;
|
183
183
|
export declare type IKgFormEventListener = IKgFormOnChangeEventListener | IKgFormOnBlurEventListener | IKgFormOnSelectBeforeRequestEventListener | IKgFormOnSelectBeforeSetDatasEventListener | IKgFormOnSelectChangeEventListener | IKgFormOnLookupBeforeOpenEventListener | IKgFormOnLookupBeforeOkEventListener | IKgFormOnLookupOkEventListener;
|
184
|
-
export declare const
|
184
|
+
export declare const eventListeners: Record<string, {
|
185
185
|
onChange: Array<IKgFormOnChangeEventListener>;
|
186
186
|
onBlur: Array<IKgFormOnBlurEventListener>;
|
187
187
|
onSelectBeforeRequest: Array<IKgFormOnSelectBeforeRequestEventListener>;
|
@@ -136,7 +136,7 @@ export declare const getProps: () => {
|
|
136
136
|
htmlType: {
|
137
137
|
type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
138
138
|
default: string;
|
139
|
-
};
|
139
|
+
}; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
|
140
140
|
shape: {
|
141
141
|
type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
|
142
142
|
};
|
@@ -184,7 +184,7 @@ export declare const getProps: () => {
|
|
184
184
|
htmlType: {
|
185
185
|
type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
186
186
|
default: string;
|
187
|
-
};
|
187
|
+
}; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
|
188
188
|
shape: {
|
189
189
|
type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
|
190
190
|
};
|
@@ -400,7 +400,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
400
400
|
htmlType: {
|
401
401
|
type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
402
402
|
default: string;
|
403
|
-
};
|
403
|
+
}; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
|
404
404
|
shape: {
|
405
405
|
type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
|
406
406
|
};
|
@@ -448,7 +448,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
448
448
|
htmlType: {
|
449
449
|
type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
450
450
|
default: string;
|
451
|
-
};
|
451
|
+
}; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
|
452
452
|
shape: {
|
453
453
|
type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
|
454
454
|
};
|
@@ -662,7 +662,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
662
662
|
htmlType: {
|
663
663
|
type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
664
664
|
default: string;
|
665
|
-
};
|
665
|
+
}; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
|
666
666
|
shape: {
|
667
667
|
type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
|
668
668
|
};
|
@@ -710,7 +710,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
710
710
|
htmlType: {
|
711
711
|
type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
712
712
|
default: string;
|
713
|
-
};
|
713
|
+
}; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
|
714
714
|
shape: {
|
715
715
|
type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
|
716
716
|
};
|
@@ -12,7 +12,7 @@ export declare type IKgSearchOnResetEventListenerParameter = {};
|
|
12
12
|
export declare type IKgSearchOnResetEventListener = ((param: IKgSearchOnResetEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
13
13
|
export declare type IKgSearchEventListenerParameter = IKgSearchOnReadyEventListenerParameter | IKgSearchOnSearchEventListenerParameter | IKgSearchOnResetEventListenerParameter;
|
14
14
|
export declare type IKgSearchEventListener = IKgSearchOnReadyEventListener | IKgSearchOnSearchEventListener | IKgSearchOnResetEventListener;
|
15
|
-
export declare const
|
15
|
+
export declare const eventListeners: Record<string, {
|
16
16
|
onReady: Array<IKgSearchOnReadyEventListener>;
|
17
17
|
onSearch: Array<IKgSearchOnSearchEventListener>;
|
18
18
|
onReset: Array<IKgSearchOnResetEventListener>;
|
@@ -93,7 +93,7 @@ export declare type IKgSubmitOnCloseEventListenerParameter = {} | null | undefin
|
|
93
93
|
export declare type IKgSubmitOnCloseEventListener = ((param: IKgSubmitOnCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
94
94
|
export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter;
|
95
95
|
export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener;
|
96
|
-
export declare const
|
96
|
+
export declare const eventListeners: Record<string, {
|
97
97
|
onBeforeOpen: Array<IKgSubmitOnBeforeOpenEventListener>;
|
98
98
|
onOpen: Array<IKgSubmitOnOpenEventListener>;
|
99
99
|
onBeforeOk: Array<IKgSubmitOnBeforeOkEventListener>;
|
@@ -147,10 +147,10 @@ export interface IUseKgSubmit {
|
|
147
147
|
varName?: string | null;
|
148
148
|
} | null): Array<VarSubmitDetail> | null;
|
149
149
|
/**
|
150
|
-
*
|
151
|
-
*
|
152
|
-
* @deprecated 请使用 {@link formModel}
|
150
|
+
* 是否处于加载状态.
|
153
151
|
*/
|
152
|
+
isLoading: ComputedRef<boolean>;
|
153
|
+
/** @deprecated 请使用 {@link formModel} */
|
154
154
|
model: ComputedRef<Record<string, any>>;
|
155
155
|
/**
|
156
156
|
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
@@ -264,11 +264,7 @@ export interface IUseKgSubmit {
|
|
264
264
|
properties: VarSubmitDetail;
|
265
265
|
varName: string | null | undefined;
|
266
266
|
}): Promise<void>;
|
267
|
-
/**
|
268
|
-
* 表单验证规则.
|
269
|
-
*
|
270
|
-
* @deprecated 请使用 {@link formRules}.
|
271
|
-
*/
|
267
|
+
/** @deprecated 请使用 {@link formRules}. */
|
272
268
|
rules: Ref<Record<string, RuleObject[]>>;
|
273
269
|
/**
|
274
270
|
* <p>「查询按钮」的「提交表单配置」.</p>
|
@@ -49,7 +49,7 @@ export declare type IKgTableOnAfterRequestEventListenerParameter = {
|
|
49
49
|
export declare type IKgTableOnAfterRequestEventListener = ((param: IKgTableOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
50
50
|
export declare type IKgTableEventListenerParameter = IKgTableOnReadyEventListenerParameter | IKgTableOnRowDoubleClickEventListenerParameter | IKgTableOnBeforeParseRequestParameterEventListenerParameter | IKgTableOnBeforeRequestEventListenerParameter | IKgTableOnBeforeSetDatasEventListenerParameter | IKgTableOnAfterRequestEventListenerParameter;
|
51
51
|
export declare type IKgTableEventListener = IKgTableOnReadyEventListener | IKgTableOnRowDoubleClickEventListener | IKgTableOnBeforeParseRequestParameterEventListener | IKgTableOnBeforeRequestEventListener | IKgTableOnBeforeSetDatasEventListener | IKgTableOnAfterRequestEventListener;
|
52
|
-
export declare const
|
52
|
+
export declare const eventListeners: Record<string, {
|
53
53
|
onAfterRequest: Array<IKgTableOnAfterRequestEventListener>;
|
54
54
|
onBeforeParseRequestParameter: Array<IKgTableOnBeforeParseRequestParameterEventListener>;
|
55
55
|
onBeforeRequest: Array<IKgTableOnBeforeRequestEventListener>;
|
@@ -26,7 +26,7 @@ export declare type IKgVarOnUnmountedEventListenerParameter = {
|
|
26
26
|
export declare type IKgVarOnUnmountedEventListener = ((param: IKgVarOnUnmountedEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
27
27
|
export declare type IKgVarEventListenerParameter = IKgVarOnRequestEventListenerParameter | IKgVarOnSetupEventListenerParameter | IKgVarOnUnmountedEventListenerParameter;
|
28
28
|
export declare type IKgVarEventListener = IKgVarOnRequestEventListener | IKgVarOnSetupEventListener | IKgVarOnUnmountedEventListener;
|
29
|
-
export declare const
|
29
|
+
export declare const eventListeners: Record<string, {
|
30
30
|
onRequest: Array<IKgVarOnRequestEventListener>;
|
31
31
|
onSetup: Array<IKgVarOnSetupEventListener>;
|
32
32
|
onUnmounted: Array<IKgVarOnUnmountedEventListener>;
|
@@ -7,7 +7,7 @@ export declare type IKgAppSelectOnGotoAppEventListenerParameter = {};
|
|
7
7
|
export declare type IKgWarehouseOnMountedEventListener = ((param: IKgAppSelectOnGotoAppEventListenerParameter) => void) & IKgEventListener;
|
8
8
|
export declare type IKgAppSelectEventListenerParameter = IKgAppSelectOnGotoAppEventListenerParameter;
|
9
9
|
export declare type IKgWarehouseEventListener = IKgWarehouseOnMountedEventListener;
|
10
|
-
export declare const
|
10
|
+
export declare const eventListeners: Record<string, {
|
11
11
|
onMounted: Array<IKgWarehouseOnMountedEventListener>;
|
12
12
|
}>;
|
13
13
|
/**
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { Pinia } from 'pinia';
|
2
1
|
import { ComputedRef } from 'vue';
|
3
2
|
import { Description } from '../api/WMS/models';
|
4
3
|
import { LocaleType } from '../project/types/config';
|
5
|
-
import { IKgStore, P, T } from './
|
4
|
+
import { IKgStore, P, T } from './config.store';
|
6
5
|
export interface IUseKg {
|
7
6
|
/**
|
8
7
|
* 获取当前语言下的某个描述.
|
@@ -30,7 +29,4 @@ export interface IUseKg {
|
|
30
29
|
/** 翻译. */
|
31
30
|
t: T;
|
32
31
|
}
|
33
|
-
|
34
|
-
* @param pinia 在某些地方调用时(比如在路由守卫中), pinia 尚未初始化, 此时需要手动传入 pinia 实例.
|
35
|
-
*/
|
36
|
-
export declare function useKg(pinia?: Pinia): IUseKg;
|
32
|
+
export declare function useKg(): IUseKg;
|
@@ -1,3 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { App } from 'vue';
|
3
|
+
import { Router } from 'vue-router';
|
4
|
+
import { IKgOption, P } from './config.store';
|
5
|
+
import '@kengic/core.react/index.css';
|
6
|
+
export declare type IKgOptions = {
|
7
|
+
/**
|
8
|
+
* 语言数据.
|
9
|
+
*/
|
10
|
+
I18N: Record<string, any>;
|
11
|
+
app: App;
|
12
|
+
i18n: any;
|
13
|
+
/** 配置参数. */
|
14
|
+
option?: IKgOption;
|
15
|
+
/** 权限方法, 用来判断是否具有某个(某些)权限. */
|
16
|
+
pFunction: P;
|
17
|
+
router: Router;
|
18
|
+
/** 状态数据: 权限. */
|
19
|
+
usePermissionStore: StoreDefinition<any, any, any, any>;
|
20
|
+
/** 状态数据: 用户. */
|
21
|
+
useUserStore: StoreDefinition<any, any, any, any>;
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* 初始.
|
25
|
+
*
|
26
|
+
* @param options 选项参数.
|
27
|
+
*/
|
28
|
+
export declare function setup(options: IKgOptions): Promise<void>;
|
29
|
+
export * from './config.hooks';
|
30
|
+
export * from './config.store';
|
@@ -1,3 +1,2 @@
|
|
1
|
-
export * from './
|
2
|
-
export * from './
|
3
|
-
export * from './injection-keys.const';
|
1
|
+
export * from './const.vm';
|
2
|
+
export * from './const.injection-keys';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { DropMenu } from '
|
2
|
-
import { LocaleSetting, LocaleType } from '
|
1
|
+
import { DropMenu } from '../project/src/components/Dropdown/src/typing';
|
2
|
+
import { LocaleSetting, LocaleType } from '../project/types/config';
|
3
3
|
export declare const LOCALE: {
|
4
4
|
KO_KR: LocaleType;
|
5
5
|
EN: LocaleType;
|
package/dist/src/index.d.ts
CHANGED
@@ -5,7 +5,9 @@ export * from './api/WMS/models';
|
|
5
5
|
export * from './component';
|
6
6
|
export * from './config';
|
7
7
|
export * from './const';
|
8
|
+
export * from './i18n';
|
8
9
|
export * from './page';
|
9
10
|
export * from './service';
|
11
|
+
export * from './store';
|
10
12
|
export * from './util';
|
11
13
|
export * from './project';
|
@@ -3,11 +3,9 @@ export declare function getStorageShortName(): string;
|
|
3
3
|
export declare function getAppEnvConfig(): {
|
4
4
|
VITE_GLOB_APP_TITLE: string;
|
5
5
|
VITE_GLOB_API_URL: string;
|
6
|
-
VITE_USE_MOCK: string;
|
7
6
|
VITE_GLOB_APP_SHORT_NAME: string;
|
8
7
|
VITE_GLOB_API_URL_PREFIX: string | undefined;
|
9
8
|
VITE_GLOB_APP_OPEN_SSO: string;
|
10
|
-
VITE_GLOB_APP_OPEN_QIANKUN: string;
|
11
9
|
VITE_GLOB_APP_CAS_BASE_URL: string;
|
12
10
|
VITE_GLOB_DOMAIN_URL: string;
|
13
11
|
VITE_GLOB_ONLINE_VIEW_URL: string | undefined;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { CSSProperties, VNodeChild } from 'vue';
|
2
|
+
import { VueTypesInterface, VueTypeValidableDef } from 'vue-types';
|
3
|
+
export declare type VueNode = VNodeChild | JSX.Element;
|
4
|
+
declare type PropTypes = VueTypesInterface & {
|
5
|
+
readonly style: VueTypeValidableDef<CSSProperties>;
|
6
|
+
readonly VNodeChild: VueTypeValidableDef<VueNode>;
|
7
|
+
};
|
8
|
+
declare const propTypes: PropTypes;
|
9
|
+
export { propTypes };
|
@@ -100,7 +100,6 @@ export interface GlobConfig {
|
|
100
100
|
domainUrl: string;
|
101
101
|
uploadUrl?: string;
|
102
102
|
openSso?: string;
|
103
|
-
openQianKun?: string;
|
104
103
|
casBaseUrl?: string;
|
105
104
|
viewUrl?: string;
|
106
105
|
urlPrefix?: string;
|
@@ -109,11 +108,9 @@ export interface GlobConfig {
|
|
109
108
|
export interface GlobEnvConfig {
|
110
109
|
VITE_GLOB_APP_TITLE: string;
|
111
110
|
VITE_GLOB_API_URL: string;
|
112
|
-
VITE_USE_MOCK: string;
|
113
111
|
VITE_GLOB_API_URL_PREFIX?: string;
|
114
112
|
VITE_GLOB_APP_SHORT_NAME: string;
|
115
113
|
VITE_GLOB_APP_OPEN_SSO: string;
|
116
|
-
VITE_GLOB_APP_OPEN_QIANKUN: string;
|
117
114
|
VITE_GLOB_APP_CAS_BASE_URL: string;
|
118
115
|
VITE_GLOB_DOMAIN_URL: string;
|
119
116
|
VITE_GLOB_UPLOAD_URL?: string;
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { KG_APP } from '../const';
|
2
2
|
import { Menu } from '../project/src/router/types';
|
3
3
|
export declare class KgRouteUtil {
|
4
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
5
|
-
static addOnlineRoutesForAllApps(routes: any[]): any[];
|
6
4
|
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
7
5
|
static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
|
8
6
|
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
@@ -154,12 +154,6 @@ export declare class KgUtil {
|
|
154
154
|
* @return {} 权限策略.
|
155
155
|
*/
|
156
156
|
static getPermissionType(permissionCode: string | null | undefined): number | null;
|
157
|
-
/**
|
158
|
-
* 给所有模块都添加在线表单的路由.
|
159
|
-
* 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
|
160
|
-
* @param routes 当前路由列表.
|
161
|
-
*/
|
162
|
-
static addOnlineRoutesForAllApps(routes: any[]): any[];
|
163
157
|
/**
|
164
158
|
* 根据菜单地址地址获取菜单.
|
165
159
|
*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.27.1",
|
3
|
+
"version": "0.27.2-beta.1",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -38,8 +38,8 @@
|
|
38
38
|
"@iconify-icons/mdi": "1.2.48",
|
39
39
|
"@iconify-icons/ph": "1.2.5",
|
40
40
|
"@iconify/vue": "4.1.2",
|
41
|
-
"@kengic/core.core": "0.0.1-beta.
|
42
|
-
"@kengic/core.react": "0.0.2-beta.
|
41
|
+
"@kengic/core.core": "0.0.1-beta.22",
|
42
|
+
"@kengic/core.react": "0.0.2-beta.5",
|
43
43
|
"@kengic/pont": "1.2.17-beta.4",
|
44
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
45
45
|
"@thymine/xunee": "0.4.9-beta.8",
|
@@ -96,7 +96,8 @@
|
|
96
96
|
"vue": "3.2.43",
|
97
97
|
"vue-i18n": "9.2.2",
|
98
98
|
"vue-router": "4.1.6",
|
99
|
-
"vue-tsc": "1.8.27"
|
99
|
+
"vue-tsc": "1.8.27",
|
100
|
+
"vue-types": "4.2.1"
|
100
101
|
},
|
101
102
|
"devDependencies": {},
|
102
103
|
"main": "./dist/kengic-vue.js",
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { StoreDefinition } from 'pinia';
|
2
|
-
import { App } from 'vue';
|
3
|
-
import { Router } from 'vue-router';
|
4
|
-
import { IKgOption, P } from '../index.store';
|
5
|
-
import '@kengic/core.react/index.css';
|
6
|
-
export declare type IKgOptions = {
|
7
|
-
/**
|
8
|
-
* 语言数据.
|
9
|
-
*/
|
10
|
-
I18N: Record<string, any>;
|
11
|
-
app: App;
|
12
|
-
i18n: any;
|
13
|
-
/** 配置参数. */
|
14
|
-
option?: IKgOption;
|
15
|
-
/** 权限方法, 用来判断是否具有某个(某些)权限. */
|
16
|
-
pFunction: P;
|
17
|
-
router: Router;
|
18
|
-
/** 状态数据: 权限. */
|
19
|
-
usePermissionStore: StoreDefinition<any, any, any, any>;
|
20
|
-
/** 状态数据: 用户. */
|
21
|
-
useUserStore: StoreDefinition<any, any, any, any>;
|
22
|
-
};
|
23
|
-
/**
|
24
|
-
* 初始.
|
25
|
-
*
|
26
|
-
* @param options 选项参数.
|
27
|
-
*/
|
28
|
-
export declare function setup(options: IKgOptions): Promise<void>;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Pinia } from 'pinia';
|
2
|
-
/**
|
3
|
-
* 配置 pinia 实例.
|
4
|
-
* @param pinia pinia 实例.
|
5
|
-
*/
|
6
|
-
export declare function setPinia(pinia: Pinia): void;
|
7
|
-
/**
|
8
|
-
* 获取 pinia 实例.
|
9
|
-
* @return {} pinia 实例.
|
10
|
-
* @throws Error 如果 pinia 实例为空, 抛错.
|
11
|
-
*/
|
12
|
-
export declare function getPinia(): Pinia | null;
|
13
|
-
/**
|
14
|
-
* 设置 pinia.
|
15
|
-
*
|
16
|
-
* @param pinia pinia.
|
17
|
-
*/
|
18
|
-
export declare function setupKgStore(pinia: Pinia): void;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{search-outlined-Od1M_oxf.761cc44e.mjs → search-outlined-Od1M_oxf.1b143df4.mjs}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{three-dots-loading-bIlrTJYR.5f916930.mjs → three-dots-loading-bIlrTJYR.bd624bcf.mjs}
RENAMED
File without changes
|