@kengic/vue 0.6.4 → 0.6.6
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 +1991 -1931
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +1 -10
- 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 +2 -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 +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -9
- 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/index.hooks.d.ts +3 -1
- package/dist/src/components/KgTable/index.store.d.ts +20 -10
- package/dist/src/components/KgTable/index.vm.d.ts +9 -2
- 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/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
@@ -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;
|
@@ -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;
|
@@ -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