bmp-layout 0.0.18 → 0.0.20

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/bmp-layout.es.js CHANGED
@@ -2,8 +2,8 @@ import { openBlock, createBlock, unref, normalizeClass, nextTick, ref, computed,
2
2
  import { createPinia, defineStore } from "pinia";
3
3
  import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
4
4
  import { cloneDeep, omit } from "lodash-es";
5
- import { ElBacktop, ElIcon, ElMenuItem, ElSubMenu, ElScrollbar, ElMenu, ElInput, ElBadge, ElDropdown, ElDropdownMenu, ElDropdownItem, ElAvatar, ElMessageBox, ElBreadcrumb, ElBreadcrumbItem, ElDrawer, ElButton, ElMessage, ElConfigProvider, ElCard, ElPagination, ElDialog, ElAlert, ElAffix, ElImageViewer, ElNotification, ElUpload, ElLink, ElAutocomplete, ElButtonGroup, ElCarousel, ElCarouselItem, ElCollapse, ElCollapseItem, ElCollapseTransition, ElDivider, ElEmpty, ElOverlay, ElPageHeader, ElProgress, ElResult, ElSkeleton, ElSkeletonItem, ElSpace, ElTag, ElText, ElCascader, ElCascaderPanel, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElColorPicker, ElDatePicker, ElForm, ElFormItem, ElInputNumber, ElInputTag, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElSelect, ElOption, ElOptionGroup, ElSelectV2, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElMention, ElCalendar, ElCheckTag, ElCountdown, ElDescriptions, ElDescriptionsItem, ElImage, ElStatistic, ElTable, ElTableColumn, ElTimeline, ElTimelineItem, ElTree, ElTreeV2, ElMenuItemGroup, ElTabs, ElTabPane, ElPopover, ElPopconfirm, ElTooltip, ElContainer, ElAside, ElFooter, ElHeader, ElMain, ElRow, ElCol, ElSplitter, ElSplitterPanel, ElSegmented, ElTour, ElTourStep, ElWatermark, ElPopper } from "element-plus";
6
- import { ElAffix as ElAffix2, ElAside as ElAside2, ElAutocomplete as ElAutocomplete2, ElAvatar as ElAvatar2, ElBreadcrumb as ElBreadcrumb2, ElBreadcrumbItem as ElBreadcrumbItem2, ElButton as ElButton2, ElButtonGroup as ElButtonGroup2, ElCalendar as ElCalendar2, ElCard as ElCard2, ElCarousel as ElCarousel2, ElCarouselItem as ElCarouselItem2, ElCascader as ElCascader2, ElCascaderPanel as ElCascaderPanel2, ElCheckTag as ElCheckTag2, ElCheckbox as ElCheckbox2, ElCheckboxButton as ElCheckboxButton2, ElCheckboxGroup as ElCheckboxGroup2, ElCol as ElCol2, ElCollapse as ElCollapse2, ElCollapseItem as ElCollapseItem2, ElCollapseTransition as ElCollapseTransition2, ElColorPicker as ElColorPicker2, ElConfigProvider as ElConfigProvider2, ElContainer as ElContainer2, ElCountdown as ElCountdown2, ElDatePicker as ElDatePicker2, ElDescriptions as ElDescriptions2, ElDescriptionsItem as ElDescriptionsItem2, ElDivider as ElDivider2, ElDrawer as ElDrawer2, ElDropdown as ElDropdown2, ElDropdownItem as ElDropdownItem2, ElDropdownMenu as ElDropdownMenu2, ElEmpty as ElEmpty2, ElFooter as ElFooter2, ElForm as ElForm2, ElFormItem as ElFormItem2, ElHeader as ElHeader2, ElImage as ElImage2, ElImageViewer as ElImageViewer2, ElInfiniteScroll, ElInput as ElInput2, ElInputNumber as ElInputNumber2, ElInputTag as ElInputTag2, ElLink as ElLink2, ElLoading, ElMain as ElMain2, ElMention as ElMention2, ElMenu as ElMenu2, ElMenuItem as ElMenuItem2, ElMenuItemGroup as ElMenuItemGroup2, ElMessage as ElMessage2, ElMessageBox as ElMessageBox2, ElNotification as ElNotification2, ElOption as ElOption2, ElOptionGroup as ElOptionGroup2, ElOverlay as ElOverlay2, ElPageHeader as ElPageHeader2, ElPopconfirm as ElPopconfirm2, ElPopover as ElPopover2, ElPopper as ElPopper2, ElProgress as ElProgress2, ElRadio as ElRadio2, ElRadioButton as ElRadioButton2, ElRadioGroup as ElRadioGroup2, ElRate as ElRate2, ElResult as ElResult2, ElRow as ElRow2, ElScrollbar as ElScrollbar2, ElSegmented as ElSegmented2, ElSelect as ElSelect2, ElSelectV2 as ElSelectV22, ElSkeleton as ElSkeleton2, ElSkeletonItem as ElSkeletonItem2, ElSlider as ElSlider2, ElSpace as ElSpace2, ElSplitter as ElSplitter2, ElSplitterPanel as ElSplitterPanel2, ElStatistic as ElStatistic2, ElSubMenu as ElSubMenu2, ElSwitch as ElSwitch2, ElTabPane as ElTabPane2, ElTable as ElTable2, ElTableColumn as ElTableColumn2, ElTabs as ElTabs2, ElTag as ElTag2, ElText as ElText2, ElTimePicker as ElTimePicker2, ElTimeSelect as ElTimeSelect2, ElTimeline as ElTimeline2, ElTimelineItem as ElTimelineItem2, ElTooltip as ElTooltip2, ElTour as ElTour2, ElTourStep as ElTourStep2, ElTransfer as ElTransfer2, ElTree as ElTree2, ElTreeSelect as ElTreeSelect2, ElTreeV2 as ElTreeV22, ElUpload as ElUpload2, ElWatermark as ElWatermark2 } from "element-plus";
5
+ import { ElBacktop, ElIcon, ElMenuItem, ElSubMenu, ElScrollbar, ElMenu, ElInput, ElBadge, ElDropdown, ElDropdownMenu, ElDropdownItem, ElAvatar, ElMessageBox, ElBreadcrumb, ElBreadcrumbItem, ElDrawer, ElButton, ElMessage, ElConfigProvider, ElCard, ElPagination, ElDialog, ElAlert, ElAffix, ElImageViewer, ElNotification, ElUpload, ElLink, ElAutocomplete, ElButtonGroup, ElCarousel, ElCarouselItem, ElCollapse, ElCollapseItem, ElCollapseTransition, ElDivider, ElEmpty, ElOverlay, ElPageHeader, ElProgress, ElResult, ElSkeleton, ElSkeletonItem, ElSpace, ElTag, ElText, ElCascader, ElCascaderPanel, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElColorPicker, ElDatePicker, ElForm, ElFormItem, ElInputNumber, ElInputTag, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElSelect, ElOption, ElOptionGroup, ElSelectV2, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElMention, ElCalendar, ElCheckTag, ElCountdown, ElDescriptions, ElDescriptionsItem, ElImage, ElStatistic, ElTable, ElTableColumn, ElTimeline, ElTimelineItem, ElTree, ElTreeV2, ElMenuItemGroup, ElTabs, ElTabPane, ElPopover, ElPopconfirm, ElTooltip, ElContainer, ElAside, ElFooter, ElHeader, ElMain, ElRow, ElCol, ElSplitter, ElSplitterPanel, ElSegmented, ElTour, ElTourStep, ElWatermark, ElPopper, ElAnchor, ElSteps } from "element-plus";
6
+ import { ElAffix as ElAffix2, ElAlert as ElAlert2, ElAnchor as ElAnchor2, ElAside as ElAside2, ElAutocomplete as ElAutocomplete2, ElAvatar as ElAvatar2, ElBacktop as ElBacktop2, ElBadge as ElBadge2, ElBreadcrumb as ElBreadcrumb2, ElBreadcrumbItem as ElBreadcrumbItem2, ElButton as ElButton2, ElButtonGroup as ElButtonGroup2, ElCalendar as ElCalendar2, ElCard as ElCard2, ElCarousel as ElCarousel2, ElCarouselItem as ElCarouselItem2, ElCascader as ElCascader2, ElCascaderPanel as ElCascaderPanel2, ElCheckTag as ElCheckTag2, ElCheckbox as ElCheckbox2, ElCheckboxButton as ElCheckboxButton2, ElCheckboxGroup as ElCheckboxGroup2, ElCol as ElCol2, ElCollapse as ElCollapse2, ElCollapseItem as ElCollapseItem2, ElCollapseTransition as ElCollapseTransition2, ElColorPicker as ElColorPicker2, ElConfigProvider as ElConfigProvider2, ElContainer as ElContainer2, ElCountdown as ElCountdown2, ElDatePicker as ElDatePicker2, ElDescriptions as ElDescriptions2, ElDescriptionsItem as ElDescriptionsItem2, ElDialog as ElDialog2, ElDivider as ElDivider2, ElDrawer as ElDrawer2, ElDropdown as ElDropdown2, ElDropdownItem as ElDropdownItem2, ElDropdownMenu as ElDropdownMenu2, ElEmpty as ElEmpty2, ElFooter as ElFooter2, ElForm as ElForm2, ElFormItem as ElFormItem2, ElHeader as ElHeader2, ElIcon as ElIcon2, ElImage as ElImage2, ElImageViewer as ElImageViewer2, ElInfiniteScroll, ElInput as ElInput2, ElInputNumber as ElInputNumber2, ElInputTag as ElInputTag2, ElLink as ElLink2, ElLoading, ElMain as ElMain2, ElMention as ElMention2, ElMenu as ElMenu2, ElMenuItem as ElMenuItem2, ElMenuItemGroup as ElMenuItemGroup2, ElMessage as ElMessage2, ElMessageBox as ElMessageBox2, ElNotification as ElNotification2, ElOption as ElOption2, ElOptionGroup as ElOptionGroup2, ElOverlay as ElOverlay2, ElPageHeader as ElPageHeader2, ElPagination as ElPagination2, ElPopconfirm as ElPopconfirm2, ElPopover as ElPopover2, ElPopper as ElPopper2, ElProgress as ElProgress2, ElRadio as ElRadio2, ElRadioButton as ElRadioButton2, ElRadioGroup as ElRadioGroup2, ElRate as ElRate2, ElResult as ElResult2, ElRow as ElRow2, ElScrollbar as ElScrollbar2, ElSegmented as ElSegmented2, ElSelect as ElSelect2, ElSelectV2 as ElSelectV22, ElSkeleton as ElSkeleton2, ElSkeletonItem as ElSkeletonItem2, ElSlider as ElSlider2, ElSpace as ElSpace2, ElSplitter as ElSplitter2, ElSplitterPanel as ElSplitterPanel2, ElStatistic as ElStatistic2, ElSteps as ElSteps2, ElSubMenu as ElSubMenu2, ElSwitch as ElSwitch2, ElTabPane as ElTabPane2, ElTable as ElTable2, ElTableColumn as ElTableColumn2, ElTabs as ElTabs2, ElTag as ElTag2, ElText as ElText2, ElTimePicker as ElTimePicker2, ElTimeSelect as ElTimeSelect2, ElTimeline as ElTimeline2, ElTimelineItem as ElTimelineItem2, ElTooltip as ElTooltip2, ElTour as ElTour2, ElTourStep as ElTourStep2, ElTransfer as ElTransfer2, ElTree as ElTree2, ElTreeSelect as ElTreeSelect2, ElTreeV2 as ElTreeV22, ElUpload as ElUpload2, ElWatermark as ElWatermark2 } from "element-plus";
7
7
  import { createRouter, createWebHashHistory, useRoute, useRouter } from "vue-router";
8
8
  import "vue-i18n";
9
9
  import { useClipboard, useWindowSize } from "@vueuse/core";
@@ -3917,8 +3917,17 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3917
3917
  const group = groupedMenus.value[activeCategory.value];
3918
3918
  return (group == null ? void 0 : group.children) || [];
3919
3919
  });
3920
+ const joinPath = (...paths) => {
3921
+ return paths.filter(Boolean).reduce((result, path) => {
3922
+ if (!result)
3923
+ return path;
3924
+ const normalizedBase = result.endsWith("/") ? result.slice(0, -1) : result;
3925
+ const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
3926
+ return `${normalizedBase}/${normalizedPath}`;
3927
+ }, "");
3928
+ };
3920
3929
  const getAccessiblePath = (item, parentPath = "") => {
3921
- const fullPath = parentPath ? `${parentPath}/${item.path}` : item.path;
3930
+ const fullPath = joinPath(parentPath, item.path);
3922
3931
  if (item.children && item.children.length > 0) {
3923
3932
  const visibleChildren = item.children.filter((child) => {
3924
3933
  var _a2;
@@ -4068,7 +4077,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4068
4077
  class: normalizeClass([unref(prefixCls2) + "__column-item"]),
4069
4078
  onClick: ($event) => {
4070
4079
  var _a4;
4071
- return handleSelect(thirdMenu, `${(_a4 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a4.path}/${secondMenu.path}`);
4080
+ return handleSelect(thirdMenu, joinPath((_a4 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a4.path, secondMenu.path));
4072
4081
  }
4073
4082
  }, [
4074
4083
  createElementVNode("span", null, toDisplayString(((_a3 = thirdMenu.meta) == null ? void 0 : _a3.title) || thirdMenu.name), 1)
@@ -4129,7 +4138,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4129
4138
  };
4130
4139
  }
4131
4140
  });
4132
- const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-b7114eec"]]);
4141
+ const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-0d225a18"]]);
4133
4142
  const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4134
4143
  __name: "Logo",
4135
4144
  setup(__props) {
@@ -11402,17 +11411,29 @@ const install = (app) => {
11402
11411
  app.component("BmpUpload", ElUpload);
11403
11412
  app.component("BmpWatermark", ElWatermark);
11404
11413
  app.component("BmpPopper", ElPopper);
11414
+ app.component("BmpIcon2", ElIcon);
11415
+ app.component("BmpBadge2", ElBadge);
11416
+ app.component("BmpPagination2", ElPagination);
11417
+ app.component("BmpDialog2", ElDialog);
11418
+ app.component("BmpAlert2", ElAlert);
11419
+ app.component("BmpAnchor2", ElAnchor);
11420
+ app.component("BmpSteps2", ElSteps);
11421
+ app.component("BmpBacktop2", ElBacktop);
11405
11422
  };
11406
11423
  BmpLayout.install = install;
11407
11424
  export {
11408
11425
  ElAffix2 as BmpAffix,
11409
11426
  _sfc_main$7 as BmpAlert,
11427
+ ElAlert2 as BmpAlert2,
11410
11428
  _sfc_main$5 as BmpAnchor,
11429
+ ElAnchor2 as BmpAnchor2,
11411
11430
  ElAside2 as BmpAside,
11412
11431
  ElAutocomplete2 as BmpAutocomplete,
11413
11432
  ElAvatar2 as BmpAvatar,
11414
11433
  _sfc_main$w as BmpBacktop,
11434
+ ElBacktop2 as BmpBacktop2,
11415
11435
  _sfc_main$a as BmpBadge,
11436
+ ElBadge2 as BmpBadge2,
11416
11437
  ElBreadcrumb2 as BmpBreadcrumb,
11417
11438
  ElBreadcrumbItem2 as BmpBreadcrumbItem,
11418
11439
  ElButton2 as BmpButton,
@@ -11441,6 +11462,7 @@ export {
11441
11462
  ElDescriptions2 as BmpDescriptions,
11442
11463
  ElDescriptionsItem2 as BmpDescriptionsItem,
11443
11464
  _sfc_main$8 as BmpDialog,
11465
+ ElDialog2 as BmpDialog2,
11444
11466
  ElDivider2 as BmpDivider,
11445
11467
  ElDrawer2 as BmpDrawer,
11446
11468
  ElDropdown2 as BmpDropdown,
@@ -11452,6 +11474,7 @@ export {
11452
11474
  ElFormItem2 as BmpFormItem,
11453
11475
  ElHeader2 as BmpHeader,
11454
11476
  _sfc_main$v as BmpIcon,
11477
+ ElIcon2 as BmpIcon2,
11455
11478
  ElImage2 as BmpImage,
11456
11479
  ElImageViewer2 as BmpImageViewer,
11457
11480
  ElInfiniteScroll as BmpInfiniteScroll,
@@ -11476,6 +11499,7 @@ export {
11476
11499
  ElPageHeader2 as BmpPageHeader,
11477
11500
  PageNavBar as BmpPageNavBar,
11478
11501
  _sfc_main$9 as BmpPagination,
11502
+ ElPagination2 as BmpPagination2,
11479
11503
  ElPopconfirm2 as BmpPopconfirm,
11480
11504
  ElPopover2 as BmpPopover,
11481
11505
  ElPopper2 as BmpPopper,
@@ -11500,6 +11524,7 @@ export {
11500
11524
  ElSplitterPanel2 as BmpSplitterPanel,
11501
11525
  ElStatistic2 as BmpStatistic,
11502
11526
  Steps as BmpSteps,
11527
+ ElSteps2 as BmpSteps2,
11503
11528
  ElSubMenu2 as BmpSubMenu,
11504
11529
  ElSwitch2 as BmpSwitch,
11505
11530
  ElTabPane2 as BmpTabPane,