inl-ui 0.1.81 → 0.1.83

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.
@@ -532,25 +532,16 @@ const SideMenu$1 = vue.defineComponent({
532
532
  }
533
533
  });
534
534
 
535
- function useActiveApp() {
536
- const route = vueRouter.useRoute();
537
- const activeAppName = vue.computed(() => {
538
- console.log(4444444444, route);
539
- return route.path.split("/")[1];
540
- });
541
- return activeAppName;
542
- }
543
-
544
535
  const loadedApp = /* @__PURE__ */new Map();
545
536
  function useMicroApp(appList) {
546
537
  const route = vueRouter.useRoute();
547
538
  const loadAppList = vue.ref(Array.from(loadedApp.values()));
548
539
  const appContainerList = vue.ref([]);
549
540
  const handleRouteChange = core.useThrottleFn(async () => {
550
- const activeAppName = useActiveApp();
551
- const microAppName = activeAppName.value;
541
+ const route2 = vueRouter.useRoute();
542
+ const microAppName = route2.path.split("/")[1];
552
543
  let microAppDefine = appList.find(item => item.name === microAppName);
553
- console.log(555555555555555, activeAppName.value);
544
+ console.log(555555555555555, microAppName);
554
545
  const domId = `microApp_${microAppName}`;
555
546
  if (!appContainerList.value.some(item => item.id === domId)) {
556
547
  appContainerList.value.push({
@@ -589,6 +580,16 @@ function useMicroApp(appList) {
589
580
  return [loadAppList, appContainerList];
590
581
  }
591
582
 
583
+ function useActiveApp() {
584
+ const route = vueRouter.useRoute();
585
+ const activeAppName = vue.computed(() => {
586
+ console.log(4444444444, route);
587
+ return route.path.split("/")[1];
588
+ });
589
+ console.log(45454545454, activeAppName);
590
+ return activeAppName;
591
+ }
592
+
592
593
  function onAddExtraTabs(handler) {
593
594
  const route = vueRouter.useRoute();
594
595
  const qiankunState = vue.inject("qiankunState");
@@ -1,4 +1,4 @@
1
- import { defineComponent, createVNode, ref, watch, resolveComponent, isVNode, computed, onBeforeUnmount, inject, onActivated, onDeactivated, nextTick, watchEffect, Fragment, withDirectives, vShow, toRaw, reactive, provide, createTextVNode, onMounted, KeepAlive, shallowRef, onBeforeMount, mergeProps, onBeforeUpdate, Teleport } from 'vue';
1
+ import { defineComponent, createVNode, ref, watch, resolveComponent, isVNode, onBeforeUnmount, computed, inject, onActivated, onDeactivated, nextTick, watchEffect, Fragment, withDirectives, vShow, toRaw, reactive, provide, createTextVNode, onMounted, KeepAlive, shallowRef, onBeforeMount, mergeProps, onBeforeUpdate, Teleport } from 'vue';
2
2
  import { createFromIconfontCN, SearchOutlined, DownOutlined, PoweroffOutlined, MenuUnfoldOutlined, MenuFoldOutlined, SkinFilled, FullscreenOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined, FileExcelTwoTone, InboxOutlined, MessageOutlined } from '@ant-design/icons-vue';
3
3
  import { useRoute, useRouter } from 'vue-router';
4
4
  import { useMounted, resolveRef, useThrottleFn, useLocalStorage, useFullscreen, useMouseInElement, useVModel, useMagicKeys, whenever, watchArray, useEventListener, useSessionStorage, useElementBounding, useToggle, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
@@ -504,25 +504,16 @@ const SideMenu$1 = defineComponent({
504
504
  }
505
505
  });
506
506
 
507
- function useActiveApp() {
508
- const route = useRoute();
509
- const activeAppName = computed(() => {
510
- console.log(4444444444, route);
511
- return route.path.split("/")[1];
512
- });
513
- return activeAppName;
514
- }
515
-
516
507
  const loadedApp = /* @__PURE__ */new Map();
517
508
  function useMicroApp(appList) {
518
509
  const route = useRoute();
519
510
  const loadAppList = ref(Array.from(loadedApp.values()));
520
511
  const appContainerList = ref([]);
521
512
  const handleRouteChange = useThrottleFn(async () => {
522
- const activeAppName = useActiveApp();
523
- const microAppName = activeAppName.value;
513
+ const route2 = useRoute();
514
+ const microAppName = route2.path.split("/")[1];
524
515
  let microAppDefine = appList.find(item => item.name === microAppName);
525
- console.log(555555555555555, activeAppName.value);
516
+ console.log(555555555555555, microAppName);
526
517
  const domId = `microApp_${microAppName}`;
527
518
  if (!appContainerList.value.some(item => item.id === domId)) {
528
519
  appContainerList.value.push({
@@ -561,6 +552,16 @@ function useMicroApp(appList) {
561
552
  return [loadAppList, appContainerList];
562
553
  }
563
554
 
555
+ function useActiveApp() {
556
+ const route = useRoute();
557
+ const activeAppName = computed(() => {
558
+ console.log(4444444444, route);
559
+ return route.path.split("/")[1];
560
+ });
561
+ console.log(45454545454, activeAppName);
562
+ return activeAppName;
563
+ }
564
+
564
565
  function onAddExtraTabs(handler) {
565
566
  const route = useRoute();
566
567
  const qiankunState = inject("qiankunState");
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
43
43
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
44
44
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
45
45
 
46
- var version = "0.1.80";
46
+ var version = "0.1.82";
47
47
 
48
48
  const setTheme = theme => {
49
49
  if (theme === "dark") {
@@ -7642,25 +7642,16 @@ const SideMenu$1 = vue.defineComponent({
7642
7642
  }
7643
7643
  });
7644
7644
 
7645
- function useActiveApp() {
7646
- const route = vueRouter.useRoute();
7647
- const activeAppName = vue.computed(() => {
7648
- console.log(4444444444, route);
7649
- return route.path.split("/")[1];
7650
- });
7651
- return activeAppName;
7652
- }
7653
-
7654
7645
  const loadedApp = /* @__PURE__ */new Map();
7655
7646
  function useMicroApp(appList) {
7656
7647
  const route = vueRouter.useRoute();
7657
7648
  const loadAppList = vue.ref(Array.from(loadedApp.values()));
7658
7649
  const appContainerList = vue.ref([]);
7659
7650
  const handleRouteChange = core.useThrottleFn(async () => {
7660
- const activeAppName = useActiveApp();
7661
- const microAppName = activeAppName.value;
7651
+ const route2 = vueRouter.useRoute();
7652
+ const microAppName = route2.path.split("/")[1];
7662
7653
  let microAppDefine = appList.find(item => item.name === microAppName);
7663
- console.log(555555555555555, activeAppName.value);
7654
+ console.log(555555555555555, microAppName);
7664
7655
  const domId = `microApp_${microAppName}`;
7665
7656
  if (!appContainerList.value.some(item => item.id === domId)) {
7666
7657
  appContainerList.value.push({
@@ -7699,6 +7690,16 @@ function useMicroApp(appList) {
7699
7690
  return [loadAppList, appContainerList];
7700
7691
  }
7701
7692
 
7693
+ function useActiveApp() {
7694
+ const route = vueRouter.useRoute();
7695
+ const activeAppName = vue.computed(() => {
7696
+ console.log(4444444444, route);
7697
+ return route.path.split("/")[1];
7698
+ });
7699
+ console.log(45454545454, activeAppName);
7700
+ return activeAppName;
7701
+ }
7702
+
7702
7703
  function onAddExtraTabs(handler) {
7703
7704
  const route = vueRouter.useRoute();
7704
7705
  const qiankunState = vue.inject("qiankunState");
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.80";
14
+ var version = "0.1.82";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
13
13
  import { marked } from 'marked';
14
14
  import '@sszj-temp/mobile/style.css';
15
15
 
16
- var version = "0.1.80";
16
+ var version = "0.1.82";
17
17
 
18
18
  const setTheme = theme => {
19
19
  if (theme === "dark") {
@@ -7612,25 +7612,16 @@ const SideMenu$1 = defineComponent({
7612
7612
  }
7613
7613
  });
7614
7614
 
7615
- function useActiveApp() {
7616
- const route = useRoute();
7617
- const activeAppName = computed(() => {
7618
- console.log(4444444444, route);
7619
- return route.path.split("/")[1];
7620
- });
7621
- return activeAppName;
7622
- }
7623
-
7624
7615
  const loadedApp = /* @__PURE__ */new Map();
7625
7616
  function useMicroApp(appList) {
7626
7617
  const route = useRoute();
7627
7618
  const loadAppList = ref(Array.from(loadedApp.values()));
7628
7619
  const appContainerList = ref([]);
7629
7620
  const handleRouteChange = useThrottleFn(async () => {
7630
- const activeAppName = useActiveApp();
7631
- const microAppName = activeAppName.value;
7621
+ const route2 = useRoute();
7622
+ const microAppName = route2.path.split("/")[1];
7632
7623
  let microAppDefine = appList.find(item => item.name === microAppName);
7633
- console.log(555555555555555, activeAppName.value);
7624
+ console.log(555555555555555, microAppName);
7634
7625
  const domId = `microApp_${microAppName}`;
7635
7626
  if (!appContainerList.value.some(item => item.id === domId)) {
7636
7627
  appContainerList.value.push({
@@ -7669,6 +7660,16 @@ function useMicroApp(appList) {
7669
7660
  return [loadAppList, appContainerList];
7670
7661
  }
7671
7662
 
7663
+ function useActiveApp() {
7664
+ const route = useRoute();
7665
+ const activeAppName = computed(() => {
7666
+ console.log(4444444444, route);
7667
+ return route.path.split("/")[1];
7668
+ });
7669
+ console.log(45454545454, activeAppName);
7670
+ return activeAppName;
7671
+ }
7672
+
7672
7673
  function onAddExtraTabs(handler) {
7673
7674
  const route = useRoute();
7674
7675
  const qiankunState = inject("qiankunState");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.81",
3
+ "version": "0.1.83",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",