@kengic/vue 0.3.2 → 0.3.3-beta.0

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.
Files changed (27) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +4322 -3310
  3. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +3 -9
  4. package/dist/src/components/KgModal/KgModal.d.ts +9 -0
  5. package/dist/src/components/KgModal/index.vm.d.ts +5 -0
  6. package/dist/src/components/KgSearch/index.hooks.d.ts +6 -6
  7. package/dist/src/components/KgSearch/index.store.d.ts +4 -4
  8. package/dist/src/components/KgTable/index.hooks.d.ts +4 -4
  9. package/dist/src/components/KgTable/index.store.d.ts +4 -4
  10. package/dist/src/components/KgVar/index.store.d.ts +3 -3
  11. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
  12. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
  13. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
  14. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +3 -0
  15. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +3 -0
  16. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
  17. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
  18. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
  19. package/dist/src/components/KgVarConfig/index.d.ts +2 -0
  20. package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
  21. package/dist/src/components/index.d.ts +1 -0
  22. package/dist/src/config/setup.d.ts +4 -4
  23. package/dist/src/consts/i18n/en.d.ts +26 -0
  24. package/dist/src/consts/i18n/index.d.ts +51 -0
  25. package/dist/src/consts/i18n/zh_CN.d.ts +25 -0
  26. package/dist/src/utils/kg.util.d.ts +3 -2
  27. package/package.json +1 -1
@@ -4,25 +4,19 @@ import { IKgTableRecord } from '../../KgTable';
4
4
  export declare const getProps: () => {
5
5
  visible: PropType<boolean>;
6
6
  'onUpdate:visible': PropType<(value: boolean) => void>;
7
- /**
8
- * 确定.
9
- */
7
+ /** 确定. */
10
8
  onKgOk: PropType<(value: any | Array<any>, record: IKgTableRecord | Array<IKgTableRecord>) => void>;
11
9
  };
12
10
  export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
11
  declare const _default: import("vue").DefineComponent<{
14
12
  visible: PropType<boolean>;
15
13
  'onUpdate:visible': PropType<(value: boolean) => void>;
16
- /**
17
- * 确定.
18
- */
14
+ /** 确定. */
19
15
  onKgOk: PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => void>;
20
16
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
21
17
  visible: PropType<boolean>;
22
18
  'onUpdate:visible': PropType<(value: boolean) => void>;
23
- /**
24
- * 确定.
25
- */
19
+ /** 确定. */
26
20
  onKgOk: PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => void>;
27
21
  }>> & {
28
22
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<boolean>;
9
9
  default: boolean;
10
10
  };
11
+ kgFullHeight: {
12
+ type: import("vue").PropType<boolean>;
13
+ default: boolean;
14
+ };
11
15
  prefixCls: StringConstructor;
12
16
  visible: {
13
17
  type: BooleanConstructor;
@@ -187,6 +191,10 @@ declare const _default: import("vue").DefineComponent<{
187
191
  type: import("vue").PropType<boolean>;
188
192
  default: boolean;
189
193
  };
194
+ kgFullHeight: {
195
+ type: import("vue").PropType<boolean>;
196
+ default: boolean;
197
+ };
190
198
  prefixCls: StringConstructor;
191
199
  visible: {
192
200
  type: BooleanConstructor;
@@ -373,5 +381,6 @@ declare const _default: import("vue").DefineComponent<{
373
381
  focusTriggerAfterClose: boolean;
374
382
  kgCanFullscreen: boolean;
375
383
  kgShowCancelButton: boolean;
384
+ kgFullHeight: boolean;
376
385
  }>;
377
386
  export default _default;
@@ -10,6 +10,11 @@ export declare const getProps: () => {
10
10
  type: PropType<boolean>;
11
11
  default: boolean;
12
12
  };
13
+ /** 高度是否撑满屏幕. */
14
+ kgFullHeight: {
15
+ type: PropType<boolean>;
16
+ default: boolean;
17
+ };
13
18
  prefixCls: StringConstructor;
14
19
  visible: {
15
20
  type: BooleanConstructor;
@@ -1,9 +1,9 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, KgSearchStore } from './index.store';
2
+ import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, IKgSearchStore } from './index.store';
3
3
  export declare type IUseKgSearch = {
4
4
  formID: string;
5
5
  /** 状态数据. */
6
- store: KgSearchStore;
6
+ store: IKgSearchStore;
7
7
  /**
8
8
  * 监听事件: search, 点击查询按钮, 并且表单验证通过.
9
9
  * @param cb 回调函数.
@@ -21,13 +21,13 @@ export declare type IUseKgSearch = {
21
21
  * */
22
22
  onReady(cb: IKgSearchReadyCb, once?: boolean): void;
23
23
  /** 是否准备就绪. 即查询条件是否已经初始化完成了. */
24
- isReady: ComputedRef<ReturnType<KgSearchStore['getIsReady']>>;
24
+ isReady: ComputedRef<ReturnType<IKgSearchStore['getIsReady']>>;
25
25
  /** 表单数据对象. */
26
- model: ComputedRef<ReturnType<KgSearchStore['getModel']>>;
26
+ model: ComputedRef<ReturnType<IKgSearchStore['getModel']>>;
27
27
  /** 执行查询. */
28
- search: ComputedRef<ReturnType<KgSearchStore['getSearchFn']>>;
28
+ search: ComputedRef<ReturnType<IKgSearchStore['getSearchFn']>>;
29
29
  /** 执行重置. */
30
- reset: ComputedRef<ReturnType<KgSearchStore['getResetFn']>>;
30
+ reset: ComputedRef<ReturnType<IKgSearchStore['getResetFn']>>;
31
31
  };
32
32
  /**
33
33
  * @param formID 界面标识.
@@ -27,7 +27,7 @@ export declare type IKgSearchCb = IKgSearchSearchCb | IKgSearchResetCb | IKgSear
27
27
  export declare type IKgSearchSearchFn = (resetPageIndex?: boolean) => boolean;
28
28
  /** 重置方法. */
29
29
  export declare type IKgSearchResetFn = () => void;
30
- export interface KgSearchState {
30
+ export interface IKgSearchState {
31
31
  /** 是否准备就绪: 查询字段初始完成, 查询组件渲染完成. */
32
32
  isReadyMap: Map<string, boolean>;
33
33
  /** 表单数据对象. */
@@ -43,7 +43,7 @@ export interface KgSearchState {
43
43
  /** 重置方法, 可供外部调用, 用来触发重置操作. */
44
44
  resetFnMap: Map<string, IKgSearchResetFn>;
45
45
  }
46
- export declare type KgSearchStoreDefinition = StoreDefinition<'KgSearch', KgSearchState, {
46
+ export declare type IKgSearchStoreDefinition = StoreDefinition<'KgSearch', IKgSearchState, {
47
47
  getIsReady(): (formID?: string | null) => boolean;
48
48
  getModel(): (formID?: string | null) => Record<string, any> | null;
49
49
  getSearchFn(): (formID?: string | null) => IKgSearchSearchFn | null;
@@ -75,5 +75,5 @@ export declare type KgSearchStoreDefinition = StoreDefinition<'KgSearch', KgSear
75
75
  */
76
76
  emit(formID: string, event: IKgSearchEvent, args?: IKgSearchEventArgs): void;
77
77
  }>;
78
- export declare type KgSearchStore = ReturnType<KgSearchStoreDefinition>;
79
- export declare const useKgSearchStore: () => KgSearchStoreDefinition;
78
+ export declare type IKgSearchStore = ReturnType<IKgSearchStoreDefinition>;
79
+ export declare const useKgSearchStore: () => IKgSearchStoreDefinition;
@@ -1,13 +1,13 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { IKgTableRetrieveCb, IKgTableRowDoubleClickCb, KgTableStore } from './index.store';
2
+ import { IKgTableRetrieveCb, IKgTableRowDoubleClickCb, IKgTableStore } from './index.store';
3
3
  export declare type IUseKgTable = {
4
4
  formID: string;
5
5
  /** 状态数据. */
6
- store: KgTableStore;
6
+ store: IKgTableStore;
7
7
  /** 当前勾选的行. */
8
- selectedRows: ComputedRef<ReturnType<KgTableStore['getSelectedRows']>>;
8
+ selectedRows: ComputedRef<ReturnType<IKgTableStore['getSelectedRows']>>;
9
9
  /** 是否正在查询. */
10
- isRetrieving: ComputedRef<ReturnType<KgTableStore['getIsRetrieving']>>;
10
+ isRetrieving: ComputedRef<ReturnType<IKgTableStore['getIsRetrieving']>>;
11
11
  /** 监听事件: 双击某行. */
12
12
  onRowDoubleClick(cb: IKgTableRowDoubleClickCb): void;
13
13
  /** 监听事件: 查询数据成功. */
@@ -12,7 +12,7 @@ export declare type IKgTableRowDoubleClickCb = (record: IKgTableRecord) => void;
12
12
  /** 事件监听函数: 查询数据成功. */
13
13
  export declare type IKgTableRetrieveCb = (page: IPage<IKgTableRecord> | undefined | null) => void;
14
14
  export declare type IKgTableCb = IKgTableRowDoubleClickCb | IKgTableRetrieveCb;
15
- export interface KgTableState {
15
+ export interface IKgTableState {
16
16
  /** 勾选的行. */
17
17
  selectedRowsMap: Map<string, Array<IKgTableRecord>>;
18
18
  /**
@@ -29,7 +29,7 @@ export interface KgTableState {
29
29
  rowDoubleClickListenersMap: Map<string, Array<IKgTableRowDoubleClickCb>>;
30
30
  retrieveListenersMap: Map<string, Array<IKgTableRetrieveCb>>;
31
31
  }
32
- export declare type KgTableStoreDefinition = StoreDefinition<'KgTable', KgTableState, {
32
+ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTableState, {
33
33
  getSelectedRows(): (formID?: string | null) => Array<IKgTableRecord> | null;
34
34
  getIsRetrieved(): (formID?: string | null) => boolean | null;
35
35
  getIsRetrieving(): (formID?: string | null) => boolean | null;
@@ -44,5 +44,5 @@ export declare type KgTableStoreDefinition = StoreDefinition<'KgTable', KgTableS
44
44
  setIsRetrieving(formID: string, value: boolean): void;
45
45
  setTableWidth(formID: string, value: number): void;
46
46
  }>;
47
- export declare type KgTableStore = ReturnType<KgTableStoreDefinition>;
48
- export declare const useKgTableStore: () => KgTableStoreDefinition;
47
+ export declare type IKgTableStore = ReturnType<IKgTableStoreDefinition>;
48
+ export declare const useKgTableStore: () => IKgTableStoreDefinition;
@@ -1,6 +1,6 @@
1
1
  import { type StoreDefinition } from 'pinia';
2
2
  import { VarButton, VarCatalog, VarConfig, VarGridConfig, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileDetail, VarProfileDTO, VarProfileMasterDTO, VarSubmitField } from '../../apis/WMS/models';
3
- export interface KgVarState {
3
+ export interface IKgVarState {
4
4
  /**
5
5
  * 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
6
6
  */
@@ -33,8 +33,8 @@ export interface KgVarState {
33
33
  }>;
34
34
  varGridConfigMap: Map<string, VarGridConfig | null>;
35
35
  }
36
- export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', KgVarState, {
37
- getTopFormID(): string | null;
36
+ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState, {
37
+ getCurrentFormID(): string | null;
38
38
  isRetrievingVar(): (formID?: string | null) => boolean | null;
39
39
  isCreating(): (formID?: string | null) => boolean | null;
40
40
  isUpdating(): (formID?: string | null) => boolean | null;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgVarConfig.Modal.less';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ };
7
+ export declare type IKgVarConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
+ declare const _default: import("vue").DefineComponent<{
9
+ visible: PropType<boolean>;
10
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
12
+ visible: PropType<boolean>;
13
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
14
+ }>> & {
15
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
16
+ }, {}>;
17
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import './KgVarConfig.Modal.Var.CreateModal.less';
2
+ import { ExtractPropTypes, PropType } from 'vue';
3
+ export declare const getProps: () => {
4
+ visible: PropType<boolean>;
5
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
6
+ /** 确定. */
7
+ onKgOk: PropType<(args: {
8
+ isAllForm: boolean;
9
+ isAllLanguage: boolean;
10
+ }) => void>;
11
+ };
12
+ export declare type IKgVarConfigModalVarCreateModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
+ declare const _default: import("vue").DefineComponent<{
14
+ visible: PropType<boolean>;
15
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
16
+ /** 确定. */
17
+ onKgOk: PropType<(args: {
18
+ isAllForm: boolean;
19
+ isAllLanguage: boolean;
20
+ }) => void>;
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
22
+ visible: PropType<boolean>;
23
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
24
+ /** 确定. */
25
+ onKgOk: PropType<(args: {
26
+ isAllForm: boolean;
27
+ isAllLanguage: boolean;
28
+ }) => void>;
29
+ }>> & {
30
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
31
+ onKgOk?: ((...args: any[]) => any) | undefined;
32
+ }, {}>;
33
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.VarCatalog.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { VarContext } from '../../../../apis/WMS/models';
3
+ export declare const columns: () => ColumnsType<VarContext>;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.Vars.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { VarContext } from '../../../../apis/WMS/models';
3
+ export declare const columns: ColumnsType<VarContext>;
@@ -0,0 +1,3 @@
1
+ import './KgVarConfig.Modal.Var.less';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as KgVarConfig } from './KgVarConfig';
2
+ export * from './index.store';
@@ -0,0 +1,20 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { VarCatalog, VarContext } from '../../apis/WMS/models';
3
+ export interface IKgVarConfigState {
4
+ /** 变量. */
5
+ variable: {
6
+ /** 当前选中的变量. */
7
+ selectedVar: VarContext | null;
8
+ /** 当前选中的变量别名. */
9
+ selectedVarCatalog: VarCatalog | null;
10
+ };
11
+ }
12
+ export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
13
+ getSelectedVar: VarContext | null;
14
+ getSelectedVarCatalog: VarCatalog | null;
15
+ }, {
16
+ setSelectedVar(variable: VarContext | null): void;
17
+ setSelectedVarCatalog(variable: VarCatalog | null): void;
18
+ }>;
19
+ export declare type IKgVarConfigStore = ReturnType<IKgVarConfigStoreDefinition>;
20
+ export declare const useKgVarConfigStore: () => IKgVarConfigStoreDefinition;
@@ -5,6 +5,7 @@ export * from './KgResizable';
5
5
  export * from './KgSearch';
6
6
  export * from './KgTable';
7
7
  export * from './KgVar';
8
+ export * from './KgVarConfig';
8
9
  export * from './KgYesOrNo';
9
10
  export { default as KgForm, type IKgFormProps } from './KgForm';
10
11
  export { KgFormItem, type IKgFormItemProps } from './KgForm.Item';
@@ -4,16 +4,16 @@ import { ComputedRef } from 'vue';
4
4
  * 配置 pinia 实例.
5
5
  * @param pinia pinia 实例.
6
6
  */
7
- export declare function setupStore(pinia: Pinia): void;
7
+ export declare function setPinia(pinia: Pinia): void;
8
8
  /**
9
9
  * 获取 pinia 实例.
10
10
  */
11
- export declare function store(): Pinia | null;
11
+ export declare function pinia(): Pinia | null;
12
12
  /**
13
13
  * 配置语言.
14
14
  * @param locale 语言.
15
15
  */
16
- export declare function setupLocale(locale: ComputedRef<string>): void;
16
+ export declare function setLocale(locale: ComputedRef<string>): void;
17
17
  /**
18
18
  * 获取语言.
19
19
  */
@@ -30,7 +30,7 @@ declare type T = {
30
30
  * 配置翻译方法.
31
31
  * @param i18n vue-i18n 的国际化配置.
32
32
  */
33
- export declare function setupT(i18n: any): void;
33
+ export declare function setT(i18n: any): void;
34
34
  /**
35
35
  * 翻译.
36
36
  * @param key
@@ -15,6 +15,32 @@ declare const _default: {
15
15
  locate: string;
16
16
  row: string;
17
17
  };
18
+ KgVarConfig: {
19
+ action: string;
20
+ allForm: string;
21
+ allLanguage: string;
22
+ applyTo: string;
23
+ catalog: string;
24
+ confirm: string;
25
+ createConfig: string;
26
+ createSuccess: string;
27
+ currentForm: string;
28
+ currentLanguage: string;
29
+ customLevel: string;
30
+ deleteConfirmMessage: string;
31
+ deleteSuccess: string;
32
+ discardConfirmMessage: string;
33
+ form: string;
34
+ formId: string;
35
+ groupName: string;
36
+ language: string;
37
+ required: string;
38
+ saveSuccess: string;
39
+ title: string;
40
+ variable: string;
41
+ variableName: string;
42
+ variables: string;
43
+ };
18
44
  action: string;
19
45
  add: string;
20
46
  button: string;
@@ -16,6 +16,32 @@ export declare const KG_I18N: {
16
16
  locate: string;
17
17
  row: string;
18
18
  };
19
+ KgVarConfig: {
20
+ action: string;
21
+ allForm: string;
22
+ allLanguage: string;
23
+ applyTo: string;
24
+ catalog: string;
25
+ confirm: string;
26
+ createConfig: string;
27
+ createSuccess: string;
28
+ currentForm: string;
29
+ currentLanguage: string;
30
+ customLevel: string;
31
+ deleteConfirmMessage: string;
32
+ deleteSuccess: string;
33
+ discardConfirmMessage: string;
34
+ form: string;
35
+ formId: string;
36
+ groupName: string;
37
+ language: string;
38
+ required: string;
39
+ saveSuccess: string;
40
+ title: string;
41
+ variable: string;
42
+ variableName: string;
43
+ variables: string;
44
+ };
19
45
  action: string;
20
46
  add: string;
21
47
  button: string;
@@ -60,6 +86,31 @@ export declare const KG_I18N: {
60
86
  locate: string;
61
87
  row: string;
62
88
  };
89
+ KgVarConfig: {
90
+ action: string;
91
+ allForm: string;
92
+ allLanguage: string;
93
+ applyTo: string;
94
+ catalog: string;
95
+ confirm: string;
96
+ createConfig: string;
97
+ createSuccess: string;
98
+ currentForm: string;
99
+ currentLanguage: string;
100
+ customLevel: string;
101
+ deleteConfirmMessage: string;
102
+ deleteSuccess: string;
103
+ discardConfirmMessage: string;
104
+ form: string;
105
+ formId: string;
106
+ groupName: string;
107
+ language: string;
108
+ saveSuccess: string;
109
+ title: string;
110
+ variable: string;
111
+ variableName: string;
112
+ variables: string;
113
+ };
63
114
  action: string;
64
115
  add: string;
65
116
  button: string;
@@ -15,6 +15,31 @@ declare const _default: {
15
15
  locate: string;
16
16
  row: string;
17
17
  };
18
+ KgVarConfig: {
19
+ action: string;
20
+ allForm: string;
21
+ allLanguage: string;
22
+ applyTo: string;
23
+ catalog: string;
24
+ confirm: string;
25
+ createConfig: string;
26
+ createSuccess: string;
27
+ currentForm: string;
28
+ currentLanguage: string;
29
+ customLevel: string;
30
+ deleteConfirmMessage: string;
31
+ deleteSuccess: string;
32
+ discardConfirmMessage: string;
33
+ form: string;
34
+ formId: string;
35
+ groupName: string;
36
+ language: string;
37
+ saveSuccess: string;
38
+ title: string;
39
+ variable: string;
40
+ variableName: string;
41
+ variables: string;
42
+ };
18
43
  action: string;
19
44
  add: string;
20
45
  button: string;
@@ -51,9 +51,10 @@ export declare class KgUtil {
51
51
  update: (newConfig: ModalFuncProps) => void;
52
52
  };
53
53
  /**
54
- * 是否是表单验证错误.
54
+ * 如果不是表单验证错误, 则抛出该错误.
55
+ * @param e 错误对象.
55
56
  */
56
- static isFormValidateError(e: any): boolean;
57
+ static throwIfNotFormError(e: any): void;
57
58
  /**
58
59
  * 将值转换为 Dayjs 对象.
59
60
  * @param value 值.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.3.2",
3
+ "version": "0.3.3-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",