@kengic/vue 0.21.1-beta.2 → 0.21.4-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +18792 -18409
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -2
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -2
- package/dist/src/components/KgButton/index.hooks.d.ts +70 -22
- package/dist/src/components/KgButton/index.store.d.ts +56 -18
- package/dist/src/components/KgForm/KgForm.d.ts +36 -36
- package/dist/src/components/KgForm/index.d.ts +48 -48
- package/dist/src/components/KgModal/KgModal.d.ts +428 -90
- package/dist/src/components/KgModal/KgModal.hooks.d.ts +33 -0
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +74 -0
- package/dist/src/components/KgModal/index.d.ts +1 -2
- package/dist/src/components/KgModal/index.vm.d.ts +8 -194
- package/dist/src/components/KgResizable/KgResizable.d.ts +8 -8
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +9 -3
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -10
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +7 -7
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +5 -3
- package/dist/src/components/KgSubmit/components/KgSubmit.VarSubmitConfig.Button.d.ts +7 -0
- package/dist/src/components/KgSubmit/components/{KgSubmit.Header.VarSubmitConfig.d.ts → KgSubmit.VarSubmitConfig.Modal.d.ts} +3 -2
- package/dist/src/components/KgSubmit/index.vm.d.ts +53 -7
- package/dist/src/config/index.hooks.d.ts +6 -29
- package/dist/src/config/index.store.d.ts +6 -4
- package/dist/src/consts/i18n/en.d.ts +1 -1
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
- package/dist/src/consts/index.d.ts +7 -3
- package/dist/src/helpers/ant-design-vue.d.ts +13 -13
- package/dist/src/helpers/tsx.helper.d.ts +16 -6
- package/dist/src/utils/kg.util.d.ts +2 -1
- package/package.json +1 -1
- package/dist/src/components/KgModal/components/KgModal.Close.d.ts +0 -41
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +0 -82
@@ -27,21 +27,23 @@ export declare type IKgOption = {
|
|
27
27
|
[KG_APP.SYS]?: string;
|
28
28
|
};
|
29
29
|
KgModal?: {
|
30
|
-
/**
|
30
|
+
/** 拖拽改变位置. */
|
31
31
|
drag?: {
|
32
32
|
/**
|
33
33
|
* 是否启用功能.
|
34
|
+
*
|
34
35
|
* @default false
|
35
36
|
*/
|
36
37
|
on?: boolean;
|
37
38
|
};
|
38
|
-
/**
|
39
|
-
|
39
|
+
/** 拖拽改变大小. */
|
40
|
+
dragToResize?: {
|
40
41
|
/**
|
41
42
|
* 是否启用功能.
|
43
|
+
*
|
42
44
|
* @default false
|
43
45
|
*/
|
44
|
-
|
46
|
+
isOn?: boolean;
|
45
47
|
};
|
46
48
|
};
|
47
49
|
KgSearch?: {
|
@@ -248,10 +248,14 @@ export declare enum KG_HTTP_HEADERS {
|
|
248
248
|
/** 拼接后的查询 SQL: ORDER BY. */
|
249
249
|
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
|
250
250
|
/**
|
251
|
-
*
|
252
|
-
*
|
251
|
+
* <p>高级查询时, 每个查询字段的操作符(=,>,<...).</p>
|
252
|
+
* <p>是一个 JSON 字符串, 由后端进行解析.</p>
|
253
253
|
*/
|
254
|
-
KG_QUERY_OPERATOR = "Kg-Query-Operator"
|
254
|
+
KG_QUERY_OPERATOR = "Kg-Query-Operator",
|
255
|
+
/**
|
256
|
+
* 仓库编号.
|
257
|
+
*/
|
258
|
+
KG_WAREHOUSE = "Kg-Warehouse"
|
255
259
|
}
|
256
260
|
/** 特殊属性:请求返回的原始响应数据. */
|
257
261
|
export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
@@ -9,11 +9,11 @@ export declare const formProps: () => {
|
|
9
9
|
layout: PropType<"horizontal" | "inline" | "vertical">;
|
10
10
|
labelCol: {
|
11
11
|
type: PropType<Partial<ExtractPropTypes<{
|
12
|
-
span: (
|
13
|
-
order: (
|
14
|
-
offset: (
|
15
|
-
push: (
|
16
|
-
pull: (
|
12
|
+
span: (NumberConstructor | StringConstructor)[];
|
13
|
+
order: (NumberConstructor | StringConstructor)[];
|
14
|
+
offset: (NumberConstructor | StringConstructor)[];
|
15
|
+
push: (NumberConstructor | StringConstructor)[];
|
16
|
+
pull: (NumberConstructor | StringConstructor)[];
|
17
17
|
xs: {
|
18
18
|
type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
19
19
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -43,16 +43,16 @@ export declare const formProps: () => {
|
|
43
43
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
44
44
|
};
|
45
45
|
prefixCls: StringConstructor;
|
46
|
-
flex: (
|
46
|
+
flex: (NumberConstructor | StringConstructor)[];
|
47
47
|
}>> & HTMLAttributes>;
|
48
48
|
};
|
49
49
|
wrapperCol: {
|
50
50
|
type: PropType<Partial<ExtractPropTypes<{
|
51
|
-
span: (
|
52
|
-
order: (
|
53
|
-
offset: (
|
54
|
-
push: (
|
55
|
-
pull: (
|
51
|
+
span: (NumberConstructor | StringConstructor)[];
|
52
|
+
order: (NumberConstructor | StringConstructor)[];
|
53
|
+
offset: (NumberConstructor | StringConstructor)[];
|
54
|
+
push: (NumberConstructor | StringConstructor)[];
|
55
|
+
pull: (NumberConstructor | StringConstructor)[];
|
56
56
|
xs: {
|
57
57
|
type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
58
58
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -82,7 +82,7 @@ export declare const formProps: () => {
|
|
82
82
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
83
83
|
};
|
84
84
|
prefixCls: StringConstructor;
|
85
|
-
flex: (
|
85
|
+
flex: (NumberConstructor | StringConstructor)[];
|
86
86
|
}>> & HTMLAttributes>;
|
87
87
|
};
|
88
88
|
colon: {
|
@@ -166,7 +166,7 @@ export declare const modalProps: () => {
|
|
166
166
|
type: BooleanConstructor;
|
167
167
|
default: undefined;
|
168
168
|
};
|
169
|
-
width: (
|
169
|
+
width: (NumberConstructor | StringConstructor)[];
|
170
170
|
footer: PropType<any>;
|
171
171
|
okText: PropType<any>;
|
172
172
|
okType: PropType<LegacyButtonType>;
|
@@ -1,13 +1,23 @@
|
|
1
1
|
import { Slots } from 'vue';
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* 根据名称渲染单个插槽.
|
4
|
+
*
|
5
|
+
* @param param.slots 插槽对象.
|
6
|
+
* @param param.name 插槽名称.
|
4
7
|
*/
|
5
|
-
export declare function renderSlot(
|
8
|
+
export declare function renderSlot(param: {
|
9
|
+
slots: Slots;
|
10
|
+
name: string;
|
11
|
+
}): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
6
12
|
[key: string]: any;
|
7
13
|
}>[] | null;
|
8
14
|
/**
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* @param
|
15
|
+
* 渲染插槽.
|
16
|
+
*
|
17
|
+
* @param param.slots 插槽对象.
|
18
|
+
* @param param.excludeSlots 要排除的插槽名称.
|
12
19
|
*/
|
13
|
-
export declare function renderSlots(
|
20
|
+
export declare function renderSlots(param: {
|
21
|
+
slots: Slots;
|
22
|
+
excludeSlots?: string[];
|
23
|
+
}): any;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.21.
|
3
|
+
"version": "0.21.4-beta.0",
|
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",
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
|
-
import './KgModal.Close.less';
|
3
|
-
export declare const getProps: () => {
|
4
|
-
/** 是否显示全屏按钮. */
|
5
|
-
kgShowFullscreenButton: {
|
6
|
-
type: PropType<boolean>;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
/** 是否显示关闭按钮. */
|
10
|
-
kgShowCloseButton: {
|
11
|
-
type: PropType<boolean>;
|
12
|
-
default: boolean;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
declare const _default: import("vue").DefineComponent<{
|
16
|
-
/** 是否显示全屏按钮. */
|
17
|
-
kgShowFullscreenButton: {
|
18
|
-
type: PropType<boolean>;
|
19
|
-
default: boolean;
|
20
|
-
};
|
21
|
-
/** 是否显示关闭按钮. */
|
22
|
-
kgShowCloseButton: {
|
23
|
-
type: PropType<boolean>;
|
24
|
-
default: boolean;
|
25
|
-
};
|
26
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
27
|
-
/** 是否显示全屏按钮. */
|
28
|
-
kgShowFullscreenButton: {
|
29
|
-
type: PropType<boolean>;
|
30
|
-
default: boolean;
|
31
|
-
};
|
32
|
-
/** 是否显示关闭按钮. */
|
33
|
-
kgShowCloseButton: {
|
34
|
-
type: PropType<boolean>;
|
35
|
-
default: boolean;
|
36
|
-
};
|
37
|
-
}>>, {
|
38
|
-
kgShowFullscreenButton: boolean;
|
39
|
-
kgShowCloseButton: boolean;
|
40
|
-
}>;
|
41
|
-
export default _default;
|
@@ -1,82 +0,0 @@
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import './KgSubmit.Header.less';
|
3
|
-
export declare const getProps: () => {
|
4
|
-
/** 是否全屏. */
|
5
|
-
isFullscreen: {
|
6
|
-
type: PropType<boolean>;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
'onUpdate:isFullscreen': PropType<(value: boolean) => void>;
|
10
|
-
/**
|
11
|
-
* 是否显示头部右侧的全屏按钮.
|
12
|
-
* @default undefined
|
13
|
-
*/
|
14
|
-
kgShowFullscreenButton: {
|
15
|
-
type: PropType<boolean>;
|
16
|
-
default: undefined;
|
17
|
-
};
|
18
|
-
/**
|
19
|
-
* 是否显示头部右侧的设置按钮.
|
20
|
-
* @default true
|
21
|
-
*/ kgShowConfigButton: {
|
22
|
-
type: PropType<boolean>;
|
23
|
-
default: boolean;
|
24
|
-
};
|
25
|
-
onKgCancel: PropType<() => void>;
|
26
|
-
};
|
27
|
-
export declare type IKgSubmitHeaderProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
28
|
-
declare const _default: import("vue").DefineComponent<{
|
29
|
-
/** 是否全屏. */
|
30
|
-
isFullscreen: {
|
31
|
-
type: PropType<boolean>;
|
32
|
-
default: boolean;
|
33
|
-
};
|
34
|
-
'onUpdate:isFullscreen': PropType<(value: boolean) => void>;
|
35
|
-
/**
|
36
|
-
* 是否显示头部右侧的全屏按钮.
|
37
|
-
* @default undefined
|
38
|
-
*/
|
39
|
-
kgShowFullscreenButton: {
|
40
|
-
type: PropType<boolean>;
|
41
|
-
default: undefined;
|
42
|
-
};
|
43
|
-
/**
|
44
|
-
* 是否显示头部右侧的设置按钮.
|
45
|
-
* @default true
|
46
|
-
*/ kgShowConfigButton: {
|
47
|
-
type: PropType<boolean>;
|
48
|
-
default: boolean;
|
49
|
-
};
|
50
|
-
onKgCancel: PropType<() => void>;
|
51
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:isFullscreen" | "kgCancel")[], "update:isFullscreen" | "kgCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
52
|
-
/** 是否全屏. */
|
53
|
-
isFullscreen: {
|
54
|
-
type: PropType<boolean>;
|
55
|
-
default: boolean;
|
56
|
-
};
|
57
|
-
'onUpdate:isFullscreen': PropType<(value: boolean) => void>;
|
58
|
-
/**
|
59
|
-
* 是否显示头部右侧的全屏按钮.
|
60
|
-
* @default undefined
|
61
|
-
*/
|
62
|
-
kgShowFullscreenButton: {
|
63
|
-
type: PropType<boolean>;
|
64
|
-
default: undefined;
|
65
|
-
};
|
66
|
-
/**
|
67
|
-
* 是否显示头部右侧的设置按钮.
|
68
|
-
* @default true
|
69
|
-
*/ kgShowConfigButton: {
|
70
|
-
type: PropType<boolean>;
|
71
|
-
default: boolean;
|
72
|
-
};
|
73
|
-
onKgCancel: PropType<() => void>;
|
74
|
-
}>> & {
|
75
|
-
"onUpdate:isFullscreen"?: ((...args: any[]) => any) | undefined;
|
76
|
-
onKgCancel?: ((...args: any[]) => any) | undefined;
|
77
|
-
}, {
|
78
|
-
kgShowFullscreenButton: boolean;
|
79
|
-
kgShowConfigButton: boolean;
|
80
|
-
isFullscreen: boolean;
|
81
|
-
}>;
|
82
|
-
export default _default;
|