@hb-hellotech/hb-ui 0.0.1

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 (51) hide show
  1. package/README.md +1 -0
  2. package/dist/components/business-comp/list-page-comp/hb_form_item_filter_modal/index.d.ts +4 -0
  3. package/dist/components/business-comp/list-page-comp/hb_form_select_filter/index.d.ts +4 -0
  4. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/index.d.ts +4 -0
  5. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +99 -0
  6. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/index.d.ts +3 -0
  7. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +53 -0
  8. package/dist/components/business-comp/list-page-comp/hb_list_form/index.d.ts +4 -0
  9. package/dist/components/business-comp/list-page-comp/hb_list_page_act/index.d.ts +3 -0
  10. package/dist/components/business-comp/list-page-comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +56 -0
  11. package/dist/components/business-comp/list-page-comp/hb_list_page_container/index.d.ts +3 -0
  12. package/dist/components/business-comp/list-page-comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +41 -0
  13. package/dist/components/business-comp/list-page-comp/hb_list_table/index.d.ts +4 -0
  14. package/dist/components/business-comp/list-page-comp/hb_list_table_act/index.d.ts +3 -0
  15. package/dist/components/business-comp/list-page-comp/hb_list_table_colums_set/index.d.ts +3 -0
  16. package/dist/components/business-comp/list-page-comp/index.d.ts +2 -0
  17. package/dist/components/func-comp/hb_func_comp_copy/index.d.ts +4 -0
  18. package/dist/components/func-comp/hb_func_comp_copy/src/copy.vue.d.ts +83 -0
  19. package/dist/components/func-comp/hb_func_comp_copy/src/type.d.ts +37 -0
  20. package/dist/components/func-comp/hb_func_comp_drag/index.d.ts +442 -0
  21. package/dist/components/func-comp/hb_func_comp_drag/src/index.vue.d.ts +181 -0
  22. package/dist/components/func-comp/hb_func_comp_drag/src/type.d.ts +45 -0
  23. package/dist/components/func-comp/hb_func_comp_tree/index.d.ts +457 -0
  24. package/dist/components/func-comp/hb_func_comp_tree/src/tree.d.ts +58 -0
  25. package/dist/components/func-comp/hb_func_comp_tree/src/tree.vue.d.ts +186 -0
  26. package/dist/components/func-comp/hb_func_comp_tree/src/treeNode.vue.d.ts +38 -0
  27. package/dist/components/func-comp/index.d.ts +2 -0
  28. package/dist/components/hooks/useCalTableHeight.d.ts +10 -0
  29. package/dist/components/hooks/useCalTableWidth.d.ts +5 -0
  30. package/dist/components/types/hb_form_item_filter_modal_type.d.ts +37 -0
  31. package/dist/components/types/hb_form_select_filter_type.d.ts +27 -0
  32. package/dist/components/types/hb_form_select_modal_type.d.ts +33 -0
  33. package/dist/components/types/hb_list_btns_act_type.d.ts +21 -0
  34. package/dist/components/types/hb_list_form_type.d.ts +70 -0
  35. package/dist/components/types/hb_list_page_act_type.d.ts +25 -0
  36. package/dist/components/types/hb_list_page_container_type.d.ts +18 -0
  37. package/dist/components/types/hb_list_table_act_type.d.ts +23 -0
  38. package/dist/components/types/hb_list_table_colums_set_type.d.ts +7 -0
  39. package/dist/components/types/hb_list_table_type.d.ts +34 -0
  40. package/dist/components/utils/createBem.d.ts +19 -0
  41. package/dist/components/utils/withInstall.d.ts +4 -0
  42. package/dist/hb_component_lib.js +36011 -0
  43. package/dist/hb_component_lib.umd.cjs +180 -0
  44. package/dist/index.d.ts +234 -0
  45. package/dist/style.css +1 -0
  46. package/dist/vite-env.d.ts +7 -0
  47. package/hooks/useCalTableHeight.ts +199 -0
  48. package/hooks/useCalTableWidth.ts +18 -0
  49. package/hooks/useListFormItem.ts +38 -0
  50. package/hooks/useModalDrag.ts +73 -0
  51. package/package.json +59 -0
@@ -0,0 +1,186 @@
1
+ import { Key, TreeNodes, TreeOptions } from "./tree";
2
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ readonly data: {
4
+ readonly type: import("vue").PropType<TreeOptions[]>;
5
+ readonly required: true;
6
+ };
7
+ readonly modelValue: {
8
+ readonly type: ArrayConstructor;
9
+ readonly default: () => never[];
10
+ };
11
+ readonly labelKey: {
12
+ readonly type: StringConstructor;
13
+ readonly default: "label";
14
+ };
15
+ readonly keyKey: {
16
+ readonly type: StringConstructor;
17
+ readonly default: "key";
18
+ };
19
+ readonly childrenKey: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "children";
22
+ };
23
+ readonly defaultExpandKeys: {
24
+ readonly type: import("vue").PropType<Key[]>;
25
+ readonly default: () => never[];
26
+ };
27
+ readonly multiple: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: false;
30
+ };
31
+ readonly remote: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: false;
34
+ };
35
+ readonly clickToSelect: {
36
+ readonly type: BooleanConstructor;
37
+ };
38
+ }>, {
39
+ props: any;
40
+ bem: {
41
+ b: (block?: string | undefined) => string;
42
+ e: (element: string) => string;
43
+ m: (modifier: string) => string;
44
+ be: (block: string, element: string) => string;
45
+ em: (element: string, modifier: string) => string;
46
+ bem: (block: string, element: string, modifier: string) => string;
47
+ is: (name: string, state: string | boolean) => string;
48
+ };
49
+ afterFormatData: import("vue").Ref<{
50
+ [x: string]: unknown;
51
+ expanded?: boolean | undefined;
52
+ checked?: boolean | undefined;
53
+ indeterminate?: boolean | undefined;
54
+ disabled?: boolean | undefined;
55
+ loading?: boolean | undefined;
56
+ selected?: boolean | undefined;
57
+ leaf?: boolean | undefined;
58
+ parentKey?: Key | null | undefined;
59
+ level?: number | undefined;
60
+ originData?: {
61
+ [x: string]: unknown;
62
+ label?: Key | undefined;
63
+ key?: Key | undefined;
64
+ children?: any[] | undefined;
65
+ } | undefined;
66
+ label: Key;
67
+ key: Key;
68
+ children: {
69
+ [x: string]: unknown;
70
+ label?: Key | undefined;
71
+ key?: Key | undefined;
72
+ children?: any[] | undefined;
73
+ }[];
74
+ }[], TreeNodes[] | {
75
+ [x: string]: unknown;
76
+ expanded?: boolean | undefined;
77
+ checked?: boolean | undefined;
78
+ indeterminate?: boolean | undefined;
79
+ disabled?: boolean | undefined;
80
+ loading?: boolean | undefined;
81
+ selected?: boolean | undefined;
82
+ leaf?: boolean | undefined;
83
+ parentKey?: Key | null | undefined;
84
+ level?: number | undefined;
85
+ originData?: {
86
+ [x: string]: unknown;
87
+ label?: Key | undefined;
88
+ key?: Key | undefined;
89
+ children?: any[] | undefined;
90
+ } | undefined;
91
+ label: Key;
92
+ key: Key;
93
+ children: {
94
+ [x: string]: unknown;
95
+ label?: Key | undefined;
96
+ key?: Key | undefined;
97
+ children?: any[] | undefined;
98
+ }[];
99
+ }[]>;
100
+ expandedKeys: import("vue").Ref<Set<Key> & Omit<Set<Key>, keyof Set<any>>, Set<Key> | (Set<Key> & Omit<Set<Key>, keyof Set<any>>)>;
101
+ formatData: (data: TreeOptions[]) => TreeNodes[];
102
+ flatterTree: import("vue").ComputedRef<TreeNodes[]>;
103
+ toggleExpand: (key: Key) => void;
104
+ handleClick: () => void;
105
+ TreeNode: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
106
+ item: {
107
+ type: import("vue").PropType<TreeNodes>;
108
+ default(): {};
109
+ };
110
+ expandedKeys: {
111
+ type: import("vue").PropType<Set<string | number>>;
112
+ };
113
+ }>, {
114
+ props: any;
115
+ emits: (event: "toggleExpand", ...args: any[]) => void;
116
+ bem: {
117
+ b: (block?: string | undefined) => string;
118
+ e: (element: string) => string;
119
+ m: (modifier: string) => string;
120
+ be: (block: string, element: string) => string;
121
+ em: (element: string, modifier: string) => string;
122
+ bem: (block: string, element: string, modifier: string) => string;
123
+ is: (name: string, state: string | boolean) => string;
124
+ };
125
+ isExpanded: import("vue").ComputedRef<boolean>;
126
+ handleClick: () => void;
127
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggleExpand"[], "toggleExpand", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
128
+ item: {
129
+ type: import("vue").PropType<TreeNodes>;
130
+ default(): {};
131
+ };
132
+ expandedKeys: {
133
+ type: import("vue").PropType<Set<string | number>>;
134
+ };
135
+ }>> & Readonly<{
136
+ onToggleExpand?: ((...args: any[]) => any) | undefined;
137
+ }>, {
138
+ item: TreeNodes;
139
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
140
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
141
+ readonly data: {
142
+ readonly type: import("vue").PropType<TreeOptions[]>;
143
+ readonly required: true;
144
+ };
145
+ readonly modelValue: {
146
+ readonly type: ArrayConstructor;
147
+ readonly default: () => never[];
148
+ };
149
+ readonly labelKey: {
150
+ readonly type: StringConstructor;
151
+ readonly default: "label";
152
+ };
153
+ readonly keyKey: {
154
+ readonly type: StringConstructor;
155
+ readonly default: "key";
156
+ };
157
+ readonly childrenKey: {
158
+ readonly type: StringConstructor;
159
+ readonly default: "children";
160
+ };
161
+ readonly defaultExpandKeys: {
162
+ readonly type: import("vue").PropType<Key[]>;
163
+ readonly default: () => never[];
164
+ };
165
+ readonly multiple: {
166
+ readonly type: BooleanConstructor;
167
+ readonly default: false;
168
+ };
169
+ readonly remote: {
170
+ readonly type: BooleanConstructor;
171
+ readonly default: false;
172
+ };
173
+ readonly clickToSelect: {
174
+ readonly type: BooleanConstructor;
175
+ };
176
+ }>> & Readonly<{}>, {
177
+ readonly modelValue: unknown[];
178
+ readonly labelKey: string;
179
+ readonly keyKey: string;
180
+ readonly childrenKey: string;
181
+ readonly defaultExpandKeys: Key[];
182
+ readonly multiple: boolean;
183
+ readonly remote: boolean;
184
+ readonly clickToSelect: boolean;
185
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
186
+ export default _sfc_main;
@@ -0,0 +1,38 @@
1
+ import { PropType } from "vue";
2
+ import { TreeNodes } from "./tree";
3
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ item: {
5
+ type: PropType<TreeNodes>;
6
+ default(): {};
7
+ };
8
+ expandedKeys: {
9
+ type: PropType<Set<string | number>>;
10
+ };
11
+ }>, {
12
+ props: any;
13
+ emits: (event: "toggleExpand", ...args: any[]) => void;
14
+ bem: {
15
+ b: (block?: string | undefined) => string;
16
+ e: (element: string) => string;
17
+ m: (modifier: string) => string;
18
+ be: (block: string, element: string) => string;
19
+ em: (element: string, modifier: string) => string;
20
+ bem: (block: string, element: string, modifier: string) => string;
21
+ is: (name: string, state: string | boolean) => string;
22
+ };
23
+ isExpanded: import("vue").ComputedRef<boolean>;
24
+ handleClick: () => void;
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggleExpand"[], "toggleExpand", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
+ item: {
27
+ type: PropType<TreeNodes>;
28
+ default(): {};
29
+ };
30
+ expandedKeys: {
31
+ type: PropType<Set<string | number>>;
32
+ };
33
+ }>> & Readonly<{
34
+ onToggleExpand?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ item: TreeNodes;
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ declare const HbFuncComponents: any;
2
+ export default HbFuncComponents;
@@ -0,0 +1,10 @@
1
+ interface TableHeightOptions {
2
+ formRef?: any;
3
+ offsetBottom?: number;
4
+ minHeight?: number;
5
+ }
6
+ declare const useCalTableHeight: (options?: TableHeightOptions) => {
7
+ tableHeight: import("vue").Ref<number, number>;
8
+ calTableHeight: () => void;
9
+ };
10
+ export default useCalTableHeight;
@@ -0,0 +1,5 @@
1
+ import { type ComputedRef } from 'vue';
2
+ declare const useCalTableWidth: (columns: ComputedRef<any[]> | any[]) => {
3
+ tableWidth: ComputedRef<number>;
4
+ };
5
+ export default useCalTableWidth;
@@ -0,0 +1,37 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export interface LocalShowList_intf {
3
+ label?: string;
4
+ key: string;
5
+ isFixed?: boolean;
6
+ isActive?: boolean;
7
+ isLinked?: boolean;
8
+ labelLanguage?: string;
9
+ [key: string]: any;
10
+ }
11
+ export interface HbSfCmProps_intf {
12
+ subLabel?: string;
13
+ label?: string;
14
+ prop?: string;
15
+ showNumber?: number;
16
+ [key: string]: any;
17
+ }
18
+ export declare const HbSfCmProps: {
19
+ readonly list: {
20
+ readonly type: PropType<HbSfCmProps_intf[]>;
21
+ readonly default: () => never[];
22
+ readonly required: true;
23
+ };
24
+ readonly afterChange: {
25
+ readonly type: PropType<(val: any) => void>;
26
+ readonly default: () => void;
27
+ };
28
+ readonly title: {
29
+ readonly type: PropType<string>;
30
+ readonly default: "自定义查询条件";
31
+ };
32
+ readonly showNumber: {
33
+ readonly type: PropType<number>;
34
+ readonly default: 40;
35
+ };
36
+ };
37
+ export type HbSfCmType = ExtractPropTypes<typeof HbSfCmProps>;
@@ -0,0 +1,27 @@
1
+ export interface SelectorOption_Intf {
2
+ label: string;
3
+ value: string | number;
4
+ description?: string;
5
+ }
6
+ export interface SelectorProps_Intf {
7
+ title?: string;
8
+ placeholder?: string;
9
+ searchPlaceholder?: string;
10
+ width?: number;
11
+ options?: SelectorOption_Intf[];
12
+ multiple?: boolean;
13
+ prefix?: string;
14
+ value?: string | string[];
15
+ remoteSearch?: boolean;
16
+ searchValue?: string;
17
+ maxTagCount?: number;
18
+ tagTextLength?: number;
19
+ }
20
+ export interface Emits_Intf {
21
+ 'update:value': [value: string | string[]];
22
+ 'update:searchValue': [searchValue: string];
23
+ change: [value: string | string[], selectedOptions: SelectorOption_Intf[]];
24
+ confirm: [value: string | string[], selectedOptions: SelectorOption_Intf[]];
25
+ cancel: [];
26
+ search: [keyword: string];
27
+ }
@@ -0,0 +1,33 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const HbFormSelectModalprops: {
3
+ readonly modelTitle: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "搜索弹窗";
6
+ };
7
+ readonly modalWidth: {
8
+ readonly type: NumberConstructor;
9
+ readonly default: 800;
10
+ };
11
+ readonly tableHeight: {
12
+ readonly type: NumberConstructor;
13
+ readonly default: 500;
14
+ };
15
+ readonly tableColumn: {
16
+ readonly type: ArrayConstructor;
17
+ readonly default: () => never[];
18
+ readonly required: true;
19
+ };
20
+ readonly tableData: {
21
+ readonly type: ArrayConstructor;
22
+ readonly default: () => never[];
23
+ };
24
+ readonly tableKey: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "id";
27
+ };
28
+ readonly labelKey: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "label";
31
+ };
32
+ };
33
+ export type HbFormSelectModalpropsType = ExtractPropTypes<typeof HbFormSelectModalprops>;
@@ -0,0 +1,21 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { LocalShowList_intf } from '../../components/types/hb_form_item_filter_modal_type';
3
+ export declare const HbListBtnsProps: {
4
+ readonly formItems: {
5
+ readonly type: PropType<LocalShowList_intf[]>;
6
+ readonly default: () => never[];
7
+ };
8
+ readonly isShowSelfFilter: {
9
+ readonly type: BooleanConstructor;
10
+ readonly default: true;
11
+ };
12
+ readonly needReload: {
13
+ readonly type: BooleanConstructor;
14
+ readonly default: true;
15
+ };
16
+ readonly needOpenOrClose: {
17
+ readonly type: BooleanConstructor;
18
+ readonly default: true;
19
+ };
20
+ };
21
+ export type HbListBtnsPropsType = ExtractPropTypes<typeof HbListBtnsProps>;
@@ -0,0 +1,70 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { FormProps, FormItemProps } from 'ant-design-vue';
3
+ export type SelfType = 'slot' | 'mixin';
4
+ export type FormType = 'input' | 'select' | 'checkbox' | 'date-picker' | 'input-number' | 'radio' | 'switch';
5
+ export type Type = FormType | SelfType;
6
+ export interface BaseFormItem extends Partial<FormItemProps> {
7
+ type: Type;
8
+ prop: string;
9
+ label?: string;
10
+ width?: string;
11
+ align?: string;
12
+ tooltip?: boolean;
13
+ isFixed?: boolean;
14
+ left?: Partial<HbFormItems>;
15
+ right?: Partial<HbFormItems>;
16
+ isUnNeedBorder?: boolean;
17
+ [key: string]: any;
18
+ }
19
+ type FormItemWithConditionalOptions<T extends Type> = T extends 'select' ? BaseFormItem & {
20
+ options: Record<string, any>;
21
+ } : BaseFormItem & {
22
+ options?: Record<string, any>;
23
+ };
24
+ export type HbFormItems = FormItemWithConditionalOptions<SelfType | FormType>;
25
+ export declare const HbFormProps: {
26
+ readonly items: {
27
+ readonly type: PropType<HbFormItems[]>;
28
+ readonly required: true;
29
+ };
30
+ readonly formData: {
31
+ readonly type: PropType<Record<string, any>>;
32
+ readonly required: true;
33
+ };
34
+ readonly layoutConfig: {
35
+ readonly type: PropType<{
36
+ row: Record<string, any>;
37
+ col: Record<string, any>;
38
+ }>;
39
+ readonly default: {
40
+ readonly row: {
41
+ readonly gutter: 20;
42
+ };
43
+ readonly col: {
44
+ readonly xs: 24;
45
+ readonly sm: 12;
46
+ readonly md: 8;
47
+ readonly lg: 6;
48
+ readonly xl: 6;
49
+ };
50
+ };
51
+ };
52
+ readonly needFooter: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: false;
55
+ };
56
+ readonly isFormExpanded: {
57
+ readonly type: BooleanConstructor;
58
+ readonly default: true;
59
+ };
60
+ readonly needFilter: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: true;
63
+ };
64
+ readonly calTableHeight: {
65
+ readonly type: PropType<() => void>;
66
+ readonly default: () => void;
67
+ };
68
+ };
69
+ export type HbFormPropsType = ExtractPropTypes<typeof HbFormProps> & FormProps;
70
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { LocalShowList_intf } from '../../components/types/hb_form_item_filter_modal_type';
3
+ export interface Breadcrumbs_intf {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export declare const HbListPageActProps: {
8
+ readonly formItems: {
9
+ readonly type: PropType<LocalShowList_intf[]>;
10
+ readonly default: () => never[];
11
+ };
12
+ readonly isShowSelfFilter: {
13
+ readonly type: BooleanConstructor;
14
+ readonly default: true;
15
+ };
16
+ readonly isShowOpenClose: {
17
+ readonly type: BooleanConstructor;
18
+ readonly default: true;
19
+ };
20
+ readonly isShowFullScreen: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: true;
23
+ };
24
+ };
25
+ export type HbListPageActType = ExtractPropTypes<typeof HbListPageActProps>;
@@ -0,0 +1,18 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const ListPageContainerProps: {
3
+ readonly tableHeight: {
4
+ readonly type: NumberConstructor;
5
+ readonly default: 400;
6
+ };
7
+ readonly tabelData: {
8
+ readonly type: ArrayConstructor;
9
+ readonly default: () => never[];
10
+ };
11
+ readonly offsetBottom: {
12
+ readonly type: NumberConstructor;
13
+ };
14
+ readonly minHeight: {
15
+ readonly type: NumberConstructor;
16
+ };
17
+ };
18
+ export type HbLibListPageContainerProps = ExtractPropTypes<typeof ListPageContainerProps>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 操作项接口定义
3
+ */
4
+ export interface ActionItem {
5
+ key: string;
6
+ label: string;
7
+ condition?: boolean;
8
+ type?: 'main' | 'more';
9
+ handler: Function;
10
+ needConfirm?: boolean;
11
+ confirmTitle?: string;
12
+ confirmType?: 'popconfirm' | 'modal';
13
+ confirmContent?: string;
14
+ permissionsTag?: string;
15
+ }
16
+ /**
17
+ * 组件属性接口定义
18
+ */
19
+ export interface Props {
20
+ actions: ActionItem[];
21
+ record: any;
22
+ buttonDisplaysQuantity?: number;
23
+ }
@@ -0,0 +1,7 @@
1
+ export interface DragItem_Intf {
2
+ label: string;
3
+ value: string;
4
+ fixed?: string | boolean;
5
+ checked: string | boolean;
6
+ [key: string]: unknown;
7
+ }
@@ -0,0 +1,34 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export interface ColumnType {
3
+ title: string;
4
+ dataIndex: string;
5
+ key: string;
6
+ width?: string | number;
7
+ align?: string;
8
+ ellipsis?: boolean;
9
+ fixed?: boolean | string;
10
+ needTooltip?: boolean;
11
+ needCopy?: boolean;
12
+ needFormat?: boolean;
13
+ format?: string;
14
+ [key: string]: any;
15
+ }
16
+ export declare const HbTableProps: {
17
+ readonly columns: {
18
+ readonly type: PropType<ColumnType[]>;
19
+ readonly default: () => never[];
20
+ readonly required: true;
21
+ };
22
+ readonly childColumns: {
23
+ readonly type: PropType<ColumnType[]>;
24
+ readonly default: () => never[];
25
+ };
26
+ readonly rowHeight: {
27
+ readonly type: PropType<string | number>;
28
+ };
29
+ readonly defaultWidth: {
30
+ readonly type: PropType<string | number>;
31
+ readonly default: 150;
32
+ };
33
+ };
34
+ export type HbTablePropsType = ExtractPropTypes<typeof HbTableProps>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 创建 BEM风格的类名
3
+ * bem(block, element, modifier)
4
+ * 比如 hhb-button
5
+ * hhb-button__header
6
+ * hhb-button--primary
7
+ *
8
+ * is-disabled is-checked
9
+ *
10
+ * */
11
+ export declare const createNameSpace: (name?: string) => {
12
+ b: (block?: string) => string;
13
+ e: (element: string) => string;
14
+ m: (modifier: string) => string;
15
+ be: (block: string, element: string) => string;
16
+ em: (element: string, modifier: string) => string;
17
+ bem: (block: string, element: string, modifier: string) => string;
18
+ is: (name: string, state: string | boolean) => string;
19
+ };
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from "vue";
2
+ type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
4
+ export {};