@ganwei-web/gw-base-components-plus 1.0.34 → 1.0.36

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.
@@ -913,13 +913,37 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
913
913
  const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
914
914
  __name: "index",
915
915
  setup(__props, { expose: __expose }) {
916
+ const attrs = vue.useAttrs();
916
917
  const proxyElement = vue.ref();
917
918
  const expose = useExpose(proxyElement);
918
919
  __expose(expose);
920
+ let dialogCount = window.__elDialogOverlayCount__ || 0;
921
+ function triggerOverlay(visible) {
922
+ try {
923
+ if (visible) {
924
+ dialogCount++;
925
+ window.__elDialogOverlayCount__ = dialogCount;
926
+ } else {
927
+ dialogCount = Math.max(0, dialogCount - 1);
928
+ window.__elDialogOverlayCount__ = dialogCount;
929
+ }
930
+ const shouldShow = dialogCount > 0;
931
+ window.parent.postMessage({ overlayMask: shouldShow }, "*");
932
+ } catch (e) {
933
+ console.log(e);
934
+ }
935
+ }
936
+ vue.onUnmounted(() => {
937
+ if (attrs.modelValue) {
938
+ triggerOverlay(false);
939
+ }
940
+ });
919
941
  return (_ctx, _cache) => {
920
942
  return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), vue.mergeProps(_ctx.$attrs, {
921
943
  ref_key: "proxyElement",
922
- ref: proxyElement
944
+ ref: proxyElement,
945
+ onOpen: _cache[0] || (_cache[0] = ($event) => triggerOverlay(true)),
946
+ onClose: _cache[1] || (_cache[1] = ($event) => triggerOverlay(false))
923
947
  }), vue.createSlots({ _: 2 }, [
924
948
  vue.renderList(_ctx.$slots, (value, key) => {
925
949
  return {
@@ -1356,6 +1380,16 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
1356
1380
  // 基础组件
1357
1381
  ElButton: _sfc_main$G,
1358
1382
  ElTag: _sfc_main$F,
1383
+ ElIcon: elementPlus.ElIcon,
1384
+ ElAvatar: elementPlus.ElAvatar,
1385
+ ElRow: elementPlus.ElRow,
1386
+ // 布局组件
1387
+ ElContainer: elementPlus.ElContainer,
1388
+ ElHeader: elementPlus.ElHeader,
1389
+ ElAside: elementPlus.ElAside,
1390
+ ElMain: elementPlus.ElMain,
1391
+ ElConfigProvider: elementPlus.ElConfigProvider,
1392
+ ElScrollbar: elementPlus.ElScrollbar,
1359
1393
  // 表单组件
1360
1394
  ElInput: _sfc_main$E,
1361
1395
  ElForm: _sfc_main$D,
@@ -1397,12 +1431,16 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
1397
1431
  ElDropdown: _sfc_main$9,
1398
1432
  ElDropdownMenu: _sfc_main$4,
1399
1433
  ElDropdownItem: _sfc_main$3,
1434
+ ElBreadcrumb: elementPlus.ElBreadcrumb,
1435
+ ElBreadcrumbItem: elementPlus.ElBreadcrumbItem,
1400
1436
  ElTabs: _sfc_main$8,
1401
1437
  ElTabPane: _sfc_main$7,
1402
1438
  // 其他
1403
1439
  ElCollapse: _sfc_main$2,
1404
1440
  ElCollapseItem: _sfc_main$1,
1405
- ElPoper: _sfc_main
1441
+ ElPoper: _sfc_main,
1442
+ ElTour: elementPlus.ElTour,
1443
+ ElTourStep: elementPlus.ElTourStep
1406
1444
  };
1407
1445
  function adapterInstall(app) {
1408
1446
  for (const [key, component] of Object.entries(Adapter)) {