inl-ui 0.1.89 → 0.1.91
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/dist/components/index.cjs +28 -26
- package/dist/components/index.js +29 -27
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +29 -27
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -28
- package/dist/tplib/index.cjs +1 -1
- package/dist/tplib/index.js +1 -1
- package/dist/video/index.cjs +1 -1
- package/dist/video/index.js +1 -1
- package/dist/videoMobile/index.cjs +1 -1
- package/dist/videoMobile/index.js +1 -1
- package/package.json +1 -1
|
@@ -543,13 +543,13 @@ function useActiveApp() {
|
|
|
543
543
|
const loadedApp = /* @__PURE__ */new Map();
|
|
544
544
|
function useMicroApp(appList) {
|
|
545
545
|
const route = vueRouter.useRoute();
|
|
546
|
-
useActiveApp();
|
|
546
|
+
const activeAppName = useActiveApp();
|
|
547
547
|
const loadAppList = vue.ref(Array.from(loadedApp.values()));
|
|
548
548
|
const appContainerList = vue.ref([]);
|
|
549
|
-
const handleRouteChange =
|
|
550
|
-
const microAppName =
|
|
549
|
+
const handleRouteChange = core.useThrottleFn(async () => {
|
|
550
|
+
const microAppName = activeAppName.value;
|
|
551
551
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
552
|
-
if (!microAppDefine) return;
|
|
552
|
+
if (!microAppDefine && !microAppName.startsWith("mtip-") && !microAppName.startsWith("innovateDept-")) return;
|
|
553
553
|
const domId = `microApp_${microAppName}`;
|
|
554
554
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
555
555
|
appContainerList.value.push({
|
|
@@ -557,28 +557,30 @@ function useMicroApp(appList) {
|
|
|
557
557
|
id: domId
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
if (
|
|
563
|
-
loadApp.
|
|
560
|
+
setTimeout(async () => {
|
|
561
|
+
const loadApp = loadedApp.get(microAppName);
|
|
562
|
+
if (loadApp) {
|
|
563
|
+
if (!loadApp.mounted) {
|
|
564
|
+
loadApp.app.mount();
|
|
565
|
+
}
|
|
566
|
+
return;
|
|
564
567
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
};
|
|
568
|
+
const app = qiankun.loadMicroApp({
|
|
569
|
+
name: microAppDefine ? microAppDefine.name : microAppName,
|
|
570
|
+
entry: microAppDefine ? microAppDefine.entry : `/${microAppName}/`,
|
|
571
|
+
container: `#${domId}`
|
|
572
|
+
});
|
|
573
|
+
const microApp = {
|
|
574
|
+
name: microAppName,
|
|
575
|
+
domId,
|
|
576
|
+
app,
|
|
577
|
+
mounted: true
|
|
578
|
+
};
|
|
579
|
+
loadAppList.value.push(microApp);
|
|
580
|
+
loadedApp.set(microAppName, microApp);
|
|
581
|
+
await app.mountPromise;
|
|
582
|
+
}, 10);
|
|
583
|
+
}, 100);
|
|
582
584
|
vue.watch(route, handleRouteChange, {
|
|
583
585
|
immediate: true
|
|
584
586
|
});
|
|
@@ -6089,7 +6091,7 @@ class RTCEndpoint extends Event$1 {
|
|
|
6089
6091
|
let defaults2 = {
|
|
6090
6092
|
element: "",
|
|
6091
6093
|
// html video element
|
|
6092
|
-
debug:
|
|
6094
|
+
debug: true,
|
|
6093
6095
|
// if output debug log
|
|
6094
6096
|
zlmsdpUrl: "",
|
|
6095
6097
|
simulcast: false,
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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';
|
|
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
|
-
import { useMounted, resolveRef, useLocalStorage, useFullscreen, useMouseInElement, useVModel, useMagicKeys, whenever, watchArray, useEventListener, useSessionStorage, useElementBounding, useToggle, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
|
|
4
|
+
import { useMounted, resolveRef, useThrottleFn, useLocalStorage, useFullscreen, useMouseInElement, useVModel, useMagicKeys, whenever, watchArray, useEventListener, useSessionStorage, useElementBounding, useToggle, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
|
|
5
5
|
import axios$2 from 'axios';
|
|
6
6
|
import { message, Menu, MenuItem, Input as Input$1, Badge, Avatar as Avatar$1, MenuDivider, Modal, SubMenu, Dropdown, Tooltip, Select, LayoutHeader, LayoutSider, Layout as Layout$1, LayoutContent, Form, Row, Col, FormItem, SelectOption, Switch, InputNumber } from 'ant-design-vue';
|
|
7
7
|
import _, { isPlainObject as isPlainObject$1, omit, differenceBy, cloneDeep, isObject as isObject$2, concat } from 'lodash';
|
|
@@ -515,13 +515,13 @@ function useActiveApp() {
|
|
|
515
515
|
const loadedApp = /* @__PURE__ */new Map();
|
|
516
516
|
function useMicroApp(appList) {
|
|
517
517
|
const route = useRoute();
|
|
518
|
-
useActiveApp();
|
|
518
|
+
const activeAppName = useActiveApp();
|
|
519
519
|
const loadAppList = ref(Array.from(loadedApp.values()));
|
|
520
520
|
const appContainerList = ref([]);
|
|
521
|
-
const handleRouteChange =
|
|
522
|
-
const microAppName =
|
|
521
|
+
const handleRouteChange = useThrottleFn(async () => {
|
|
522
|
+
const microAppName = activeAppName.value;
|
|
523
523
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
524
|
-
if (!microAppDefine) return;
|
|
524
|
+
if (!microAppDefine && !microAppName.startsWith("mtip-") && !microAppName.startsWith("innovateDept-")) return;
|
|
525
525
|
const domId = `microApp_${microAppName}`;
|
|
526
526
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
527
527
|
appContainerList.value.push({
|
|
@@ -529,28 +529,30 @@ function useMicroApp(appList) {
|
|
|
529
529
|
id: domId
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
if (
|
|
535
|
-
loadApp.
|
|
532
|
+
setTimeout(async () => {
|
|
533
|
+
const loadApp = loadedApp.get(microAppName);
|
|
534
|
+
if (loadApp) {
|
|
535
|
+
if (!loadApp.mounted) {
|
|
536
|
+
loadApp.app.mount();
|
|
537
|
+
}
|
|
538
|
+
return;
|
|
536
539
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
};
|
|
540
|
+
const app = loadMicroApp({
|
|
541
|
+
name: microAppDefine ? microAppDefine.name : microAppName,
|
|
542
|
+
entry: microAppDefine ? microAppDefine.entry : `/${microAppName}/`,
|
|
543
|
+
container: `#${domId}`
|
|
544
|
+
});
|
|
545
|
+
const microApp = {
|
|
546
|
+
name: microAppName,
|
|
547
|
+
domId,
|
|
548
|
+
app,
|
|
549
|
+
mounted: true
|
|
550
|
+
};
|
|
551
|
+
loadAppList.value.push(microApp);
|
|
552
|
+
loadedApp.set(microAppName, microApp);
|
|
553
|
+
await app.mountPromise;
|
|
554
|
+
}, 10);
|
|
555
|
+
}, 100);
|
|
554
556
|
watch(route, handleRouteChange, {
|
|
555
557
|
immediate: true
|
|
556
558
|
});
|
|
@@ -6061,7 +6063,7 @@ class RTCEndpoint extends Event$1 {
|
|
|
6061
6063
|
let defaults2 = {
|
|
6062
6064
|
element: "",
|
|
6063
6065
|
// html video element
|
|
6064
|
-
debug:
|
|
6066
|
+
debug: true,
|
|
6065
6067
|
// if output debug log
|
|
6066
6068
|
zlmsdpUrl: "",
|
|
6067
6069
|
simulcast: false,
|
package/dist/hooks/index.cjs
CHANGED
package/dist/hooks/index.js
CHANGED
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.
|
|
46
|
+
var version = "0.1.90";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -6354,7 +6354,7 @@ class RTCEndpoint extends Event$1 {
|
|
|
6354
6354
|
let defaults2 = {
|
|
6355
6355
|
element: "",
|
|
6356
6356
|
// html video element
|
|
6357
|
-
debug:
|
|
6357
|
+
debug: true,
|
|
6358
6358
|
// if output debug log
|
|
6359
6359
|
zlmsdpUrl: "",
|
|
6360
6360
|
simulcast: false,
|
|
@@ -7653,13 +7653,13 @@ function useActiveApp() {
|
|
|
7653
7653
|
const loadedApp = /* @__PURE__ */new Map();
|
|
7654
7654
|
function useMicroApp(appList) {
|
|
7655
7655
|
const route = vueRouter.useRoute();
|
|
7656
|
-
useActiveApp();
|
|
7656
|
+
const activeAppName = useActiveApp();
|
|
7657
7657
|
const loadAppList = vue.ref(Array.from(loadedApp.values()));
|
|
7658
7658
|
const appContainerList = vue.ref([]);
|
|
7659
|
-
const handleRouteChange =
|
|
7660
|
-
const microAppName =
|
|
7659
|
+
const handleRouteChange = core.useThrottleFn(async () => {
|
|
7660
|
+
const microAppName = activeAppName.value;
|
|
7661
7661
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
7662
|
-
if (!microAppDefine) return;
|
|
7662
|
+
if (!microAppDefine && !microAppName.startsWith("mtip-") && !microAppName.startsWith("innovateDept-")) return;
|
|
7663
7663
|
const domId = `microApp_${microAppName}`;
|
|
7664
7664
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
7665
7665
|
appContainerList.value.push({
|
|
@@ -7667,28 +7667,30 @@ function useMicroApp(appList) {
|
|
|
7667
7667
|
id: domId
|
|
7668
7668
|
});
|
|
7669
7669
|
}
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
if (
|
|
7673
|
-
loadApp.
|
|
7670
|
+
setTimeout(async () => {
|
|
7671
|
+
const loadApp = loadedApp.get(microAppName);
|
|
7672
|
+
if (loadApp) {
|
|
7673
|
+
if (!loadApp.mounted) {
|
|
7674
|
+
loadApp.app.mount();
|
|
7675
|
+
}
|
|
7676
|
+
return;
|
|
7674
7677
|
}
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
};
|
|
7678
|
+
const app = qiankun$1.loadMicroApp({
|
|
7679
|
+
name: microAppDefine ? microAppDefine.name : microAppName,
|
|
7680
|
+
entry: microAppDefine ? microAppDefine.entry : `/${microAppName}/`,
|
|
7681
|
+
container: `#${domId}`
|
|
7682
|
+
});
|
|
7683
|
+
const microApp = {
|
|
7684
|
+
name: microAppName,
|
|
7685
|
+
domId,
|
|
7686
|
+
app,
|
|
7687
|
+
mounted: true
|
|
7688
|
+
};
|
|
7689
|
+
loadAppList.value.push(microApp);
|
|
7690
|
+
loadedApp.set(microAppName, microApp);
|
|
7691
|
+
await app.mountPromise;
|
|
7692
|
+
}, 10);
|
|
7693
|
+
}, 100);
|
|
7692
7694
|
vue.watch(route, handleRouteChange, {
|
|
7693
7695
|
immediate: true
|
|
7694
7696
|
});
|
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.
|
|
14
|
+
var version = "0.1.90";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { defineComponent, createVNode, createApp, ref, watch, reactive, computed
|
|
|
4
4
|
import axios$2 from 'axios';
|
|
5
5
|
import { message, Menu, MenuItem, Input as Input$1, Badge, Avatar as Avatar$1, MenuDivider, Modal, SubMenu, Dropdown, Tooltip, Select, LayoutHeader, LayoutSider, Layout as Layout$1, LayoutContent, Form, Row, Col, FormItem, SelectOption, Switch, InputNumber } from 'ant-design-vue';
|
|
6
6
|
import _, { isPlainObject as isPlainObject$1, omit, cloneDeep, differenceBy, isObject as isObject$2, concat } from 'lodash';
|
|
7
|
-
import { useIntervalFn, useEventBus, resolveRef, useEventListener, useMounted, useLocalStorage, useFullscreen, useMouseInElement, useVModel, useMagicKeys, whenever, watchArray, useSessionStorage, useElementBounding, useToggle, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
|
|
7
|
+
import { useIntervalFn, useEventBus, resolveRef, useEventListener, useMounted, useThrottleFn, useLocalStorage, useFullscreen, useMouseInElement, useVModel, useMagicKeys, whenever, watchArray, useSessionStorage, useElementBounding, useToggle, useMemory, useWindowSize, useClipboard, useBreakpoints, breakpointsAntDesign } from '@vueuse/core';
|
|
8
8
|
import dayjs from 'dayjs';
|
|
9
9
|
import { useRouter, useRoute } from 'vue-router';
|
|
10
10
|
import { createFromIconfontCN, SearchOutlined, DownOutlined, PoweroffOutlined, MenuUnfoldOutlined, MenuFoldOutlined, SkinFilled, FullscreenOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined, FileExcelTwoTone, InboxOutlined, MessageOutlined } from '@ant-design/icons-vue';
|
|
@@ -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.
|
|
16
|
+
var version = "0.1.90";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -6324,7 +6324,7 @@ class RTCEndpoint extends Event$1 {
|
|
|
6324
6324
|
let defaults2 = {
|
|
6325
6325
|
element: "",
|
|
6326
6326
|
// html video element
|
|
6327
|
-
debug:
|
|
6327
|
+
debug: true,
|
|
6328
6328
|
// if output debug log
|
|
6329
6329
|
zlmsdpUrl: "",
|
|
6330
6330
|
simulcast: false,
|
|
@@ -7623,13 +7623,13 @@ function useActiveApp() {
|
|
|
7623
7623
|
const loadedApp = /* @__PURE__ */new Map();
|
|
7624
7624
|
function useMicroApp(appList) {
|
|
7625
7625
|
const route = useRoute();
|
|
7626
|
-
useActiveApp();
|
|
7626
|
+
const activeAppName = useActiveApp();
|
|
7627
7627
|
const loadAppList = ref(Array.from(loadedApp.values()));
|
|
7628
7628
|
const appContainerList = ref([]);
|
|
7629
|
-
const handleRouteChange =
|
|
7630
|
-
const microAppName =
|
|
7629
|
+
const handleRouteChange = useThrottleFn(async () => {
|
|
7630
|
+
const microAppName = activeAppName.value;
|
|
7631
7631
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
7632
|
-
if (!microAppDefine) return;
|
|
7632
|
+
if (!microAppDefine && !microAppName.startsWith("mtip-") && !microAppName.startsWith("innovateDept-")) return;
|
|
7633
7633
|
const domId = `microApp_${microAppName}`;
|
|
7634
7634
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
7635
7635
|
appContainerList.value.push({
|
|
@@ -7637,28 +7637,30 @@ function useMicroApp(appList) {
|
|
|
7637
7637
|
id: domId
|
|
7638
7638
|
});
|
|
7639
7639
|
}
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
if (
|
|
7643
|
-
loadApp.
|
|
7640
|
+
setTimeout(async () => {
|
|
7641
|
+
const loadApp = loadedApp.get(microAppName);
|
|
7642
|
+
if (loadApp) {
|
|
7643
|
+
if (!loadApp.mounted) {
|
|
7644
|
+
loadApp.app.mount();
|
|
7645
|
+
}
|
|
7646
|
+
return;
|
|
7644
7647
|
}
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
};
|
|
7648
|
+
const app = loadMicroApp({
|
|
7649
|
+
name: microAppDefine ? microAppDefine.name : microAppName,
|
|
7650
|
+
entry: microAppDefine ? microAppDefine.entry : `/${microAppName}/`,
|
|
7651
|
+
container: `#${domId}`
|
|
7652
|
+
});
|
|
7653
|
+
const microApp = {
|
|
7654
|
+
name: microAppName,
|
|
7655
|
+
domId,
|
|
7656
|
+
app,
|
|
7657
|
+
mounted: true
|
|
7658
|
+
};
|
|
7659
|
+
loadAppList.value.push(microApp);
|
|
7660
|
+
loadedApp.set(microAppName, microApp);
|
|
7661
|
+
await app.mountPromise;
|
|
7662
|
+
}, 10);
|
|
7663
|
+
}, 100);
|
|
7662
7664
|
watch(route, handleRouteChange, {
|
|
7663
7665
|
immediate: true
|
|
7664
7666
|
});
|
package/dist/tplib/index.cjs
CHANGED
package/dist/tplib/index.js
CHANGED
package/dist/video/index.cjs
CHANGED
package/dist/video/index.js
CHANGED