bkui-vue 2.0.2-beta.14 → 2.0.2-beta.16

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 (76) hide show
  1. package/dist/index.cjs.js +42 -42
  2. package/dist/index.esm.js +2627 -2632
  3. package/dist/index.umd.js +16 -16
  4. package/dist/style.variable.css +1 -1
  5. package/lib/affix/affix.variable.css +0 -1
  6. package/lib/alert/alert.variable.css +0 -1
  7. package/lib/backtop/backtop.variable.css +0 -1
  8. package/lib/badge/badge.variable.css +0 -1
  9. package/lib/breadcrumb/breadcrumb.variable.css +0 -1
  10. package/lib/button/button.variable.css +0 -1
  11. package/lib/card/card.variable.css +0 -1
  12. package/lib/cascader/cascader.variable.css +0 -1
  13. package/lib/checkbox/checkbox.variable.css +0 -1
  14. package/lib/code-diff/code-diff.variable.css +0 -1
  15. package/lib/collapse/collapse.variable.css +0 -1
  16. package/lib/collapse-transition/collapse-transition.variable.css +0 -1
  17. package/lib/color-picker/color-picker.variable.css +0 -1
  18. package/lib/config-provider/config-provider.variable.css +0 -1
  19. package/lib/container/container.variable.css +0 -1
  20. package/lib/date-picker/date-picker.variable.css +0 -1
  21. package/lib/dialog/dialog.variable.css +0 -1
  22. package/lib/divider/divider.variable.css +0 -1
  23. package/lib/dropdown/dropdown.variable.css +0 -1
  24. package/lib/exception/exception.variable.css +0 -1
  25. package/lib/fixed-navbar/fixed-navbar.variable.css +0 -1
  26. package/lib/form/form.variable.css +0 -1
  27. package/lib/image/image-viewer.variable.css +0 -1
  28. package/lib/image/image.variable.css +0 -1
  29. package/lib/index.js +1 -1
  30. package/lib/info-box/info-box.variable.css +0 -1
  31. package/lib/input/input.variable.css +0 -1
  32. package/lib/link/link.variable.css +0 -1
  33. package/lib/loading/loading.variable.css +0 -1
  34. package/lib/menu/menu.variable.css +0 -1
  35. package/lib/menu/submenu.variable.css +0 -1
  36. package/lib/message/message.variable.css +0 -1
  37. package/lib/modal/index.js +2 -1
  38. package/lib/modal/modal.variable.css +0 -1
  39. package/lib/navigation/navigation.variable.css +0 -1
  40. package/lib/notify/notify.variable.css +0 -1
  41. package/lib/pagination/pagination.variable.css +0 -1
  42. package/lib/pop-confirm/pop-confirm.variable.css +0 -1
  43. package/lib/popover/popover.variable.css +0 -1
  44. package/lib/process/process.variable.css +0 -1
  45. package/lib/progress/progress.variable.css +0 -1
  46. package/lib/radio/radio.variable.css +0 -1
  47. package/lib/rate/rate.variable.css +0 -1
  48. package/lib/resize-layout/resize-layout.variable.css +0 -1
  49. package/lib/scrollbar/css/scrollbar.variable.css +0 -1
  50. package/lib/search-select/search-select.variable.css +0 -1
  51. package/lib/select/select.variable.css +0 -1
  52. package/lib/sideslider/sideslider.variable.css +0 -1
  53. package/lib/slider/slider.variable.css +0 -1
  54. package/lib/steps/steps.variable.css +0 -1
  55. package/lib/styles/mixins/animate.variable.css +0 -1
  56. package/lib/styles/mixins/popper.variable.css +0 -1
  57. package/lib/styles/mixins/scroll.variable.css +0 -1
  58. package/lib/styles/reset.variable.css +0 -1
  59. package/lib/swiper/swiper.variable.css +0 -1
  60. package/lib/switcher/switcher.variable.css +0 -1
  61. package/lib/tab/tab.variable.css +0 -1
  62. package/lib/table/plugins/head-filter.variable.css +0 -1
  63. package/lib/table/plugins/head-sort.variable.css +0 -1
  64. package/lib/table/plugins/settings.variable.css +0 -1
  65. package/lib/table/table.variable.css +0 -1
  66. package/lib/tag/tag.variable.css +0 -1
  67. package/lib/tag-input/tag-input.variable.css +0 -1
  68. package/lib/time-picker/time-picker.variable.css +0 -1
  69. package/lib/timeline/timeline.variable.css +0 -1
  70. package/lib/transfer/transfer.variable.css +0 -1
  71. package/lib/tree/index.js +11 -19
  72. package/lib/tree/tree.variable.css +0 -1
  73. package/lib/tree/use-node-drag.d.ts +1 -1
  74. package/lib/upload/upload.variable.css +0 -1
  75. package/lib/virtual-render/virtual-render.variable.css +0 -1
  76. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
package/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.14";
6
+ export const version = "2.0.2-beta.16";
7
7
  window.__bkui_vue_version__ = version;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -137,6 +137,7 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => (__WEBPACK_EXTE
137
137
  var useContentResize = function useContentResize(root, resizeTarget, props) {
138
138
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
139
139
  resolveClassName = _usePrefix.resolveClassName;
140
+ var slots = (0,external_vue_namespaceObject.useSlots)();
140
141
  var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
141
142
  var contentStyles = (0,external_vue_namespaceObject.ref)({});
142
143
  var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
@@ -155,7 +156,7 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
155
156
  isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + footerMarginTop;
156
157
  if (isContentScroll.value || props.fullscreen) {
157
158
  contentStyles.value = {
158
- height: "".concat(windowInnerHeight - headerHeight - 48, "px"),
159
+ height: "".concat(windowInnerHeight - headerHeight - (slots.footer ? 48 : 0), "px"),
159
160
  overflow: 'auto',
160
161
  'scrollbar-gutter': 'stable'
161
162
  };
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,5 +1,4 @@
1
1
  /* stylelint-disable declaration-no-important */
2
- :host,
3
2
  :root {
4
3
  --bk-prefix: bk;
5
4
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,5 +1,4 @@
1
1
  /* stylelint-disable declaration-no-important */
2
- :host,
3
2
  :root {
4
3
  --bk-prefix: bk;
5
4
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
package/lib/tree/index.js CHANGED
@@ -19186,7 +19186,6 @@ var use_node_drag_this = undefined;
19186
19186
  getNodeParentIdById = _useNodeAttribute.getNodeParentIdById,
19187
19187
  extendNodeAttr = _useNodeAttribute.extendNodeAttr,
19188
19188
  getNodeAttrById = _useNodeAttribute.getNodeAttrById,
19189
- getNodePathById = _useNodeAttribute.getNodePathById,
19190
19189
  isRootNode = _useNodeAttribute.isRootNode;
19191
19190
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
19192
19191
  resolveClassName = _usePrefix.resolveClassName;
@@ -19288,7 +19287,7 @@ var use_node_drag_this = undefined;
19288
19287
  ctx.emit(EVENTS.NODE_DRAG_START, e, targetNode);
19289
19288
  };
19290
19289
  var handleTreeNodeDrop = function handleTreeNodeDrop(e) {
19291
- var _dragOverItem2, _dragOverItem3, _dragOverItem4, _dragOverItem5;
19290
+ var _dragOverItem5;
19292
19291
  /** firefox的drop事件必须调用preventDefault()和stopPropagation(), 否则会自动重定向 */
19293
19292
  e.preventDefault();
19294
19293
  e.stopPropagation();
@@ -19300,29 +19299,22 @@ var use_node_drag_this = undefined;
19300
19299
  }
19301
19300
  var sourceNodeId = dragNodeId; // e.dataTransfer.getData('node-id');
19302
19301
  var targetNodeId = targetNode.getAttribute('data-tree-node');
19303
- if ((_dragOverItem2 = dragOverItem) !== null && _dragOverItem2 !== void 0 && _dragOverItem2.classList.contains(dropInner)) {
19304
- Reflect.apply(dragAsChildNode, use_node_drag_this, [sourceNodeId, targetNodeId]);
19305
- }
19306
- if ((_dragOverItem3 = dragOverItem) !== null && _dragOverItem3 !== void 0 && _dragOverItem3.classList.contains(dropAfter) || (_dragOverItem4 = dragOverItem) !== null && _dragOverItem4 !== void 0 && _dragOverItem4.classList.contains(dropBefore)) {
19307
- Reflect.apply(dragSortData, use_node_drag_this, [sourceNodeId, targetNodeId]);
19302
+ if (sourceNodeId !== targetNodeId) {
19303
+ var _dragOverItem2, _dragOverItem3, _dragOverItem4;
19304
+ if ((_dragOverItem2 = dragOverItem) !== null && _dragOverItem2 !== void 0 && _dragOverItem2.classList.contains(dropInner)) {
19305
+ Reflect.apply(dragAsChildNode, use_node_drag_this, [sourceNodeId, targetNodeId]);
19306
+ }
19307
+ if ((_dragOverItem3 = dragOverItem) !== null && _dragOverItem3 !== void 0 && _dragOverItem3.classList.contains(dropAfter) || (_dragOverItem4 = dragOverItem) !== null && _dragOverItem4 !== void 0 && _dragOverItem4.classList.contains(dropBefore)) {
19308
+ Reflect.apply(dragSortData, use_node_drag_this, [sourceNodeId, targetNodeId]);
19309
+ }
19310
+ ctx.emit(EVENTS.NODE_DROP, e, targetNode, data);
19308
19311
  }
19309
19312
  nodeRectMap = new WeakMap();
19310
19313
  (_dragOverItem5 = dragOverItem) === null || _dragOverItem5 === void 0 || _dragOverItem5.classList.remove(dropAfter, dropBefore, dropInner);
19311
19314
  dragOverItem = null;
19312
- ctx.emit(EVENTS.NODE_DROP, e, targetNode, data);
19313
19315
  };
19314
19316
  var isNodeSortable = function isNodeSortable(sourceId, targetId) {
19315
- var sourcePath = getNodePathById(sourceId);
19316
- var targetPath = getNodePathById(targetId);
19317
- // if (!sourcePath || targetPath) {
19318
- // return false;
19319
- // }
19320
- var sourceParentNodeId = getNodeParentIdById(sourceId);
19321
- var targetParentNode = getNodeParentIdById(targetId);
19322
- if (sourceParentNodeId === targetParentNode) {
19323
- return true;
19324
- }
19325
- return sourcePath.indexOf(targetPath) === -1 && targetPath.indexOf(sourcePath) === -1;
19317
+ return sourceId !== targetId;
19326
19318
  };
19327
19319
  var dragSortData = function dragSortData(sourceId, targetId) {
19328
19320
  var _dragOverItem6;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,3 +1,3 @@
1
- import { TreePropTypes } from './props';
1
+ import type { TreePropTypes } from './props';
2
2
  declare const _default: (props: TreePropTypes, ctx: any, root?: any, flatData?: any) => void;
3
3
  export default _default;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -1,4 +1,3 @@
1
- :host,
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.14",
3
+ "version": "2.0.2-beta.16",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",