@kengic/vue 0.6.12 → 0.6.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,11 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgSearch.less';
3
3
  export declare const getProps: () => {
4
+ /** 是否禁用. */
5
+ kgDisabled: {
6
+ type: PropType<boolean>;
7
+ default: undefined;
8
+ };
4
9
  /** 是否将头部放到页面顶部的导航栏中. */
5
10
  kgHeaderTeleport: {
6
11
  type: PropType<boolean>;
@@ -9,18 +14,29 @@ export declare const getProps: () => {
9
14
  };
10
15
  export declare type IKgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
11
16
  declare const _default: import("vue").DefineComponent<{
17
+ /** 是否禁用. */
18
+ kgDisabled: {
19
+ type: PropType<boolean>;
20
+ default: undefined;
21
+ };
12
22
  /** 是否将头部放到页面顶部的导航栏中. */
13
23
  kgHeaderTeleport: {
14
24
  type: PropType<boolean>;
15
25
  default: undefined;
16
26
  };
17
27
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
28
+ /** 是否禁用. */
29
+ kgDisabled: {
30
+ type: PropType<boolean>;
31
+ default: undefined;
32
+ };
18
33
  /** 是否将头部放到页面顶部的导航栏中. */
19
34
  kgHeaderTeleport: {
20
35
  type: PropType<boolean>;
21
36
  default: undefined;
22
37
  };
23
38
  }>>, {
39
+ kgDisabled: boolean;
24
40
  kgHeaderTeleport: boolean;
25
41
  }>;
26
42
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgTable.less';
3
3
  export declare const getProps: () => {
4
+ /** 是否禁用. */
4
5
  kgDisabled: {
5
6
  type: PropType<boolean>;
6
7
  default: undefined;
@@ -8,11 +9,13 @@ export declare const getProps: () => {
8
9
  };
9
10
  export declare type IKgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
10
11
  declare const _default: import("vue").DefineComponent<{
12
+ /** 是否禁用. */
11
13
  kgDisabled: {
12
14
  type: PropType<boolean>;
13
15
  default: undefined;
14
16
  };
15
17
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
+ /** 是否禁用. */
16
19
  kgDisabled: {
17
20
  type: PropType<boolean>;
18
21
  default: undefined;
@@ -82,6 +82,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
82
82
  addEventListener(formID: string, event: IKgTableEvent, cb: IKgTableCb): void;
83
83
  removeEventListener(formID: string, event: IKgTableEvent, cb?: IKgTableCb): void;
84
84
  emit(formID: string, event: IKgTableEvent, param: IKgTableCbParam): Promise<boolean>;
85
+ /**
86
+ * 设置勾选的行.
87
+ * @param formID 界面标识.
88
+ * @param selectedRows 勾选的行.
89
+ */
85
90
  setSelectedRows(formID: string, selectedRows: Array<IKgTableRow>): void;
86
91
  /**
87
92
  * 设置某行的勾选状态.
@@ -93,6 +98,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
93
98
  setIsRetrieved(formID: string, value: boolean): void;
94
99
  setIsRetrieving(formID: string, value: boolean): void;
95
100
  setTableWidth(formID: string, value: number): void;
101
+ /**
102
+ * 清空表格数据.
103
+ * @param formID 界面标识.
104
+ */
105
+ clearDatas(formID: string): void;
96
106
  }>;
97
107
  export declare type IKgTableStore = ReturnType<IKgTableStoreDefinition>;
98
108
  export declare const useKgTableStore: () => IKgTableStoreDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.6.12",
3
+ "version": "0.6.14",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",