bkui-vue 0.0.1-beta.115 → 0.0.1-beta.118

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 (53) hide show
  1. package/dist/index.cjs.js +10 -10
  2. package/dist/index.esm.js +23 -11
  3. package/dist/index.umd.js +10 -10
  4. package/dist/style.css +1 -1
  5. package/lib/backtop/backtop.d.ts +1 -1
  6. package/lib/backtop/index.d.ts +4 -4
  7. package/lib/badge/badge.d.ts +1 -1
  8. package/lib/badge/index.d.ts +4 -4
  9. package/lib/button/button.css +3 -3
  10. package/lib/button/button.less +8 -10
  11. package/lib/button/button.variable.css +3 -3
  12. package/lib/cascader/cascader.d.ts +1 -1
  13. package/lib/cascader/index.d.ts +4 -4
  14. package/lib/components.d.ts +0 -51
  15. package/lib/dialog/dialog.d.ts +1 -1
  16. package/lib/dialog/index.d.ts +4 -4
  17. package/lib/directives/index.js +1 -1
  18. package/lib/directives/tooltips.d.ts +1 -0
  19. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  20. package/lib/fixed-navbar/index.d.ts +4 -4
  21. package/lib/form/form-item.d.ts +1 -0
  22. package/lib/form/index.d.ts +1 -0
  23. package/lib/form/index.js +1 -1
  24. package/lib/icon/funnel.js +1 -0
  25. package/lib/icon/index.js +1 -1
  26. package/lib/menu/index.d.ts +4 -0
  27. package/lib/menu/index.js +1 -1
  28. package/lib/message/messageConstructor.d.ts +1 -1
  29. package/lib/modal/index.d.ts +4 -4
  30. package/lib/modal/index.js +1 -1
  31. package/lib/modal/modal.d.ts +1 -1
  32. package/lib/notify/notifyConstructor.d.ts +1 -1
  33. package/lib/process/index.d.ts +4 -4
  34. package/lib/process/process.d.ts +1 -1
  35. package/lib/progress/index.d.ts +4 -4
  36. package/lib/progress/progress.d.ts +1 -1
  37. package/lib/sideslider/index.d.ts +4 -4
  38. package/lib/sideslider/sideslider.d.ts +1 -1
  39. package/lib/slider/index.d.ts +4 -4
  40. package/lib/slider/slider.d.ts +1 -1
  41. package/lib/switcher/index.d.ts +4 -4
  42. package/lib/switcher/switcher.d.ts +1 -1
  43. package/lib/tab/index.d.ts +4 -4
  44. package/lib/tab/tab.d.ts +1 -1
  45. package/lib/tag/index.d.ts +4 -4
  46. package/lib/tag/tag.d.ts +1 -1
  47. package/lib/tag-input/index.js +1 -1
  48. package/lib/timeline/index.d.ts +4 -4
  49. package/lib/timeline/timeline.d.ts +1 -1
  50. package/lib/upload/upload.d.ts +1 -1
  51. package/lib/volar.components.d.ts +28 -0
  52. package/package.json +1 -1
  53. package/lib/icon/folder.js +0 -1
package/dist/index.esm.js CHANGED
@@ -9933,6 +9933,7 @@ const propsMixin$1 = {
9933
9933
  };
9934
9934
  var Component$t = defineComponent({
9935
9935
  name: "Modal",
9936
+ inheritAttrs: false,
9936
9937
  props: __spreadValues({}, propsMixin$1),
9937
9938
  emits: ["quick-close", "quickClose", "hidden", "shown", "close"],
9938
9939
  data() {
@@ -10881,11 +10882,11 @@ const tooltips = {
10881
10882
  } else {
10882
10883
  opts.content = binding.value;
10883
10884
  }
10884
- const { disabled, arrow: arrow2, theme } = opts;
10885
+ const { disabled, arrow: arrow2, theme, extCls } = opts;
10885
10886
  if (disabled) {
10886
10887
  return;
10887
10888
  }
10888
- const popper2 = renderContent(opts.content, arrow2, theme === "light");
10889
+ const popper2 = renderContent(opts.content, arrow2, theme === "light", extCls);
10889
10890
  createPopperInstance(el, popper2, opts);
10890
10891
  }
10891
10892
  };
@@ -10899,6 +10900,7 @@ function initOptions() {
10899
10900
  showOnInit: false,
10900
10901
  placement: "top",
10901
10902
  distance: 8,
10903
+ extCls: "",
10902
10904
  onShow: () => {
10903
10905
  },
10904
10906
  onHide: () => {
@@ -10906,10 +10908,10 @@ function initOptions() {
10906
10908
  };
10907
10909
  return defaultOpts;
10908
10910
  }
10909
- function renderContent(value, hasArrow, isLight) {
10911
+ function renderContent(value, hasArrow, isLight, extCls) {
10910
10912
  const zIndex = bkZIndexManager.getPopperIndex();
10911
10913
  const content = document.createElement("div");
10912
- content.className = `bk-popper ${isLight ? "light" : "dark"}`;
10914
+ content.className = `bk-popper ${isLight ? "light" : "dark"} ${extCls}`;
10913
10915
  content.innerText = value;
10914
10916
  content.style.zIndex = String(zIndex);
10915
10917
  if (hasArrow) {
@@ -17380,8 +17382,11 @@ function useFlatList(props) {
17380
17382
  displayKey,
17381
17383
  list
17382
17384
  } = toRefs(props);
17383
- const flatList = reactive([]);
17385
+ const state = reactive({
17386
+ flatList: []
17387
+ });
17384
17388
  watch([useGroup, saveKey, displayKey, list], () => {
17389
+ state.flatList = [];
17385
17390
  let formatList = list.value;
17386
17391
  if (useGroup.value) {
17387
17392
  formatList = list.value.reduce((formatList2, item) => {
@@ -17397,9 +17402,9 @@ function useFlatList(props) {
17397
17402
  return formatList2.concat(children);
17398
17403
  }, []);
17399
17404
  }
17400
- flatList.splice(0, flatList.length, ...formatList);
17405
+ state.flatList = [...formatList];
17401
17406
  }, { immediate: true, deep: true });
17402
- return flatList;
17407
+ return state.flatList;
17403
17408
  }
17404
17409
  const getCharLength = (str) => {
17405
17410
  const len = str.length;
@@ -17832,7 +17837,7 @@ var Component$a = defineComponent({
17832
17837
  popoverProps.isShow = false;
17833
17838
  emit("blur", inputValue, tagList.value);
17834
17839
  (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
17835
- }, 50);
17840
+ }, 200);
17836
17841
  };
17837
17842
  const handleTagSelected = (item, type, e) => {
17838
17843
  e == null ? void 0 : e.stopPropagation();
@@ -25126,6 +25131,12 @@ var FormItem = defineComponent({
25126
25131
  });
25127
25132
  const form2 = useForm();
25128
25133
  const isForm = Boolean(form2);
25134
+ const isFormTypeVertical = computed(() => {
25135
+ if (!isForm) {
25136
+ return false;
25137
+ }
25138
+ return form2.props.formType === "vertical";
25139
+ });
25129
25140
  const labelStyles = computed(() => {
25130
25141
  const styles = {
25131
25142
  width: "",
@@ -25210,12 +25221,13 @@ var FormItem = defineComponent({
25210
25221
  });
25211
25222
  return __spreadProps(__spreadValues({}, toRefs(state)), {
25212
25223
  labelStyles,
25224
+ isFormTypeVertical,
25213
25225
  validate,
25214
25226
  clearValidate
25215
25227
  });
25216
25228
  },
25217
25229
  render() {
25218
- var _a, _b;
25230
+ var _a, _b, _c, _d;
25219
25231
  const itemClassees = classes({
25220
25232
  "bk-form-item": true,
25221
25233
  "is-error": this.isError,
@@ -25252,9 +25264,9 @@ var FormItem = defineComponent({
25252
25264
  }, [createVNode("div", {
25253
25265
  "class": "bk-form-label",
25254
25266
  "style": this.labelStyles
25255
- }, [renderLabel()]), createVNode("div", {
25267
+ }, [renderLabel(), this.isFormTypeVertical && ((_b = (_a = this.$slots).labelAppend) == null ? void 0 : _b.call(_a))]), createVNode("div", {
25256
25268
  "class": "bk-form-content"
25257
- }, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a), renderError()])]);
25269
+ }, [(_d = (_c = this.$slots).default) == null ? void 0 : _d.call(_c), renderError()])]);
25258
25270
  }
25259
25271
  });
25260
25272
  const BkForm = withInstallProps(Form, { FormItem, ComposeFormItem });