bkui-vue 1.0.3-beta.2 → 1.0.3-beta.21

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 (206) hide show
  1. package/dist/index.cjs.js +72 -72
  2. package/dist/index.esm.js +15120 -13962
  3. package/dist/index.umd.js +71 -71
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.variable.css +3 -0
  15. package/lib/affix/index.js +1 -0
  16. package/lib/alert/alert.variable.css +3 -0
  17. package/lib/alert/index.js +1 -0
  18. package/lib/animate-number/index.js +1 -0
  19. package/lib/backtop/backtop.variable.css +3 -0
  20. package/lib/backtop/index.js +1 -0
  21. package/lib/badge/badge.variable.css +3 -0
  22. package/lib/badge/index.js +1 -0
  23. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  24. package/lib/breadcrumb/index.js +1 -0
  25. package/lib/button/button.variable.css +3 -0
  26. package/lib/button/index.js +1 -0
  27. package/lib/card/card.variable.css +3 -0
  28. package/lib/card/index.js +1 -0
  29. package/lib/cascader/cascader.variable.css +3 -0
  30. package/lib/cascader/index.js +1 -0
  31. package/lib/checkbox/checkbox.variable.css +3 -0
  32. package/lib/checkbox/index.js +1 -0
  33. package/lib/code-diff/code-diff.variable.css +3 -0
  34. package/lib/code-diff/index.js +1 -0
  35. package/lib/collapse/collapse.variable.css +3 -0
  36. package/lib/collapse/index.js +1 -0
  37. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  38. package/lib/collapse-transition/index.js +1 -0
  39. package/lib/color-picker/color-picker.variable.css +3 -0
  40. package/lib/color-picker/index.js +1 -0
  41. package/lib/components.js +0 -4
  42. package/lib/config-provider/config-provider.d.ts +3 -0
  43. package/lib/config-provider/config-provider.variable.css +3 -0
  44. package/lib/config-provider/index.d.ts +4 -0
  45. package/lib/config-provider/index.js +1 -0
  46. package/lib/config-provider/token.d.ts +1 -0
  47. package/lib/container/container.variable.css +3 -0
  48. package/lib/container/index.js +1 -0
  49. package/lib/date-picker/date-picker.variable.css +3 -0
  50. package/lib/date-picker/index.js +6 -2
  51. package/lib/dialog/dialog.variable.css +3 -0
  52. package/lib/dialog/index.js +1 -0
  53. package/lib/directives/index.js +1 -0
  54. package/lib/dist.index.js +0 -1
  55. package/lib/divider/divider.variable.css +3 -0
  56. package/lib/divider/index.js +1 -0
  57. package/lib/dropdown/dropdown.css +3 -1
  58. package/lib/dropdown/dropdown.variable.css +6 -1
  59. package/lib/dropdown/index.js +1 -0
  60. package/lib/exception/exception.variable.css +3 -0
  61. package/lib/exception/index.js +1 -0
  62. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  63. package/lib/fixed-navbar/index.js +1 -0
  64. package/lib/form/form.css +1 -0
  65. package/lib/form/form.less +2 -0
  66. package/lib/form/form.variable.css +4 -0
  67. package/lib/form/index.js +1 -0
  68. package/lib/hooks.js +1 -8
  69. package/lib/icon/index.d.ts +1 -0
  70. package/lib/icon/index.js +35 -1
  71. package/lib/icon/text-all.d.ts +4 -0
  72. package/lib/icon/text-all.js +276 -0
  73. package/lib/image/image-viewer.variable.css +3 -0
  74. package/lib/image/image.variable.css +3 -0
  75. package/lib/image/index.js +1 -0
  76. package/lib/index.js +0 -1
  77. package/lib/info-box/index.js +41 -455
  78. package/lib/info-box/info-box.variable.css +3 -0
  79. package/lib/input/index.js +6 -0
  80. package/lib/input/input.variable.css +3 -0
  81. package/lib/link/index.js +1 -0
  82. package/lib/link/link.variable.css +3 -0
  83. package/lib/loading/index.js +1 -0
  84. package/lib/loading/loading.variable.css +3 -0
  85. package/lib/locale/index.js +5 -2
  86. package/lib/locale/lang/en.d.ts +1 -0
  87. package/lib/menu/index.js +1 -0
  88. package/lib/menu/menu.variable.css +3 -0
  89. package/lib/menu/submenu.variable.css +3 -0
  90. package/lib/message/index.js +1 -0
  91. package/lib/message/message.variable.css +3 -0
  92. package/lib/modal/index.d.ts +6 -6
  93. package/lib/modal/index.js +6 -5
  94. package/lib/modal/modal.d.ts +2 -2
  95. package/lib/modal/modal.variable.css +3 -0
  96. package/lib/navigation/index.js +1 -0
  97. package/lib/navigation/navigation.variable.css +3 -0
  98. package/lib/notify/index.js +1 -0
  99. package/lib/notify/notify.variable.css +3 -0
  100. package/lib/overflow-title/index.js +1 -0
  101. package/lib/pagination/index.js +1 -1
  102. package/lib/pagination/pagination.variable.css +3 -0
  103. package/lib/plugin-popover/index.d.ts +1 -1
  104. package/lib/plugin-popover/index.js +56 -31
  105. package/lib/plugins/index.js +1 -0
  106. package/lib/pop-confirm/index.js +1 -0
  107. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  108. package/lib/popover/content.d.ts +1 -1
  109. package/lib/popover/index.js +56 -31
  110. package/lib/popover/plugin-popover.d.ts +4 -1
  111. package/lib/popover/popover.css +3 -1
  112. package/lib/popover/popover.less +4 -1
  113. package/lib/popover/popover.variable.css +6 -1
  114. package/lib/popover2/index.js +1 -0
  115. package/lib/preset.d.ts +2 -0
  116. package/lib/preset.js +14 -20
  117. package/lib/process/index.js +1 -0
  118. package/lib/process/process.variable.css +3 -0
  119. package/lib/progress/index.js +1 -0
  120. package/lib/progress/progress.variable.css +3 -0
  121. package/lib/radio/index.js +1 -0
  122. package/lib/radio/radio.variable.css +3 -0
  123. package/lib/rate/index.js +1 -0
  124. package/lib/rate/rate.variable.css +3 -0
  125. package/lib/rate/star.variable.css +3 -0
  126. package/lib/resize-layout/index.js +1 -0
  127. package/lib/resize-layout/resize-layout.variable.css +3 -0
  128. package/lib/search-select/index.js +1 -0
  129. package/lib/search-select/search-select.variable.css +3 -0
  130. package/lib/select/index.d.ts +68 -6
  131. package/lib/select/index.js +1327 -68
  132. package/lib/select/option.d.ts +3 -1
  133. package/lib/select/pinyin/core.d.ts +14 -0
  134. package/lib/select/pinyin/dict.d.ts +34 -0
  135. package/lib/select/pinyin/index.d.ts +2 -0
  136. package/lib/select/select.css +36 -7
  137. package/lib/select/select.d.ts +28 -2
  138. package/lib/select/select.less +43 -13
  139. package/lib/select/select.variable.css +39 -7
  140. package/lib/select/type.d.ts +2 -3
  141. package/lib/shared/index.js +45 -3
  142. package/lib/shared/utils.d.ts +12 -0
  143. package/lib/sideslider/index.d.ts +6 -6
  144. package/lib/sideslider/index.js +1 -0
  145. package/lib/sideslider/sideslider.d.ts +2 -2
  146. package/lib/sideslider/sideslider.variable.css +3 -0
  147. package/lib/slider/index.js +1 -0
  148. package/lib/slider/slider.variable.css +3 -0
  149. package/lib/steps/index.js +1 -0
  150. package/lib/steps/steps.variable.css +3 -0
  151. package/lib/styles/mixins/animate.variable.css +3 -0
  152. package/lib/styles/mixins/popper.variable.css +3 -0
  153. package/lib/styles/mixins/scroll.variable.css +3 -0
  154. package/lib/styles/reset.css +3 -1
  155. package/lib/styles/reset.less +3 -1
  156. package/lib/styles/reset.variable.css +6 -1
  157. package/lib/styles/themes/themes.less +5 -0
  158. package/lib/swiper/index.js +1 -0
  159. package/lib/swiper/swiper.variable.css +3 -0
  160. package/lib/switcher/index.js +1 -0
  161. package/lib/switcher/switcher.variable.css +3 -0
  162. package/lib/tab/index.js +1 -0
  163. package/lib/tab/tab.variable.css +3 -0
  164. package/lib/table/components/table-column.d.ts +2 -0
  165. package/lib/table/index.d.ts +17 -0
  166. package/lib/table/index.js +1323 -1100
  167. package/lib/table/plugins/head-filter.variable.css +3 -0
  168. package/lib/table/plugins/head-sort.d.ts +7 -0
  169. package/lib/table/plugins/head-sort.variable.css +3 -0
  170. package/lib/table/plugins/settings.variable.css +3 -0
  171. package/lib/table/plugins/use-draggable.d.ts +2 -2
  172. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  173. package/lib/table/props.d.ts +13 -2
  174. package/lib/table/table.css +17 -17
  175. package/lib/table/table.d.ts +7 -0
  176. package/lib/table/table.less +26 -14
  177. package/lib/table/table.variable.css +20 -17
  178. package/lib/table/use-attributes.d.ts +5 -43
  179. package/lib/table/use-common.d.ts +1 -0
  180. package/lib/table/utils.d.ts +5 -4
  181. package/lib/table-column/index.d.ts +112 -106
  182. package/lib/table-column/index.js +44 -4
  183. package/lib/tag/index.js +1 -0
  184. package/lib/tag/tag.variable.css +3 -0
  185. package/lib/tag-input/index.d.ts +4 -4
  186. package/lib/tag-input/index.js +1 -0
  187. package/lib/tag-input/tag-input.d.ts +2 -2
  188. package/lib/tag-input/tag-input.variable.css +3 -0
  189. package/lib/tag-input/tag-props.d.ts +1 -1
  190. package/lib/tag-input/tag-render.d.ts +1 -1
  191. package/lib/time-picker/index.d.ts +35 -35
  192. package/lib/time-picker/index.js +1 -0
  193. package/lib/time-picker/time-picker.variable.css +3 -0
  194. package/lib/timeline/index.js +1 -0
  195. package/lib/timeline/timeline.variable.css +3 -0
  196. package/lib/transfer/index.js +1 -0
  197. package/lib/transfer/transfer.variable.css +3 -0
  198. package/lib/tree/index.js +1 -0
  199. package/lib/tree/tree.variable.css +3 -0
  200. package/lib/upload/index.js +1 -0
  201. package/lib/upload/upload.variable.css +3 -0
  202. package/lib/virtual-render/index.d.ts +9 -9
  203. package/lib/virtual-render/index.js +1 -0
  204. package/lib/virtual-render/virtual-render.d.ts +3 -3
  205. package/lib/virtual-render/virtual-render.variable.css +3 -0
  206. package/package.json +3 -2
@@ -1,12 +1,10 @@
1
+ import "../styles/reset.css";
1
2
  import "./info-box.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
4
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
5
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
6
- import "../button/button.less";
7
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
8
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
9
- import "../modal/modal.less";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_dialog_497cb4c3__ from "../dialog";
7
+ import "../dialog/dialog.less";
10
8
  /******/ var __webpack_modules__ = ({
11
9
 
12
10
  /***/ 7609:
@@ -426,7 +424,7 @@ __webpack_require__.d(__webpack_exports__, {
426
424
  ;// CONCATENATED MODULE: external "../shared"
427
425
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
428
426
  var y = x => () => x
429
- const shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
427
+ const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
430
428
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
431
429
  function _typeof(o) {
432
430
  "@babel/helpers - typeof";
@@ -509,451 +507,25 @@ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
509
507
  ;// CONCATENATED MODULE: external "vue"
510
508
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
511
509
  var external_vue_y = x => () => x
512
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
510
+ const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef });
513
511
  ;// CONCATENATED MODULE: external "../config-provider"
514
512
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
515
513
  var config_provider_y = x => () => x
516
- const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
517
- ;// CONCATENATED MODULE: external "../button"
518
- var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
519
- var button_y = x => () => x
520
- const button_namespaceObject = button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"] });
521
- ;// CONCATENATED MODULE: external "../button/button.less"
522
- var button_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
523
- var button_less_y = x => () => x
524
- const button_less_namespaceObject = button_less_x({ });
525
- ;// CONCATENATED MODULE: external "../icon"
526
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
527
- var icon_y = x => () => x
528
- const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Warn });
529
- ;// CONCATENATED MODULE: external "../modal"
530
- var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
531
- var modal_y = x => () => x
532
- const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__.propsMixin });
533
- ;// CONCATENATED MODULE: external "../modal/modal.less"
534
- var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
535
- var modal_less_y = x => () => x
536
- const modal_less_namespaceObject = modal_less_x({ });
537
- ;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
538
-
539
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
540
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
541
- /*
542
- * Tencent is pleased to support the open source community by making
543
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
544
- *
545
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
546
- *
547
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
548
- *
549
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
550
- *
551
- * ---------------------------------------------------
552
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
553
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
554
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
555
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
556
- *
557
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
558
- * the Software.
559
- *
560
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
561
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
562
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
563
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
564
- * IN THE SOFTWARE.
565
- */
566
-
567
-
568
- var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {}, {
569
- width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
570
- height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
571
- // 确认按钮文字
572
- // confirmText: PropTypes.string.def('确定'),
573
- confirmText: shared_namespaceObject.PropTypes.string,
574
- // 取消按钮文字
575
- // cancelText: PropTypes.string.def('取消'),
576
- cancelText: shared_namespaceObject.PropTypes.string,
577
- // 步骤按钮文字
578
- // prevText: PropTypes.string.def('上一步'),
579
- prevText: shared_namespaceObject.PropTypes.string,
580
- // nextText: PropTypes.string.def('下一步'),
581
- nextText: shared_namespaceObject.PropTypes.string,
582
- // 当前步骤
583
- current: shared_namespaceObject.PropTypes.number.def(1),
584
- // 总步数
585
- totalStep: shared_namespaceObject.PropTypes.number,
586
- // 弹框的标题
587
- title: shared_namespaceObject.PropTypes.string.def('title'),
588
- // 显示 header 的位置
589
- headerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.LEFT),
590
- // 显示 footer 的位置
591
- footerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.RIGHT),
592
- // 颜色 按钮类型
593
- theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
594
- // 对话框类型
595
- dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
596
- // 按钮loading
597
- isLoading: shared_namespaceObject.PropTypes.bool.def(false)
598
- });
599
- /* harmony default export */ const src_props = (props);
600
- ;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
601
-
602
-
603
-
604
- /*
605
- * Tencent is pleased to support the open source community by making
606
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
607
- *
608
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
609
- *
610
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
611
- *
612
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
613
- *
614
- * ---------------------------------------------------
615
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
616
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
617
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
618
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
619
- *
620
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
621
- * the Software.
622
- *
623
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
624
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
625
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
626
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
627
- * IN THE SOFTWARE.
628
- */
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
- function _isSlot(s) {
638
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
639
- }
640
- /* harmony default export */ const src_dialog = ((0,external_vue_namespaceObject.defineComponent)({
641
- // eslint-disable-next-line vue/no-reserved-component-names
642
- name: 'Dialog',
643
- props: src_props,
644
- emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
645
- setup: function setup(props, _ref) {
646
- var emit = _ref.emit;
647
- var t = (0,config_provider_namespaceObject.useLocale)('dialog');
648
- var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
649
- if (props.confirmText === undefined) {
650
- return t.value.ok;
651
- }
652
- return props.confirmText;
653
- });
654
- var localCancelText = (0,external_vue_namespaceObject.computed)(function () {
655
- if (props.cancelText === undefined) {
656
- return t.value.cancel;
657
- }
658
- return props.cancelText;
659
- });
660
- var localPrevText = (0,external_vue_namespaceObject.computed)(function () {
661
- if (props.prevText === undefined) {
662
- return t.value.prev;
663
- }
664
- return props.prevText;
665
- });
666
- var localNextText = (0,external_vue_namespaceObject.computed)(function () {
667
- if (props.nextText === undefined) {
668
- return t.value.next;
669
- }
670
- return props.nextText;
671
- });
672
- var data = (0,external_vue_namespaceObject.reactive)({
673
- positionX: 0,
674
- positionY: 0,
675
- moveStyle: {
676
- top: '50%',
677
- left: '50%'
678
- }
679
- });
680
- var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
681
- (0,external_vue_namespaceObject.onMounted)(function () {
682
- if (props.escClose) {
683
- addEventListener('keydown', escCloseHandler);
684
- }
685
- });
686
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
687
- if (props.escClose) {
688
- removeEventListener('keydown', escCloseHandler);
689
- }
690
- });
691
- (0,external_vue_namespaceObject.watch)(function () {
692
- return props.isShow;
693
- }, function (val) {
694
- if (!val) {
695
- setTimeout(function () {
696
- data.moveStyle = {
697
- top: '50%',
698
- left: '50%'
699
- };
700
- data.positionX = 0;
701
- data.positionY = 0;
702
- isModalShow.value = false;
703
- }, 250);
704
- } else {
705
- isModalShow.value = true;
706
- }
707
- emit('value-change', val);
708
- });
709
- // 关闭弹框
710
- var handleClose = /*#__PURE__*/function () {
711
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
712
- var shouldClose;
713
- return regenerator_default().wrap(function _callee$(_context) {
714
- while (1) switch (_context.prev = _context.next) {
715
- case 0:
716
- shouldClose = true;
717
- if (!(typeof props.beforeClose === 'function')) {
718
- _context.next = 5;
719
- break;
720
- }
721
- _context.next = 4;
722
- return props.beforeClose();
723
- case 4:
724
- shouldClose = _context.sent;
725
- case 5:
726
- if (shouldClose) {
727
- emit('update:isShow', false);
728
- emit('closed');
729
- isModalShow.value = false;
730
- }
731
- case 6:
732
- case "end":
733
- return _context.stop();
734
- }
735
- }, _callee);
736
- }));
737
- return function handleClose() {
738
- return _ref2.apply(this, arguments);
739
- };
740
- }();
741
- var handleConfirm = function handleConfirm() {
742
- emit('update:isShow', false);
743
- emit('confirm');
744
- // isModalShow.value = false; 影响异步关闭
745
- };
746
- var hasFooter = (0,external_vue_namespaceObject.computed)(function () {
747
- return ['process', 'operation', 'confirm'].includes(props.dialogType);
748
- });
749
- // 按 esc 关闭弹框
750
- var escCloseHandler = function escCloseHandler(e) {
751
- if (props.isShow && props.closeIcon) {
752
- if (e.keyCode === 27) {
753
- handleClose();
754
- }
755
- }
756
- };
757
- // 上一步
758
- var handlePrevStep = function handlePrevStep() {
759
- emit('prev');
760
- };
761
- // 下一步
762
- var handleNextStep = function handleNextStep() {
763
- emit('next');
764
- };
765
- // 拖拽事件
766
- var moveHandler = function moveHandler(e) {
767
- if (props.fullscreen) {
768
- return false;
769
- }
770
- if (!props.draggable) {
771
- return false;
772
- }
773
- var odiv = e.target;
774
- var parentHeight = e.currentTarget.parentNode.parentNode.offsetHeight;
775
- var parentWidth = e.currentTarget.parentNode.parentNode.offsetWidth;
776
- var disX;
777
- var disY;
778
- if (data.positionX !== 0 && data.positionY !== 0) {
779
- disX = e.clientX - data.positionX;
780
- disY = e.clientY - data.positionY;
781
- } else {
782
- disX = e.clientX - odiv.offsetLeft;
783
- disY = e.clientY - odiv.offsetTop;
784
- }
785
- document.onmousemove = function (e) {
786
- var boxLeft = window.innerWidth - parentWidth;
787
- var boxTop = window.innerHeight - parentHeight;
788
- var left = e.clientX - disX;
789
- var top = e.clientY - disY;
790
- if (boxLeft / 2 - left <= 0) {
791
- left = boxLeft / 2;
792
- } else if (boxLeft / 2 + left <= 0) {
793
- left = -boxLeft / 2;
794
- }
795
- if (boxTop / 2 - top <= 0) {
796
- top = boxTop / 2;
797
- } else if (boxTop / 2 + top <= 0) {
798
- top = -boxTop / 2;
799
- }
800
- data.positionX = left;
801
- data.positionY = top;
802
- data.moveStyle.left = "calc(50% + ".concat(left, "px)");
803
- data.moveStyle.top = "calc(50% + ".concat(top, "px)");
804
- };
805
- document.onmouseup = function () {
806
- document.onmousemove = null;
807
- document.onmouseup = null;
808
- };
809
- };
810
- var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
811
- resolveClassName = _usePrefix.resolveClassName;
812
- return {
813
- data: data,
814
- handleClose: handleClose,
815
- handleConfirm: handleConfirm,
816
- escCloseHandler: escCloseHandler,
817
- moveHandler: moveHandler,
818
- handlePrevStep: handlePrevStep,
819
- handleNextStep: handleNextStep,
820
- hasFooter: hasFooter,
821
- isModalShow: isModalShow,
822
- localConfirmText: localConfirmText,
823
- localCancelText: localCancelText,
824
- localPrevText: localPrevText,
825
- localNextText: localNextText,
826
- resolveClassName: resolveClassName
827
- };
828
- },
829
- render: function render() {
830
- var _this = this;
831
- var renderIcon = function renderIcon() {
832
- var iconMap = {
833
- loading: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, {
834
- "class": [_this.resolveClassName('info-icon'), 'primary']
835
- }, null),
836
- warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, {
837
- "class": [_this.resolveClassName('info-icon'), 'warning']
838
- }, null),
839
- success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, {
840
- "class": [_this.resolveClassName('info-icon'), 'success']
841
- }, null),
842
- danger: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
843
- "class": [_this.resolveClassName('info-icon'), 'danger']
844
- }, null)
845
- };
846
- return iconMap[_this.infoType];
847
- };
848
- var dialogSlot = {
849
- header: function header() {
850
- var _this$$slots$tools, _this$$slots$tools2, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
851
- return [(0,external_vue_namespaceObject.createVNode)("div", {
852
- "class": [_this.resolveClassName('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
853
- "onMousedown": _this.moveHandler
854
- }, [(_this$$slots$tools = (_this$$slots$tools2 = (_this$$slots = _this.$slots).tools) === null || _this$$slots$tools2 === void 0 ? void 0 : _this$$slots$tools2.call(_this$$slots)) !== null && _this$$slots$tools !== void 0 ? _this$$slots$tools : '']), (0,external_vue_namespaceObject.createVNode)("div", {
855
- "class": _this.resolveClassName('dialog-header')
856
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
857
- "class": _this.resolveClassName('header-icon')
858
- }, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
859
- "name": "info-icon"
860
- }, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
861
- "class": _this.resolveClassName('dialog-title'),
862
- "style": "text-align: ".concat(_this.headerAlign)
863
- }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots2 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots2)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : _this.title])])];
864
- },
865
- "default": function _default() {
866
- var _this$$slots$default, _this$$slots$default2, _this$$slots3;
867
- return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : 'default';
868
- },
869
- footer: function footer() {
870
- var _this$$slots$footer, _this$$slots$footer2, _this$$slots4, _this$$slots$footer3, _this$$slots$footer4, _this$$slots5, _this$$slots$footer5, _this$$slots$footer6, _this$$slots6;
871
- return (0,external_vue_namespaceObject.createVNode)("div", {
872
- "class": _this.resolveClassName('dialog-footer'),
873
- "style": "text-align: ".concat(_this.footerAlign)
874
- }, [_this.dialogType === 'process' ? (_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
875
- "class": _this.resolveClassName('dialog-perv'),
876
- "onClick": _this.handlePrevStep
877
- }, {
878
- "default": function _default() {
879
- return [_this.localPrevText];
880
- }
881
- }), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
882
- "class": _this.resolveClassName('dialog-next'),
883
- "onClick": _this.handleNextStep
884
- }, {
885
- "default": function _default() {
886
- return [_this.localNextText];
887
- }
888
- }), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
889
- "onClick": _this.handleConfirm,
890
- "theme": _this.theme,
891
- "loading": _this.isLoading
892
- }, {
893
- "default": function _default() {
894
- return [_this.localConfirmText];
895
- }
896
- }) : '', (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
897
- "class": _this.resolveClassName('dialog-cancel'),
898
- "onClick": _this.handleClose,
899
- "disabled": _this.isLoading
900
- }, {
901
- "default": function _default() {
902
- return [_this.localCancelText];
903
- }
904
- })]) : '', _this.dialogType === 'operation' ? (_this$$slots$footer3 = (_this$$slots$footer4 = (_this$$slots5 = _this.$slots).footer) === null || _this$$slots$footer4 === void 0 ? void 0 : _this$$slots$footer4.call(_this$$slots5)) !== null && _this$$slots$footer3 !== void 0 ? _this$$slots$footer3 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
905
- "onClick": _this.handleConfirm,
906
- "theme": _this.theme,
907
- "loading": _this.isLoading
908
- }, {
909
- "default": function _default() {
910
- return [_this.localConfirmText];
911
- }
912
- }), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
913
- "class": _this.resolveClassName('dialog-cancel'),
914
- "onClick": _this.handleClose,
915
- "disabled": _this.isLoading
916
- }, {
917
- "default": function _default() {
918
- return [_this.localCancelText];
919
- }
920
- })]) : '', _this.dialogType === 'confirm' ? (_this$$slots$footer5 = (_this$$slots$footer6 = (_this$$slots6 = _this.$slots).footer) === null || _this$$slots$footer6 === void 0 ? void 0 : _this$$slots$footer6.call(_this$$slots6)) !== null && _this$$slots$footer5 !== void 0 ? _this$$slots$footer5 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
921
- "onClick": _this.handleConfirm,
922
- "theme": _this.theme,
923
- "loading": _this.isLoading
924
- }, {
925
- "default": function _default() {
926
- return [_this.localConfirmText];
927
- }
928
- })]) : '']);
929
- },
930
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
931
- close: function close() {
932
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
933
- "onClick": _this.handleClose
934
- }, null);
935
- }
936
- };
937
- var className = "".concat(this.resolveClassName('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
938
- return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
939
- "class": className,
940
- "onClose": this.handleClose,
941
- "isShow": this.isModalShow,
942
- "left": this.data.moveStyle.left,
943
- "top": this.data.moveStyle.top
944
- }), _isSlot(dialogSlot) ? dialogSlot : {
945
- "default": function _default() {
946
- return [dialogSlot];
947
- }
948
- });
949
- }
950
- }));
514
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
515
+ ;// CONCATENATED MODULE: external "../dialog"
516
+ var dialog_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
517
+ var dialog_y = x => () => x
518
+ const dialog_namespaceObject = dialog_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_dialog_497cb4c3__["default"] });
519
+ ;// CONCATENATED MODULE: external "../dialog/dialog.less"
520
+ var dialog_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
521
+ var dialog_less_y = x => () => x
522
+ const dialog_less_namespaceObject = dialog_less_x({ });
951
523
  ;// CONCATENATED MODULE: ../../packages/info-box/src/info-box.tsx
952
524
 
953
525
 
954
526
 
955
- function info_box_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
956
- function info_box_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? info_box_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : info_box_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
527
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
528
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
957
529
 
958
530
  /*
959
531
  * Tencent is pleased to support the open source community by making
@@ -983,15 +555,18 @@ function info_box_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
983
555
 
984
556
 
985
557
 
558
+
986
559
  var InfoBox = function InfoBox(config) {
987
560
  var container = document.createElement('div');
988
561
  var modalFuncProps = (0,external_vue_namespaceObject.shallowRef)(config);
989
562
  var isShow = (0,external_vue_namespaceObject.ref)(modalFuncProps.value.isShow !== false);
990
563
  var app;
564
+ var dialogConfirm;
991
565
  var dialog = (0,external_vue_namespaceObject.defineComponent)({
992
566
  name: 'DialogConfirm',
993
567
  setup: function setup(_props, _ref) {
994
568
  var expose = _ref.expose;
569
+ var isLoading = false;
995
570
  var beforeHiddenFn = [];
996
571
  var resolveUserCallbackFnBeforeClose = /*#__PURE__*/function () {
997
572
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(userCallbackFn) {
@@ -1048,8 +623,12 @@ var InfoBox = function InfoBox(config) {
1048
623
  return regenerator_default().wrap(function _callee3$(_context3) {
1049
624
  while (1) switch (_context3.prev = _context3.next) {
1050
625
  case 0:
1051
- resolveUserCallbackFnBeforeClose((_modalFuncProps$value2 = modalFuncProps.value) === null || _modalFuncProps$value2 === void 0 ? void 0 : _modalFuncProps$value2.onConfirm);
1052
- case 1:
626
+ isLoading = true;
627
+ _context3.next = 3;
628
+ return resolveUserCallbackFnBeforeClose((_modalFuncProps$value2 = modalFuncProps.value) === null || _modalFuncProps$value2 === void 0 ? void 0 : _modalFuncProps$value2.onConfirm);
629
+ case 3:
630
+ isLoading = false;
631
+ case 4:
1053
632
  case "end":
1054
633
  return _context3.stop();
1055
634
  }
@@ -1060,7 +639,7 @@ var InfoBox = function InfoBox(config) {
1060
639
  };
1061
640
  }();
1062
641
  function update(newValue) {
1063
- modalFuncProps.value = info_box_objectSpread(info_box_objectSpread({}, modalFuncProps.value), newValue);
642
+ modalFuncProps.value = _objectSpread(_objectSpread({}, modalFuncProps.value), newValue);
1064
643
  }
1065
644
  expose({
1066
645
  update: update
@@ -1096,14 +675,16 @@ var InfoBox = function InfoBox(config) {
1096
675
  return fn();
1097
676
  });
1098
677
  beforeHiddenFn.length = 0;
678
+ unmountApp();
1099
679
  container.remove();
1100
680
  };
1101
681
  return function () {
1102
- return (0,external_vue_namespaceObject.createVNode)(src_dialog, info_box_objectSpread(info_box_objectSpread({
682
+ return (0,external_vue_namespaceObject.createVNode)(dialog_namespaceObject["default"], _objectSpread(_objectSpread({
1103
683
  "class": resolveClassName('info-wrapper'),
1104
684
  headerAlign: 'center',
1105
685
  footerAlign: 'center',
1106
- fullscreen: false
686
+ fullscreen: false,
687
+ isLoading: isLoading
1107
688
  }, modalFuncProps.value), {}, {
1108
689
  isShow: isShow.value,
1109
690
  transfer: false,
@@ -1117,9 +698,15 @@ var InfoBox = function InfoBox(config) {
1117
698
  var beforeShow = function beforeShow() {
1118
699
  if (!app) {
1119
700
  document.body.append(container);
1120
- app = (0,external_vue_namespaceObject.createApp)(dialog).mount(container);
701
+ app = (0,external_vue_namespaceObject.createApp)(dialog);
702
+ dialogConfirm = app.mount(container);
1121
703
  }
1122
704
  };
705
+ var unmountApp = function unmountApp() {
706
+ var _app;
707
+ (_app = app) === null || _app === void 0 || _app.unmount();
708
+ app = null;
709
+ };
1123
710
  if (isShow.value) {
1124
711
  beforeShow();
1125
712
  }
@@ -1130,17 +717,16 @@ var InfoBox = function InfoBox(config) {
1130
717
  },
1131
718
  hide: function hide() {
1132
719
  isShow.value = false;
720
+ unmountApp();
1133
721
  },
1134
722
  update: function update(config) {
1135
- var _app;
723
+ var _dialogConfirm;
1136
724
  beforeShow();
1137
- (_app = app) === null || _app === void 0 || _app.update(config);
725
+ (_dialogConfirm = dialogConfirm) === null || _dialogConfirm === void 0 || _dialogConfirm.update(config);
1138
726
  },
1139
727
  destroy: function destroy() {
1140
- var _app2;
1141
728
  container.remove();
1142
- (_app2 = app) === null || _app2 === void 0 || _app2.unmount();
1143
- app = null;
729
+ unmountApp();
1144
730
  }
1145
731
  };
1146
732
  };
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
128
131
  width: 440px;
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./input.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -947,6 +948,11 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
947
948
  });
948
949
  });
949
950
  var tooltips = (0,external_vue_namespaceObject.computed)(function () {
951
+ if (showMaxLimit.value && ceilMaxLength.value - modelValueLength.value === 0) {
952
+ return {
953
+ content: t.value.maxlengthLimitTips
954
+ };
955
+ }
950
956
  return props.showOverflowTooltips && isOverflow.value && props.modelValue ? {
951
957
  content: props.modelValue,
952
958
  sameWidth: true
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  @keyframes loading-scale-animate {
128
131
  0% {
package/lib/link/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./link.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-link {
128
131
  font-size: var(--font-size-medium);