@kengic/vue 0.6.5 → 0.6.7
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 +3639 -3572
- package/dist/src/components/KgButton/KgButton.d.ts +3 -3
- package/dist/src/components/KgButton/index.d.ts +4 -4
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -12
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +5 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +4 -13
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +97 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +4 -11
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +18 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +2 -8
- package/dist/src/components/KgTable/KgTable.d.ts +21 -1
- package/dist/src/components/KgTable/KgTable.hooks.d.ts +2 -1
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +20 -1
- package/dist/src/components/KgTable/index.vm.d.ts +10 -3
- package/dist/src/components/KgVar/KgVar.d.ts +10 -10
- package/dist/src/components/KgVar/index.hooks.d.ts +8 -4
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/components/KgVar/index.vm.d.ts +13 -1
- package/dist/src/consts/index.d.ts +6 -2
- package/package.json +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.hooks.d.ts +0 -5
@@ -1,3 +1,23 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
1
2
|
import './KgTable.less';
|
2
|
-
declare const
|
3
|
+
export declare const getProps: () => {
|
4
|
+
kgDisabled: {
|
5
|
+
type: PropType<boolean>;
|
6
|
+
default: undefined;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
export declare type IKgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
11
|
+
kgDisabled: {
|
12
|
+
type: PropType<boolean>;
|
13
|
+
default: undefined;
|
14
|
+
};
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
16
|
+
kgDisabled: {
|
17
|
+
type: PropType<boolean>;
|
18
|
+
default: undefined;
|
19
|
+
};
|
20
|
+
}>>, {
|
21
|
+
kgDisabled: boolean;
|
22
|
+
}>;
|
3
23
|
export default _default;
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
2
|
import { ComputedRef, Ref, UnwrapRef } from 'vue';
|
3
3
|
import { IKgTableRow } from './index.vm';
|
4
|
+
import { IKgTableProps } from './KgTable';
|
4
5
|
export declare type IUseColumns = {
|
5
6
|
/** 表格的列. */
|
6
7
|
columns: ComputedRef<ColumnsType<IKgTableRow>>;
|
7
8
|
/** 横向滚动宽度. */
|
8
9
|
scrollX: ComputedRef<string>;
|
9
10
|
};
|
10
|
-
export declare function _useColumns(): IUseColumns;
|
11
|
+
export declare function _useColumns(props: IKgTableProps): IUseColumns;
|
11
12
|
export declare type IUseLoading = {
|
12
13
|
/** 是否显示加载状态. */
|
13
14
|
isLoading: ComputedRef<boolean>;
|
@@ -1,3 +1,22 @@
|
|
1
|
+
import { PropType } from 'vue';
|
1
2
|
import './KgTable.Setting.less';
|
2
|
-
declare const
|
3
|
+
export declare const getProps: () => {
|
4
|
+
kgDisabled: {
|
5
|
+
type: PropType<boolean>;
|
6
|
+
default: undefined;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
10
|
+
kgDisabled: {
|
11
|
+
type: PropType<boolean>;
|
12
|
+
default: undefined;
|
13
|
+
};
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
kgDisabled: {
|
16
|
+
type: PropType<boolean>;
|
17
|
+
default: undefined;
|
18
|
+
};
|
19
|
+
}>>, {
|
20
|
+
kgDisabled: boolean;
|
21
|
+
}>;
|
3
22
|
export default _default;
|
@@ -110,11 +110,11 @@ export interface IKgTableCellDisplayTypeProperties {
|
|
110
110
|
};
|
111
111
|
}
|
112
112
|
/**
|
113
|
-
* 对应于 {@link VarVariableConfig.ctrl_prop} 字段,
|
113
|
+
* 对应于 {@link VarVariableConfig.ctrl_prop} 字段, 给不同类型的表单控件设置额外参数.
|
114
114
|
* @see VarVariableConfig.ctrl_prop
|
115
115
|
* @see KG_FORM_ITEM_TYPE
|
116
116
|
*/
|
117
|
-
export interface
|
117
|
+
export interface IKgFormItemTypeProperties {
|
118
118
|
CHECKBOX_GROUP: {
|
119
119
|
/**
|
120
120
|
* 数据项的宽度.
|
@@ -124,6 +124,13 @@ export interface IKgFormItemProperties {
|
|
124
124
|
/** 要排除哪些值. */
|
125
125
|
excludeValues?: Array<any>;
|
126
126
|
};
|
127
|
+
RADIO_GROUP: {
|
128
|
+
/**
|
129
|
+
* 数据项的宽度.
|
130
|
+
* @default 24
|
131
|
+
*/
|
132
|
+
span?: number;
|
133
|
+
};
|
127
134
|
}
|
128
135
|
/** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
|
129
136
|
export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
|
@@ -136,4 +143,4 @@ export declare const KG_TABLE_TD_CHECK_WIDTH = 32;
|
|
136
143
|
/** 序号列的宽度. */
|
137
144
|
export declare const KG_TABLE_TD_INDEX_WIDTH = 40;
|
138
145
|
/** 在表格内创建时, 空白行的临时主键. */
|
139
|
-
export declare const
|
146
|
+
export declare const KG_TABLE_TEMP_ID = "__KG_TABLE_TEMP_ID";
|
@@ -1,28 +1,28 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import { IKgSlots } from './index.vm';
|
2
|
+
import { IKgProps, IKgSlots } from './index.vm';
|
3
3
|
import './KgVar.less';
|
4
4
|
export declare const getProps: () => {
|
5
|
-
/** 插槽. */
|
5
|
+
/** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
|
6
6
|
kgSlots: PropType<IKgSlots>;
|
7
|
+
/** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
|
8
|
+
kgProps: PropType<IKgProps>;
|
7
9
|
/** 是否使用灰色背景. */
|
8
10
|
KgBackgroundGray: PropType<boolean>;
|
9
|
-
/** 给 KgSubmit 添加的额外样式. */
|
10
|
-
kgSubmitClass: PropType<string>;
|
11
11
|
};
|
12
12
|
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
13
13
|
declare const _default: import("vue").DefineComponent<{
|
14
|
-
/** 插槽. */
|
14
|
+
/** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
|
15
15
|
kgSlots: PropType<IKgSlots>;
|
16
|
+
/** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
|
17
|
+
kgProps: PropType<IKgProps>;
|
16
18
|
/** 是否使用灰色背景. */
|
17
19
|
KgBackgroundGray: PropType<boolean>;
|
18
|
-
/** 给 KgSubmit 添加的额外样式. */
|
19
|
-
kgSubmitClass: PropType<string>;
|
20
20
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
21
|
-
/** 插槽. */
|
21
|
+
/** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
|
22
22
|
kgSlots: PropType<IKgSlots>;
|
23
|
+
/** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
|
24
|
+
kgProps: PropType<IKgProps>;
|
23
25
|
/** 是否使用灰色背景. */
|
24
26
|
KgBackgroundGray: PropType<boolean>;
|
25
|
-
/** 给 KgSubmit 添加的额外样式. */
|
26
|
-
kgSubmitClass: PropType<string>;
|
27
27
|
}>>, {}>;
|
28
28
|
export default _default;
|
@@ -8,24 +8,28 @@ export declare type IUseKgVar = {
|
|
8
8
|
/** 状态数据. */
|
9
9
|
store: IKgVarStore;
|
10
10
|
/** 正在查询变量配置. */
|
11
|
-
|
11
|
+
isRetrieving: ComputedRef<ReturnType<IKgVarStore['isRetrieving']>>;
|
12
12
|
/** 正在查询 VarProfileMaster. */
|
13
13
|
isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
|
14
14
|
/** 正在查询 VarGridMaster. */
|
15
15
|
isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
|
16
16
|
/** 正在创建. */
|
17
17
|
isCreating: ComputedRef<ReturnType<IKgVarStore['isCreating']>>;
|
18
|
+
/** 正在创建:正在调用接口. */
|
18
19
|
isCreatingRequesting: ComputedRef<ReturnType<IKgVarStore['isCreatingRequesting']>>;
|
19
20
|
/** 正在更新. */
|
20
21
|
isUpdating: ComputedRef<ReturnType<IKgVarStore['isUpdating']>>;
|
22
|
+
/** 正在更新:正在调用接口. */
|
21
23
|
isUpdatingRequesting: ComputedRef<ReturnType<IKgVarStore['isUpdatingRequesting']>>;
|
22
24
|
/** 正在复制. */
|
23
25
|
isCopying: ComputedRef<ReturnType<IKgVarStore['isCopying']>>;
|
26
|
+
/** 正在复制:正在调用接口. */
|
24
27
|
isCopyingRequesting: ComputedRef<ReturnType<IKgVarStore['isCopyingRequesting']>>;
|
25
28
|
/** 正在删除. */
|
26
29
|
isDeleting: ComputedRef<ReturnType<IKgVarStore['isDeleting']>>;
|
30
|
+
/** 正在删除:正在调用接口. */
|
27
31
|
isDeletingRequesting: ComputedRef<ReturnType<IKgVarStore['isDeletingRequesting']>>;
|
28
|
-
/**
|
32
|
+
/** 其他按钮:正在调用接口. */
|
29
33
|
isOtherRequesting: ComputedRef<ReturnType<IKgVarStore['isOtherRequesting']>>;
|
30
34
|
/** 所有的 VarButton 列表. */
|
31
35
|
varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
|
@@ -64,7 +68,7 @@ export declare type IUseKgVar = {
|
|
64
68
|
* 2. 在任意页面中, 想要访问其他界面标识对应的页面的数据, 需要传入该'界面标识'.
|
65
69
|
* 3. 在组件外(setup 外面)调用时, 必须传入'界面标识'.
|
66
70
|
* @param formID 界面标识.
|
67
|
-
* @param init 是否要初始化界面. 在'宿主页面'第一次调用时, 需要传 true, 对该页面做初始化.
|
68
|
-
* @param level 层级.
|
71
|
+
* @param init 是否要初始化界面. 在'宿主页面'第一次调用时, 需要传 true, 对该页面做初始化. 默认为 undefined.
|
72
|
+
* @param level 层级. 默认为 0.
|
69
73
|
*/
|
70
74
|
export declare function useKgVar(formID?: string | null, init?: boolean, level?: number): IUseKgVar;
|
@@ -79,7 +79,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
79
79
|
getTopFormIDs(): Array<string>;
|
80
80
|
/** 获取界面层级. */
|
81
81
|
getFormLevel(): (formID?: string | null) => number;
|
82
|
-
|
82
|
+
isRetrieving(): (formID?: string | null) => boolean | null;
|
83
83
|
isRetrievingVarProfileMaster(): (formID?: string | null) => boolean | null;
|
84
84
|
isRetrievingVarGridMaster(): (formID?: string | null) => boolean | null;
|
85
85
|
isCreating(): (formID?: string | null) => boolean | null;
|
@@ -1,6 +1,10 @@
|
|
1
|
-
import { InjectionKey } from 'vue';
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
2
|
+
import { IKgButtonProps } from '../KgButton';
|
2
3
|
import { IKgFormItemSlotControlParam } from '../KgForm.Item/index.vm';
|
4
|
+
import { IKgSearchProps } from '../KgSearch';
|
5
|
+
import { IKgSubmitProps } from '../KgSubmit';
|
3
6
|
import { IKgTableSlotParams } from '../KgTable';
|
7
|
+
import { IKgTableProps } from '../KgTable/KgTable';
|
4
8
|
export declare type IKgSlots = {
|
5
9
|
/** KgTable 下面. */
|
6
10
|
afterKgTable?: () => any;
|
@@ -25,3 +29,11 @@ export declare type IKgSlots = {
|
|
25
29
|
};
|
26
30
|
/** 注入 kgSlots 参数. */
|
27
31
|
export declare const DI_KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
32
|
+
export declare type IKgProps = {
|
33
|
+
KgSearch?: IKgSearchProps;
|
34
|
+
KgButton?: IKgButtonProps;
|
35
|
+
KgSubmit?: IKgSubmitProps;
|
36
|
+
KgTable?: IKgTableProps;
|
37
|
+
};
|
38
|
+
/** 注入 kgProps 参数. */
|
39
|
+
export declare const DI_KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
@@ -29,13 +29,17 @@ export declare const enum KG_FORM_ITEM_TYPE {
|
|
29
29
|
INPUT = "INPUT",
|
30
30
|
/** 密码. */
|
31
31
|
INPUT_PASSWORD = "INPUT_PASSWORD",
|
32
|
-
/** 多行文本. */
|
33
|
-
INPUT_AREA = "INPUT_AREA",
|
34
32
|
/** 数字. */
|
35
33
|
INPUT_NUMBER = "INPUT_NUMBER",
|
34
|
+
/** 多行文本. */
|
35
|
+
TEXT_AREA = "TEXT_AREA",
|
36
|
+
/** 多选框. */
|
36
37
|
CHECKBOX = "CHECKBOX",
|
38
|
+
/** 多选框列表. */
|
37
39
|
CHECKBOX_GROUP = "CHECKBOX_GROUP",
|
40
|
+
/** 单选框列表. */
|
38
41
|
RADIO_GROUP = "RADIO_GROUP",
|
42
|
+
/** 开关. */
|
39
43
|
SWITCH = "SWITCH",
|
40
44
|
/** 下拉列表单选. */
|
41
45
|
SELECT = "SELECT",
|
package/package.json
CHANGED