bkui-vue 0.0.1-beta.10 → 0.0.1-beta.14

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 (240) hide show
  1. package/dist/bkui-vue.cjs.js +5628 -472
  2. package/dist/bkui-vue.esm.js +5620 -474
  3. package/dist/bkui-vue.umd.js +5628 -472
  4. package/dist/style.css +1858 -16
  5. package/lib/alert/alert.variable.css +16 -0
  6. package/lib/alert/index.js +1 -1
  7. package/lib/animate-number/index.js +1 -1
  8. package/lib/backtop/backtop.variable.css +16 -0
  9. package/lib/backtop/index.js +1 -1
  10. package/lib/badge/badge.variable.css +16 -0
  11. package/lib/badge/index.js +1 -1
  12. package/lib/breadcrumb/breadcrumb.variable.css +16 -0
  13. package/lib/breadcrumb/index.d.ts +1 -1
  14. package/lib/breadcrumb/index.js +1 -1
  15. package/lib/button/button.d.ts +12 -12
  16. package/lib/button/button.less +6 -6
  17. package/lib/button/button.variable.css +16 -0
  18. package/lib/button/index.d.ts +16 -19
  19. package/lib/button/index.js +1 -1
  20. package/lib/card/card.variable.css +16 -0
  21. package/lib/card/index.js +1 -1
  22. package/lib/checkbox/checkbox.variable.css +16 -0
  23. package/lib/checkbox/index.d.ts +1 -1
  24. package/lib/checkbox/index.js +1 -1
  25. package/lib/checkbox/type.d.ts +1 -1
  26. package/lib/collapse/collapse.css +8 -0
  27. package/lib/collapse/collapse.less +10 -0
  28. package/lib/collapse/collapse.variable.css +8 -0
  29. package/lib/collapse/index.js +1 -1
  30. package/lib/components.d.ts +6 -1
  31. package/lib/date-picker/date-picker.css +407 -0
  32. package/lib/date-picker/date-picker.d.ts +357 -0
  33. package/lib/date-picker/date-picker.less +526 -0
  34. package/lib/date-picker/date-picker.variable.css +493 -0
  35. package/lib/date-picker/fecha.d.ts +6 -0
  36. package/lib/date-picker/index.d.ts +525 -0
  37. package/lib/date-picker/index.js +1 -0
  38. package/lib/date-picker/interface.d.ts +22 -0
  39. package/lib/date-picker/utils.d.ts +97 -0
  40. package/lib/dialog/index.js +1 -1
  41. package/lib/directives/index.d.ts +1 -0
  42. package/lib/directives/index.js +14 -14
  43. package/lib/directives/tooltips.d.ts +17 -0
  44. package/lib/divider/divider.css +38 -0
  45. package/lib/divider/divider.d.ts +40 -0
  46. package/lib/divider/divider.less +53 -0
  47. package/lib/divider/divider.variable.css +124 -0
  48. package/lib/divider/index.d.ts +110 -0
  49. package/lib/divider/index.js +1 -0
  50. package/lib/dropdown/dropdown-item.d.ts +18 -0
  51. package/lib/dropdown/dropdown-menu.d.ts +15 -0
  52. package/lib/dropdown/dropdown.css +43 -0
  53. package/lib/dropdown/dropdown.d.ts +49 -0
  54. package/lib/dropdown/dropdown.less +54 -0
  55. package/lib/dropdown/dropdown.variable.css +129 -0
  56. package/lib/dropdown/index.d.ts +160 -0
  57. package/lib/dropdown/index.js +1 -0
  58. package/lib/exception/exception.variable.css +16 -0
  59. package/lib/exception/index.js +1 -1
  60. package/lib/fixed-navbar/fixed-navbar.variable.css +16 -0
  61. package/lib/fixed-navbar/index.js +1 -1
  62. package/lib/form/common.d.ts +3 -0
  63. package/lib/form/form-item.d.ts +140 -0
  64. package/lib/form/form.css +39 -0
  65. package/lib/form/form.d.ts +76 -0
  66. package/lib/form/form.less +50 -0
  67. package/lib/form/form.variable.css +39 -0
  68. package/lib/form/index.d.ts +4 -0
  69. package/lib/form/index.js +1 -0
  70. package/lib/form/type.d.ts +21 -0
  71. package/lib/form/validator.d.ts +8 -0
  72. package/lib/icon/angle-double-left.d.ts +4 -0
  73. package/lib/icon/angle-double-right.d.ts +4 -0
  74. package/lib/icon/angle-down-line.d.ts +4 -0
  75. package/lib/icon/angle-down.d.ts +4 -0
  76. package/lib/icon/angle-left.d.ts +4 -0
  77. package/lib/icon/angle-right.d.ts +4 -0
  78. package/lib/icon/circle.d.ts +4 -0
  79. package/lib/icon/code.d.ts +4 -0
  80. package/lib/icon/cog-shape.d.ts +4 -0
  81. package/lib/icon/collapse-left.d.ts +4 -0
  82. package/lib/icon/copy.d.ts +4 -0
  83. package/lib/icon/done.d.ts +4 -0
  84. package/lib/icon/down-shape.d.ts +4 -0
  85. package/lib/icon/error.d.ts +4 -0
  86. package/lib/icon/folder-open.d.ts +4 -0
  87. package/lib/icon/folder-shape-open.d.ts +4 -0
  88. package/lib/icon/folder-shape.d.ts +4 -0
  89. package/lib/icon/folder.d.ts +4 -0
  90. package/lib/icon/index.d.ts +27 -0
  91. package/lib/icon/index.js +1 -1
  92. package/lib/icon/info.d.ts +4 -0
  93. package/lib/icon/play-shape.d.ts +4 -0
  94. package/lib/icon/plus.d.ts +4 -0
  95. package/lib/icon/right-shape.d.ts +4 -0
  96. package/lib/icon/share.d.ts +4 -0
  97. package/lib/icon/success.d.ts +4 -0
  98. package/lib/icon/text-file.d.ts +4 -0
  99. package/lib/icon/tree-application-shape.d.ts +4 -0
  100. package/lib/icon/warn.d.ts +4 -0
  101. package/lib/index.d.ts +1 -0
  102. package/lib/input/index.d.ts +36 -36
  103. package/lib/input/index.js +1 -1
  104. package/lib/input/input.d.ts +10 -10
  105. package/lib/input/input.variable.css +16 -0
  106. package/lib/link/index.js +1 -1
  107. package/lib/link/link.variable.css +16 -0
  108. package/lib/loading/index.d.ts +21 -4
  109. package/lib/loading/index.js +1 -1
  110. package/lib/loading/loading.d.ts +13 -2
  111. package/lib/loading/loading.variable.css +16 -0
  112. package/lib/menu/index.d.ts +169 -0
  113. package/lib/menu/index.js +1 -0
  114. package/lib/menu/menu-group.d.ts +13 -0
  115. package/lib/menu/menu-item.d.ts +15 -0
  116. package/lib/menu/menu.css +182 -0
  117. package/lib/menu/menu.d.ts +60 -0
  118. package/lib/menu/menu.less +180 -0
  119. package/lib/menu/menu.variable.css +268 -0
  120. package/lib/menu/submenu.d.ts +21 -0
  121. package/lib/menu/submenu.less +5 -0
  122. package/lib/menu/submenu.variable.css +86 -0
  123. package/lib/menu/utils.d.ts +41 -0
  124. package/lib/message/index.d.ts +1 -1
  125. package/lib/message/index.js +1 -1
  126. package/lib/message/message.css +17 -0
  127. package/lib/message/message.less +18 -0
  128. package/lib/message/message.variable.css +33 -0
  129. package/lib/message/messageConstructor.d.ts +12 -6
  130. package/lib/modal/index.js +1 -1
  131. package/lib/navigation/index.d.ts +2 -0
  132. package/lib/navigation/index.js +1 -0
  133. package/lib/navigation/navigation-title.d.ts +22 -0
  134. package/lib/navigation/navigation.css +184 -0
  135. package/lib/navigation/navigation.d.ts +94 -0
  136. package/lib/navigation/navigation.less +210 -0
  137. package/lib/navigation/navigation.variable.css +270 -0
  138. package/lib/notify/index.d.ts +2 -0
  139. package/lib/notify/index.js +1 -0
  140. package/lib/notify/notify.css +49 -0
  141. package/lib/notify/notify.less +58 -0
  142. package/lib/notify/notify.variable.css +135 -0
  143. package/lib/notify/notifyConstructor.d.ts +75 -0
  144. package/lib/popover/index.d.ts +19 -19
  145. package/lib/popover/index.js +1 -1
  146. package/lib/popover/popover.css +2 -3
  147. package/lib/popover/popover.d.ts +8 -8
  148. package/lib/popover/popover.less +2 -3
  149. package/lib/popover/popover.variable.css +18 -3
  150. package/lib/preset.d.ts +2 -3
  151. package/lib/process/index.d.ts +145 -0
  152. package/lib/process/index.js +15 -0
  153. package/lib/process/process.css +139 -0
  154. package/lib/process/process.d.ts +116 -0
  155. package/lib/process/process.less +179 -0
  156. package/lib/process/process.variable.css +225 -0
  157. package/lib/progress/index.d.ts +4 -4
  158. package/lib/progress/index.js +1 -1
  159. package/lib/progress/progress.d.ts +1 -1
  160. package/lib/progress/progress.variable.css +16 -0
  161. package/lib/radio/index.d.ts +2 -2
  162. package/lib/radio/index.js +1 -1
  163. package/lib/radio/radio.css +6 -0
  164. package/lib/radio/radio.less +7 -0
  165. package/lib/radio/radio.variable.css +22 -0
  166. package/lib/rate/index.js +1 -1
  167. package/lib/rate/star.d.ts +2 -2
  168. package/lib/select/common.d.ts +4 -3
  169. package/lib/select/index.d.ts +211 -60
  170. package/lib/select/index.js +15 -1
  171. package/lib/select/option.d.ts +2 -2
  172. package/lib/select/optionGroup.d.ts +115 -0
  173. package/lib/select/select.css +52 -12
  174. package/lib/select/select.d.ts +24 -21
  175. package/lib/select/select.less +73 -7
  176. package/lib/select/select.variable.css +68 -12
  177. package/lib/shared/bk-popover.d.ts +11 -1
  178. package/lib/shared/index.d.ts +7 -0
  179. package/lib/shared/index.js +1 -1
  180. package/lib/shared/vue-types.d.ts +1 -0
  181. package/lib/shared/z-index-manager.d.ts +6 -1
  182. package/lib/sideslider/index.js +1 -1
  183. package/lib/sideslider/sideslider.variable.css +16 -0
  184. package/lib/slider/index.d.ts +27 -0
  185. package/lib/slider/index.js +15 -0
  186. package/lib/slider/slider-button.d.ts +72 -0
  187. package/lib/slider/slider.css +149 -0
  188. package/lib/slider/slider.d.ts +159 -0
  189. package/lib/slider/slider.less +179 -0
  190. package/lib/slider/slider.variable.css +235 -0
  191. package/lib/steps/index.d.ts +15 -15
  192. package/lib/steps/index.js +2 -2
  193. package/lib/steps/steps.css +1 -1
  194. package/lib/steps/steps.d.ts +4 -4
  195. package/lib/steps/steps.less +1 -1
  196. package/lib/steps/steps.variable.css +17 -1
  197. package/lib/styles/index.d.ts +12 -0
  198. package/lib/styles/index.js +1 -1
  199. package/lib/styles/mixins/popper.css +43 -0
  200. package/lib/styles/mixins/popper.less +52 -0
  201. package/lib/styles/mixins/popper.variable.css +43 -0
  202. package/lib/styles/mixins/size.less +9 -0
  203. package/lib/styles/reset.css +273 -0
  204. package/lib/styles/reset.less +313 -0
  205. package/lib/styles/reset.variable.css +273 -0
  206. package/lib/styles/themes/themes.less +26 -1
  207. package/lib/switcher/index.js +1 -1
  208. package/lib/switcher/switcher.variable.css +16 -0
  209. package/lib/tab/index.d.ts +416 -0
  210. package/lib/tab/index.js +1 -0
  211. package/lib/tab/tab-nav.d.ts +154 -0
  212. package/lib/tab/tab-panel.d.ts +46 -0
  213. package/lib/tab/tab.css +147 -0
  214. package/lib/tab/tab.d.ts +131 -0
  215. package/lib/tab/tab.less +221 -0
  216. package/lib/tab/tab.variable.css +233 -0
  217. package/lib/table/index.d.ts +71 -60
  218. package/lib/table/index.js +1 -1
  219. package/lib/table/props.d.ts +41 -0
  220. package/lib/table/render.d.ts +47 -0
  221. package/lib/table/table.css +44 -0
  222. package/lib/table/table.d.ts +22 -63
  223. package/lib/table/table.less +63 -1
  224. package/lib/table/table.variable.css +60 -0
  225. package/lib/table/utils.d.ts +22 -0
  226. package/lib/tag/index.js +1 -1
  227. package/lib/tag/tag.variable.css +16 -0
  228. package/lib/tree/index.d.ts +149 -0
  229. package/lib/tree/index.js +1 -0
  230. package/lib/tree/tree.css +35 -0
  231. package/lib/tree/tree.d.ts +58 -0
  232. package/lib/tree/tree.less +55 -0
  233. package/lib/tree/tree.variable.css +35 -0
  234. package/lib/tree/util.d.ts +89 -0
  235. package/lib/use-message.d.ts +2 -0
  236. package/package.json +9 -1
  237. package/lib/message/message.d.ts +0 -2
  238. package/lib/table/common.d.ts +0 -3
  239. package/lib/table/table-layout.d.ts +0 -14
  240. package/lib/table/type.d.ts +0 -12
@@ -1,5 +1,67 @@
1
1
  @import '../styles/themes/themes.less';
2
2
 
3
3
  .@{bk-prefix}-table {
4
-
4
+ .@{bk-prefix}-table-body {
5
+ height: 500px;
6
+ overflow: auto;
7
+ background: @white-color;
8
+
9
+ table {
10
+ width: 100%;
11
+ border-collapse: collapse;
12
+
13
+ .cell {
14
+ height: 40px;
15
+ padding: 0 15px;
16
+ overflow: hidden;
17
+ line-height: 40px;
18
+ text-overflow: ellipsis;
19
+ white-space: nowrap;
20
+ }
21
+
22
+ th,
23
+ td {
24
+ min-width: 80px;
25
+ border-bottom: 1px solid #dfe0e5;
26
+ }
27
+
28
+ thead {
29
+ th {
30
+ position: sticky;
31
+ top: 0;
32
+ z-index: 1;
33
+ background-color: #fff;
34
+
35
+ &.active {
36
+ background: #f0f1f5;
37
+ // cursor: ;
38
+ }
39
+ }
40
+ }
41
+
42
+ tbody {
43
+ tr {
44
+ &:hover {
45
+ td {
46
+ background: #f5f7fa;
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ .@{bk-prefix}-table-fixed {
54
+ width: 100%;
55
+ }
56
+
57
+ colgroup {
58
+ col {
59
+ background: #fff;
60
+
61
+ &.active {
62
+ position: relative;
63
+ background: #f0f1f5;
64
+ }
65
+ }
66
+ }
5
67
  }
@@ -5,6 +5,7 @@
5
5
  --warning-color: #ff9c01;
6
6
  --danger-color: #ea3636;
7
7
  --default-color: #63656e;
8
+ --gray-color: #979ba5;
8
9
  --light-gray: #c4c6cc;
9
10
  --white-color: white;
10
11
  --disable-color: #dcdee5;
@@ -67,4 +68,63 @@
67
68
  --message-success-border-color: #dcffe2;
68
69
  --message-danger-bg-color: #ffeded;
69
70
  --message-danger-border-color: #ffdddd;
71
+ --slider-default-bg: #dcdee5;
72
+ --slider-disable-bar-bg: #979ba5;
73
+ --menu-bg-color: #182132;
74
+ --submenu-bg-color: #151d2c;
75
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
76
+ --menu-color: #96a2b9;
77
+ --menu-group-color: var(--default-color);
78
+ --menu-width: 260px;
79
+ --menu-collapse-width: 60px;
80
+ --menu-active-color: white;
81
+ --nav-header-bg-color: #182132;
82
+ --nav-bg-color: #182132;
83
+ --date-picker-disabled-bg: #fafbfd;
84
+ --date-picker-dropdown-mb: 4px;
85
+ --date-picker-dropdown-bg: #fff;
86
+ }
87
+ .bk-table .bk-table-body {
88
+ height: 500px;
89
+ overflow: auto;
90
+ background: var(--white-color);
91
+ }
92
+ .bk-table .bk-table-body table {
93
+ width: 100%;
94
+ border-collapse: collapse;
95
+ }
96
+ .bk-table .bk-table-body table .cell {
97
+ height: 40px;
98
+ padding: 0 15px;
99
+ overflow: hidden;
100
+ line-height: 40px;
101
+ text-overflow: ellipsis;
102
+ white-space: nowrap;
103
+ }
104
+ .bk-table .bk-table-body table th,
105
+ .bk-table .bk-table-body table td {
106
+ min-width: 80px;
107
+ border-bottom: 1px solid #dfe0e5;
108
+ }
109
+ .bk-table .bk-table-body table thead th {
110
+ position: sticky;
111
+ top: 0;
112
+ z-index: 1;
113
+ background-color: #fff;
114
+ }
115
+ .bk-table .bk-table-body table thead th.active {
116
+ background: #f0f1f5;
117
+ }
118
+ .bk-table .bk-table-body table tbody tr:hover td {
119
+ background: #f5f7fa;
120
+ }
121
+ .bk-table .bk-table-fixed {
122
+ width: 100%;
123
+ }
124
+ .bk-table colgroup col {
125
+ background: #fff;
126
+ }
127
+ .bk-table colgroup col.active {
128
+ position: relative;
129
+ background: #f0f1f5;
70
130
  }
@@ -0,0 +1,22 @@
1
+ import { TablePropTypes } from './props';
2
+ /**
3
+ * 解析Prop值 | 可能为多种类型 & 函数返回的场景
4
+ * @param prop 当前Prop
5
+ * @param key 要处理的Key
6
+ * @param args 如果是函数,传递参数
7
+ * @returns
8
+ */
9
+ export declare const resolvePropVal: (prop: any, key: string, args: any[]) => any;
10
+ /**
11
+ * 处理Props中的ActiveColumn,解析为统一的数组格式
12
+ * @param props
13
+ * @returns
14
+ */
15
+ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
16
+ /**
17
+ * 统一处理数字类型参数
18
+ * @param prop
19
+ * @returns
20
+ */
21
+ export declare const resolveNumberToNumArray: (prop: number) => number[];
22
+ export declare const resolveWidth: (propWidth: string | number) => string | number;
package/lib/tag/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,n){"use strict";var o=t.defineComponent({name:"BkTag",props:{},setup:function(){return function(){return t.createVNode("div",null,[t.createTextVNode("Tag")])}}}),u=n.withInstall(o);e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,n){"use strict";var o=t.defineComponent({name:"Tag",props:{},setup:function(){return function(){return t.createVNode("div",null,[t.createTextVNode("Tag")])}}}),u=n.withInstall(o);e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -5,6 +5,7 @@
5
5
  --warning-color: #ff9c01;
6
6
  --danger-color: #ea3636;
7
7
  --default-color: #63656e;
8
+ --gray-color: #979ba5;
8
9
  --light-gray: #c4c6cc;
9
10
  --white-color: white;
10
11
  --disable-color: #dcdee5;
@@ -67,4 +68,19 @@
67
68
  --message-success-border-color: #dcffe2;
68
69
  --message-danger-bg-color: #ffeded;
69
70
  --message-danger-border-color: #ffdddd;
71
+ --slider-default-bg: #dcdee5;
72
+ --slider-disable-bar-bg: #979ba5;
73
+ --menu-bg-color: #182132;
74
+ --submenu-bg-color: #151d2c;
75
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
76
+ --menu-color: #96a2b9;
77
+ --menu-group-color: var(--default-color);
78
+ --menu-width: 260px;
79
+ --menu-collapse-width: 60px;
80
+ --menu-active-color: white;
81
+ --nav-header-bg-color: #182132;
82
+ --nav-bg-color: #182132;
83
+ --date-picker-disabled-bg: #fafbfd;
84
+ --date-picker-dropdown-mb: 4px;
85
+ --date-picker-dropdown-bg: #fff;
70
86
  }
@@ -0,0 +1,149 @@
1
+ declare const BkTree: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ data: any[];
7
+ children: string;
8
+ indent: number;
9
+ lineHeight: number;
10
+ }> & Omit<Readonly<{
11
+ data?: unknown;
12
+ label?: unknown;
13
+ children?: unknown;
14
+ indent?: unknown;
15
+ lineHeight?: unknown;
16
+ levelLine?: unknown;
17
+ } & {
18
+ data: any[];
19
+ children: string;
20
+ indent: number;
21
+ lineHeight: number;
22
+ } & {
23
+ label?: any;
24
+ levelLine?: any;
25
+ }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "data" | "children" | "indent" | "lineHeight">;
26
+ $attrs: {
27
+ [x: string]: unknown;
28
+ };
29
+ $refs: {
30
+ [x: string]: unknown;
31
+ };
32
+ $slots: Readonly<{
33
+ [name: string]: import("vue").Slot;
34
+ }>;
35
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
36
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
37
+ $emit: (event: string, ...args: any[]) => void;
38
+ $el: any;
39
+ $options: import("vue").ComponentOptionsBase<Readonly<{
40
+ data?: unknown;
41
+ label?: unknown;
42
+ children?: unknown;
43
+ indent?: unknown;
44
+ lineHeight?: unknown;
45
+ levelLine?: unknown;
46
+ } & {
47
+ data: any[];
48
+ children: string;
49
+ indent: number;
50
+ lineHeight: number;
51
+ } & {
52
+ label?: any;
53
+ levelLine?: any;
54
+ }> & {}, {
55
+ renderData: import("vue").ComputedRef<any[]>;
56
+ flatData: {
57
+ data: any[];
58
+ schema: {};
59
+ levelLineSchema: {};
60
+ };
61
+ hanldeTreeNodeClick: (item: any) => void;
62
+ getActionIcon: (item: any) => JSX.Element;
63
+ getRootIcon: (item: any) => JSX.Element;
64
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
65
+ data: any[];
66
+ children: string;
67
+ indent: number;
68
+ lineHeight: number;
69
+ }> & {
70
+ beforeCreate?: (() => void) | (() => void)[];
71
+ created?: (() => void) | (() => void)[];
72
+ beforeMount?: (() => void) | (() => void)[];
73
+ mounted?: (() => void) | (() => void)[];
74
+ beforeUpdate?: (() => void) | (() => void)[];
75
+ updated?: (() => void) | (() => void)[];
76
+ activated?: (() => void) | (() => void)[];
77
+ deactivated?: (() => void) | (() => void)[];
78
+ beforeDestroy?: (() => void) | (() => void)[];
79
+ beforeUnmount?: (() => void) | (() => void)[];
80
+ destroyed?: (() => void) | (() => void)[];
81
+ unmounted?: (() => void) | (() => void)[];
82
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
83
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
84
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
85
+ };
86
+ $forceUpdate: () => void;
87
+ $nextTick: typeof import("vue").nextTick;
88
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
89
+ } & Readonly<{
90
+ data?: unknown;
91
+ label?: unknown;
92
+ children?: unknown;
93
+ indent?: unknown;
94
+ lineHeight?: unknown;
95
+ levelLine?: unknown;
96
+ } & {
97
+ data: any[];
98
+ children: string;
99
+ indent: number;
100
+ lineHeight: number;
101
+ } & {
102
+ label?: any;
103
+ levelLine?: any;
104
+ }> & {} & import("vue").ShallowUnwrapRef<{
105
+ renderData: import("vue").ComputedRef<any[]>;
106
+ flatData: {
107
+ data: any[];
108
+ schema: {};
109
+ levelLineSchema: {};
110
+ };
111
+ hanldeTreeNodeClick: (item: any) => void;
112
+ getActionIcon: (item: any) => JSX.Element;
113
+ getRootIcon: (item: any) => JSX.Element;
114
+ }> & {} & {} & import("vue").ComponentCustomProperties;
115
+ __isFragment?: never;
116
+ __isTeleport?: never;
117
+ __isSuspense?: never;
118
+ } & import("vue").ComponentOptionsBase<Readonly<{
119
+ data?: unknown;
120
+ label?: unknown;
121
+ children?: unknown;
122
+ indent?: unknown;
123
+ lineHeight?: unknown;
124
+ levelLine?: unknown;
125
+ } & {
126
+ data: any[];
127
+ children: string;
128
+ indent: number;
129
+ lineHeight: number;
130
+ } & {
131
+ label?: any;
132
+ levelLine?: any;
133
+ }> & {}, {
134
+ renderData: import("vue").ComputedRef<any[]>;
135
+ flatData: {
136
+ data: any[];
137
+ schema: {};
138
+ levelLineSchema: {};
139
+ };
140
+ hanldeTreeNodeClick: (item: any) => void;
141
+ getActionIcon: (item: any) => JSX.Element;
142
+ getRootIcon: (item: any) => JSX.Element;
143
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
144
+ data: any[];
145
+ children: string;
146
+ indent: number;
147
+ lineHeight: number;
148
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
149
+ export default BkTree;
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("crypto"),require("@bkui-vue/icon/")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","crypto","@bkui-vue/icon/"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e.require$$0,e._)}(this,(function(e,t,n,o,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(o);function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var s=a(u.exports),c={exports:{}};!function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}(c);var p=a(c.exports),d={exports:{}},f={exports:{}},v={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o},e.exports.default=e.exports,e.exports.__esModule=!0}(v),function(e){var t=v.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(f);var h={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(h);var _={exports:{}};!function(e){var t=v.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(_);var y={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(y),function(e){var t=f.exports,n=h.exports,o=_.exports,r=y.exports;e.exports=function(e){return t(e)||n(e)||o(e)||r()},e.exports.default=e.exports,e.exports.__esModule=!0}(d);for(var x=a(d.exports),b=l.default,g=function(){return b.randomBytes(16)},m=[],O=0;O<256;++O)m[O]=(O+256).toString(16).substr(1);var j,N,T=function(e,t){var n=t||0,o=m;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")},S=g,w=T,P=0,C=0;var k=function(e,t,n){var o=t&&n||0,r=t||[],i=(e=e||{}).node||j,l=void 0!==e.clockseq?e.clockseq:N;if(null==i||null==l){var a=S();null==i&&(i=j=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==l&&(l=N=16383&(a[6]<<8|a[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),s=void 0!==e.nsecs?e.nsecs:C+1,c=u-P+(s-C)/1e4;if(c<0&&void 0===e.clockseq&&(l=l+1&16383),(c<0||u>P)&&void 0===e.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");P=u,C=s,N=l;var p=(1e4*(268435455&(u+=122192928e5))+s)%4294967296;r[o++]=p>>>24&255,r[o++]=p>>>16&255,r[o++]=p>>>8&255,r[o++]=255&p;var d=u/4294967296*1e4&268435455;r[o++]=d>>>8&255,r[o++]=255&d,r[o++]=d>>>24&15|16,r[o++]=d>>>16&255,r[o++]=l>>>8|128,r[o++]=255&l;for(var f=0;f<6;++f)r[o+f]=i[f];return t||w(r)},L=g,M=T;var A=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||M(r)},V=k,I=A,q=I;q.v1=V,q.v4=I;var R=q,D=void 0,$="1px dashed #c3cdd7",E={data:n.PropTypes.arrayOf(n.PropTypes.any).def([]),label:n.PropTypes.oneOfType([n.PropTypes.func.def(void 0),n.PropTypes.string.def("label")]),children:n.PropTypes.string.def("children"),indent:n.PropTypes.number.def(18),lineHeight:n.PropTypes.number.def(32),levelLine:n.PropTypes.oneOfType([n.PropTypes.bool.def(!1),n.PropTypes.func.def(void 0),n.PropTypes.string.def("1px dashed #c3cdd7")])},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e.data,o=e.children,r=[],i=0,l={};function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",c=0;c<e.length;c++){var d=e[c];if(Array.isArray(d))a(d,t,n,u);else{var f=Object.assign({},d);if("object"===p(f)&&null!==f){var v=R.v4(),h=""!==u?"".concat(u,"-").concat(c):"".concat(c),_=s({__depth:t,__index:c,__uuid:v,__parentId:n,__hasChild:!!(d[o]||[]).length,__path:h,__isRoot:null===n,__order:i},o,null);Object.assign(f,_),Object.assign(l,s({},h,{__isOpen:!1,__showLines:0})),i+=1,r.push(f),Object.prototype.hasOwnProperty.call(d,o)&&a(d[o],t+1,v,h)}}}}return a(t||n),[r,l]},H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=e[t];return"boolean"==typeof l?l?o:r:B(n,e,t,i)},B=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=t[n];if("string"==typeof r)return"object"===p(e)&&null!==e?(Object.prototype.hasOwnProperty.call(e,r)||console.error("cannot find node label with key ".concat(r)),e[r]):r;if("function"==typeof r){var i=r.apply(D,[e].concat(x(o)));return"string"==typeof i?i:void console.error("props label with function return value is not string, please check and return string")}},U=function(e,t){return B(e,t,"label")},W=function(e,t){return{"--level-line":H(t,"levelLine",e,$,null,["tree"]),"--lineHeight":"".concat(t.lineHeight,"px"),"--indent":"".concat(t.indent,"px"),padding:0}},z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n[e.__path]||{},r=o.childNodeCount,i=void 0===r?0:r,l=o.isLeaf,a=void 0!==l&&l,u=o.lastNode,s=void 0===u?null:u,c=a?0:(n[s]||{childNodeCount:0}).childNodeCount;return Object.assign({"--depth":e.__depth,paddingLeft:0,"--lines":i-c},"function"==typeof t.levelLine?{"--level-line":H(t,"levelLine",e,$,null,["node"])}:{})},G=function(e,t){return{"is-root":e.__isRoot,"bk-tree-node":!0,"is-open":t[e.__path].__isOpen}},J=t.defineComponent({name:"Tree",props:E,setup:function(e){var n=F(e),o=t.reactive({data:n[0],schema:n[1],levelLineSchema:{}});t.watch((function(){return[e.data]}),(function(t){var n=F(e,t);o.data=n[0],o.schema=n[1],u()}),{deep:!0}),t.watch((function(){return[e.levelLine]}),(function(){u()}));var i=t.computed((function(){return o.data.filter((function(e){return d(e)}))})),l=t.computed((function(){return i.value.map((function(e){return e.__path}))})),a=function(e){return"object"===p(e)?(o.schema[e.__path]||{}).__isOpen:"string"==typeof e&&(o.schema[e]||{}).__isOpen},u=function(){e.levelLine?setTimeout((function(){for(var e=i.value.length,t={},n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object.prototype.hasOwnProperty.call(t,e)||Object.assign(t,s({},e,Object.assign(Object.assign({childNodeCount:0,isLastNode:!1},null!==n?{lastNode:n}:{}),null!==o?{isLeaf:o}:{})))};e>0;e--){var r=i.value[e-1],a=c(r),u=!l.value.includes("".concat(r.__path,"-0"));n(r.__path,null,u),n(a,r.__path);var p=t[a],d=t[r.__path],f=d.childNodeCount,v=void 0===f?0:f;d.childNodeCount=v+1,d.isLastNode=p.lastNode===r.__path,p.childNodeCount+=d.childNodeCount}o.levelLineSchema=t})):o.levelLineSchema={}},c=function(e){if(e.__isRoot)return null;var t="-".concat(e.__index).length;return String.prototype.substring.call(e.__path,0,e.__path.length-t)},d=function(e){return e.__isRoot||a(e)||a(c(e))};return u(),{renderData:i,flatData:o,hanldeTreeNodeClick:function(e){if(e.__hasChild){var t=!a(e);Object.assign(e,{__isOpen:t}),i.value.filter((function(t){return String.prototype.startsWith.call(t.__path,e.__path)})).forEach((function(e){return Object.assign(o.schema[e.__path],{__isOpen:t})})),u()}},getActionIcon:function(e){return e.__hasChild?a(e)?t.createVNode(r.DownShape,null,null):t.createVNode(r.RightShape,null,null):null},getRootIcon:function(e){return a(e)?t.createVNode(r.FolderShapeOpen,{class:"bk-tree-icon"},null):t.createVNode(r.Folder,{class:"bk-tree-icon"},null)}}},render:function(){var e=this,n=this.$props;return t.createVNode("div",{class:"bk-tree",style:W(null,n)},[this.renderData.map((function(o){return t.createVNode("div",{class:G(o,e.flatData.schema),style:z(o,n,e.flatData.levelLineSchema),onClick:function(){return e.hanldeTreeNodeClick(o)}},[[e.getActionIcon(o),o.__isRoot?e.getRootIcon(o):t.createVNode(r.TextFile,{class:"bk-tree-icon"},null)],t.createVNode("span",null,[U(o,n)])])}))])}}),K=n.withInstall(J);e.default=K,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,35 @@
1
+ .bk-tree .bk-tree-node {
2
+ position: relative;
3
+ height: var(--lineHeight);
4
+ padding-left: 0;
5
+ line-height: var(--lineHeight);
6
+ cursor: pointer;
7
+ }
8
+ .bk-tree .bk-tree-node.is-open::after {
9
+ position: absolute;
10
+ top: calc(var(--lineHeight) / 2);
11
+ left: 0;
12
+ z-index: 1;
13
+ width: 0;
14
+ height: calc(var(--lines) * var(--lineHeight));
15
+ pointer-events: none;
16
+ border-left: var(--level-line);
17
+ content: '';
18
+ }
19
+ .bk-tree .bk-tree-node:not(.is-root) {
20
+ margin-left: calc(var(--depth)*var(--indent));
21
+ }
22
+ .bk-tree .bk-tree-node:not(.is-root)::before {
23
+ position: absolute;
24
+ top: 50%;
25
+ left: calc(0px - var(--indent));
26
+ z-index: 1;
27
+ width: var(--indent);
28
+ height: 0;
29
+ pointer-events: none;
30
+ border-bottom: var(--level-line);
31
+ content: '';
32
+ }
33
+ .bk-tree .bk-tree-node .bk-tree-icon {
34
+ margin: 0 6px 0 4px;
35
+ }
@@ -0,0 +1,58 @@
1
+ import { TreePropTypes as defineTypes } from './util';
2
+ export declare type TreePropTypes = defineTypes;
3
+ declare const _default: import("vue").DefineComponent<{
4
+ data: import("vue-types").VueTypeDef<any[]> & {
5
+ default: () => any[];
6
+ };
7
+ label: import("vue-types").VueTypeDef<any>;
8
+ children: import("vue-types").VueTypeValidableDef<string> & {
9
+ default: string;
10
+ } & {
11
+ default: string;
12
+ }; /**
13
+ * 扁平化数据
14
+ * schema: 需要展示连线时,用于计算连线高度
15
+ */
16
+ indent: import("vue-types").VueTypeValidableDef<number> & {
17
+ default: number;
18
+ } & {
19
+ default: number;
20
+ };
21
+ lineHeight: import("vue-types").VueTypeValidableDef<number> & {
22
+ default: number;
23
+ } & {
24
+ default: number;
25
+ };
26
+ levelLine: import("vue-types").VueTypeDef<any>;
27
+ }, {
28
+ renderData: import("vue").ComputedRef<any[]>;
29
+ flatData: {
30
+ data: any[];
31
+ schema: {};
32
+ levelLineSchema: {};
33
+ };
34
+ hanldeTreeNodeClick: (item: any) => void;
35
+ getActionIcon: (item: any) => JSX.Element;
36
+ getRootIcon: (item: any) => JSX.Element;
37
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
38
+ data?: unknown;
39
+ label?: unknown;
40
+ children?: unknown;
41
+ indent?: unknown;
42
+ lineHeight?: unknown;
43
+ levelLine?: unknown;
44
+ } & {
45
+ data: any[];
46
+ children: string;
47
+ indent: number;
48
+ lineHeight: number;
49
+ } & {
50
+ label?: any;
51
+ levelLine?: any;
52
+ }> & {}, {
53
+ data: any[];
54
+ children: string;
55
+ indent: number;
56
+ lineHeight: number;
57
+ }>;
58
+ export default _default;
@@ -0,0 +1,55 @@
1
+ .bk-tree {
2
+ .bk-tree-node {
3
+ position: relative;
4
+ height: var(--lineHeight);
5
+ padding-left: 0;
6
+ line-height: var(--lineHeight);
7
+ cursor: pointer;
8
+
9
+ &.is-open {
10
+ &::after {
11
+ position: absolute;
12
+ top: calc(var(--lineHeight) / 2);
13
+ left: 0;
14
+ z-index: 1;
15
+ width: 0;
16
+ height: calc(var(--lines) * var(--lineHeight));
17
+ pointer-events: none;
18
+ border-left: var(--level-line);
19
+ content: '';
20
+ }
21
+ }
22
+
23
+ &:not(.is-root) {
24
+ margin-left: calc(var(--depth)*var(--indent));
25
+
26
+ &::before {
27
+ position: absolute;
28
+ top: 50%;
29
+ left: calc(0px - var(--indent));
30
+ z-index: 1;
31
+ width: var(--indent);
32
+ height: 0;
33
+ pointer-events: none;
34
+ border-bottom: var(--level-line);
35
+ content: '';
36
+ }
37
+
38
+ // &::after {
39
+ // position: absolute;
40
+ // top: -50%;
41
+ // bottom: 50%;
42
+ // left: calc(0px - var(--indent) * var(--depth));
43
+ // z-index: 1;
44
+ // width: 0;
45
+ // pointer-events: none;
46
+ // border-left: var(--level-line);
47
+ // content: '';
48
+ // }
49
+ }
50
+
51
+ .bk-tree-icon {
52
+ margin: 0 6px 0 4px;
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,35 @@
1
+ .bk-tree .bk-tree-node {
2
+ position: relative;
3
+ height: var(--lineHeight);
4
+ padding-left: 0;
5
+ line-height: var(--lineHeight);
6
+ cursor: pointer;
7
+ }
8
+ .bk-tree .bk-tree-node.is-open::after {
9
+ position: absolute;
10
+ top: calc(var(--lineHeight) / 2);
11
+ left: 0;
12
+ z-index: 1;
13
+ width: 0;
14
+ height: calc(var(--lines) * var(--lineHeight));
15
+ pointer-events: none;
16
+ border-left: var(--level-line);
17
+ content: '';
18
+ }
19
+ .bk-tree .bk-tree-node:not(.is-root) {
20
+ margin-left: calc(var(--depth)*var(--indent));
21
+ }
22
+ .bk-tree .bk-tree-node:not(.is-root)::before {
23
+ position: absolute;
24
+ top: 50%;
25
+ left: calc(0px - var(--indent));
26
+ z-index: 1;
27
+ width: var(--indent);
28
+ height: 0;
29
+ pointer-events: none;
30
+ border-bottom: var(--level-line);
31
+ content: '';
32
+ }
33
+ .bk-tree .bk-tree-node .bk-tree-icon {
34
+ margin: 0 6px 0 4px;
35
+ }
@@ -0,0 +1,89 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const treeProps: {
3
+ /**
4
+ * 渲染列表
5
+ */
6
+ data: import("vue-types").VueTypeDef<any[]> & {
7
+ default: () => any[];
8
+ };
9
+ /**
10
+ * 指定节点标签为节点对象的某个属性值
11
+ */
12
+ label: import("vue-types").VueTypeDef<any>;
13
+ /**
14
+ * 子节点 Key, 用于读取子节点
15
+ * 默认 children
16
+ */
17
+ children: import("vue-types").VueTypeValidableDef<string> & {
18
+ default: string;
19
+ } & {
20
+ default: string;
21
+ };
22
+ /**
23
+ * 相邻级节点间的水平缩进,单位为像素
24
+ */
25
+ indent: import("vue-types").VueTypeValidableDef<number> & {
26
+ default: number;
27
+ } & {
28
+ default: number;
29
+ };
30
+ /**
31
+ * 设置行高
32
+ */
33
+ lineHeight: import("vue-types").VueTypeValidableDef<number> & {
34
+ default: number;
35
+ } & {
36
+ default: number;
37
+ };
38
+ /**
39
+ * 设置层级连线
40
+ */
41
+ levelLine: import("vue-types").VueTypeDef<any>;
42
+ };
43
+ export declare type TreePropTypes = Readonly<ExtractPropTypes<typeof treeProps>>;
44
+ /**
45
+ * 扁平化当前数据
46
+ * @param arrData
47
+ * @returns
48
+ */
49
+ export declare const getFlatdata: (props: TreePropTypes, treeData?: Array<any> | undefined) => {}[];
50
+ /**
51
+ * 获取当前节点显示Label
52
+ * @param item 当前节点
53
+ * @param props Props
54
+ */
55
+ export declare const getLabel: (item: any, props: TreePropTypes) => any;
56
+ /**
57
+ * 根据Props获取Tree样式设置
58
+ * @param item
59
+ * @param props
60
+ * @returns
61
+ */
62
+ export declare const getTreeStyle: (item: any, props: TreePropTypes) => {
63
+ '--level-line': any;
64
+ '--lineHeight': string;
65
+ '--indent': string;
66
+ padding: number;
67
+ };
68
+ /**
69
+ * 获取节点样式配置
70
+ * @param item
71
+ * @param props
72
+ * @returns
73
+ */
74
+ export declare const getNodeItemStyle: (item: any, props: TreePropTypes, schema?: any) => {
75
+ '--level-line'?: any;
76
+ '--depth': any;
77
+ paddingLeft: number;
78
+ '--lines': number;
79
+ };
80
+ /**
81
+ * 获取当前渲染节点Class List
82
+ * @param item
83
+ * @returns
84
+ */
85
+ export declare const getNodeItemClass: (item: any, schema: any) => {
86
+ 'is-root': any;
87
+ 'bk-tree-node': boolean;
88
+ 'is-open': any;
89
+ };
@@ -0,0 +1,2 @@
1
+ declare const Message: (constructor: any, options: any) => void;
2
+ export default Message;