@kengic/vue 0.27.2-beta.0 → 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 +57179 -56362
- package/dist/project/build/vite/plugin/index.ts +1 -1
- package/dist/project/types/global.d.ts +0 -1
- package/dist/src/component/KgModal/KgModal.d.ts +6 -6
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +4 -8
- 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 +3 -2
- 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/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
@@ -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
|
@@ -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
|
};
|
@@ -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>
|
@@ -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.2-beta.
|
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",
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|