bkui-vue 0.0.1-beta.446 → 0.0.1-beta.447

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 (386) hide show
  1. package/dist/index.cjs.js +34 -34
  2. package/dist/index.esm.js +69 -30
  3. package/dist/index.umd.js +34 -34
  4. package/lib/bkui-vue/components.d.ts +64 -0
  5. package/lib/bkui-vue/hooks.d.ts +1 -0
  6. package/lib/bkui-vue/index.d.ts +6 -0
  7. package/lib/{preset.d.ts → bkui-vue/preset.d.ts} +8 -0
  8. package/lib/code-diff/{code-diff.d.ts → src/code-diff.d.ts} +1 -1
  9. package/lib/config-provider/index.js +1 -1
  10. package/lib/config-provider/{config-provider.d.ts → src/config-provider.d.ts} +142 -17
  11. package/lib/config-provider/{index.d.ts → src/index.d.ts} +30 -7
  12. package/lib/config-provider/src/token.d.ts +122 -0
  13. package/lib/config-provider/src/use-global-config.d.ts +5 -0
  14. package/lib/config-provider/src/use-locale.d.ts +3 -0
  15. package/lib/config-provider/src/use-prefix.d.ts +9 -0
  16. package/lib/directives/{index.d.ts → src/index.d.ts} +1 -1
  17. package/lib/hooks.js +1 -0
  18. package/lib/icon/img-error.js +1 -0
  19. package/lib/icon/index.js +1 -1
  20. package/lib/icon/src/index.d.ts +79 -0
  21. package/lib/index.js +1 -1
  22. package/lib/input/{index.d.ts → src/index.d.ts} +4 -4
  23. package/lib/modal/{index.d.ts → src/index.d.ts} +3 -3
  24. package/lib/modal/{modal.d.ts → src/modal.d.ts} +1 -1
  25. package/lib/pagination/{use-limit.d.ts → src/use-limit.d.ts} +1 -1
  26. package/lib/pagination/{use-total.d.ts → src/use-total.d.ts} +1 -1
  27. package/lib/plugins/src/index.d.ts +1 -0
  28. package/lib/search-select/index.js +1 -1
  29. package/lib/search-select/{index.d.ts → src/index.d.ts} +6 -0
  30. package/lib/search-select/{input.d.ts → src/input.d.ts} +1 -0
  31. package/lib/search-select/{menu.d.ts → src/menu.d.ts} +1 -0
  32. package/lib/search-select/{search-select.d.ts → src/search-select.d.ts} +2 -0
  33. package/lib/search-select/{selected.d.ts → src/selected.d.ts} +1 -0
  34. package/lib/select/{index.d.ts → src/index.d.ts} +4 -4
  35. package/lib/select/{type.d.ts → src/type.d.ts} +1 -1
  36. package/lib/shared/index.js +1 -1
  37. package/lib/shared/{hooks → src/hooks}/use-form-item.d.ts +1 -1
  38. package/lib/shared/{hooks → src/hooks}/use-form.d.ts +1 -1
  39. package/lib/shared/{token.d.ts → src/token.d.ts} +1 -1
  40. package/lib/slider/{slider-button.d.ts → src/slider-button.d.ts} +1 -1
  41. package/lib/styles/src/index.d.ts +56 -0
  42. package/lib/table/{const.d.ts → src/const.d.ts} +1 -1
  43. package/lib/table/{render.d.ts → src/render.d.ts} +1 -1
  44. package/lib/tag-input/{index.d.ts → src/index.d.ts} +4 -4
  45. package/lib/tag-input/{tag-input.d.ts → src/tag-input.d.ts} +2 -2
  46. package/lib/tag-input/{tag-props.d.ts → src/tag-props.d.ts} +1 -1
  47. package/lib/tag-input/{tag-render.d.ts → src/tag-render.d.ts} +1 -1
  48. package/package.json +1 -1
  49. package/lib/config-provider/type.d.ts +0 -125
  50. package/lib/icon/image-fill.js +0 -1
  51. package/lib/icon/index.d.ts +0 -79
  52. package/lib/index.d.ts +0 -5
  53. package/lib/plugins/index.d.ts +0 -1
  54. package/lib/styles/index.d.ts +0 -56
  55. package/lib/breadcrumb/{breadcrumb-item.d.ts → src/breadcrumb-item.d.ts} +0 -0
  56. package/lib/breadcrumb/{breadcrumb.d.ts → src/breadcrumb.d.ts} +0 -0
  57. package/lib/breadcrumb/{index.d.ts → src/index.d.ts} +0 -0
  58. package/lib/breadcrumb/{props.d.ts → src/props.d.ts} +0 -0
  59. package/lib/button/{button-group.d.ts → src/button-group.d.ts} +0 -0
  60. package/lib/button/{button.d.ts → src/button.d.ts} +0 -0
  61. package/lib/button/{index.d.ts → src/index.d.ts} +0 -0
  62. package/lib/card/{card.d.ts → src/card.d.ts} +0 -0
  63. package/lib/card/{index.d.ts → src/index.d.ts} +0 -0
  64. package/lib/cascader/{cascader-panel.d.ts → src/cascader-panel.d.ts} +0 -0
  65. package/lib/cascader/{cascader.d.ts → src/cascader.d.ts} +0 -0
  66. package/lib/cascader/{index.d.ts → src/index.d.ts} +0 -0
  67. package/lib/cascader/{interface.d.ts → src/interface.d.ts} +0 -0
  68. package/lib/cascader/{node.d.ts → src/node.d.ts} +0 -0
  69. package/lib/cascader/{store.d.ts → src/store.d.ts} +0 -0
  70. package/lib/checkbox/{checkbox-group.d.ts → src/checkbox-group.d.ts} +0 -0
  71. package/lib/checkbox/{checkbox.d.ts → src/checkbox.d.ts} +0 -0
  72. package/lib/checkbox/{common.d.ts → src/common.d.ts} +0 -0
  73. package/lib/checkbox/{index.d.ts → src/index.d.ts} +0 -0
  74. package/lib/checkbox/{type.d.ts → src/type.d.ts} +0 -0
  75. package/lib/code-diff/{index.d.ts → src/index.d.ts} +0 -0
  76. package/lib/collapse/{collapse-panel.d.ts → src/collapse-panel.d.ts} +0 -0
  77. package/lib/collapse/{collapse.d.ts → src/collapse.d.ts} +0 -0
  78. package/lib/collapse/{index.d.ts → src/index.d.ts} +0 -0
  79. package/lib/collapse/{props.d.ts → src/props.d.ts} +0 -0
  80. package/lib/collapse/{utils.d.ts → src/utils.d.ts} +0 -0
  81. package/lib/collapse-transition/{collapse-transition.d.ts → src/collapse-transition.d.ts} +0 -0
  82. package/lib/collapse-transition/{index.d.ts → src/index.d.ts} +0 -0
  83. package/lib/color-picker/{color-picker.d.ts → src/color-picker.d.ts} +0 -0
  84. package/lib/color-picker/{components → src/components}/color-input.d.ts +0 -0
  85. package/lib/color-picker/{components → src/components}/hue-slider.d.ts +0 -0
  86. package/lib/color-picker/{components → src/components}/input-container.d.ts +0 -0
  87. package/lib/color-picker/{components → src/components}/recommend-colors.d.ts +0 -0
  88. package/lib/color-picker/{components → src/components}/saturation-panel.d.ts +0 -0
  89. package/lib/color-picker/{index.d.ts → src/index.d.ts} +0 -0
  90. package/lib/color-picker/{utils.d.ts → src/utils.d.ts} +0 -0
  91. package/lib/container/{col.d.ts → src/col.d.ts} +0 -0
  92. package/lib/container/{container.d.ts → src/container.d.ts} +0 -0
  93. package/lib/container/{index.d.ts → src/index.d.ts} +0 -0
  94. package/lib/container/{row.d.ts → src/row.d.ts} +0 -0
  95. package/lib/date-picker/{base → src/base}/confirm.d.ts +0 -0
  96. package/lib/date-picker/{base → src/base}/date-table.d.ts +0 -0
  97. package/lib/date-picker/{base → src/base}/month-table.d.ts +0 -0
  98. package/lib/date-picker/{base → src/base}/picker-dropdown.d.ts +0 -0
  99. package/lib/date-picker/{base → src/base}/time-spinner.d.ts +0 -0
  100. package/lib/date-picker/{base → src/base}/year-table.d.ts +0 -0
  101. package/lib/date-picker/{date-picker.d.ts → src/date-picker.d.ts} +0 -0
  102. package/lib/date-picker/{fecha.d.ts → src/fecha.d.ts} +0 -0
  103. package/lib/date-picker/{index.d.ts → src/index.d.ts} +0 -0
  104. package/lib/date-picker/{interface.d.ts → src/interface.d.ts} +0 -0
  105. package/lib/date-picker/{panel → src/panel}/date-range.d.ts +0 -0
  106. package/lib/date-picker/{panel → src/panel}/date.d.ts +0 -0
  107. package/lib/date-picker/{panel → src/panel}/time-range.d.ts +0 -0
  108. package/lib/date-picker/{panel → src/panel}/time.d.ts +0 -0
  109. package/lib/date-picker/{props.d.ts → src/props.d.ts} +0 -0
  110. package/lib/date-picker/{time-picker.d.ts → src/time-picker.d.ts} +0 -0
  111. package/lib/date-picker/{utils.d.ts → src/utils.d.ts} +0 -0
  112. package/lib/dialog/{dialog.d.ts → src/dialog.d.ts} +0 -0
  113. package/lib/dialog/{index.d.ts → src/index.d.ts} +0 -0
  114. package/lib/dialog/{props.d.ts → src/props.d.ts} +0 -0
  115. package/lib/directives/{clickoutside.d.ts → src/clickoutside.d.ts} +0 -0
  116. package/lib/directives/{ellipsis.d.ts → src/ellipsis.d.ts} +0 -0
  117. package/lib/directives/{mousewheel.d.ts → src/mousewheel.d.ts} +0 -0
  118. package/lib/directives/{tooltips.d.ts → src/tooltips.d.ts} +0 -0
  119. package/lib/divider/{divider.d.ts → src/divider.d.ts} +0 -0
  120. package/lib/divider/{index.d.ts → src/index.d.ts} +0 -0
  121. package/lib/divider/{props.d.ts → src/props.d.ts} +0 -0
  122. package/lib/dropdown/{dropdown-item.d.ts → src/dropdown-item.d.ts} +0 -0
  123. package/lib/dropdown/{dropdown-menu.d.ts → src/dropdown-menu.d.ts} +0 -0
  124. package/lib/dropdown/{dropdown.d.ts → src/dropdown.d.ts} +0 -0
  125. package/lib/dropdown/{index.d.ts → src/index.d.ts} +0 -0
  126. package/lib/exception/{exception.d.ts → src/exception.d.ts} +0 -0
  127. package/lib/exception/{index.d.ts → src/index.d.ts} +0 -0
  128. package/lib/exception/{typings → src/typings}/index.d.ts +0 -0
  129. package/lib/fixed-navbar/{fixed-navbar.d.ts → src/fixed-navbar.d.ts} +0 -0
  130. package/lib/fixed-navbar/{index.d.ts → src/index.d.ts} +0 -0
  131. package/lib/form/{compose-form-item.d.ts → src/compose-form-item.d.ts} +0 -0
  132. package/lib/form/{form-item.d.ts → src/form-item.d.ts} +0 -0
  133. package/lib/form/{form.d.ts → src/form.d.ts} +0 -0
  134. package/lib/form/{index.d.ts → src/index.d.ts} +0 -0
  135. package/lib/form/{type.d.ts → src/type.d.ts} +0 -0
  136. package/lib/form/{utils.d.ts → src/utils.d.ts} +0 -0
  137. package/lib/form/{validator.d.ts → src/validator.d.ts} +0 -0
  138. package/lib/{use-message.d.ts → hooks/use-message.d.ts} +0 -0
  139. package/lib/icon/{angle-double-down-line.d.ts → icons/angle-double-down-line.d.ts} +0 -0
  140. package/lib/icon/{angle-double-left-line.d.ts → icons/angle-double-left-line.d.ts} +0 -0
  141. package/lib/icon/{angle-double-left.d.ts → icons/angle-double-left.d.ts} +0 -0
  142. package/lib/icon/{angle-double-right-line.d.ts → icons/angle-double-right-line.d.ts} +0 -0
  143. package/lib/icon/{angle-double-right.d.ts → icons/angle-double-right.d.ts} +0 -0
  144. package/lib/icon/{angle-double-up-line.d.ts → icons/angle-double-up-line.d.ts} +0 -0
  145. package/lib/icon/{angle-down-fill.d.ts → icons/angle-down-fill.d.ts} +0 -0
  146. package/lib/icon/{angle-down-line.d.ts → icons/angle-down-line.d.ts} +0 -0
  147. package/lib/icon/{angle-down.d.ts → icons/angle-down.d.ts} +0 -0
  148. package/lib/icon/{angle-left.d.ts → icons/angle-left.d.ts} +0 -0
  149. package/lib/icon/{angle-right.d.ts → icons/angle-right.d.ts} +0 -0
  150. package/lib/icon/{angle-up-fill.d.ts → icons/angle-up-fill.d.ts} +0 -0
  151. package/lib/icon/{angle-up.d.ts → icons/angle-up.d.ts} +0 -0
  152. package/lib/icon/{archive-fill.d.ts → icons/archive-fill.d.ts} +0 -0
  153. package/lib/icon/{arrows-left.d.ts → icons/arrows-left.d.ts} +0 -0
  154. package/lib/icon/{arrows-right.d.ts → icons/arrows-right.d.ts} +0 -0
  155. package/lib/icon/{audio-fill.d.ts → icons/audio-fill.d.ts} +0 -0
  156. package/lib/icon/{bk.d.ts → icons/bk.d.ts} +0 -0
  157. package/lib/icon/{circle.d.ts → icons/circle.d.ts} +0 -0
  158. package/lib/icon/{close-line.d.ts → icons/close-line.d.ts} +0 -0
  159. package/lib/icon/{close.d.ts → icons/close.d.ts} +0 -0
  160. package/lib/icon/{code.d.ts → icons/code.d.ts} +0 -0
  161. package/lib/icon/{cog-shape.d.ts → icons/cog-shape.d.ts} +0 -0
  162. package/lib/icon/{collapse-left.d.ts → icons/collapse-left.d.ts} +0 -0
  163. package/lib/icon/{copy.d.ts → icons/copy.d.ts} +0 -0
  164. package/lib/icon/{data-shape.d.ts → icons/data-shape.d.ts} +0 -0
  165. package/lib/icon/{del.d.ts → icons/del.d.ts} +0 -0
  166. package/lib/icon/{doc-fill.d.ts → icons/doc-fill.d.ts} +0 -0
  167. package/lib/icon/{done.d.ts → icons/done.d.ts} +0 -0
  168. package/lib/icon/{down-shape.d.ts → icons/down-shape.d.ts} +0 -0
  169. package/lib/icon/{down-small.d.ts → icons/down-small.d.ts} +0 -0
  170. package/lib/icon/{edit-line.d.ts → icons/edit-line.d.ts} +0 -0
  171. package/lib/icon/{ellipsis.d.ts → icons/ellipsis.d.ts} +0 -0
  172. package/lib/icon/{enlarge-line.d.ts → icons/enlarge-line.d.ts} +0 -0
  173. package/lib/icon/{error.d.ts → icons/error.d.ts} +0 -0
  174. package/lib/icon/{excel-fill.d.ts → icons/excel-fill.d.ts} +0 -0
  175. package/lib/icon/{exclamation-circle-shape.d.ts → icons/exclamation-circle-shape.d.ts} +0 -0
  176. package/lib/icon/{eye.d.ts → icons/eye.d.ts} +0 -0
  177. package/lib/icon/{filliscreen-line.d.ts → icons/filliscreen-line.d.ts} +0 -0
  178. package/lib/icon/{folder-open.d.ts → icons/folder-open.d.ts} +0 -0
  179. package/lib/icon/{folder-shape-open.d.ts → icons/folder-shape-open.d.ts} +0 -0
  180. package/lib/icon/{folder-shape.d.ts → icons/folder-shape.d.ts} +0 -0
  181. package/lib/icon/{folder.d.ts → icons/folder.d.ts} +0 -0
  182. package/lib/icon/{funnel.d.ts → icons/funnel.d.ts} +0 -0
  183. package/lib/icon/{help-document-fill.d.ts → icons/help-document-fill.d.ts} +0 -0
  184. package/lib/icon/{help-fill.d.ts → icons/help-fill.d.ts} +0 -0
  185. package/lib/icon/{help.d.ts → icons/help.d.ts} +0 -0
  186. package/lib/icon/{icon.d.ts → icons/icon.d.ts} +0 -0
  187. package/lib/icon/{image-fill.d.ts → icons/image-fill.d.ts} +0 -0
  188. package/lib/icon/{img-error.d.ts → icons/img-error.d.ts} +0 -0
  189. package/lib/icon/{img-placehoulder.d.ts → icons/img-placehoulder.d.ts} +0 -0
  190. package/lib/icon/{info-line.d.ts → icons/info-line.d.ts} +0 -0
  191. package/lib/icon/{info.d.ts → icons/info.d.ts} +0 -0
  192. package/lib/icon/{left-shape.d.ts → icons/left-shape.d.ts} +0 -0
  193. package/lib/icon/{left-turn-line.d.ts → icons/left-turn-line.d.ts} +0 -0
  194. package/lib/icon/{narrow-line.d.ts → icons/narrow-line.d.ts} +0 -0
  195. package/lib/icon/{original.d.ts → icons/original.d.ts} +0 -0
  196. package/lib/icon/{pdf-fill.d.ts → icons/pdf-fill.d.ts} +0 -0
  197. package/lib/icon/{play-shape.d.ts → icons/play-shape.d.ts} +0 -0
  198. package/lib/icon/{plus.d.ts → icons/plus.d.ts} +0 -0
  199. package/lib/icon/{ppt-fill.d.ts → icons/ppt-fill.d.ts} +0 -0
  200. package/lib/icon/{qq.d.ts → icons/qq.d.ts} +0 -0
  201. package/lib/icon/{right-shape.d.ts → icons/right-shape.d.ts} +0 -0
  202. package/lib/icon/{right-turn-line.d.ts → icons/right-turn-line.d.ts} +0 -0
  203. package/lib/icon/{search.d.ts → icons/search.d.ts} +0 -0
  204. package/lib/icon/{share.d.ts → icons/share.d.ts} +0 -0
  205. package/lib/icon/{spinner.d.ts → icons/spinner.d.ts} +0 -0
  206. package/lib/icon/{success.d.ts → icons/success.d.ts} +0 -0
  207. package/lib/icon/{switcher-loading.d.ts → icons/switcher-loading.d.ts} +0 -0
  208. package/lib/icon/{text-file.d.ts → icons/text-file.d.ts} +0 -0
  209. package/lib/icon/{text-fill.d.ts → icons/text-fill.d.ts} +0 -0
  210. package/lib/icon/{transfer.d.ts → icons/transfer.d.ts} +0 -0
  211. package/lib/icon/{tree-application-shape.d.ts → icons/tree-application-shape.d.ts} +0 -0
  212. package/lib/icon/{unfull-screen.d.ts → icons/unfull-screen.d.ts} +0 -0
  213. package/lib/icon/{unvisible.d.ts → icons/unvisible.d.ts} +0 -0
  214. package/lib/icon/{up-shape.d.ts → icons/up-shape.d.ts} +0 -0
  215. package/lib/icon/{upload.d.ts → icons/upload.d.ts} +0 -0
  216. package/lib/icon/{video-fill.d.ts → icons/video-fill.d.ts} +0 -0
  217. package/lib/icon/{warn.d.ts → icons/warn.d.ts} +0 -0
  218. package/lib/icon/{weixin.d.ts → icons/weixin.d.ts} +0 -0
  219. package/lib/image/{image-viewer.d.ts → src/image-viewer.d.ts} +0 -0
  220. package/lib/image/{image.d.ts → src/image.d.ts} +0 -0
  221. package/lib/image/{index.d.ts → src/index.d.ts} +0 -0
  222. package/lib/image/{props.d.ts → src/props.d.ts} +0 -0
  223. package/lib/info-box/{index.d.ts → src/index.d.ts} +0 -0
  224. package/lib/info-box/{info-box.d.ts → src/info-box.d.ts} +0 -0
  225. package/lib/input/{input.d.ts → src/input.d.ts} +1 -1
  226. package/lib/link/{index.d.ts → src/index.d.ts} +0 -0
  227. package/lib/link/{link.d.ts → src/link.d.ts} +0 -0
  228. package/lib/loading/{directive.d.ts → src/directive.d.ts} +0 -0
  229. package/lib/loading/{index.d.ts → src/index.d.ts} +0 -0
  230. package/lib/loading/{loading.d.ts → src/loading.d.ts} +0 -0
  231. package/lib/locale/{index.d.ts → src/index.d.ts} +0 -0
  232. package/lib/locale/{lang → src/lang}/en.d.ts +0 -0
  233. package/lib/locale/{lang → src/lang}/zh-cn.d.ts +0 -0
  234. package/lib/menu/{index.d.ts → src/index.d.ts} +0 -0
  235. package/lib/menu/{menu-group.d.ts → src/menu-group.d.ts} +0 -0
  236. package/lib/menu/{menu-item.d.ts → src/menu-item.d.ts} +0 -0
  237. package/lib/menu/{menu.d.ts → src/menu.d.ts} +0 -0
  238. package/lib/menu/{submenu.d.ts → src/submenu.d.ts} +0 -0
  239. package/lib/menu/{utils.d.ts → src/utils.d.ts} +0 -0
  240. package/lib/message/{index.d.ts → src/index.d.ts} +0 -0
  241. package/lib/message/{messageConstructor.d.ts → src/messageConstructor.d.ts} +0 -0
  242. package/lib/modal/{props.mixin.d.ts → src/props.mixin.d.ts} +0 -0
  243. package/lib/navigation/{index.d.ts → src/index.d.ts} +0 -0
  244. package/lib/navigation/{navigation-title.d.ts → src/navigation-title.d.ts} +0 -0
  245. package/lib/navigation/{navigation.d.ts → src/navigation.d.ts} +0 -0
  246. package/lib/notify/{index.d.ts → src/index.d.ts} +0 -0
  247. package/lib/notify/{notifyConstructor.d.ts → src/notifyConstructor.d.ts} +0 -0
  248. package/lib/overflow-title/{components → src/components}/overflow-title.d.ts +0 -0
  249. package/lib/overflow-title/{directive → src/directive}/overflow-title.d.ts +0 -0
  250. package/lib/overflow-title/{index.d.ts → src/index.d.ts} +0 -0
  251. package/lib/overflow-title/{props.d.ts → src/props.d.ts} +0 -0
  252. package/lib/overflow-title/{utils → src/utils}/getActualWidthByCanvas.d.ts +0 -0
  253. package/lib/overflow-title/{utils → src/utils}/getActualWidthByDom.d.ts +0 -0
  254. package/lib/pagination/{index.d.ts → src/index.d.ts} +0 -0
  255. package/lib/pagination/{pagination.d.ts → src/pagination.d.ts} +0 -0
  256. package/lib/pagination/{type.d.ts → src/type.d.ts} +0 -0
  257. package/lib/pagination/{use-list.d.ts → src/use-list.d.ts} +0 -0
  258. package/lib/pagination/{use-small-list.d.ts → src/use-small-list.d.ts} +0 -0
  259. package/lib/plugin-popover/{index.d.ts → src/index.d.ts} +0 -0
  260. package/lib/pop-confirm/{index.d.ts → src/index.d.ts} +0 -0
  261. package/lib/pop-confirm/{pop-confirm.d.ts → src/pop-confirm.d.ts} +0 -0
  262. package/lib/pop-confirm/{props.d.ts → src/props.d.ts} +0 -0
  263. package/lib/popover/{arrow.d.ts → src/arrow.d.ts} +0 -0
  264. package/lib/popover/{const.d.ts → src/const.d.ts} +0 -0
  265. package/lib/popover/{content.d.ts → src/content.d.ts} +0 -0
  266. package/lib/popover/{index.d.ts → src/index.d.ts} +0 -0
  267. package/lib/popover/{plugin-popover.d.ts → src/plugin-popover.d.ts} +0 -0
  268. package/lib/popover/{popover.d.ts → src/popover.d.ts} +0 -0
  269. package/lib/popover/{props.d.ts → src/props.d.ts} +0 -0
  270. package/lib/popover/{reference.d.ts → src/reference.d.ts} +0 -0
  271. package/lib/popover/{root.d.ts → src/root.d.ts} +0 -0
  272. package/lib/popover/{use-floating.d.ts → src/use-floating.d.ts} +0 -0
  273. package/lib/popover/{use-platform.d.ts → src/use-platform.d.ts} +0 -0
  274. package/lib/popover/{use-popover-init.d.ts → src/use-popover-init.d.ts} +0 -0
  275. package/lib/popover/{use-popper-id.d.ts → src/use-popper-id.d.ts} +0 -0
  276. package/lib/popover/{utils.d.ts → src/utils.d.ts} +0 -0
  277. package/lib/popover2/{index.d.ts → src/index.d.ts} +0 -0
  278. package/lib/popover2/{popover.d.ts → src/popover.d.ts} +0 -0
  279. package/lib/process/{index.d.ts → src/index.d.ts} +0 -0
  280. package/lib/process/{process.d.ts → src/process.d.ts} +0 -0
  281. package/lib/progress/{circle.d.ts → src/circle.d.ts} +0 -0
  282. package/lib/progress/{index.d.ts → src/index.d.ts} +0 -0
  283. package/lib/progress/{line.d.ts → src/line.d.ts} +0 -0
  284. package/lib/progress/{progress.d.ts → src/progress.d.ts} +0 -0
  285. package/lib/radio/{common.d.ts → src/common.d.ts} +0 -0
  286. package/lib/radio/{index.d.ts → src/index.d.ts} +0 -0
  287. package/lib/radio/{radio-button.d.ts → src/radio-button.d.ts} +0 -0
  288. package/lib/radio/{radio-group.d.ts → src/radio-group.d.ts} +0 -0
  289. package/lib/radio/{radio.d.ts → src/radio.d.ts} +0 -0
  290. package/lib/radio/{type.d.ts → src/type.d.ts} +0 -0
  291. package/lib/rate/{index.d.ts → src/index.d.ts} +0 -0
  292. package/lib/rate/{rate.d.ts → src/rate.d.ts} +0 -0
  293. package/lib/rate/{star.d.ts → src/star.d.ts} +0 -0
  294. package/lib/resize-layout/{index.d.ts → src/index.d.ts} +0 -0
  295. package/lib/resize-layout/{resize-layout.d.ts → src/resize-layout.d.ts} +0 -0
  296. package/lib/search-select/{utils.d.ts → src/utils.d.ts} +0 -0
  297. package/lib/select/{common.d.ts → src/common.d.ts} +0 -0
  298. package/lib/select/{option.d.ts → src/option.d.ts} +0 -0
  299. package/lib/select/{optionGroup.d.ts → src/optionGroup.d.ts} +0 -0
  300. package/lib/select/{select.d.ts → src/select.d.ts} +1 -1
  301. /package/lib/select/{selectTagInput.d.ts → src/selectTagInput.d.ts} +0 -0
  302. /package/lib/shared/{dom.d.ts → src/dom.d.ts} +0 -0
  303. /package/lib/shared/{helper.d.ts → src/helper.d.ts} +0 -0
  304. /package/lib/shared/{index.d.ts → src/index.d.ts} +0 -0
  305. /package/lib/shared/{mask-manager.d.ts → src/mask-manager.d.ts} +0 -0
  306. /package/lib/shared/{pop-manager.d.ts → src/pop-manager.d.ts} +0 -0
  307. /package/lib/shared/{popover.d.ts → src/popover.d.ts} +0 -0
  308. /package/lib/shared/{scrollbar-width.d.ts → src/scrollbar-width.d.ts} +0 -0
  309. /package/lib/shared/{utils.d.ts → src/utils.d.ts} +0 -0
  310. /package/lib/shared/{vue-types.d.ts → src/vue-types.d.ts} +0 -0
  311. /package/lib/shared/{z-index-manager.d.ts → src/z-index-manager.d.ts} +0 -0
  312. /package/lib/sideslider/{index.d.ts → src/index.d.ts} +0 -0
  313. /package/lib/sideslider/{sideslider.d.ts → src/sideslider.d.ts} +0 -0
  314. /package/lib/slider/{index.d.ts → src/index.d.ts} +0 -0
  315. /package/lib/slider/{slider.d.ts → src/slider.d.ts} +0 -0
  316. /package/lib/steps/{index.d.ts → src/index.d.ts} +0 -0
  317. /package/lib/steps/{steps.d.ts → src/steps.d.ts} +0 -0
  318. /package/lib/swiper/{index.d.ts → src/index.d.ts} +0 -0
  319. /package/lib/swiper/{swiper.d.ts → src/swiper.d.ts} +0 -0
  320. /package/lib/switcher/{index.d.ts → src/index.d.ts} +0 -0
  321. /package/lib/switcher/{switcher.d.ts → src/switcher.d.ts} +0 -0
  322. /package/lib/tab/{index.d.ts → src/index.d.ts} +0 -0
  323. /package/lib/tab/{props.d.ts → src/props.d.ts} +0 -0
  324. /package/lib/tab/{tab-nav.d.ts → src/tab-nav.d.ts} +0 -0
  325. /package/lib/tab/{tab-panel.d.ts → src/tab-panel.d.ts} +0 -0
  326. /package/lib/tab/{tab.d.ts → src/tab.d.ts} +0 -0
  327. /package/lib/table/{cache.d.ts → src/cache.d.ts} +0 -0
  328. /package/lib/table/{components → src/components}/index.d.ts +0 -0
  329. /package/lib/table/{components → src/components}/table-cell.d.ts +0 -0
  330. /package/lib/table/{components → src/components}/table-column.d.ts +0 -0
  331. /package/lib/table/{components → src/components}/table-row.d.ts +0 -0
  332. /package/lib/table/{index.d.ts → src/index.d.ts} +0 -0
  333. /package/lib/table/{plugins → src/plugins}/body-empty.d.ts +0 -0
  334. /package/lib/table/{plugins → src/plugins}/col-group.d.ts +0 -0
  335. /package/lib/table/{plugins → src/plugins}/common.d.ts +0 -0
  336. /package/lib/table/{plugins → src/plugins}/head-filter.d.ts +0 -0
  337. /package/lib/table/{plugins → src/plugins}/head-sort.d.ts +0 -0
  338. /package/lib/table/{plugins → src/plugins}/index.d.ts +0 -0
  339. /package/lib/table/{plugins → src/plugins}/settings.d.ts +0 -0
  340. /package/lib/table/{plugins → src/plugins}/use-active-columns.d.ts +0 -0
  341. /package/lib/table/{plugins → src/plugins}/use-column-resize.d.ts +0 -0
  342. /package/lib/table/{plugins → src/plugins}/use-fixed-column.d.ts +0 -0
  343. /package/lib/table/{plugins → src/plugins}/use-pagination.d.ts +0 -0
  344. /package/lib/table/{plugins → src/plugins}/use-scroll-loading.d.ts +0 -0
  345. /package/lib/table/{props.d.ts → src/props.d.ts} +0 -0
  346. /package/lib/table/{table.d.ts → src/table.d.ts} +0 -0
  347. /package/lib/table/{use-column.d.ts → src/use-column.d.ts} +0 -0
  348. /package/lib/table/{use-common.d.ts → src/use-common.d.ts} +0 -0
  349. /package/lib/table/{utils.d.ts → src/utils.d.ts} +0 -0
  350. /package/lib/table-column/{index.d.ts → src/index.d.ts} +0 -0
  351. /package/lib/tag/{index.d.ts → src/index.d.ts} +0 -0
  352. /package/lib/tag/{tag.d.ts → src/tag.d.ts} +0 -0
  353. /package/lib/tag-input/{common.d.ts → src/common.d.ts} +0 -0
  354. /package/lib/tag-input/{list-tag-render.d.ts → src/list-tag-render.d.ts} +0 -0
  355. /package/lib/time-picker/{index.d.ts → src/index.d.ts} +0 -0
  356. /package/lib/timeline/{index.d.ts → src/index.d.ts} +0 -0
  357. /package/lib/timeline/{timeline.d.ts → src/timeline.d.ts} +0 -0
  358. /package/lib/transfer/{const.d.ts → src/const.d.ts} +0 -0
  359. /package/lib/transfer/{index.d.ts → src/index.d.ts} +0 -0
  360. /package/lib/transfer/{props.d.ts → src/props.d.ts} +0 -0
  361. /package/lib/transfer/{transfer.d.ts → src/transfer.d.ts} +0 -0
  362. /package/lib/tree/{constant.d.ts → src/constant.d.ts} +0 -0
  363. /package/lib/tree/{index.d.ts → src/index.d.ts} +0 -0
  364. /package/lib/tree/{props.d.ts → src/props.d.ts} +0 -0
  365. /package/lib/tree/{tree.d.ts → src/tree.d.ts} +0 -0
  366. /package/lib/tree/{use-empty.d.ts → src/use-empty.d.ts} +0 -0
  367. /package/lib/tree/{use-node-action.d.ts → src/use-node-action.d.ts} +0 -0
  368. /package/lib/tree/{use-node-async.d.ts → src/use-node-async.d.ts} +0 -0
  369. /package/lib/tree/{use-node-attribute.d.ts → src/use-node-attribute.d.ts} +0 -0
  370. /package/lib/tree/{use-node-drag.d.ts → src/use-node-drag.d.ts} +0 -0
  371. /package/lib/tree/{use-search.d.ts → src/use-search.d.ts} +0 -0
  372. /package/lib/tree/{use-tree-init.d.ts → src/use-tree-init.d.ts} +0 -0
  373. /package/lib/tree/{util.d.ts → src/util.d.ts} +0 -0
  374. /package/lib/upload/{index.d.ts → src/index.d.ts} +0 -0
  375. /package/lib/upload/{props.d.ts → src/props.d.ts} +0 -0
  376. /package/lib/upload/{upload-list.d.ts → src/upload-list.d.ts} +0 -0
  377. /package/lib/upload/{upload-trigger.d.ts → src/upload-trigger.d.ts} +0 -0
  378. /package/lib/upload/{upload.d.ts → src/upload.d.ts} +0 -0
  379. /package/lib/upload/{upload.type.d.ts → src/upload.type.d.ts} +0 -0
  380. /package/lib/upload/{use-ajax-upload.d.ts → src/use-ajax-upload.d.ts} +0 -0
  381. /package/lib/upload/{use-file-handler.d.ts → src/use-file-handler.d.ts} +0 -0
  382. /package/lib/virtual-render/{index.d.ts → src/index.d.ts} +0 -0
  383. /package/lib/virtual-render/{props.d.ts → src/props.d.ts} +0 -0
  384. /package/lib/virtual-render/{use-tag-render.d.ts → src/use-tag-render.d.ts} +0 -0
  385. /package/lib/virtual-render/{v-virtual-render.d.ts → src/v-virtual-render.d.ts} +0 -0
  386. /package/lib/virtual-render/{virtual-render.d.ts → src/virtual-render.d.ts} +0 -0
@@ -0,0 +1,64 @@
1
+ export { default as Alert } from './alert';
2
+ export { default as AnimateNumber } from './animate-number';
3
+ export { default as Affix } from './affix';
4
+ export { default as Backtop } from './backtop';
5
+ export { default as Badge } from './badge';
6
+ export { default as Breadcrumb } from './breadcrumb';
7
+ export { default as Button } from './button';
8
+ export { default as Card } from './card';
9
+ export { default as Checkbox } from './checkbox';
10
+ export type { CollapseProps, CollapsePanelProps } from './collapse';
11
+ export { default as Collapse } from './collapse';
12
+ export { default as Dialog } from './dialog';
13
+ export { default as Exception } from './exception';
14
+ export { default as FixedNavbar } from './fixed-navbar';
15
+ export { default as Input } from './input';
16
+ export { default as Link } from './link';
17
+ export { default as Loading } from './loading';
18
+ export { default as Modal } from './modal';
19
+ export { default as Popover } from './popover';
20
+ export { default as Popover2 } from './popover2';
21
+ export { default as Progress } from './progress';
22
+ export { default as Radio } from './radio';
23
+ export { default as Rate } from './rate';
24
+ export { default as Swiper } from './swiper';
25
+ export { default as Select } from './select';
26
+ export { default as Sideslider } from './sideslider';
27
+ export { default as Steps } from './steps';
28
+ export { default as Switcher } from './switcher';
29
+ export type { TableSettings, TableIColumn, TableProps, TableColumnProps } from './table';
30
+ export { default as Table } from './table';
31
+ export { default as TableColumn } from './table-column';
32
+ export { default as Tag } from './tag';
33
+ export { default as TagInput } from './tag-input';
34
+ export { default as Divider } from './divider';
35
+ export type { TabProps, TabPanelProps } from './tab';
36
+ export { default as Tab } from './tab';
37
+ export { default as Message } from './message';
38
+ export { default as InfoBox } from './info-box';
39
+ export { default as Notify } from './notify';
40
+ export { default as Menu } from './menu';
41
+ export { default as Navigation } from './navigation';
42
+ export { default as DatePicker } from './date-picker';
43
+ export { default as Transfer } from './transfer';
44
+ export { default as Tree } from './tree';
45
+ export { default as VirtualRender } from './virtual-render';
46
+ export { default as Form } from './form';
47
+ export { default as Pagination } from './pagination';
48
+ export { default as Container } from './container';
49
+ export { default as containerProps } from './container';
50
+ export { default as Dropdown } from './dropdown';
51
+ export { default as Cascader } from './cascader';
52
+ export { default as Slider } from './slider';
53
+ export { default as ResizeLayout } from './resize-layout';
54
+ export { default as TimeLine } from './timeline';
55
+ export { default as Process } from './process';
56
+ export { default as Upload } from './upload';
57
+ export { default as CodeDiff } from './code-diff';
58
+ export { default as ColorPicker } from './color-picker';
59
+ export { default as TimePicker } from './time-picker';
60
+ export { default as SearchSelect } from './search-select';
61
+ export { default as OverflowTitle } from './overflow-title';
62
+ export { default as $bkPopover } from './plugin-popover';
63
+ export { default as ConfigProvider } from './config-provider';
64
+ export { default as PopConfirm } from './pop-confirm';
@@ -0,0 +1 @@
1
+ export { useGlobalConfig, provideGlobalConfig, useLocale, usePrefix } from '@bkui-vue/config-provider';
@@ -0,0 +1,6 @@
1
+ export { default } from './preset';
2
+ export * from './components';
3
+ export * from '@bkui-vue/directives';
4
+ export * as plugins from '@bkui-vue/plugins';
5
+ export * from '@bkui-vue/config-provider';
6
+ export * from './hooks';
@@ -121,6 +121,10 @@ declare const _default: {
121
121
  };
122
122
  }>;
123
123
  };
124
+ prefix: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
124
128
  }>>) => void;
125
129
  install: (app: App<any>, options?: Partial<import("vue").ExtractPropTypes<{
126
130
  locale: {
@@ -243,6 +247,10 @@ declare const _default: {
243
247
  };
244
248
  }>;
245
249
  };
250
+ prefix: {
251
+ type: StringConstructor;
252
+ default: string;
253
+ };
246
254
  }>>) => void;
247
255
  version: string;
248
256
  };
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
- import { ElementType } from '../shared';
2
+ import { ElementType } from '@bkui-vue/shared';
3
3
  declare const diffFormats: readonly ["side-by-side", "line-by-line"];
4
4
  export declare type DiffFormatType = ElementType<typeof diffFormats>;
5
5
  export declare const LANGUAGES: readonly ["css", "java", "javascript", "json", "scss", "less", "stylus", "shell", "bash", "cpp", "go", "xml", "python", "typescript", "sql", "ruby", "vim", "php", "perl", "powershell", "makefile"];
@@ -1 +1 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("lodash"),require("vue"),require("../locale"));else if("function"==typeof define&&define.amd)define(["../shared","lodash","vue","../locale"],r);else{var o="object"==typeof exports?r(require("../shared"),require("lodash"),require("vue"),require("../locale")):r(e["../shared"],e.lodash,e.vue,e["../locale"]);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(self,((e,r,o,t)=>(()=>{"use strict";var n={5684:e=>{e.exports=t},4212:r=>{r.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=o}},i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,a),o.exports}a.d=(e,r)=>{for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{configProviderProps:()=>n,default:()=>p,defaultRootConfig:()=>u,provideGlobalConfig:()=>f,rootProviderKey:()=>c,useLocale:()=>s});var e=a(4212),r=a(467),o=a(748),t=a(5684),n={locale:{type:Object}};const i=n;var u=(0,o.reactive)({locale:t.zhCn}),c=Symbol("rootProviderData");function s(e){var r=(0,o.inject)(c,u);return(0,o.computed)((function(){var o=r.locale;return o&&e?o[e]:{}}))}var f=function(e){var t=(0,o.reactive)(Object.assign({},(0,r.merge)(u,e)));Object.keys(e).forEach((function(r){(0,o.watch)((function(){return e[r]}),(function(){t[r]=e[r]}))})),(0,o.provide)(c,t)};const d=(0,o.defineComponent)({name:"ConfigProvider",inheritAttrs:!1,props:i,setup:function(e,r){var o=r.slots;return f(e),function(){var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}}),p=(0,e.withInstall)(d)})(),l})()));
1
+ !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("lodash"),require("../locale"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash","../locale"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("lodash"),require("../locale")):r(e["../shared"],e.vue,e.lodash,e["../locale"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t,o)=>(()=>{"use strict";var n={5684:e=>{e.exports=o},4212:r=>{r.exports=e},467:e=>{e.exports=t},748:e=>{e.exports=r}},i={};function u(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return n[e](t,t.exports,u),t.exports}u.d=(e,r)=>{for(var t in r)u.o(r,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},u.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{u.r(a),u.d(a,{default:()=>x,provideGlobalConfig:()=>l,setPrefixVariable:()=>c,useGlobalConfig:()=>f,useLocale:()=>d,usePrefix:()=>v});var e=u(4212),r=u(748),t=u(467),o=u(5684),n=Symbol("rootProviderData"),i={locale:o.zhCn,prefix:"bk"},c=function(e){document.documentElement.style.setProperty("--bk-prefix",e||i.prefix)},l=function(e){var o=(0,r.reactive)(Object.assign({},(0,t.merge)(i,e)));c(e.prefix),Object.keys(e).forEach((function(t){(0,r.watch)((function(){return e[t]}),(function(){"prefix"===t&&c(e[t]),o[t]=e[t]}))})),(0,r.provide)(n,o)},f=function(){var e=(0,r.inject)(n,i);return(0,r.computed)((function(){return e}))},p={locale:{type:Object},prefix:{type:String,default:"bk"}};const s=(0,r.defineComponent)({name:"ConfigProvider",inheritAttrs:!1,props:p,setup:function(e,r){var t=r.slots;return l(e),function(){var e;return null===(e=t.default)||void 0===e?void 0:e.call(t)}}});function d(e){var t=(0,r.inject)(n,i);return(0,r.computed)((function(){var r=t.locale;return r&&e?r[e]:{}}))}function v(){var e=(0,r.inject)(n,i),t=(0,r.computed)((function(){return e.prefix||""}));return{prefix:t,resolveClassName:function(e){return"".concat(t.value,"-").concat(e.replace(new RegExp("^".concat(i.prefix,"-")),""))}}}const x=(0,e.withInstall)(s)})(),a})()));
@@ -1,19 +1,134 @@
1
- import type { ComputedRef, UnwrapRef } from 'vue';
2
- import type { Language } from '../locale';
3
- import type { ConfigProviderProps } from './type';
4
- export declare const defaultRootConfig: UnwrapRef<ConfigProviderProps>;
5
- export interface LocaleInterface {
6
- [key: string]: any;
7
- }
8
- export interface LocalReceiverCtx {
9
- locale?: LocaleInterface;
10
- }
11
- export declare const rootProviderKey: unique symbol;
12
- export declare function useLocale<T extends keyof Language>(compName: T): ComputedRef<Language[T]>;
13
- export declare const provideGlobalConfig: (config: ConfigProviderProps) => void;
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const configProviderProps: {
3
+ locale: {
4
+ type: PropType<{
5
+ lang: string;
6
+ steps: {
7
+ step1: string;
8
+ step2: string;
9
+ step3: string;
10
+ };
11
+ datePicker: {
12
+ selectDate: string;
13
+ selectTime: string;
14
+ clear: string;
15
+ ok: string;
16
+ weekdays: {
17
+ sun: string;
18
+ mon: string;
19
+ tue: string;
20
+ wed: string;
21
+ thu: string;
22
+ fri: string;
23
+ sat: string;
24
+ };
25
+ hour: string;
26
+ min: string;
27
+ sec: string;
28
+ toNow: string;
29
+ };
30
+ dialog: {
31
+ ok: string;
32
+ cancel: string;
33
+ prev: string;
34
+ next: string;
35
+ };
36
+ popConfirm: {
37
+ ok: string;
38
+ cancel: string;
39
+ };
40
+ form: {
41
+ notBeEmpty: string;
42
+ incorrectFormat: string;
43
+ max: string;
44
+ min: string;
45
+ maxLen: string;
46
+ verifyError: string;
47
+ };
48
+ pagination: {
49
+ eachPage: string;
50
+ strip: string;
51
+ total: string;
52
+ };
53
+ process: {
54
+ step1: string;
55
+ step2: string;
56
+ step3: string;
57
+ step4: string;
58
+ };
59
+ searchSelect: {
60
+ pleaseSelect: string;
61
+ loading: string;
62
+ filterQueryMustHasValue: string;
63
+ ok: string;
64
+ cancel: string;
65
+ or: string;
66
+ and: string;
67
+ };
68
+ select: {
69
+ noData: string;
70
+ noMatchedData: string;
71
+ loading: string;
72
+ pleaseSelect: string;
73
+ enterKeywords: string;
74
+ all: string;
75
+ };
76
+ table: {
77
+ emptyText: string;
78
+ confirm: string;
79
+ reset: string;
80
+ setting: {
81
+ title: string;
82
+ fields: {
83
+ title: string;
84
+ subtitle: (max: number) => string;
85
+ selectAll: string;
86
+ };
87
+ lineHeight: {
88
+ title: string;
89
+ small: string;
90
+ medium: string;
91
+ large: string;
92
+ };
93
+ options: {
94
+ ok: string;
95
+ cancel: string;
96
+ };
97
+ };
98
+ };
99
+ transfer: {
100
+ sourceList: string;
101
+ targetList: string;
102
+ removeAll: string;
103
+ selectAll: string;
104
+ noData: string;
105
+ noSelected: string;
106
+ search: string;
107
+ };
108
+ upload: {
109
+ uploadSuccess: string;
110
+ uploadFailed: string;
111
+ drapFileOr: string;
112
+ clickUpload: string;
113
+ uploadLabel: string;
114
+ };
115
+ input: {
116
+ placeholder: string;
117
+ };
118
+ tagInput: {
119
+ placeholder: string;
120
+ };
121
+ }>;
122
+ };
123
+ prefix: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ };
128
+ export declare type ConfigProviderProps = Partial<ExtractPropTypes<typeof configProviderProps>>;
14
129
  declare const _default: import("vue").DefineComponent<{
15
130
  locale: {
16
- type: import("vue").PropType<{
131
+ type: PropType<{
17
132
  lang: string;
18
133
  steps: {
19
134
  step1: string;
@@ -132,11 +247,15 @@ declare const _default: import("vue").DefineComponent<{
132
247
  };
133
248
  }>;
134
249
  };
250
+ prefix: {
251
+ type: StringConstructor;
252
+ default: string;
253
+ };
135
254
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
136
255
  [key: string]: any;
137
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
256
+ }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
138
257
  locale: {
139
- type: import("vue").PropType<{
258
+ type: PropType<{
140
259
  lang: string;
141
260
  steps: {
142
261
  step1: string;
@@ -255,5 +374,11 @@ declare const _default: import("vue").DefineComponent<{
255
374
  };
256
375
  }>;
257
376
  };
258
- }>>, {}>;
377
+ prefix: {
378
+ type: StringConstructor;
379
+ default: string;
380
+ };
381
+ }>>, {
382
+ prefix: string;
383
+ }>;
259
384
  export default _default;
@@ -27,7 +27,9 @@ declare const BkConfigProvider: {
27
27
  new (...args: any[]): {
28
28
  $: import("vue").ComponentInternalInstance;
29
29
  $data: {};
30
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
30
+ $props: Partial<{
31
+ prefix: string;
32
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
31
33
  locale: {
32
34
  type: import("vue").PropType<{
33
35
  lang: string;
@@ -148,7 +150,11 @@ declare const BkConfigProvider: {
148
150
  };
149
151
  }>;
150
152
  };
151
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
153
+ prefix: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix">;
152
158
  $attrs: {
153
159
  [x: string]: unknown;
154
160
  };
@@ -283,9 +289,15 @@ declare const BkConfigProvider: {
283
289
  };
284
290
  }>;
285
291
  };
292
+ prefix: {
293
+ type: StringConstructor;
294
+ default: string;
295
+ };
286
296
  }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
287
297
  [key: string]: any;
288
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
298
+ }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
299
+ prefix: string;
300
+ }> & {
289
301
  beforeCreate?: (() => void) | (() => void)[];
290
302
  created?: (() => void) | (() => void)[];
291
303
  beforeMount?: (() => void) | (() => void)[];
@@ -426,6 +438,10 @@ declare const BkConfigProvider: {
426
438
  };
427
439
  }>;
428
440
  };
441
+ prefix: {
442
+ type: StringConstructor;
443
+ default: string;
444
+ };
429
445
  }>> & import("vue").ShallowUnwrapRef<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
430
446
  [key: string]: any;
431
447
  }>[]> & {} & {} & import("vue").ComponentCustomProperties;
@@ -553,10 +569,17 @@ declare const BkConfigProvider: {
553
569
  };
554
570
  }>;
555
571
  };
572
+ prefix: {
573
+ type: StringConstructor;
574
+ default: string;
575
+ };
556
576
  }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
557
577
  [key: string]: any;
558
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
578
+ }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
579
+ prefix: string;
580
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
559
581
  export default BkConfigProvider;
560
- export { useLocale, rootProviderKey, provideGlobalConfig, defaultRootConfig, } from './config-provider';
561
- export type { LocalReceiverCtx, LocaleInterface, } from './config-provider';
562
- export * from './type';
582
+ export * from './use-global-config';
583
+ export * from './use-locale';
584
+ export * from './use-prefix';
585
+ export type { ConfigProviderProps } from './config-provider';
@@ -0,0 +1,122 @@
1
+ export declare const rootProviderKey: unique symbol;
2
+ export declare const defaultRootConfig: {
3
+ locale: {
4
+ lang: string;
5
+ steps: {
6
+ step1: string;
7
+ step2: string;
8
+ step3: string;
9
+ };
10
+ datePicker: {
11
+ selectDate: string;
12
+ selectTime: string;
13
+ clear: string;
14
+ ok: string;
15
+ weekdays: {
16
+ sun: string;
17
+ mon: string;
18
+ tue: string;
19
+ wed: string;
20
+ thu: string;
21
+ fri: string;
22
+ sat: string;
23
+ };
24
+ hour: string;
25
+ min: string;
26
+ sec: string;
27
+ toNow: string;
28
+ };
29
+ dialog: {
30
+ ok: string;
31
+ cancel: string;
32
+ prev: string;
33
+ next: string;
34
+ };
35
+ popConfirm: {
36
+ ok: string;
37
+ cancel: string;
38
+ };
39
+ form: {
40
+ notBeEmpty: string;
41
+ incorrectFormat: string;
42
+ max: string;
43
+ min: string;
44
+ maxLen: string;
45
+ verifyError: string;
46
+ };
47
+ pagination: {
48
+ eachPage: string;
49
+ strip: string;
50
+ total: string;
51
+ };
52
+ process: {
53
+ step1: string;
54
+ step2: string;
55
+ step3: string;
56
+ step4: string;
57
+ };
58
+ searchSelect: {
59
+ pleaseSelect: string;
60
+ loading: string;
61
+ filterQueryMustHasValue: string;
62
+ ok: string;
63
+ cancel: string;
64
+ or: string;
65
+ and: string;
66
+ };
67
+ select: {
68
+ noData: string;
69
+ noMatchedData: string;
70
+ loading: string;
71
+ pleaseSelect: string;
72
+ enterKeywords: string;
73
+ all: string;
74
+ };
75
+ table: {
76
+ emptyText: string;
77
+ confirm: string;
78
+ reset: string;
79
+ setting: {
80
+ title: string;
81
+ fields: {
82
+ title: string;
83
+ subtitle: (max: number) => string;
84
+ selectAll: string;
85
+ };
86
+ lineHeight: {
87
+ title: string;
88
+ small: string;
89
+ medium: string;
90
+ large: string;
91
+ };
92
+ options: {
93
+ ok: string;
94
+ cancel: string;
95
+ };
96
+ };
97
+ };
98
+ transfer: {
99
+ sourceList: string;
100
+ targetList: string;
101
+ removeAll: string;
102
+ selectAll: string;
103
+ noData: string;
104
+ noSelected: string;
105
+ search: string;
106
+ };
107
+ upload: {
108
+ uploadSuccess: string;
109
+ uploadFailed: string;
110
+ drapFileOr: string;
111
+ clickUpload: string;
112
+ uploadLabel: string;
113
+ };
114
+ input: {
115
+ placeholder: string;
116
+ };
117
+ tagInput: {
118
+ placeholder: string;
119
+ };
120
+ };
121
+ prefix: string;
122
+ };
@@ -0,0 +1,5 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { ConfigProviderProps } from './config-provider';
3
+ export declare const setPrefixVariable: (prefix: string) => void;
4
+ export declare const provideGlobalConfig: (config: ConfigProviderProps) => void;
5
+ export declare const useGlobalConfig: () => ComputedRef<ConfigProviderProps>;
@@ -0,0 +1,3 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { Language } from '@bkui-vue/locale';
3
+ export declare function useLocale<T extends keyof Language>(compName: T): ComputedRef<Language[T]>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ *
3
+ * @returns 组件前缀
4
+ * @description 获取组件前缀
5
+ */
6
+ export declare function usePrefix(): {
7
+ prefix: import("vue").ComputedRef<string>;
8
+ resolveClassName: (cls: string) => string;
9
+ };
@@ -1,4 +1,4 @@
1
- export { overflowTitle } from '../overflow-title';
1
+ export { overflowTitle } from '@bkui-vue/overflow-title';
2
2
  export { default as mousewheel } from './mousewheel';
3
3
  export { default as clickoutside } from './clickoutside';
4
4
  export { default as bkTooltips } from './tooltips';
package/lib/hooks.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("./config-provider"));else if("function"==typeof define&&define.amd)define(["./config-provider"],o);else{var r="object"==typeof exports?o(require("./config-provider")):o(e["./config-provider"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,(e=>(()=>{"use strict";var o={7623:o=>{o.exports=e}},r={};function t(e){var i=r[e];if(void 0!==i)return i.exports;var f=r[e]={exports:{}};return o[e](f,f.exports,t),f.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{t.r(i),t.d(i,{provideGlobalConfig:()=>e.provideGlobalConfig,useGlobalConfig:()=>e.useGlobalConfig,useLocale:()=>e.useLocale,usePrefix:()=>e.usePrefix});var e=t(7623)})(),i})()));
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function a(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return a(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,s=r.width,l=r.height,c=r.fill,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(r,["data","name","width","height","fill"]),u="width: ".concat(s,"; height: ").concat(l,"; fill: ").concat(c);return(0,n.createVNode)("span",(0,n.mergeProps)({style:{display:"inline-flex","align-items":"center","justify-content":"center"}},p),[a(o,i,u)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},748:t=>{t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>i});var e=n(748),t=n(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M752 512A176 176 0 1 0 928 688 176 176 0 0 0 752 512Zm0 299.2a30.88 30.88 0 1 1 30.88-30.88A30.72 30.72 0 0 1 752 811.2Zm16.96-92.32a17.12 17.12 0 0 1-33.92 0s-13.76-118.72-13.76-123.2a30.88 30.88 0 1 1 61.6 0C782.88 600.16 768.96 718.88 768.96 718.88Z"}},{"type":"element","name":"path","attributes":{"d":"M800 176H480l-44.32 89.44-23.36 89.44-70.24 85.6 30.88-85.6-46.88-89.44L336 240h0v-0.96L359.52 176H160a96 96 0 0 0-96 96V752a96 96 0 0 0 96 96H573.44A238.88 238.88 0 0 1 512 688a243.2 243.2 0 0 1 8.16-61.44L356.8 519.84a46.72 46.72 0 0 0-70.72 2.56L128 656V272a32 32 0 0 1 32-32h118.4L272 283.36l70.08 71.52L327.36 480l108.32-107.36L530.4 240H800a32 32 0 0 1 32 32V461.92A241.92 241.92 0 0 1 896 496V272A96 96 0 0 0 800 176Z"}},{"type":"element","name":"path","attributes":{"d":"M720 400A80 80 0 0 1 640 480 80 80 0 0 1 560 400 80 80 0 0 1 720 400z"}}]}'),o=function(n,a){var o=Object.assign(Object.assign({},n),a.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(o,{data:r,name:"imgError"}),null)};o.displayName="imgError",o.inheritAttrs=!1;const i=o})(),a})()));