bkui-vue 0.0.1-beta.73 → 0.0.1-beta.74

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.
package/dist/index.esm.js CHANGED
@@ -9618,8 +9618,8 @@ var Component$q = defineComponent({
9618
9618
  const BkCollapse = withInstall(Component$q);
9619
9619
  const propsMixin$1 = {
9620
9620
  isShow: PropTypes.bool.def(false),
9621
- width: PropTypes.string.def("50%") || PropTypes.number,
9622
- height: PropTypes.string.def("50%") || PropTypes.number,
9621
+ width: PropTypes.oneOfType([String, Number]).def("50%"),
9622
+ height: PropTypes.oneOfType([String, Number]).def("50%"),
9623
9623
  customClass: PropTypes.string || PropTypes.array,
9624
9624
  scrollable: PropTypes.bool.def(true),
9625
9625
  showMask: PropTypes.bool.def(true),
@@ -9632,12 +9632,13 @@ const propsMixin$1 = {
9632
9632
  draggable: PropTypes.bool.def(true),
9633
9633
  quickClose: PropTypes.bool.def(true),
9634
9634
  transfer: PropTypes.bool.def(false),
9635
- title: PropTypes.string.def("Header"),
9636
9635
  maxHeight: PropTypes.string,
9637
9636
  direction: PropTypes.string,
9638
9637
  animateType: PropTypes.string.def("slide"),
9639
9638
  renderDirective: PropTypes.commonType(["show", "if"], "renderDirective").def("show"),
9640
- beforeClose: PropTypes.custom(() => true)
9639
+ beforeClose: PropTypes.custom(() => true),
9640
+ dialogType: PropTypes.commonType(["show", "operation", "confirm", "process"], "dialogType").def("operation"),
9641
+ multiInstance: PropTypes.bool.def(true)
9641
9642
  };
9642
9643
  var Component$p = defineComponent({
9643
9644
  name: "Modal",
@@ -9706,7 +9707,7 @@ var Component$p = defineComponent({
9706
9707
  } : {};
9707
9708
  const bodyClass = `bk-modal-body ${this.animateType === "slide" ? this.direction : ""}`;
9708
9709
  return createVNode("div", {
9709
- "class": ["bk-modal-wrapper", this.size, this.customClass, this.fullscreen ? "bk-model-fullscreen" : ""],
9710
+ "class": ["bk-modal-wrapper", this.customClass],
9710
9711
  "style": this.compStyle
9711
9712
  }, [withDirectives(createVNode("div", {
9712
9713
  "class": "bk-modal-outside",
@@ -9722,8 +9723,8 @@ var Component$p = defineComponent({
9722
9723
  "class": "bk-modal-header"
9723
9724
  }, [(_c = (_b = (_a = this.$slots).header) == null ? void 0 : _b.call(_a)) != null ? _c : ""]), createVNode("div", {
9724
9725
  "class": "bk-modal-content",
9725
- "style": __spreadValues({}, maxHeight)
9726
- }, [(_f = (_e = (_d = this.$slots).default) == null ? void 0 : _e.call(_d)) != null ? _f : ""]), createVNode("div", {
9726
+ "style": [this.dialogType === "show" ? "height: calc(100% - 74px);margin-bottom: 0px" : "", __spreadValues({}, maxHeight)]
9727
+ }, [(_f = (_e = (_d = this.$slots).default) == null ? void 0 : _e.call(_d)) != null ? _f : ""]), this.dialogType === "show" ? "" : createVNode("div", {
9727
9728
  "class": "bk-modal-footer"
9728
9729
  }, [(_i = (_h = (_g = this.$slots).footer) == null ? void 0 : _h.call(_g)) != null ? _i : ""])]) : ""];
9729
9730
  }
@@ -9780,12 +9781,14 @@ var Component$o = defineComponent({
9780
9781
  });
9781
9782
  watch(() => props.isShow, (val) => {
9782
9783
  if (!val) {
9783
- data2.moveStyle = {
9784
- top: "50%",
9785
- left: "50%"
9786
- };
9787
- data2.positionX = 0;
9788
- data2.positionY = 0;
9784
+ setTimeout(() => {
9785
+ data2.moveStyle = {
9786
+ top: "50%",
9787
+ left: "50%"
9788
+ };
9789
+ data2.positionX = 0;
9790
+ data2.positionY = 0;
9791
+ }, 1e3);
9789
9792
  }
9790
9793
  });
9791
9794
  const handleClose = () => {
@@ -9813,6 +9816,9 @@ var Component$o = defineComponent({
9813
9816
  if (props.fullscreen) {
9814
9817
  return false;
9815
9818
  }
9819
+ if (!props.draggable) {
9820
+ return false;
9821
+ }
9816
9822
  const odiv = e.target;
9817
9823
  const parentHeight = e.currentTarget.parentNode.parentNode.offsetHeight;
9818
9824
  const parentWidth = e.currentTarget.parentNode.parentNode.offsetWidth;
@@ -9863,11 +9869,11 @@ var Component$o = defineComponent({
9863
9869
  render() {
9864
9870
  const dialogSlot = {
9865
9871
  header: () => {
9866
- var _a, _b, _c;
9872
+ var _a, _b, _c, _d, _e, _f;
9867
9873
  return [createVNode("div", {
9868
9874
  "class": ["bk-dialog-tool", this.fullscreen || !this.draggable ? "" : "move", this.draggable ? "content-dragging" : ""],
9869
9875
  "onMousedown": this.moveHandler
9870
- }, [createVNode("span", {
9876
+ }, [(_c = (_b = (_a = this.$slots).tools) == null ? void 0 : _b.call(_a)) != null ? _c : "", createVNode("span", {
9871
9877
  "class": ["bk-dialog-close", this.closeIcon ? "" : "close-icon"],
9872
9878
  "onClick": this.handleClose
9873
9879
  }, [createTextVNode("+")])]), createVNode("div", {
@@ -9875,7 +9881,7 @@ var Component$o = defineComponent({
9875
9881
  }, [createVNode("span", {
9876
9882
  "class": "bk-dialog-title",
9877
9883
  "style": `text-align: ${this.headerAlign}`
9878
- }, [(_c = (_b = (_a = this.$slots).header) == null ? void 0 : _b.call(_a)) != null ? _c : this.title])])];
9884
+ }, [(_f = (_e = (_d = this.$slots).header) == null ? void 0 : _e.call(_d)) != null ? _f : this.title])])];
9879
9885
  },
9880
9886
  default: () => {
9881
9887
  var _a, _b, _c;
@@ -9927,7 +9933,7 @@ var Component$o = defineComponent({
9927
9933
  })]) : ""]);
9928
9934
  }
9929
9935
  };
9930
- const className = `bk-dialog-wrapper ${this.scrollable ? "scroll-able" : ""}`;
9936
+ const className = `bk-dialog-wrapper ${this.scrollable ? "scroll-able" : ""} ${this.multiInstance ? "multi-instance" : ""}`;
9931
9937
  return createVNode(BkModal, mergeProps(this.$props, {
9932
9938
  "class": [className, this.fullscreen ? "bk-model-fullscreen" : this.size],
9933
9939
  "style": this.data.moveStyle
@@ -12110,6 +12116,10 @@ var Component$d = defineComponent({
12110
12116
  BkButton
12111
12117
  },
12112
12118
  props: __spreadProps(__spreadValues({}, sliderPops), {
12119
+ title: {
12120
+ type: String,
12121
+ default: ""
12122
+ },
12113
12123
  direction: {
12114
12124
  type: String,
12115
12125
  default: "right",
@@ -16283,7 +16293,7 @@ const menuProps = {
16283
16293
  type: Boolean,
16284
16294
  default: false
16285
16295
  },
16286
- OpenedKeys: {
16296
+ openedKeys: {
16287
16297
  type: Array
16288
16298
  },
16289
16299
  mode: {
@@ -16309,7 +16319,7 @@ var Component$6 = defineComponent({
16309
16319
  const mode = computed(() => props.mode);
16310
16320
  const collapse2 = ref(props.collapse);
16311
16321
  const oldOpenKeys = ref([]);
16312
- watch(() => props.OpenedKeys, (keys = openedKeys.value) => {
16322
+ watch(() => props.openedKeys, (keys = openedKeys.value) => {
16313
16323
  openedKeys.value = keys;
16314
16324
  }, {
16315
16325
  immediate: true