@kengic/vue 0.10.0 → 0.10.2-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +1287 -1247
  3. package/dist/src/{components → src/components}/KgForm/index.hooks.d.ts +6 -1
  4. package/dist/src/{components → src/components}/KgForm/index.store.d.ts +13 -3
  5. package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -0
  6. package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +2 -0
  7. package/dist/src/{components → src/components}/KgSubmit/index.hooks.d.ts +1 -6
  8. package/dist/src/{components → src/components}/KgSubmit/index.store.d.ts +3 -16
  9. package/dist/src/{components → src/components}/KgTable/index.store.d.ts +5 -0
  10. package/dist/src/{components → src/components}/KgVar/index.store.d.ts +7 -0
  11. package/dist/src/{consts → src/consts}/i18n/en.d.ts +2 -0
  12. package/dist/src/{consts → src/consts}/i18n/zh_CN.d.ts +2 -0
  13. package/package.json +2 -2
  14. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Add.d.ts +0 -0
  15. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Delete.d.ts +0 -0
  16. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -0
  17. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Edit.d.ts +0 -0
  18. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -0
  19. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -0
  20. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/List.d.ts +0 -0
  21. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/QueryById.d.ts +0 -0
  22. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/index.d.ts +0 -0
  23. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/GetAll.d.ts +0 -0
  24. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/index.d.ts +0 -0
  25. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -0
  26. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -0
  27. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
  28. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -0
  29. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
  30. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -0
  31. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -0
  32. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -0
  33. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -0
  34. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -0
  35. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -0
  36. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -0
  37. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -0
  38. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -0
  39. /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/ListVO.d.ts +0 -0
  40. /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/index.d.ts +0 -0
  41. /package/dist/src/{apis → src/apis}/WMS/Controllers/index.d.ts +0 -0
  42. /package/dist/src/{apis → src/apis}/WMS/index.d.ts +0 -0
  43. /package/dist/src/{apis → src/apis}/WMS/models.d.ts +0 -0
  44. /package/dist/src/{apis → src/apis}/api.d.ts +0 -0
  45. /package/dist/src/{apis → src/apis}/def.d.ts +0 -0
  46. /package/dist/src/{apis → src/apis}/index.d.ts +0 -0
  47. /package/dist/src/{components → src/components}/KgAppSelect/KgAppSelect.d.ts +0 -0
  48. /package/dist/src/{components → src/components}/KgAppSelect/index.d.ts +0 -0
  49. /package/dist/src/{components → src/components}/KgAppSelect/index.hooks.d.ts +0 -0
  50. /package/dist/src/{components → src/components}/KgAppSelect/index.store.d.ts +0 -0
  51. /package/dist/src/{components → src/components}/KgButton/KgButton.Item.d.ts +0 -0
  52. /package/dist/src/{components → src/components}/KgButton/KgButton.Item.data.d.ts +0 -0
  53. /package/dist/src/{components → src/components}/KgButton/KgButton.d.ts +0 -0
  54. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Copy.d.ts +0 -0
  55. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Create.d.ts +0 -0
  56. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Delete.d.ts +0 -0
  57. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Export.d.ts +0 -0
  58. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Import.d.ts +0 -0
  59. /package/dist/src/{components → src/components}/KgButton/components/KgButton.ImportTemplate.d.ts +0 -0
  60. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Other.d.ts +0 -0
  61. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Search.d.ts +0 -0
  62. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Update.d.ts +0 -0
  63. /package/dist/src/{components → src/components}/KgButton/index.d.ts +0 -0
  64. /package/dist/src/{components → src/components}/KgButton/index.hooks.d.ts +0 -0
  65. /package/dist/src/{components → src/components}/KgButton/index.store.d.ts +0 -0
  66. /package/dist/src/{components → src/components}/KgForm/KgForm.d.ts +0 -0
  67. /package/dist/src/{components → src/components}/KgForm/index.d.ts +0 -0
  68. /package/dist/src/{components → src/components}/KgForm/index.vm.d.ts +0 -0
  69. /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.d.ts +0 -0
  70. /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.hooks.d.ts +0 -0
  71. /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
  72. /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
  73. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -0
  74. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -0
  75. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -0
  76. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -0
  77. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -0
  78. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -0
  79. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -0
  80. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -0
  81. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -0
  82. /package/dist/src/{components → src/components}/KgForm.Item/index.d.ts +0 -0
  83. /package/dist/src/{components → src/components}/KgForm.Item/index.vm.d.ts +0 -0
  84. /package/dist/src/{components → src/components}/KgModal/KgModal.d.ts +0 -0
  85. /package/dist/src/{components → src/components}/KgModal/components/KgModal.Close.d.ts +0 -0
  86. /package/dist/src/{components → src/components}/KgModal/index.d.ts +0 -0
  87. /package/dist/src/{components → src/components}/KgModal/index.vm.d.ts +0 -0
  88. /package/dist/src/{components → src/components}/KgProgressA/KgProgressA.d.ts +0 -0
  89. /package/dist/src/{components → src/components}/KgProgressA/index.d.ts +0 -0
  90. /package/dist/src/{components → src/components}/KgResizable/KgResizable.d.ts +0 -0
  91. /package/dist/src/{components → src/components}/KgResizable/index.d.ts +0 -0
  92. /package/dist/src/{components → src/components}/KgSearch/KgSearch.d.ts +0 -0
  93. /package/dist/src/{components → src/components}/KgSearch/KgSearch.hooks.d.ts +0 -0
  94. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -0
  95. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -0
  96. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -0
  97. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -0
  98. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
  99. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.data.d.ts +0 -0
  100. /package/dist/src/{components → src/components}/KgSearch/index.d.ts +0 -0
  101. /package/dist/src/{components → src/components}/KgSearch/index.hooks.d.ts +0 -0
  102. /package/dist/src/{components → src/components}/KgSearch/index.store.d.ts +0 -0
  103. /package/dist/src/{components → src/components}/KgSearch/index.vm.d.ts +0 -0
  104. /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.d.ts +0 -0
  105. /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.hooks.d.ts +0 -0
  106. /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -0
  107. /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.d.ts +0 -0
  108. /package/dist/src/{components → src/components}/KgSubmit/index.d.ts +0 -0
  109. /package/dist/src/{components → src/components}/KgSubmit/index.vm.d.ts +0 -0
  110. /package/dist/src/{components → src/components}/KgTable/KgTable.d.ts +0 -0
  111. /package/dist/src/{components → src/components}/KgTable/KgTable.hooks.d.ts +0 -0
  112. /package/dist/src/{components → src/components}/KgTable/components/KgTable.Cell.d.ts +0 -0
  113. /package/dist/src/{components → src/components}/KgTable/components/KgTable.Info.d.ts +0 -0
  114. /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
  115. /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
  116. /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -0
  117. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -0
  118. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -0
  119. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -0
  120. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
  121. /package/dist/src/{components → src/components}/KgTable/index.d.ts +0 -0
  122. /package/dist/src/{components → src/components}/KgTable/index.hooks.d.ts +0 -0
  123. /package/dist/src/{components → src/components}/KgTable/index.vm.d.ts +0 -0
  124. /package/dist/src/{components → src/components}/KgVar/KgVar.d.ts +0 -0
  125. /package/dist/src/{components → src/components}/KgVar/index.d.ts +0 -0
  126. /package/dist/src/{components → src/components}/KgVar/index.hooks.d.ts +0 -0
  127. /package/dist/src/{components → src/components}/KgVar/index.store.service.d.ts +0 -0
  128. /package/dist/src/{components → src/components}/KgVar/index.vm.d.ts +0 -0
  129. /package/dist/src/{components → src/components}/KgVarConfig/KgVarConfig.d.ts +0 -0
  130. /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -0
  131. /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -0
  132. /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
  133. /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
  134. /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
  135. /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -0
  136. /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
  137. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -0
  138. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -0
  139. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -0
  140. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -0
  141. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -0
  142. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -0
  143. /package/dist/src/{components → src/components}/KgVarConfig/index.d.ts +0 -0
  144. /package/dist/src/{components → src/components}/KgVarConfig/index.store.d.ts +0 -0
  145. /package/dist/src/{components → src/components}/KgVarConfig/index.vm.d.ts +0 -0
  146. /package/dist/src/{components → src/components}/KgWarehouse/KgWarehouse.d.ts +0 -0
  147. /package/dist/src/{components → src/components}/KgWarehouse/index.d.ts +0 -0
  148. /package/dist/src/{components → src/components}/KgWarehouse/index.guard.d.ts +0 -0
  149. /package/dist/src/{components → src/components}/KgWarehouse/index.hooks.d.ts +0 -0
  150. /package/dist/src/{components → src/components}/KgWarehouse/index.store.d.ts +0 -0
  151. /package/dist/src/{components → src/components}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
  152. /package/dist/src/{components → src/components}/KgYesOrNo/index.d.ts +0 -0
  153. /package/dist/src/{components → src/components}/index.d.ts +0 -0
  154. /package/dist/src/{components → src/components}/util.d.ts +0 -0
  155. /package/dist/src/{config → src/config}/index.d.ts +0 -0
  156. /package/dist/src/{config → src/config}/index.hooks.d.ts +0 -0
  157. /package/dist/src/{config → src/config}/index.store.d.ts +0 -0
  158. /package/dist/src/{config → src/config}/setup.d.ts +0 -0
  159. /package/dist/src/{consts → src/consts}/i18n/index.d.ts +0 -0
  160. /package/dist/src/{consts → src/consts}/index.d.ts +0 -0
  161. /package/dist/src/{consts → src/consts}/index.vm.d.ts +0 -0
  162. /package/dist/src/{consts → src/consts}/injection-keys.const.d.ts +0 -0
  163. /package/dist/src/{helpers → src/helpers}/ant-design-vue.d.ts +0 -0
  164. /package/dist/src/{helpers → src/helpers}/tsx.helper.d.ts +0 -0
  165. /package/dist/src/{index.d.ts → src/index.d.ts} +0 -0
  166. /package/dist/src/{services → src/services}/http-client.d.ts +0 -0
  167. /package/dist/src/{services → src/services}/index.d.ts +0 -0
  168. /package/dist/src/{utils → src/utils}/dom.util.d.ts +0 -0
  169. /package/dist/src/{utils → src/utils}/index.d.ts +0 -0
  170. /package/dist/src/{utils → src/utils}/kg.util.d.ts +0 -0
  171. /package/dist/src/{utils → src/utils}/logger.util.d.ts +0 -0
  172. /package/dist/src/{utils → src/utils}/route.util.d.ts +0 -0
  173. /package/dist/src/{utils → src/utils}/var.util.d.ts +0 -0
@@ -1,9 +1,14 @@
1
1
  import { IRemoveEventListenerHandler } from '../../consts';
2
- import { IKgFormLookupBeforeOkCb, IKgFormLookupOkCb, IKgFormStore } from './index.store';
2
+ import { IKgFormLookupBeforeOkCb, IKgFormLookupOkCb, IKgFormSelectChangeCb, IKgFormStore } from './index.store';
3
3
  export declare type IUseKgForm = {
4
4
  formID: string;
5
5
  /** 状态数据. */
6
6
  store: IKgFormStore;
7
+ /** 监听事件: 下拉列表选中某个(可能多个)数据.
8
+ * @param cb 回调函数.
9
+ * @param once 是否只会触发一次. 默认为 undefined.
10
+ */
11
+ onSelectChange(cb: IKgFormSelectChangeCb, once?: boolean): IRemoveEventListenerHandler;
7
12
  /**
8
13
  * 监听事件: 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件.
9
14
  * @param cb 回调函数.
@@ -4,10 +4,19 @@ import { IKgEventCb } from '../../consts';
4
4
  import { IKgTableRow } from '../KgTable';
5
5
  /**
6
6
  * 事件类型.
7
+ * 'selectChange': 下拉列表选中某个(可能多个)数据
7
8
  * 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
8
9
  * 'lookupOk': 查找弹窗点击确定
9
10
  */
10
- export declare type IKgFormEvent = 'lookupBeforeOk' | 'lookupOk';
11
+ export declare type IKgFormEvent = 'selectChange' | 'lookupBeforeOk' | 'lookupOk';
12
+ /** 事件监听函数: selectChange. */
13
+ export declare type IKgFormSelectChangeCbParam = {
14
+ /** 变量. */
15
+ var_nam: string;
16
+ /** 选中的一个或者多个数据对象. */
17
+ rows: any | null;
18
+ };
19
+ export declare type IKgFormSelectChangeCb = ((param: IKgFormSelectChangeCbParam) => Promise<boolean>) & IKgEventCb;
11
20
  /** 事件监听函数: lookupBeforeOk. */
12
21
  export declare type IKgFormLookupBeforeOkCbParam = {
13
22
  /** 变量. */
@@ -42,9 +51,10 @@ export declare type IKgFormLookupOkCbParam = {
42
51
  rows?: Array<IKgTableRow> | null;
43
52
  };
44
53
  export declare type IKgFormLookupOkCb = ((param: IKgFormLookupOkCbParam) => Promise<boolean>) & IKgEventCb;
45
- export declare type IKgFormCb = IKgFormLookupBeforeOkCb | IKgFormLookupOkCb;
46
- export declare type IKgFormCbParam = IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam;
54
+ export declare type IKgFormCbParam = IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam | IKgFormSelectChangeCbParam;
55
+ export declare type IKgFormCb = IKgFormLookupBeforeOkCb | IKgFormLookupOkCb | IKgFormSelectChangeCb;
47
56
  export interface IKgFormState {
57
+ selectChangeListenersMap: Map<string, Array<IKgFormSelectChangeCb>>;
48
58
  lookupOkListenersMap: Map<string, Array<IKgFormLookupOkCb>>;
49
59
  lookupBeforeOkListenersMap: Map<string, Array<IKgFormLookupBeforeOkCb>>;
50
60
  }
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  type: import("vue").PropType<boolean>;
20
20
  default: boolean;
21
21
  };
22
+ /** 获取下拉列表数据. */
22
23
  kgAllowClear: {
23
24
  type: import("vue").PropType<boolean>;
24
25
  default: boolean;
@@ -59,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
59
60
  type: import("vue").PropType<boolean>;
60
61
  default: boolean;
61
62
  };
63
+ /** 获取下拉列表数据. */
62
64
  kgAllowClear: {
63
65
  type: import("vue").PropType<boolean>;
64
66
  default: boolean;
@@ -11,6 +11,8 @@ export declare type IUseKgFormItemSelect = {
11
11
  commandParameter: ComputedRef<Record<string, any>>;
12
12
  /** 列表数据. */
13
13
  datas: Ref<Array<Record<string, any>>>;
14
+ /** 正在加载列表数据. */
15
+ isRetrieving: Ref<boolean>;
14
16
  /**
15
17
  * 处理列表数据.
16
18
  * @param datas 元素列表数据.
@@ -2,7 +2,7 @@ import { RuleObject } from 'ant-design-vue/es/form';
2
2
  import { FormInstance } from 'ant-design-vue/lib/form/Form';
3
3
  import { Ref } from 'vue';
4
4
  import { IRemoveEventListenerHandler, KG_VAR_SUBMIT__DISPLAY_TYPE } from '../../consts';
5
- import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitLookupOkCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
5
+ import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
6
6
  export declare type IUseKgSubmit = {
7
7
  formID: string;
8
8
  /** 状态数据. */
@@ -50,11 +50,6 @@ export declare type IUseKgSubmit = {
50
50
  * @param once 是否只会触发一次. 默认为 undefined.
51
51
  */
52
52
  onClose(cb: IKgSubmitCloseCb, once?: boolean): IRemoveEventListenerHandler;
53
- /** 监听事件: 查找弹窗点击确定.
54
- * @param cb 回调函数.
55
- * @param once 是否只会触发一次. 默认为 undefined.
56
- */
57
- onLookupOk(cb: IKgSubmitLookupOkCb, once?: boolean): IRemoveEventListenerHandler;
58
53
  };
59
54
  /**
60
55
  * @param formID 界面标识.
@@ -13,10 +13,8 @@ import { IKgTableRow } from '../KgTable';
13
13
  * 'ok': 请求成功, 即将关闭弹窗
14
14
  * 'error': 请求失败. 请求失败了, 或者请求返回了错误消息
15
15
  * 'close': 关闭弹窗
16
- * 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
17
- * 'lookupOk': 查找弹窗点击确定
18
16
  */
19
- export declare type IKgSubmitEvent = 'open' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'error' | 'close' | 'lookupBeforeOk' | 'lookupOk';
17
+ export declare type IKgSubmitEvent = 'open' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'error' | 'close';
20
18
  /** 事件监听函数: open. */
21
19
  export declare type IKgSubmitOpenCbParam = {
22
20
  isCreating: boolean | null;
@@ -76,18 +74,8 @@ export declare type IKgSubmitOkCb = ((param: IKgSubmitOkCbParam) => Promise<bool
76
74
  export declare type IKgSubmitErrorCb = ((param: any) => Promise<boolean>) & IKgEventCb;
77
75
  /** 事件监听函数: close. */
78
76
  export declare type IKgSubmitCloseCb = ((param?: any | null) => Promise<boolean>) & IKgEventCb;
79
- /** 事件监听函数: lookupOk. */
80
- export declare type IKgSubmitLookupOkCbParam = {
81
- /** 变量. */
82
- var_nam: string;
83
- /** 单选时, 勾选的那一行. */
84
- row: IKgTableRow | null;
85
- /** 多选时, 勾选的所有行. */
86
- rows: Array<IKgTableRow> | null;
87
- };
88
- export declare type IKgSubmitLookupOkCb = ((param: IKgSubmitLookupOkCbParam) => Promise<boolean>) & IKgEventCb;
89
- export declare type IKgSubmitCbParam = IKgSubmitOpenCbParam | IKgSubmitBeforeOkCbParam | IKgSubmitAfterValidateCbParam | IKgSubmitBeforeRequestCbParam | IKgSubmitOkCbParam | IKgSubmitLookupOkCbParam | null;
90
- export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb | IKgSubmitErrorCb | IKgSubmitCloseCb | IKgSubmitLookupOkCb;
77
+ export declare type IKgSubmitCbParam = IKgSubmitOpenCbParam | IKgSubmitBeforeOkCbParam | IKgSubmitAfterValidateCbParam | IKgSubmitBeforeRequestCbParam | IKgSubmitOkCbParam | null;
78
+ export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb | IKgSubmitErrorCb | IKgSubmitCloseCb;
91
79
  export interface IKgSubmitState {
92
80
  openListenersMap: Map<string, Array<IKgSubmitOpenCb>>;
93
81
  beforeOkListenersMap: Map<string, Array<IKgSubmitBeforeOkCb>>;
@@ -96,7 +84,6 @@ export interface IKgSubmitState {
96
84
  okListenersMap: Map<string, Array<IKgSubmitOkCb>>;
97
85
  errorListenersMap: Map<string, Array<IKgSubmitErrorCb>>;
98
86
  closeListenersMap: Map<string, Array<IKgSubmitCloseCb>>;
99
- lookupOkListenersMap: Map<string, Array<IKgSubmitLookupOkCb>>;
100
87
  isLoadingMap: Map<string, boolean>;
101
88
  /** 表单数据对象. */
102
89
  modelMap: Map<string, Record<string, any>>;
@@ -106,6 +106,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
106
106
  * @param selectedRows 勾选的行.
107
107
  */
108
108
  setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
109
+ /**
110
+ * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
111
+ * @param formID 界面标识.
112
+ */
113
+ refreshSelectedRows(formID: string | null | undefined): void;
109
114
  /**
110
115
  * 设置某行的勾选状态.
111
116
  * @param formID 界面标识.
@@ -82,6 +82,10 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
82
82
  getTopFormIDs(): Array<string>;
83
83
  /** 获取界面层级. */
84
84
  getFormLevel(): (frm_id?: string | null) => number;
85
+ /**
86
+ * 翻译变量.
87
+ */
88
+ t(): (frm_id?: string | null, var_nam?: string | null) => string;
85
89
  isRetrieving(): (frm_id?: string | null) => boolean | null;
86
90
  isRetrievingVarProfileMaster(): (frm_id?: string | null) => boolean | null;
87
91
  isRetrievingVarGridMaster(): (frm_id?: string | null) => boolean | null;
@@ -95,6 +99,9 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
95
99
  isDeletingRequesting(): (frm_id?: string | null) => boolean | null;
96
100
  isOtherRequesting(): (frm_id?: string | null) => boolean | null;
97
101
  getVarCatalogs(): (frm_id?: string | null) => Array<VarCatalog> | null;
102
+ /**
103
+ * 根据 frm_id 和 var_nam 获取 VarCatalog.
104
+ */
98
105
  getVarCatalog(): (frm_id?: string | null, var_nam?: string | null) => VarCatalog | null;
99
106
  getVarLookup(): (frm_id?: string | null, var_nam?: string | null) => VarLookup | null;
100
107
  getVarPossibility(): (frm_id?: string | null, var_nam?: string | null) => VarPossibility | null;
@@ -143,6 +143,7 @@ declare const _default: {
143
143
  deleteSuccess: string;
144
144
  downloadImportTemplate: string;
145
145
  edit: string;
146
+ empty: string;
146
147
  emptyText: string;
147
148
  export: string;
148
149
  exportSuccess: string;
@@ -150,6 +151,7 @@ declare const _default: {
150
151
  import: string;
151
152
  importSuccess: string;
152
153
  importTemplate: string;
154
+ loading: string;
153
155
  lookup: string;
154
156
  no: string;
155
157
  ok: string;
@@ -142,6 +142,7 @@ declare const _default: {
142
142
  deleteSuccess: string;
143
143
  downloadImportTemplate: string;
144
144
  edit: string;
145
+ empty: string;
145
146
  emptyText: string;
146
147
  export: string;
147
148
  exportSuccess: string;
@@ -149,6 +150,7 @@ declare const _default: {
149
150
  import: string;
150
151
  importSuccess: string;
151
152
  importTemplate: string;
153
+ loading: string;
152
154
  lookup: string;
153
155
  no: string;
154
156
  ok: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.10.0",
3
+ "version": "0.10.2-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -48,7 +48,7 @@
48
48
  "vue-router": "4.1.6"
49
49
  },
50
50
  "devDependencies": {
51
- "@kengic/pont": "1.2.10-beta.45",
51
+ "@kengic/pont": "1.2.10",
52
52
  "@types/lodash-es": "4.17.9",
53
53
  "@types/node": "18.18.4",
54
54
  "@types/semver": "7.5.3",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes