bkui-vue 0.0.1-beta.15 → 0.0.1-beta.18

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 (250) hide show
  1. package/dist/bkui-vue.cjs.js +1171 -186
  2. package/dist/bkui-vue.esm.js +1214 -233
  3. package/dist/bkui-vue.umd.js +1171 -186
  4. package/dist/style.css +469 -14
  5. package/lib/alert/alert.d.ts +24 -15
  6. package/lib/alert/alert.variable.css +7 -0
  7. package/lib/alert/index.d.ts +96 -60
  8. package/lib/alert/index.js +1 -1
  9. package/lib/animate-number/animate-number.d.ts +12 -7
  10. package/lib/animate-number/index.d.ts +48 -28
  11. package/lib/backtop/backtop.d.ts +27 -13
  12. package/lib/backtop/backtop.variable.css +7 -0
  13. package/lib/backtop/index.d.ts +108 -52
  14. package/lib/backtop/index.js +1 -1
  15. package/lib/badge/badge.d.ts +40 -19
  16. package/lib/badge/badge.variable.css +7 -0
  17. package/lib/badge/index.d.ts +144 -76
  18. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  19. package/lib/breadcrumb/breadcrumb.d.ts +21 -13
  20. package/lib/breadcrumb/breadcrumb.variable.css +7 -0
  21. package/lib/breadcrumb/index.d.ts +97 -61
  22. package/lib/breadcrumb/index.js +1 -1
  23. package/lib/button/button-group.d.ts +3 -5
  24. package/lib/button/button.d.ts +27 -22
  25. package/lib/button/button.variable.css +7 -0
  26. package/lib/button/index.d.ts +111 -93
  27. package/lib/card/card.d.ts +30 -15
  28. package/lib/card/card.variable.css +7 -0
  29. package/lib/card/index.d.ts +120 -60
  30. package/lib/checkbox/checkbox-group.d.ts +13 -9
  31. package/lib/checkbox/checkbox.d.ts +31 -22
  32. package/lib/checkbox/checkbox.variable.css +7 -0
  33. package/lib/checkbox/index.d.ts +137 -97
  34. package/lib/collapse/collapse.d.ts +50 -18
  35. package/lib/collapse/index.d.ts +108 -72
  36. package/lib/collapse/index.js +1 -1
  37. package/lib/components.d.ts +3 -0
  38. package/lib/date-picker/date-picker.d.ts +110 -63
  39. package/lib/date-picker/date-picker.variable.css +7 -0
  40. package/lib/date-picker/index.d.ts +437 -249
  41. package/lib/date-picker/index.js +1 -1
  42. package/lib/dialog/dialog.d.ts +46 -25
  43. package/lib/dialog/index.d.ts +179 -95
  44. package/lib/divider/divider.d.ts +21 -13
  45. package/lib/divider/divider.variable.css +7 -0
  46. package/lib/divider/index.d.ts +84 -52
  47. package/lib/dropdown/dropdown-item.d.ts +6 -5
  48. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  49. package/lib/dropdown/dropdown.d.ts +25 -13
  50. package/lib/dropdown/dropdown.variable.css +7 -0
  51. package/lib/dropdown/index.d.ts +94 -62
  52. package/lib/exception/exception.d.ts +11 -9
  53. package/lib/exception/exception.variable.css +7 -0
  54. package/lib/exception/index.d.ts +44 -36
  55. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  56. package/lib/fixed-navbar/fixed-navbar.variable.css +7 -0
  57. package/lib/fixed-navbar/index.d.ts +60 -36
  58. package/lib/form/form-item.d.ts +46 -27
  59. package/lib/form/form.d.ts +22 -14
  60. package/lib/form/index.d.ts +285 -3
  61. package/lib/form/index.js +1 -1
  62. package/lib/icon/angle-double-down-line.d.ts +4 -0
  63. package/lib/icon/angle-double-down-line.js +15 -0
  64. package/lib/icon/angle-double-left-line.d.ts +4 -0
  65. package/lib/icon/angle-double-left-line.js +15 -0
  66. package/lib/icon/angle-double-left.js +15 -0
  67. package/lib/icon/angle-double-right-line.d.ts +4 -0
  68. package/lib/icon/angle-double-right-line.js +15 -0
  69. package/lib/icon/angle-double-right.js +15 -0
  70. package/lib/icon/angle-double-up-line.d.ts +4 -0
  71. package/lib/icon/angle-double-up-line.js +15 -0
  72. package/lib/icon/angle-down-fill.js +15 -0
  73. package/lib/icon/angle-down-line.js +15 -0
  74. package/lib/icon/angle-down.js +15 -0
  75. package/lib/icon/angle-left.js +15 -0
  76. package/lib/icon/angle-right.js +15 -0
  77. package/lib/icon/angle-up-fill.js +15 -0
  78. package/lib/icon/angle-up.js +15 -0
  79. package/lib/icon/arrows-left.js +15 -0
  80. package/lib/icon/circle.js +15 -0
  81. package/lib/icon/close.js +15 -0
  82. package/lib/icon/code.js +15 -0
  83. package/lib/icon/cog-shape.js +15 -0
  84. package/lib/icon/collapse-left.js +15 -0
  85. package/lib/icon/copy.js +15 -0
  86. package/lib/icon/done.js +15 -0
  87. package/lib/icon/down-shape.js +15 -0
  88. package/lib/icon/down-small.js +15 -0
  89. package/lib/icon/ellipsis.d.ts +4 -0
  90. package/lib/icon/ellipsis.js +15 -0
  91. package/lib/icon/error.js +15 -0
  92. package/lib/icon/eye.js +15 -0
  93. package/lib/icon/folder-open.js +15 -0
  94. package/lib/icon/folder-shape-open.js +15 -0
  95. package/lib/icon/folder-shape.js +15 -0
  96. package/lib/icon/folder.js +15 -0
  97. package/lib/icon/help-document-fill.js +15 -0
  98. package/lib/icon/help-fill.js +15 -0
  99. package/lib/icon/help.js +15 -0
  100. package/lib/icon/icon.js +15 -0
  101. package/lib/icon/index.d.ts +7 -0
  102. package/lib/icon/index.js +1 -1
  103. package/lib/icon/info-line.js +15 -0
  104. package/lib/icon/info.js +15 -0
  105. package/lib/icon/left-shape.d.ts +4 -0
  106. package/lib/icon/left-shape.js +15 -0
  107. package/lib/icon/play-shape.js +15 -0
  108. package/lib/icon/plus.js +15 -0
  109. package/lib/icon/right-shape.js +15 -0
  110. package/lib/icon/search.js +15 -0
  111. package/lib/icon/share.js +15 -0
  112. package/lib/icon/spinner.js +15 -0
  113. package/lib/icon/success.js +15 -0
  114. package/lib/icon/switcher-loading.js +15 -0
  115. package/lib/icon/text-file.js +15 -0
  116. package/lib/icon/tree-application-shape.js +15 -0
  117. package/lib/icon/unvisible.js +15 -0
  118. package/lib/icon/up-shape.d.ts +4 -0
  119. package/lib/icon/up-shape.js +15 -0
  120. package/lib/icon/warn.js +15 -0
  121. package/lib/input/index.d.ts +240 -160
  122. package/lib/input/index.js +2 -2
  123. package/lib/input/input.d.ts +60 -40
  124. package/lib/input/input.variable.css +7 -0
  125. package/lib/link/index.d.ts +100 -52
  126. package/lib/link/link.d.ts +25 -13
  127. package/lib/link/link.variable.css +7 -0
  128. package/lib/loading/index.d.ts +64 -64
  129. package/lib/loading/loading.d.ts +16 -16
  130. package/lib/loading/loading.variable.css +7 -0
  131. package/lib/menu/index.d.ts +90 -71
  132. package/lib/menu/index.js +1 -1
  133. package/lib/menu/menu-group.d.ts +6 -5
  134. package/lib/menu/menu-item.d.ts +6 -5
  135. package/lib/menu/menu.d.ts +18 -14
  136. package/lib/menu/menu.variable.css +7 -0
  137. package/lib/menu/submenu.css +3 -0
  138. package/lib/menu/submenu.d.ts +6 -5
  139. package/lib/menu/submenu.less +1 -1
  140. package/lib/menu/submenu.variable.css +10 -0
  141. package/lib/message/index.js +1 -1
  142. package/lib/message/message.variable.css +7 -0
  143. package/lib/message/messageConstructor.d.ts +28 -16
  144. package/lib/modal/index.d.ts +92 -56
  145. package/lib/modal/index.js +1 -1
  146. package/lib/modal/modal.d.ts +24 -15
  147. package/lib/modal/props.mixin.d.ts +1 -1
  148. package/lib/navigation/index.js +1 -1
  149. package/lib/navigation/navigation-title.d.ts +10 -7
  150. package/lib/navigation/navigation.d.ts +40 -23
  151. package/lib/navigation/navigation.variable.css +7 -0
  152. package/lib/notify/index.js +1 -1
  153. package/lib/notify/notify.variable.css +7 -0
  154. package/lib/notify/notifyConstructor.d.ts +36 -20
  155. package/lib/pagination/index.d.ts +395 -0
  156. package/lib/pagination/index.js +1 -0
  157. package/lib/pagination/pagination.css +179 -0
  158. package/lib/pagination/pagination.d.ts +220 -0
  159. package/lib/pagination/pagination.less +201 -0
  160. package/lib/pagination/pagination.variable.css +272 -0
  161. package/lib/pagination/type.d.ts +6 -0
  162. package/lib/pagination/use-limit.d.ts +8 -0
  163. package/lib/pagination/use-list.d.ts +8 -0
  164. package/lib/pagination/use-small-list.d.ts +5 -0
  165. package/lib/pagination/use-total.d.ts +5 -0
  166. package/lib/popover/index.d.ts +207 -177
  167. package/lib/popover/popover.css +1 -0
  168. package/lib/popover/popover.d.ts +52 -30
  169. package/lib/popover/popover.less +2 -0
  170. package/lib/popover/popover.variable.css +8 -0
  171. package/lib/process/index.d.ts +120 -60
  172. package/lib/process/index.js +1 -1
  173. package/lib/process/process.css +2 -3
  174. package/lib/process/process.d.ts +30 -15
  175. package/lib/process/process.less +2 -3
  176. package/lib/process/process.variable.css +9 -3
  177. package/lib/progress/index.d.ts +284 -136
  178. package/lib/progress/progress.d.ts +71 -34
  179. package/lib/progress/progress.variable.css +7 -0
  180. package/lib/radio/index.d.ts +127 -78
  181. package/lib/radio/radio-button.d.ts +24 -16
  182. package/lib/radio/radio-group.d.ts +11 -10
  183. package/lib/radio/radio.d.ts +23 -13
  184. package/lib/radio/radio.variable.css +7 -0
  185. package/lib/rate/index.d.ts +52 -40
  186. package/lib/rate/rate.d.ts +13 -10
  187. package/lib/rate/star.d.ts +32 -15
  188. package/lib/select/index.d.ts +396 -327
  189. package/lib/select/index.js +2 -2
  190. package/lib/select/option.d.ts +9 -10
  191. package/lib/select/optionGroup.d.ts +49 -41
  192. package/lib/select/select.css +2 -1
  193. package/lib/select/select.d.ts +98 -84
  194. package/lib/select/select.less +2 -1
  195. package/lib/select/select.variable.css +9 -1
  196. package/lib/shared/index.js +1 -1
  197. package/lib/sideslider/index.d.ts +111 -63
  198. package/lib/sideslider/sideslider.d.ts +29 -17
  199. package/lib/sideslider/sideslider.variable.css +7 -0
  200. package/lib/slider/slider-button.d.ts +10 -7
  201. package/lib/slider/slider.d.ts +70 -40
  202. package/lib/slider/slider.variable.css +7 -0
  203. package/lib/steps/index.d.ts +156 -104
  204. package/lib/steps/index.js +1 -1
  205. package/lib/steps/steps.css +3 -0
  206. package/lib/steps/steps.d.ts +39 -26
  207. package/lib/steps/steps.less +4 -0
  208. package/lib/steps/steps.variable.css +10 -0
  209. package/lib/styles/index.d.ts +2 -0
  210. package/lib/styles/index.js +1 -1
  211. package/lib/styles/themes/themes.less +11 -0
  212. package/lib/switcher/index.d.ts +192 -128
  213. package/lib/switcher/index.js +1 -1
  214. package/lib/switcher/switcher.d.ts +48 -32
  215. package/lib/switcher/switcher.variable.css +7 -0
  216. package/lib/tab/index.d.ts +344 -208
  217. package/lib/tab/index.js +1 -1
  218. package/lib/tab/tab-nav.d.ts +74 -38
  219. package/lib/tab/tab-panel.d.ts +22 -20
  220. package/lib/tab/tab.d.ts +64 -32
  221. package/lib/tab/tab.variable.css +7 -0
  222. package/lib/table/const.d.ts +4 -0
  223. package/lib/table/index.d.ts +154 -130
  224. package/lib/table/index.js +1 -1
  225. package/lib/table/props.d.ts +18 -0
  226. package/lib/table/render.d.ts +18 -2
  227. package/lib/table/table.css +47 -10
  228. package/lib/table/table.d.ts +47 -22
  229. package/lib/table/table.less +61 -17
  230. package/lib/table/table.variable.css +56 -12
  231. package/lib/table/utils.d.ts +28 -2
  232. package/lib/tag/index.d.ts +10 -286
  233. package/lib/tag/tag.d.ts +2 -48
  234. package/lib/tag/tag.variable.css +7 -0
  235. package/lib/timeline/index.d.ts +129 -0
  236. package/lib/timeline/index.js +1 -0
  237. package/lib/timeline/timeline.css +235 -0
  238. package/lib/timeline/timeline.d.ts +81 -0
  239. package/lib/timeline/timeline.less +239 -0
  240. package/lib/timeline/timeline.variable.css +328 -0
  241. package/lib/tree/index.d.ts +140 -75
  242. package/lib/tree/index.js +1 -1
  243. package/lib/tree/props.d.ts +19 -1
  244. package/lib/tree/tree.d.ts +42 -20
  245. package/lib/use-form.d.ts +3 -0
  246. package/lib/virtual-render/index.d.ts +410 -249
  247. package/lib/virtual-render/index.js +1 -1
  248. package/lib/virtual-render/props.d.ts +10 -0
  249. package/lib/virtual-render/virtual-render.d.ts +110 -41
  250. package/package.json +2 -2
@@ -9,21 +9,30 @@ declare const BkModal: {
9
9
  width: string | number;
10
10
  height: string | number;
11
11
  isShow: boolean;
12
- customClass: string;
12
+ customClass: string | unknown[];
13
13
  scrollable: boolean;
14
- }> & Omit<Readonly<{
15
- isShow?: unknown;
16
- width?: unknown;
17
- height?: unknown;
18
- customClass?: unknown;
19
- scrollable?: unknown;
20
- } & {
21
- width: string | number;
22
- height: string | number;
23
- isShow: boolean;
24
- customClass: string;
25
- scrollable: boolean;
26
- } & {}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "isShow" | "customClass" | "scrollable">;
14
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
+ isShow: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ width: {
20
+ type: (NumberConstructor | StringConstructor)[];
21
+ default: string;
22
+ };
23
+ height: {
24
+ type: (NumberConstructor | StringConstructor)[];
25
+ default: string;
26
+ };
27
+ customClass: {
28
+ type: (ArrayConstructor | StringConstructor)[];
29
+ default: string;
30
+ };
31
+ scrollable: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "isShow" | "customClass" | "scrollable">;
27
36
  $attrs: {
28
37
  [x: string]: unknown;
29
38
  };
@@ -37,19 +46,28 @@ declare const BkModal: {
37
46
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
38
47
  $emit: (event: string, ...args: any[]) => void;
39
48
  $el: any;
40
- $options: import("vue").ComponentOptionsBase<Readonly<{
41
- isShow?: unknown;
42
- width?: unknown;
43
- height?: unknown;
44
- customClass?: unknown;
45
- scrollable?: unknown;
46
- } & {
47
- width: string | number;
48
- height: string | number;
49
- isShow: boolean;
50
- customClass: string;
51
- scrollable: boolean;
52
- } & {}> & {}, unknown, {
49
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
50
+ isShow: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ width: {
55
+ type: (NumberConstructor | StringConstructor)[];
56
+ default: string;
57
+ };
58
+ height: {
59
+ type: (NumberConstructor | StringConstructor)[];
60
+ default: string;
61
+ };
62
+ customClass: {
63
+ type: (ArrayConstructor | StringConstructor)[];
64
+ default: string;
65
+ };
66
+ scrollable: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ }>>, unknown, {
53
71
  visible: boolean;
54
72
  }, {
55
73
  dialogWidth(): String | Number;
@@ -59,7 +77,7 @@ declare const BkModal: {
59
77
  width: string | number;
60
78
  height: string | number;
61
79
  isShow: boolean;
62
- customClass: string;
80
+ customClass: string | unknown[];
63
81
  scrollable: boolean;
64
82
  }> & {
65
83
  beforeCreate?: (() => void) | (() => void)[];
@@ -81,19 +99,28 @@ declare const BkModal: {
81
99
  $forceUpdate: () => void;
82
100
  $nextTick: typeof import("vue").nextTick;
83
101
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
84
- } & Readonly<{
85
- isShow?: unknown;
86
- width?: unknown;
87
- height?: unknown;
88
- customClass?: unknown;
89
- scrollable?: unknown;
90
- } & {
91
- width: string | number;
92
- height: string | number;
93
- isShow: boolean;
94
- customClass: string;
95
- scrollable: boolean;
96
- } & {}> & {} & import("vue").ShallowUnwrapRef<{}> & {
102
+ } & Readonly<import("vue").ExtractPropTypes<{
103
+ isShow: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ width: {
108
+ type: (NumberConstructor | StringConstructor)[];
109
+ default: string;
110
+ };
111
+ height: {
112
+ type: (NumberConstructor | StringConstructor)[];
113
+ default: string;
114
+ };
115
+ customClass: {
116
+ type: (ArrayConstructor | StringConstructor)[];
117
+ default: string;
118
+ };
119
+ scrollable: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ }>> & import("vue").ShallowUnwrapRef<{}> & {
97
124
  visible: boolean;
98
125
  } & {
99
126
  dialogWidth: String | Number;
@@ -103,19 +130,28 @@ declare const BkModal: {
103
130
  __isFragment?: never;
104
131
  __isTeleport?: never;
105
132
  __isSuspense?: never;
106
- } & import("vue").ComponentOptionsBase<Readonly<{
107
- isShow?: unknown;
108
- width?: unknown;
109
- height?: unknown;
110
- customClass?: unknown;
111
- scrollable?: unknown;
112
- } & {
113
- width: string | number;
114
- height: string | number;
115
- isShow: boolean;
116
- customClass: string;
117
- scrollable: boolean;
118
- } & {}> & {}, unknown, {
133
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
134
+ isShow: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ width: {
139
+ type: (NumberConstructor | StringConstructor)[];
140
+ default: string;
141
+ };
142
+ height: {
143
+ type: (NumberConstructor | StringConstructor)[];
144
+ default: string;
145
+ };
146
+ customClass: {
147
+ type: (ArrayConstructor | StringConstructor)[];
148
+ default: string;
149
+ };
150
+ scrollable: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
154
+ }>>, unknown, {
119
155
  visible: boolean;
120
156
  }, {
121
157
  dialogWidth(): String | Number;
@@ -125,7 +161,7 @@ declare const BkModal: {
125
161
  width: string | number;
126
162
  height: string | number;
127
163
  isShow: boolean;
128
- customClass: string;
164
+ customClass: string | unknown[];
129
165
  scrollable: boolean;
130
166
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
131
167
  propsMixin: {
@@ -142,7 +178,7 @@ declare const BkModal: {
142
178
  default: string;
143
179
  };
144
180
  customClass: {
145
- type: (ObjectConstructor | StringConstructor)[];
181
+ type: (ArrayConstructor | StringConstructor)[];
146
182
  default: string;
147
183
  };
148
184
  scrollable: {
@@ -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,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},i={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var a={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l={exports:{}};!function(e){var t=s.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var d={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.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,o=a.exports,r=l.exports,n=d.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.__esModule=!0,e.exports.default=e.exports}(n);var u=r(n.exports),p={isShow:{type:Boolean,default:!1},width:{type:[Number,String],default:"50%"},height:{type:[Number,String],default:"50%"},customClass:{type:[Object,String],default:""},scrollable:{type:Boolean,default:!0}},c=t.defineComponent({name:"Modal",props:Object.assign({},p),data:function(){return{visible:!1}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(e){var t=this;e?this.$nextTick((function(){o.bkPopIndexManager.show(t.$el)})):o.bkPopIndexManager.hide(this.$el)}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,display:this.visible?"inherit":"none"}}},beforeUnmount:function(){o.bkPopIndexManager.hide(this.$el)},render:function(){var e,o,r,n,i,s,a,l,d;return t.createVNode("div",{class:["bk-modal-wrapper"].concat(u(this.customClass)),style:this.compStyle},[this.isShow?t.createVNode("div",{class:"bk-modal-body"},[t.createVNode("div",{class:"bk-modal-header"},[null!==(r=null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e))&&void 0!==r?r:""]),t.createVNode("div",{class:"bk-modal-content"},[null!==(s=null===(i=(n=this.$slots).default)||void 0===i?void 0:i.call(n))&&void 0!==s?s:""]),t.createVNode("div",{class:"bk-modal-footer"},[null!==(d=null===(l=(a=this.$slots).footer)||void 0===l?void 0:l.call(a))&&void 0!==d?d:""])]):""])}}),f=o.withInstallProps(c,{propsMixin:p},!0);e.BkModal=f,e.default=f,e.propsMixin=p,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,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},i={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var a={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l={exports:{}};!function(e){var t=s.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var d={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.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,o=a.exports,r=l.exports,n=d.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.__esModule=!0,e.exports.default=e.exports}(n);var u=r(n.exports),p={isShow:{type:Boolean,default:!1},width:{type:[Number,String],default:"50%"},height:{type:[Number,String],default:"50%"},customClass:{type:[Array,String],default:""},scrollable:{type:Boolean,default:!0}},c=t.defineComponent({name:"Modal",props:Object.assign({},p),data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,display:this.visible?"inherit":"none"}}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(e){var t=this;e?this.$nextTick((function(){o.bkPopIndexManager.show(t.$el)})):o.bkPopIndexManager.hide(this.$el)}},beforeUnmount:function(){o.bkPopIndexManager.hide(this.$el)},render:function(){var e,o,r,n,i,s,a,l,d;return t.createVNode("div",{class:["bk-modal-wrapper"].concat(u(this.customClass)),style:this.compStyle},[this.isShow?t.createVNode("div",{class:"bk-modal-body"},[t.createVNode("div",{class:"bk-modal-header"},[null!==(r=null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e))&&void 0!==r?r:""]),t.createVNode("div",{class:"bk-modal-content"},[null!==(s=null===(i=(n=this.$slots).default)||void 0===i?void 0:i.call(n))&&void 0!==s?s:""]),t.createVNode("div",{class:"bk-modal-footer"},[null!==(d=null===(l=(a=this.$slots).footer)||void 0===l?void 0:l.call(a))&&void 0!==d?d:""])]):""])}}),f=o.withInstallProps(c,{propsMixin:p},!0);e.BkModal=f,e.default=f,e.propsMixin=p,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  default: string;
13
13
  };
14
14
  customClass: {
15
- type: (ObjectConstructor | StringConstructor)[];
15
+ type: (ArrayConstructor | StringConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  scrollable: {
@@ -25,23 +25,32 @@ declare const _default: import("vue").DefineComponent<{
25
25
  dialogWidth(): String | Number;
26
26
  dialogHeight(): String | Number;
27
27
  compStyle(): any;
28
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
29
- isShow?: unknown;
30
- width?: unknown;
31
- height?: unknown;
32
- customClass?: unknown;
33
- scrollable?: unknown;
34
- } & {
35
- width: string | number;
36
- height: string | number;
37
- isShow: boolean;
38
- customClass: string;
39
- scrollable: boolean;
40
- } & {}> & {}, {
28
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ isShow: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ width: {
34
+ type: (NumberConstructor | StringConstructor)[];
35
+ default: string;
36
+ };
37
+ height: {
38
+ type: (NumberConstructor | StringConstructor)[];
39
+ default: string;
40
+ };
41
+ customClass: {
42
+ type: (ArrayConstructor | StringConstructor)[];
43
+ default: string;
44
+ };
45
+ scrollable: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>>, {
41
50
  width: string | number;
42
51
  height: string | number;
43
52
  isShow: boolean;
44
- customClass: string;
53
+ customClass: string | unknown[];
45
54
  scrollable: boolean;
46
55
  }>;
47
56
  export default _default;
@@ -12,7 +12,7 @@ export declare const propsMixin: {
12
12
  default: string;
13
13
  };
14
14
  customClass: {
15
- type: (ObjectConstructor | StringConstructor)[];
15
+ type: (ArrayConstructor | StringConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  scrollable: {
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e["@bkui-vue/icon/icons"])}(this,(function(e,t,i){"use strict";var o={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}},a=t.defineComponent({props:o,slots:["side-icon"],setup:function(e,i){var o=i.slots;return function(){var i,a;return t.createVNode("div",{class:"bk-navigation-title",style:{borderBottomWidth:"left-right"===e.navigationType?"0":"1px"}},[(null===(i=o.default)||void 0===i?void 0:i.call(o))||[t.createVNode("span",{class:"title-icon"},[(null===(a=o["side-icon"])||void 0===a?void 0:a.call(o))||t.createVNode("i",{class:"bk-icon icon-rtx"},null)]),t.createVNode("span",{class:"title-desc"},[e.sideTitle])]])}}}),n={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator:function(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}},l=t.defineComponent({name:"Navigation",props:n,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup:function(e,i){var o=i.emit,a=t.ref(e.headerTitle),n=t.reactive({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});e.defaultOpen&&(n.click=!n.click,n.hover=n.click,o("toggle",n.hover)),t.onBeforeUnmount((function(){n.timer&&window.clearTimeout(n.timer)}));return{defaultHeaderTitle:a,nav:n,onBeforeUnmount:t.onBeforeUnmount,handleMouseOver:function(){n.click||(n.enterTimer=setTimeout((function(){n.hover=!0,n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer&&window.clearTimeout(n.timer),o("hover",n.hover),o("toggle",n.hover)}),e.hoverEnterDelay))},handleMouseLeave:function(){n.click||(n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer=setTimeout((function(){n.hover=!1,window.clearTimeout(n.timer),o("leave",n.hover),o("toggle",n.hover)}),e.hoverLeaveDelay))},handleClick:function(){n.click=!n.click,n.hover=n.click,o("toggle",n.hover),o("toggle-click",n.hover)}}},render:function(){var e,o,n,l,s,r,d,c,h,v,u,f;return t.createVNode("div",{class:"bk-navigation"},["top-bottom"===this.navigationType&&t.createVNode("div",{class:"bk-navigation-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[t.createVNode(a,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"header-right"},[null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e)])]),t.createVNode("div",{class:"bk-navigation-wrapper"},[this.needMenu&&t.createVNode("div",{class:"navigation-nav",style:{width:this.nav.click?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px")}},[t.createVNode("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px"),borderRight:"top-bottom"!==this.navigationType?"none":"1px solid #DCDEE5"}},["top-bottom"!==this.navigationType&&t.createVNode(a,{style:{flexBasis:"".concat(this.headHeight,"px")},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"nav-slider-list",style:{height:"calc(100vh - ".concat(+this.headHeight+56,"px)")}},[null===(l=(n=this.$slots).menu)||void 0===l?void 0:l.call(n)]),t.createVNode("div",{class:"nav-slider-footer"},[t.createVNode("div",{class:{"is-left":"top-bottom"!==this.navigationType,"footer-icon":!0},onClick:this.handleClick},[t.createVNode(i.CollapseLeft,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),t.createVNode("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},["top-bottom"!==this.navigationType&&t.createVNode("div",{class:"container-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[(null===(r=(s=this.$slots).header)||void 0===r?void 0:r.call(s))||[t.createVNode("div",{class:"container-header-title"},[this.headerTitle]),t.createVNode("div",{class:"container-header-sets"},[null===(c=(d=this.$slots)["header-set"])||void 0===c?void 0:c.call(d)])]]),t.createVNode("div",{class:"container-content",style:{maxHeight:"calc(100vh - ".concat(this.headHeight,"px)")}},[null===(v=(h=this.$slots).default)||void 0===v?void 0:v.call(h),t.createVNode("div",{class:"container-footer"},[null===(f=(u=this.$slots).footer)||void 0===f?void 0:f.call(u)])])])])])}});l.install=function(e){e.component(l.name,l)},e.default=l,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e["@bkui-vue/icon/icons"])}(this,(function(e,t,i){"use strict";var o={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}},a=t.defineComponent({props:o,slots:["side-icon"],setup:function(e,i){var o=i.slots;return function(){var i,a;return t.createVNode("div",{class:"bk-navigation-title",style:{borderBottomWidth:"left-right"===e.navigationType?"0":"1px"}},[(null===(i=o.default)||void 0===i?void 0:i.call(o))||[t.createVNode("span",{class:"title-icon"},[(null===(a=o["side-icon"])||void 0===a?void 0:a.call(o))||t.createVNode("i",{class:"bk-icon icon-rtx"},null)]),t.createVNode("span",{class:"title-desc"},[e.sideTitle])]])}}}),n={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator:function(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}},l=t.defineComponent({name:"Navigation",props:n,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup:function(e,i){var o=i.emit,a=t.ref(e.headerTitle),n=t.reactive({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});e.defaultOpen&&(n.click=!n.click,n.hover=n.click,o("toggle",n.hover)),t.onBeforeUnmount((function(){n.timer&&window.clearTimeout(n.timer)}));return{defaultHeaderTitle:a,nav:n,onBeforeUnmount:t.onBeforeUnmount,handleMouseOver:function(){n.click||(n.enterTimer=setTimeout((function(){n.hover=!0,n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer&&window.clearTimeout(n.timer),o("hover",n.hover),o("toggle",n.hover)}),e.hoverEnterDelay))},handleMouseLeave:function(){n.click||(n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer=setTimeout((function(){n.hover=!1,window.clearTimeout(n.timer),o("leave",n.hover),o("toggle",n.hover)}),e.hoverLeaveDelay))},handleClick:function(){n.click=!n.click,n.hover=n.click,o("toggle",n.hover),o("toggle-click",n.hover)}}},render:function(){var e,o,n,l,s,r,d,c,h,v,u,f;return t.createVNode("div",{class:"bk-navigation"},["top-bottom"===this.navigationType&&t.createVNode("div",{class:"bk-navigation-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[t.createVNode(a,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"header-right"},[null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e)])]),t.createVNode("div",{class:"bk-navigation-wrapper"},[this.needMenu&&t.createVNode("div",{class:"navigation-nav",style:{width:this.nav.click?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px")}},[t.createVNode("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px"),borderRight:"top-bottom"!==this.navigationType?"none":"1px solid #DCDEE5"}},["top-bottom"!==this.navigationType&&t.createVNode(a,{style:{flexBasis:"".concat(this.headHeight,"px")},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"nav-slider-list",style:{height:"calc(100vh - ".concat(+this.headHeight+56,"px)")}},[null===(l=(n=this.$slots).menu)||void 0===l?void 0:l.call(n)]),t.createVNode("div",{class:"nav-slider-footer"},[t.createVNode("div",{class:{"is-left":"top-bottom"!==this.navigationType,"footer-icon":!0},onClick:this.handleClick},[t.createVNode(i.CollapseLeft,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),t.createVNode("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},["top-bottom"!==this.navigationType&&t.createVNode("div",{class:"container-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[(null===(r=(s=this.$slots).header)||void 0===r?void 0:r.call(s))||[t.createVNode("div",{class:"container-header-title"},[this.headerTitle]),t.createVNode("div",{class:"container-header-sets"},[null===(c=(d=this.$slots)["header-set"])||void 0===c?void 0:c.call(d)])]]),t.createVNode("div",{class:"container-content",style:{maxHeight:"calc(100vh - ".concat(this.headHeight,"px)")}},[null===(v=(h=this.$slots).default)||void 0===v?void 0:v.call(h),t.createVNode("div",{class:"container-footer"},[null===(f=(u=this.$slots).footer)||void 0===f?void 0:f.call(u)])])])])])}});l.install=function(e){e.component(l.name,l)},e.default=l,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -9,13 +9,16 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: PropType<BkNavigationType>;
10
10
  default: string;
11
11
  };
12
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
13
- sideTitle?: unknown;
14
- navigationType?: unknown;
15
- } & {
16
- sideTitle: string;
17
- navigationType: BkNavigationType;
18
- } & {}> & {}, {
12
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ sideTitle: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ navigationType: {
18
+ type: PropType<BkNavigationType>;
19
+ default: string;
20
+ };
21
+ }>>, {
19
22
  sideTitle: string;
20
23
  navigationType: BkNavigationType;
21
24
  }>;
@@ -52,29 +52,46 @@ declare const _default: import("vue").DefineComponent<{
52
52
  handleMouseOver: () => void;
53
53
  handleMouseLeave: () => void;
54
54
  handleClick: () => void;
55
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hover" | "toggle" | "leave" | "toggle-click")[], "hover" | "toggle" | "leave" | "toggle-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
56
- navWidth?: unknown;
57
- hoverWidth?: unknown;
58
- sideTitle?: unknown;
59
- headerTitle?: unknown;
60
- hoverLeaveDelay?: unknown;
61
- hoverEnterDelay?: unknown;
62
- defaultOpen?: unknown;
63
- headHeight?: unknown;
64
- navigationType?: unknown;
65
- needMenu?: unknown;
66
- } & {
67
- sideTitle: string;
68
- navigationType: BkNavigationType;
69
- navWidth: string | number;
70
- hoverWidth: string | number;
71
- headerTitle: string;
72
- hoverLeaveDelay: number;
73
- hoverEnterDelay: number;
74
- defaultOpen: boolean;
75
- headHeight: string | number;
76
- needMenu: boolean;
77
- } & {}> & {
55
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hover" | "toggle" | "leave" | "toggle-click")[], "hover" | "toggle" | "leave" | "toggle-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ navWidth: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: number;
59
+ };
60
+ hoverWidth: {
61
+ type: (NumberConstructor | StringConstructor)[];
62
+ default: number;
63
+ };
64
+ sideTitle: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ headerTitle: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ hoverLeaveDelay: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ hoverEnterDelay: {
77
+ type: NumberConstructor;
78
+ default: number;
79
+ };
80
+ defaultOpen: BooleanConstructor;
81
+ headHeight: {
82
+ type: (NumberConstructor | StringConstructor)[];
83
+ default: number;
84
+ };
85
+ navigationType: {
86
+ type: PropType<BkNavigationType>;
87
+ default: string;
88
+ validator(v: BkNavigationType): boolean;
89
+ };
90
+ needMenu: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ }>> & {
78
95
  onLeave?: (...args: any[]) => any;
79
96
  onHover?: (...args: any[]) => any;
80
97
  onToggle?: (...args: any[]) => any;
@@ -1,5 +1,6 @@
1
1
  :root {
2
2
  --bk-prefix: bk;
3
+ --popover-max-height: 216px;
3
4
  --primary-color: #3a84ff;
4
5
  --success-color: #2dcb56;
5
6
  --warning-color: #ff9c01;
@@ -83,6 +84,12 @@
83
84
  --date-picker-disabled-bg: #fafbfd;
84
85
  --date-picker-dropdown-mb: 4px;
85
86
  --date-picker-dropdown-bg: #fff;
87
+ --table-bg-color: var(--white-color);
88
+ --table-border-color: #dcdee5;
89
+ --table-head-bg-color: #fafbfd;
90
+ --table-head-font-color: #313238;
91
+ --table-body-font-color: #575961;
92
+ --table-row-hover-bg-color: #f5f7fa;
86
93
  }
87
94
  .bk-navigation {
88
95
  display: flex;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";var r={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},i=1,s=function(e,o){var n=o,s=n.position||"top-right";"string"==typeof o&&(n={message:o});var u=o.onClose,a=n.offset||20;r[s].forEach((function(e){a+=(e.el.offsetHeight||0)+16})),a+=16;var l="message_".concat(i+=1);n=Object.assign(Object.assign({},n),{offset:a,id:l});var c=document.createElement("div"),f=t.createVNode(e,n);f.props.onDestory=function(e){!function(e,t,o){null==o||o();var n=t.startsWith("top")?"top":"bottom",i=-1;r[t].forEach((function(t,o){t.props.id===e&&(i=o)}));for(var s=r[t][i].el.offsetHeight,u=r[t].length,a=i;a<u;a++){var l=parseInt(r[t][a].el.style[n],10)-s-16;r[t][a].component.props.offset=l}r[t].splice(i,1)}(e,s,u),t.render(null,c)},t.render(f,c),r[s].push(f),document.body.appendChild(c.firstElementChild)};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l=u(a.exports),c={id:o.PropTypes.string.def(""),title:o.PropTypes.string.def(""),message:o.PropTypes.string.def(""),theme:o.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),position:o.PropTypes.position().def("top-right"),delay:o.PropTypes.number.def(3e3),offset:o.PropTypes.number.def(0),onClose:o.PropTypes.func},f=t.defineComponent({name:"Notify",props:c,emits:["destory"],setup:function(e,n){var r=n.emit,i=t.computed((function(){return["bk-notify","bk-notify-".concat(e.theme)]})),s=o.bkZIndexManager.getMessageNextIndex(),u=t.computed((function(){return e.position.indexOf("right")>1?"right":"left"})),a=t.computed((function(){return e.position.startsWith("top")?"top":"bottom"})),c=t.computed((function(){var t;return l(t={},u.value,"10px"),l(t,a.value,"".concat(e.offset,"px")),l(t,"zIndex",s),t})),f=t.ref(!1),d=null;return t.onMounted((function(){d=setTimeout((function(){f.value=!1}),e.delay),f.value=!0})),t.onUnmounted((function(){clearTimeout(d)})),t.watch(f,(function(){f.value||r("destory",e.id)})),{classNames:i,styles:c,visible:f,handleClose:function(){f.value=!1}}},render:function(){var e=this;return t.createVNode(t.Transition,{name:"bk-notify-fade"},{default:function(){return[t.withDirectives(t.createVNode("div",{class:e.classNames,style:e.styles},[t.createVNode("div",{class:"bk-notify-content"},[t.createVNode("div",{class:"bk-notify-icon"},[{primary:t.createVNode(n.Info,null,null),warning:t.createVNode(n.Warn,null,null),success:t.createVNode(n.Success,null,null),danger:t.createVNode(n.Close,null,null)}[e.theme]]),e.title?t.createVNode("h3",{class:"bk-notify-content-header"},[e.title]):"",t.createVNode("div",{class:"bk-notify-content-text"},[e.message])]),t.createVNode(n.Error,{class:"bk-notify-icon bk-notify-close",onClick:e.handleClose},null)]),[[t.vShow,e.visible]])]}})}});e.default=function(e){s(f,e)},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";var r={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},i=1,s=function(e,o){var n=o,s=n.position||"top-right";"string"==typeof o&&(n={message:o});var a=o.onClose,u=n.offset||20;r[s].forEach((function(e){u+=(e.el.offsetHeight||0)+16})),u+=16;var l="message_".concat(i+=1);n=Object.assign(Object.assign({},n),{offset:u,id:l});var c=document.createElement("div"),f=t.createVNode(e,n);f.props.onDestory=function(e){!function(e,t,o){null==o||o();var n=t.startsWith("top")?"top":"bottom",i=-1;r[t].forEach((function(t,o){t.props.id===e&&(i=o)}));for(var s=r[t][i].el.offsetHeight,a=r[t].length,u=i;u<a;u++){var l=parseInt(r[t][u].el.style[n],10)-s-16;r[t][u].component.props.offset=l}r[t].splice(i,1)}(e,s,a),t.render(null,c)},t.render(f,c),r[s].push(f),document.body.appendChild(c.firstElementChild)};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,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var l=a(u.exports),c={id:o.PropTypes.string.def(""),title:o.PropTypes.string.def(""),message:o.PropTypes.string.def(""),theme:o.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),position:o.PropTypes.position().def("top-right"),delay:o.PropTypes.number.def(3e3),offset:o.PropTypes.number.def(0),onClose:o.PropTypes.func},f=t.defineComponent({name:"Notify",props:c,emits:["destory"],setup:function(e,n){var r=n.emit,i=t.computed((function(){return["bk-notify","bk-notify-".concat(e.theme)]})),s=o.bkZIndexManager.getMessageNextIndex(),a=t.computed((function(){return e.position.indexOf("right")>1?"right":"left"})),u=t.computed((function(){return e.position.startsWith("top")?"top":"bottom"})),c=t.computed((function(){var t;return l(t={},a.value,"10px"),l(t,u.value,"".concat(e.offset,"px")),l(t,"zIndex",s),t})),f=t.ref(!1),d=null;return t.onMounted((function(){d=setTimeout((function(){f.value=!1}),e.delay),f.value=!0})),t.onUnmounted((function(){clearTimeout(d)})),t.watch(f,(function(){f.value||r("destory",e.id)})),{classNames:i,styles:c,visible:f,handleClose:function(){f.value=!1}}},render:function(){var e=this;return t.createVNode(t.Transition,{name:"bk-notify-fade"},{default:function(){return[t.withDirectives(t.createVNode("div",{class:e.classNames,style:e.styles},[t.createVNode("div",{class:"bk-notify-content"},[t.createVNode("div",{class:"bk-notify-icon"},[{primary:t.createVNode(n.Info,null,null),warning:t.createVNode(n.Warn,null,null),success:t.createVNode(n.Success,null,null),danger:t.createVNode(n.Close,null,null)}[e.theme]]),e.title?t.createVNode("h3",{class:"bk-notify-content-header"},[e.title]):"",t.createVNode("div",{class:"bk-notify-content-text"},[e.message])]),t.createVNode(n.Error,{class:"bk-notify-icon bk-notify-close",onClick:e.handleClose},null)]),[[t.vShow,e.visible]])]}})}});e.default=function(e){s(f,e)},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,5 +1,6 @@
1
1
  :root {
2
2
  --bk-prefix: bk;
3
+ --popover-max-height: 216px;
3
4
  --primary-color: #3a84ff;
4
5
  --success-color: #2dcb56;
5
6
  --warning-color: #ff9c01;
@@ -83,6 +84,12 @@
83
84
  --date-picker-disabled-bg: #fafbfd;
84
85
  --date-picker-dropdown-mb: 4px;
85
86
  --date-picker-dropdown-bg: #fff;
87
+ --table-bg-color: var(--white-color);
88
+ --table-border-color: #dcdee5;
89
+ --table-head-bg-color: #fafbfd;
90
+ --table-head-font-color: #313238;
91
+ --table-body-font-color: #575961;
92
+ --table-row-hover-bg-color: #f5f7fa;
86
93
  }
87
94
  .bk-notify {
88
95
  position: fixed;
@@ -41,26 +41,42 @@ declare const _default: import("vue").DefineComponent<{
41
41
  }>;
42
42
  visible: import("vue").Ref<boolean>;
43
43
  handleClose: () => void;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destory"[], "destory", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
45
- id?: unknown;
46
- title?: unknown;
47
- message?: unknown;
48
- theme?: unknown;
49
- position?: unknown;
50
- delay?: unknown;
51
- offset?: unknown;
52
- onClose?: unknown;
53
- } & {
54
- title: string;
55
- offset: number;
56
- id: string;
57
- theme: string;
58
- position: string;
59
- message: string;
60
- delay: number;
61
- } & {
62
- onClose?: (...args: any[]) => any;
63
- }> & {
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destory"[], "destory", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ id: import("vue-types").VueTypeValidableDef<string> & {
46
+ default: string;
47
+ } & {
48
+ default: string;
49
+ };
50
+ title: import("vue-types").VueTypeValidableDef<string> & {
51
+ default: string;
52
+ } & {
53
+ default: string;
54
+ };
55
+ message: import("vue-types").VueTypeValidableDef<string> & {
56
+ default: string;
57
+ } & {
58
+ default: string;
59
+ };
60
+ theme: import("vue-types").VueTypeDef<string> & {
61
+ default: string;
62
+ };
63
+ position: import("vue-types").VueTypeDef<string> & {
64
+ default: string;
65
+ };
66
+ delay: import("vue-types").VueTypeValidableDef<number> & {
67
+ default: number;
68
+ } & {
69
+ default: number;
70
+ };
71
+ offset: import("vue-types").VueTypeValidableDef<number> & {
72
+ default: number;
73
+ } & {
74
+ default: number;
75
+ };
76
+ onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
77
+ default: (...args: any[]) => any;
78
+ };
79
+ }>> & {
64
80
  onDestory?: (...args: any[]) => any;
65
81
  }, {
66
82
  title: string;