bkui-vue 0.0.1-beta.432 → 0.0.1-beta.433

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 (82) hide show
  1. package/dist/index.cjs.js +26 -26
  2. package/dist/index.esm.js +15 -7
  3. package/dist/index.umd.js +26 -26
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.variable.css +1 -1
  7. package/lib/alert/alert.variable.css +1 -1
  8. package/lib/backtop/backtop.variable.css +1 -1
  9. package/lib/badge/badge.variable.css +1 -1
  10. package/lib/breadcrumb/breadcrumb.variable.css +1 -1
  11. package/lib/button/button.variable.css +1 -1
  12. package/lib/card/card.variable.css +1 -1
  13. package/lib/cascader/cascader-panel.d.ts +1 -0
  14. package/lib/cascader/cascader.css +7 -0
  15. package/lib/cascader/cascader.d.ts +1 -0
  16. package/lib/cascader/cascader.less +7 -0
  17. package/lib/cascader/cascader.variable.css +8 -1
  18. package/lib/cascader/index.d.ts +4 -0
  19. package/lib/cascader/index.js +1 -1
  20. package/lib/checkbox/checkbox.variable.css +1 -1
  21. package/lib/code-diff/code-diff.variable.css +1 -1
  22. package/lib/collapse/collapse.variable.css +1 -1
  23. package/lib/collapse-transition/collapse-transition.variable.css +1 -1
  24. package/lib/color-picker/color-picker.variable.css +1 -1
  25. package/lib/components.d.ts +1 -0
  26. package/lib/config-provider/config-provider.variable.css +1 -1
  27. package/lib/container/container.variable.css +1 -1
  28. package/lib/date-picker/date-picker.variable.css +1 -1
  29. package/lib/dialog/dialog.variable.css +1 -1
  30. package/lib/divider/divider.variable.css +1 -1
  31. package/lib/dropdown/dropdown.variable.css +1 -1
  32. package/lib/exception/exception.variable.css +1 -1
  33. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -1
  34. package/lib/form/form.variable.css +1 -1
  35. package/lib/info-box/info-box.variable.css +1 -1
  36. package/lib/input/input.variable.css +1 -1
  37. package/lib/link/link.variable.css +1 -1
  38. package/lib/loading/loading.variable.css +1 -1
  39. package/lib/menu/menu.variable.css +1 -1
  40. package/lib/menu/submenu.variable.css +1 -1
  41. package/lib/message/message.variable.css +1 -1
  42. package/lib/modal/modal.variable.css +1 -1
  43. package/lib/navigation/navigation.variable.css +1 -1
  44. package/lib/notify/notify.variable.css +1 -1
  45. package/lib/pagination/pagination.variable.css +1 -1
  46. package/lib/pop-confirm/pop-confirm.variable.css +1 -1
  47. package/lib/popover/popover.variable.css +1 -1
  48. package/lib/process/process.variable.css +1 -1
  49. package/lib/progress/progress.variable.css +1 -1
  50. package/lib/radio/index.js +1 -1
  51. package/lib/radio/radio.css +28 -10
  52. package/lib/radio/radio.less +10 -1
  53. package/lib/radio/radio.variable.css +29 -11
  54. package/lib/resize-layout/resize-layout.variable.css +1 -1
  55. package/lib/search-select/search-select.variable.css +1 -1
  56. package/lib/select/index.d.ts +4 -4
  57. package/lib/select/select.d.ts +1 -1
  58. package/lib/select/select.variable.css +1 -1
  59. package/lib/sideslider/sideslider.variable.css +1 -1
  60. package/lib/slider/slider.variable.css +1 -1
  61. package/lib/steps/steps.variable.css +1 -1
  62. package/lib/styles/mixins/popper.variable.css +1 -1
  63. package/lib/styles/mixins/scroll.variable.css +1 -1
  64. package/lib/styles/themes/themes.less +1 -1
  65. package/lib/switcher/switcher.variable.css +1 -1
  66. package/lib/tab/tab.variable.css +1 -1
  67. package/lib/table/index.d.ts +13 -8
  68. package/lib/table/plugins/head-filter.variable.css +1 -1
  69. package/lib/table/plugins/head-sort.variable.css +1 -1
  70. package/lib/table/plugins/settings.variable.css +1 -1
  71. package/lib/table/table.css +4 -4
  72. package/lib/table/table.less +3 -3
  73. package/lib/table/table.variable.css +5 -5
  74. package/lib/tag/tag.variable.css +1 -1
  75. package/lib/tag-input/tag-input.variable.css +1 -1
  76. package/lib/time-picker/time-picker.variable.css +1 -1
  77. package/lib/timeline/timeline.variable.css +1 -1
  78. package/lib/transfer/transfer.variable.css +1 -1
  79. package/lib/tree/tree.variable.css +1 -1
  80. package/lib/upload/upload.variable.css +1 -1
  81. package/lib/virtual-render/virtual-render.variable.css +1 -1
  82. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -14365,7 +14365,7 @@ const radioGroupProps = {
14365
14365
  modelValue: PropTypes.oneOfType([String, Number, Boolean]),
14366
14366
  disabled: PropTypes.bool,
14367
14367
  withValidate: PropTypes.bool.def(true),
14368
- type: PropTypes.oneOf(["tab", "capsule"]).def("tab")
14368
+ type: PropTypes.oneOf(["tab", "capsule", "card"]).def("tab")
14369
14369
  };
14370
14370
  var RadioGroup = defineComponent({
14371
14371
  name: "RadioGroup",
@@ -31751,6 +31751,7 @@ var CascaderPanel = defineComponent({
31751
31751
  setup(props2, {
31752
31752
  emit
31753
31753
  }) {
31754
+ const t2 = useLocale("select");
31754
31755
  const {
31755
31756
  store
31756
31757
  } = props2;
@@ -31848,6 +31849,7 @@ var CascaderPanel = defineComponent({
31848
31849
  };
31849
31850
  return events;
31850
31851
  };
31852
+ const noDataText = t2.value.noData;
31851
31853
  const isNodeInPath = (node) => {
31852
31854
  const currentLevel = activePath.value[node.level - 1] || {};
31853
31855
  return currentLevel.id === node.id;
@@ -31890,7 +31892,8 @@ var CascaderPanel = defineComponent({
31890
31892
  iconRender,
31891
31893
  panelWidth,
31892
31894
  panelHeight,
31893
- searchPanelEvents
31895
+ searchPanelEvents,
31896
+ noDataText
31894
31897
  };
31895
31898
  },
31896
31899
  render() {
@@ -31923,7 +31926,7 @@ var CascaderPanel = defineComponent({
31923
31926
  height: this.panelHeight,
31924
31927
  width: this.panelWidth
31925
31928
  }
31926
- }, [menu2.map((node) => {
31929
+ }, [menu2.length ? menu2.map((node) => {
31927
31930
  var _a, _b;
31928
31931
  return createVNode("li", mergeProps({
31929
31932
  "class": [resolveClassName("cascader-node"), {
@@ -31944,7 +31947,9 @@ var CascaderPanel = defineComponent({
31944
31947
  node,
31945
31948
  data: node.data
31946
31949
  }), !node.isLeaf ? this.iconRender(node) : ""]);
31947
- })]))]);
31950
+ }) : createVNode("div", {
31951
+ "class": resolveClassName("cascader-panel-empty-wrapper")
31952
+ }, [this.noDataText])]))]);
31948
31953
  }
31949
31954
  });
31950
31955
  function isNodeDisabled(node) {
@@ -32130,7 +32135,7 @@ var Component$8 = defineComponent({
32130
32135
  props: {
32131
32136
  modelValue: PropTypes.arrayOf(PropTypes.oneOfType([q(), String, Number])),
32132
32137
  list: PropTypes.array.def([]),
32133
- placeholder: PropTypes.string.def("\u8BF7\u9009\u62E9"),
32138
+ placeholder: PropTypes.string.def(""),
32134
32139
  behavior: PropTypes.string.def("normal"),
32135
32140
  filterable: PropTypes.bool.def(false),
32136
32141
  multiple: PropTypes.bool.def(false),
@@ -32162,6 +32167,7 @@ var Component$8 = defineComponent({
32162
32167
  setup(props2, {
32163
32168
  emit
32164
32169
  }) {
32170
+ const t2 = useLocale("select");
32165
32171
  const {
32166
32172
  separator: separator2,
32167
32173
  multiple
@@ -32192,6 +32198,7 @@ var Component$8 = defineComponent({
32192
32198
  const popover2 = ref(null);
32193
32199
  const bkCascaderRef = ref(null);
32194
32200
  const inputRef = ref(null);
32201
+ const placeholder = computed(() => props2.placeholder ? props2.placeholder : t2.value.pleaseSelect);
32195
32202
  const getShowText = (node) => props2.showCompleteName ? node.pathNames.join(separator2) : node.pathNames[node.pathNames.length - 1];
32196
32203
  const updateSearchKey = () => {
32197
32204
  searchKey.value = selectedText.value;
@@ -32296,6 +32303,7 @@ var Component$8 = defineComponent({
32296
32303
  overflowTagIndex
32297
32304
  } = useTagsOverflow(bkCascaderRef, isEditMode, tagList);
32298
32305
  return {
32306
+ calcuPlaceholder: placeholder,
32299
32307
  bkCascaderRef,
32300
32308
  inputRef,
32301
32309
  overflowTagIndex,
@@ -32396,7 +32404,7 @@ var Component$8 = defineComponent({
32396
32404
  }],
32397
32405
  "type": "text",
32398
32406
  "onInput": this.searchInputHandler,
32399
- "placeholder": this.placeholder,
32407
+ "placeholder": this.calcuPlaceholder,
32400
32408
  "value": this.searchKey,
32401
32409
  "disabled": this.disabled,
32402
32410
  "ref": "inputRef"
@@ -32432,7 +32440,7 @@ var Component$8 = defineComponent({
32432
32440
  "is-simplicity": this.behavior === "simplicity"
32433
32441
  }],
32434
32442
  "tabindex": "0",
32435
- "data-placeholder": this.placeholder,
32443
+ "data-placeholder": this.calcuPlaceholder,
32436
32444
  "onMouseenter": this.setHover,
32437
32445
  "onMouseleave": this.cancelHover,
32438
32446
  "ref": "bkCascaderRef"