hs-admin-ui 16.3.5 → 16.3.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.
@@ -3,28 +3,37 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
- /** 禁用自定义数字输入框 */
7
- disabledNumber: {
8
- type: BooleanConstructor;
9
- default: boolean;
6
+ min: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: number;
9
+ };
10
+ max: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: number;
10
13
  };
11
14
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ change: (...args: any[]) => void;
12
16
  focus: (...args: any[]) => void;
13
17
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
18
  type: {
15
19
  type: StringConstructor;
16
20
  default: string;
17
21
  };
18
- /** 禁用自定义数字输入框 */
19
- disabledNumber: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
+ min: {
23
+ type: (StringConstructor | NumberConstructor)[];
24
+ default: number;
25
+ };
26
+ max: {
27
+ type: (StringConstructor | NumberConstructor)[];
28
+ default: number;
22
29
  };
23
30
  }>> & Readonly<{
31
+ onChange?: (...args: any[]) => any;
24
32
  onFocus?: (...args: any[]) => any;
25
33
  }>, {
26
34
  type: string;
27
- disabledNumber: boolean;
35
+ max: string | number;
36
+ min: string | number;
28
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
38
  declare const _default: typeof __VLS_export;
30
39
  export default _default;
@@ -67,26 +67,37 @@ export declare const baseComponents: {
67
67
  type: StringConstructor;
68
68
  default: string;
69
69
  };
70
- disabledNumber: {
71
- type: BooleanConstructor;
72
- default: boolean;
70
+ min: {
71
+ type: (StringConstructor | NumberConstructor)[];
72
+ default: number;
73
+ };
74
+ max: {
75
+ type: (StringConstructor | NumberConstructor)[];
76
+ default: number;
73
77
  };
74
78
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
79
+ change: (...args: any[]) => void;
75
80
  focus: (...args: any[]) => void;
76
81
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
82
  type: {
78
83
  type: StringConstructor;
79
84
  default: string;
80
85
  };
81
- disabledNumber: {
82
- type: BooleanConstructor;
83
- default: boolean;
86
+ min: {
87
+ type: (StringConstructor | NumberConstructor)[];
88
+ default: number;
89
+ };
90
+ max: {
91
+ type: (StringConstructor | NumberConstructor)[];
92
+ default: number;
84
93
  };
85
94
  }>> & Readonly<{
95
+ onChange?: (...args: any[]) => any;
86
96
  onFocus?: (...args: any[]) => any;
87
97
  }>, {
88
98
  type: string;
89
- disabledNumber: boolean;
99
+ max: string | number;
100
+ min: string | number;
90
101
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
102
  InputNumber: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
92
103
  type: {
@@ -3,7 +3,7 @@ interface Props {
3
3
  menu?: Array<Menu>;
4
4
  target?: string;
5
5
  disabled?: boolean;
6
- getMenu?: () => Menu[];
6
+ getMenu?: (e?: MouseEvent) => Menu[];
7
7
  trigger?: string;
8
8
  }
9
9
  declare var __VLS_1: {}, __VLS_18: {
@@ -54,7 +54,7 @@ declare var __VLS_10: string | number, __VLS_11: {
54
54
  config_name?: string;
55
55
  form?: ICustomData.Form;
56
56
  tables?: Array<ICustomData.Table>;
57
- }, __VLS_95: string | number, __VLS_96: any, __VLS_100: string | number, __VLS_101: any, __VLS_103: {
57
+ }, __VLS_98: string | number, __VLS_99: any, __VLS_103: string | number, __VLS_104: any, __VLS_106: {
58
58
  btns?: ICustomData.Btns[];
59
59
  mid?: string;
60
60
  uid?: string;
@@ -78,13 +78,13 @@ type __VLS_Slots = {} & {
78
78
  } & {
79
79
  [K in NonNullable<typeof __VLS_50>]?: (props: typeof __VLS_51) => any;
80
80
  } & {
81
- [K in NonNullable<typeof __VLS_95>]?: (props: typeof __VLS_96) => any;
81
+ [K in NonNullable<typeof __VLS_98>]?: (props: typeof __VLS_99) => any;
82
82
  } & {
83
- [K in NonNullable<typeof __VLS_100>]?: (props: typeof __VLS_101) => any;
83
+ [K in NonNullable<typeof __VLS_103>]?: (props: typeof __VLS_104) => any;
84
84
  } & {
85
85
  centerSlot?: (props: typeof __VLS_64) => any;
86
86
  } & {
87
- customeContent?: (props: typeof __VLS_103) => any;
87
+ customeContent?: (props: typeof __VLS_106) => any;
88
88
  };
89
89
  declare const __VLS_base: import("vue").DefineComponent<Props, {
90
90
  search: (ativeTab?: string, query?: {}) => Promise<unknown>;
@@ -97,19 +97,19 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
97
97
  getActiveTab: () => any;
98
98
  setActiveTab: (id: string) => void;
99
99
  setQueryFocus: (index: number, delay?: number) => void;
100
- setTableCellFocus: (rowIndex: number, field?: number | string) => void;
100
+ setTableCellFocus: (rowIndex: number, field?: number | string) => Promise<void>;
101
101
  onCheckboxSelect: () => Promise<void>;
102
102
  hideMultilineQuery: typeof hideMultilineQuery;
103
- tableTab: (params: TableKeyEventParams) => void;
103
+ tableTab: (params: TableKeyEventParams) => Promise<void>;
104
104
  tableArrowRight: ({ $event, $api, type }: TableKeyEventParams) => Promise<void>;
105
105
  tableArrowLeft: ({ $event, $api, type }: TableKeyEventParams) => Promise<void>;
106
- tableArrowDown: ({ $event, $table, type }: TableKeyEventParams) => void;
107
- tableArrowUp: (params: TableKeyEventParams) => void;
106
+ tableArrowDown: ({ $event, $table, type }: TableKeyEventParams) => Promise<void>;
107
+ tableArrowUp: (params: TableKeyEventParams) => Promise<void>;
108
108
  tableCheckbox: (params: TableKeyEventParams, todo?: () => boolean) => void;
109
109
  queryTabFocus: (params: TableKeyEventParams) => void;
110
110
  queryRightFocus: (params: TableKeyEventParams) => void;
111
111
  queryLeftFocus: (params: TableKeyEventParams) => void;
112
- queryDownFocus: (params: TableKeyEventParams) => void;
112
+ queryDownFocus: (params: TableKeyEventParams) => Promise<void>;
113
113
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
114
114
  keydown: (value: TableKeyEventParams) => any;
115
115
  ready: (value: TableParams) => any;
@@ -52,6 +52,8 @@ export declare const SYSTEM_PARAMS = "system_params";
52
52
  export declare const CUSTOME_GROUP_TIP = "custome_field_";
53
53
  /** 查询排序字段标识 */
54
54
  export declare const QUERY_GROUP_TIP = "query_field_";
55
+ /** 表格列展示字段标识 */
56
+ export declare const COLUMN_FIELD = "column_field_";
55
57
  /** 解析含有正则的字段标识 */
56
58
  export declare const REGEXP_STRING = "_REGEXP_";
57
59
  /** 后台用于强制修改数据的属性 */
@@ -70,6 +70,11 @@ export interface BcTableApi {
70
70
  * @param noSearch Function时:重置完查询数据后执行的回调函数,再进行查询操作
71
71
  */
72
72
  reset: (noSearch?: boolean | Function) => Promise<void>;
73
+ /** 表格修改行数据
74
+ * @param data 表格数据,可谓单对象、数组对象
75
+ * @param uuid 行唯一识别id,用于数据查询索引,默认 'id'
76
+ */
77
+ setRow: (data: ICustomData.Data | ICustomData.Data[], uuid?: string) => Promise<void>;
73
78
  /** vxtable表格实例方法 */
74
79
  getApi: (table_id?: string) => VxeTableInstance;
75
80
  /** 获取当前实例的配置 id */
@@ -147,7 +152,7 @@ export interface BcTableApi {
147
152
  * @param rowIndex 行索引
148
153
  * @param field 列索引 或 列字段名
149
154
  */
150
- setTableCellFocus: (rowIndex: number, field?: number | string) => void;
155
+ setTableCellFocus: (rowIndex: number, field?: number | string) => Promise<void>;
151
156
  /** 设置查询条件聚焦
152
157
  * @param index 索引位置, 默认为0
153
158
  * @param delay 延迟时间, 默认为600ms
@@ -404,7 +409,7 @@ export interface TableInstance extends TableParams {
404
409
  * @param rowIndex 行索引 当取值 -1 时,取消表格行选中
405
410
  * @param field 列索引 或 列字段名
406
411
  */
407
- setTableCellFocus: (rowIndex: number, field?: number | string) => void;
412
+ setTableCellFocus: (rowIndex: number, field?: number | string) => Promise<void>;
408
413
  /** 设置预设选中数据
409
414
  * @param data 选中数据
410
415
  * @param isSelected 是否选中,当设置true时,选中数据为当前追加data;当设置false时,过滤出data中的数据
@@ -23,22 +23,36 @@ export declare function useKeydownEvent({ props, formRef, onPageChange, emit }:
23
23
  uid: import("vue").ComputedRef<string>;
24
24
  query_uid: string;
25
25
  table_uid: string;
26
- menuTable: {
26
+ menuTable: (e?: MouseEvent) => ({
27
27
  label: string;
28
28
  value: string;
29
29
  click: (val: MouseEvent) => void;
30
- }[];
30
+ row?: undefined;
31
+ column?: undefined;
32
+ } | {
33
+ label: string;
34
+ value: string;
35
+ row: any;
36
+ column: {
37
+ field: string;
38
+ };
39
+ click?: undefined;
40
+ })[];
41
+ pasteCell: (params: {
42
+ event: MouseEvent;
43
+ item: any;
44
+ }) => Promise<void>;
31
45
  onKeydown: (e: KeyboardEvent) => void;
32
- setTableCellFocus: (rowIndex: number, field?: number | string) => void;
33
- tableTab: (params: TableKeyEventParams) => void;
46
+ setTableCellFocus: (rowIndex: number, field?: number | string) => Promise<void>;
47
+ tableTab: (params: TableKeyEventParams) => Promise<void>;
34
48
  tableArrowRight: ({ $event, $api, type }: TableKeyEventParams) => Promise<void>;
35
49
  tableArrowLeft: ({ $event, $api, type }: TableKeyEventParams) => Promise<void>;
36
- tableArrowDown: ({ $event, $table, type }: TableKeyEventParams) => void;
37
- tableArrowUp: (params: TableKeyEventParams) => void;
50
+ tableArrowDown: ({ $event, $table, type }: TableKeyEventParams) => Promise<void>;
51
+ tableArrowUp: (params: TableKeyEventParams) => Promise<void>;
38
52
  tableCheckbox: (params: TableKeyEventParams, todo?: () => boolean) => void;
39
53
  queryTabFocus: (params: TableKeyEventParams) => void;
40
54
  queryRightFocus: (params: TableKeyEventParams) => void;
41
55
  queryLeftFocus: (params: TableKeyEventParams) => void;
42
- queryDownFocus: (params: TableKeyEventParams) => void;
56
+ queryDownFocus: (params: TableKeyEventParams) => Promise<void>;
43
57
  };
44
58
  export {};
@@ -1,6 +1,13 @@
1
- type __VLS_Props = {
2
- proxy?: string;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ proxy: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
+ proxy: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ };
11
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
12
  declare const _default: typeof __VLS_export;
6
13
  export default _default;
@@ -13,4 +13,5 @@ export interface CompanyInfo {
13
13
  companyId: string;
14
14
  companyName: string;
15
15
  defaultMemberType: string;
16
+ discount: number;
16
17
  }
@@ -10,6 +10,8 @@ interface ExportDataNew {
10
10
  data: ICustomData.Data[];
11
11
  /** 导出表格名称 */
12
12
  template_name: string;
13
+ /** 导出表格标识,以接口做标识 /pri/easyexcel/list_page */
14
+ export_biz_type: string;
13
15
  }
14
16
  interface ExportDataAll {
15
17
  /** 配置id */
@@ -42,6 +44,7 @@ export declare function exportSelectedDownloadFile({ uniqueId, projectCode, temp
42
44
  * @param columnConfig 列配置信息
43
45
  * @param data 表格数据
44
46
  * @param template_name 导出表格名称
47
+ * @param export_biz_type 导出表格标识,以接口做标识 /pri/easyexcel/list_page
45
48
  */
46
49
  export declare function exportSelectedData(params: ExportDataNew): Promise<void>;
47
50
  /** 全部导出
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-admin-ui",
3
- "version": "16.3.5",
3
+ "version": "16.3.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",