inl-ui 0.1.99 → 0.1.101
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 +17 -7
- package/dist/components/index.js +17 -7
- package/dist/index.cjs +18 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -8
- package/package.json +1 -1
|
@@ -8721,8 +8721,8 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8721
8721
|
};
|
|
8722
8722
|
}
|
|
8723
8723
|
};
|
|
8724
|
-
const addTab = ___default["default"].debounce(
|
|
8725
|
-
dataId.value =
|
|
8724
|
+
const addTab = ___default["default"].debounce(newRroute => {
|
|
8725
|
+
dataId.value = newRroute.params.id;
|
|
8726
8726
|
const {
|
|
8727
8727
|
name
|
|
8728
8728
|
} = route.query;
|
|
@@ -8730,7 +8730,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8730
8730
|
name,
|
|
8731
8731
|
url: route.fullPath,
|
|
8732
8732
|
key: props.name,
|
|
8733
|
-
uniqueKey:
|
|
8733
|
+
uniqueKey: newRroute.params.id,
|
|
8734
8734
|
icon: props.icon,
|
|
8735
8735
|
isExtraTab: true,
|
|
8736
8736
|
params: ___default["default"].omit(route.query, "name")
|
|
@@ -8738,13 +8738,23 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8738
8738
|
console.log("tab4444444444444444", tab);
|
|
8739
8739
|
console.log("route4444444444444444", route);
|
|
8740
8740
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
8741
|
+
debugger;
|
|
8741
8742
|
if (detail) {
|
|
8742
|
-
detail.url =
|
|
8743
|
+
detail.url = newRroute.fullPath;
|
|
8744
|
+
setTimeout(() => {
|
|
8745
|
+
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
8746
|
+
const extraTabs = [...qiankunState.value.extraTabs];
|
|
8747
|
+
qiankunState.value = {
|
|
8748
|
+
...qiankunState.value,
|
|
8749
|
+
extraTabs
|
|
8750
|
+
};
|
|
8751
|
+
}
|
|
8752
|
+
});
|
|
8743
8753
|
} else {
|
|
8744
8754
|
detailList.value.push({
|
|
8745
8755
|
...tab,
|
|
8746
8756
|
refreshKey: Date.now(),
|
|
8747
|
-
id:
|
|
8757
|
+
id: newRroute.params.id
|
|
8748
8758
|
});
|
|
8749
8759
|
setTimeout(() => {
|
|
8750
8760
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -8765,7 +8775,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8765
8775
|
leading: true,
|
|
8766
8776
|
trailing: false
|
|
8767
8777
|
});
|
|
8768
|
-
vue.watch(() => route
|
|
8778
|
+
vue.watch(() => route, async val => {
|
|
8769
8779
|
if (!val || route.name !== props.name) return;
|
|
8770
8780
|
addTab(val);
|
|
8771
8781
|
}, {
|
|
@@ -8773,7 +8783,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8773
8783
|
deep: true
|
|
8774
8784
|
});
|
|
8775
8785
|
vue.onActivated(() => {
|
|
8776
|
-
addTab(route
|
|
8786
|
+
addTab(route);
|
|
8777
8787
|
});
|
|
8778
8788
|
vue.watch(() => qiankunState.value?.refreshExtraTab, val => {
|
|
8779
8789
|
if (val) {
|
package/dist/components/index.js
CHANGED
|
@@ -8693,8 +8693,8 @@ const getDetailContainer = () => defineComponent({
|
|
|
8693
8693
|
};
|
|
8694
8694
|
}
|
|
8695
8695
|
};
|
|
8696
|
-
const addTab = _.debounce(
|
|
8697
|
-
dataId.value =
|
|
8696
|
+
const addTab = _.debounce(newRroute => {
|
|
8697
|
+
dataId.value = newRroute.params.id;
|
|
8698
8698
|
const {
|
|
8699
8699
|
name
|
|
8700
8700
|
} = route.query;
|
|
@@ -8702,7 +8702,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8702
8702
|
name,
|
|
8703
8703
|
url: route.fullPath,
|
|
8704
8704
|
key: props.name,
|
|
8705
|
-
uniqueKey:
|
|
8705
|
+
uniqueKey: newRroute.params.id,
|
|
8706
8706
|
icon: props.icon,
|
|
8707
8707
|
isExtraTab: true,
|
|
8708
8708
|
params: _.omit(route.query, "name")
|
|
@@ -8710,13 +8710,23 @@ const getDetailContainer = () => defineComponent({
|
|
|
8710
8710
|
console.log("tab4444444444444444", tab);
|
|
8711
8711
|
console.log("route4444444444444444", route);
|
|
8712
8712
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
8713
|
+
debugger;
|
|
8713
8714
|
if (detail) {
|
|
8714
|
-
detail.url =
|
|
8715
|
+
detail.url = newRroute.fullPath;
|
|
8716
|
+
setTimeout(() => {
|
|
8717
|
+
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
8718
|
+
const extraTabs = [...qiankunState.value.extraTabs];
|
|
8719
|
+
qiankunState.value = {
|
|
8720
|
+
...qiankunState.value,
|
|
8721
|
+
extraTabs
|
|
8722
|
+
};
|
|
8723
|
+
}
|
|
8724
|
+
});
|
|
8715
8725
|
} else {
|
|
8716
8726
|
detailList.value.push({
|
|
8717
8727
|
...tab,
|
|
8718
8728
|
refreshKey: Date.now(),
|
|
8719
|
-
id:
|
|
8729
|
+
id: newRroute.params.id
|
|
8720
8730
|
});
|
|
8721
8731
|
setTimeout(() => {
|
|
8722
8732
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -8737,7 +8747,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8737
8747
|
leading: true,
|
|
8738
8748
|
trailing: false
|
|
8739
8749
|
});
|
|
8740
|
-
watch(() => route
|
|
8750
|
+
watch(() => route, async val => {
|
|
8741
8751
|
if (!val || route.name !== props.name) return;
|
|
8742
8752
|
addTab(val);
|
|
8743
8753
|
}, {
|
|
@@ -8745,7 +8755,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8745
8755
|
deep: true
|
|
8746
8756
|
});
|
|
8747
8757
|
onActivated(() => {
|
|
8748
|
-
addTab(route
|
|
8758
|
+
addTab(route);
|
|
8749
8759
|
});
|
|
8750
8760
|
watch(() => qiankunState.value?.refreshExtraTab, val => {
|
|
8751
8761
|
if (val) {
|
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.100";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -9707,8 +9707,8 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9707
9707
|
};
|
|
9708
9708
|
}
|
|
9709
9709
|
};
|
|
9710
|
-
const addTab = ___default["default"].debounce(
|
|
9711
|
-
dataId.value =
|
|
9710
|
+
const addTab = ___default["default"].debounce(newRroute => {
|
|
9711
|
+
dataId.value = newRroute.params.id;
|
|
9712
9712
|
const {
|
|
9713
9713
|
name
|
|
9714
9714
|
} = route.query;
|
|
@@ -9716,7 +9716,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9716
9716
|
name,
|
|
9717
9717
|
url: route.fullPath,
|
|
9718
9718
|
key: props.name,
|
|
9719
|
-
uniqueKey:
|
|
9719
|
+
uniqueKey: newRroute.params.id,
|
|
9720
9720
|
icon: props.icon,
|
|
9721
9721
|
isExtraTab: true,
|
|
9722
9722
|
params: ___default["default"].omit(route.query, "name")
|
|
@@ -9724,13 +9724,23 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9724
9724
|
console.log("tab4444444444444444", tab);
|
|
9725
9725
|
console.log("route4444444444444444", route);
|
|
9726
9726
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
9727
|
+
debugger;
|
|
9727
9728
|
if (detail) {
|
|
9728
|
-
detail.url =
|
|
9729
|
+
detail.url = newRroute.fullPath;
|
|
9730
|
+
setTimeout(() => {
|
|
9731
|
+
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
9732
|
+
const extraTabs = [...qiankunState.value.extraTabs];
|
|
9733
|
+
qiankunState.value = {
|
|
9734
|
+
...qiankunState.value,
|
|
9735
|
+
extraTabs
|
|
9736
|
+
};
|
|
9737
|
+
}
|
|
9738
|
+
});
|
|
9729
9739
|
} else {
|
|
9730
9740
|
detailList.value.push({
|
|
9731
9741
|
...tab,
|
|
9732
9742
|
refreshKey: Date.now(),
|
|
9733
|
-
id:
|
|
9743
|
+
id: newRroute.params.id
|
|
9734
9744
|
});
|
|
9735
9745
|
setTimeout(() => {
|
|
9736
9746
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -9751,7 +9761,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9751
9761
|
leading: true,
|
|
9752
9762
|
trailing: false
|
|
9753
9763
|
});
|
|
9754
|
-
vue.watch(() => route
|
|
9764
|
+
vue.watch(() => route, async val => {
|
|
9755
9765
|
if (!val || route.name !== props.name) return;
|
|
9756
9766
|
addTab(val);
|
|
9757
9767
|
}, {
|
|
@@ -9759,7 +9769,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9759
9769
|
deep: true
|
|
9760
9770
|
});
|
|
9761
9771
|
vue.onActivated(() => {
|
|
9762
|
-
addTab(route
|
|
9772
|
+
addTab(route);
|
|
9763
9773
|
});
|
|
9764
9774
|
vue.watch(() => qiankunState.value?.refreshExtraTab, val => {
|
|
9765
9775
|
if (val) {
|
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.100";
|
|
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.
|
|
16
|
+
var version = "0.1.100";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -9677,8 +9677,8 @@ const getDetailContainer = () => defineComponent({
|
|
|
9677
9677
|
};
|
|
9678
9678
|
}
|
|
9679
9679
|
};
|
|
9680
|
-
const addTab = _.debounce(
|
|
9681
|
-
dataId.value =
|
|
9680
|
+
const addTab = _.debounce(newRroute => {
|
|
9681
|
+
dataId.value = newRroute.params.id;
|
|
9682
9682
|
const {
|
|
9683
9683
|
name
|
|
9684
9684
|
} = route.query;
|
|
@@ -9686,7 +9686,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
9686
9686
|
name,
|
|
9687
9687
|
url: route.fullPath,
|
|
9688
9688
|
key: props.name,
|
|
9689
|
-
uniqueKey:
|
|
9689
|
+
uniqueKey: newRroute.params.id,
|
|
9690
9690
|
icon: props.icon,
|
|
9691
9691
|
isExtraTab: true,
|
|
9692
9692
|
params: _.omit(route.query, "name")
|
|
@@ -9694,13 +9694,23 @@ const getDetailContainer = () => defineComponent({
|
|
|
9694
9694
|
console.log("tab4444444444444444", tab);
|
|
9695
9695
|
console.log("route4444444444444444", route);
|
|
9696
9696
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
9697
|
+
debugger;
|
|
9697
9698
|
if (detail) {
|
|
9698
|
-
detail.url =
|
|
9699
|
+
detail.url = newRroute.fullPath;
|
|
9700
|
+
setTimeout(() => {
|
|
9701
|
+
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
9702
|
+
const extraTabs = [...qiankunState.value.extraTabs];
|
|
9703
|
+
qiankunState.value = {
|
|
9704
|
+
...qiankunState.value,
|
|
9705
|
+
extraTabs
|
|
9706
|
+
};
|
|
9707
|
+
}
|
|
9708
|
+
});
|
|
9699
9709
|
} else {
|
|
9700
9710
|
detailList.value.push({
|
|
9701
9711
|
...tab,
|
|
9702
9712
|
refreshKey: Date.now(),
|
|
9703
|
-
id:
|
|
9713
|
+
id: newRroute.params.id
|
|
9704
9714
|
});
|
|
9705
9715
|
setTimeout(() => {
|
|
9706
9716
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -9721,7 +9731,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
9721
9731
|
leading: true,
|
|
9722
9732
|
trailing: false
|
|
9723
9733
|
});
|
|
9724
|
-
watch(() => route
|
|
9734
|
+
watch(() => route, async val => {
|
|
9725
9735
|
if (!val || route.name !== props.name) return;
|
|
9726
9736
|
addTab(val);
|
|
9727
9737
|
}, {
|
|
@@ -9729,7 +9739,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
9729
9739
|
deep: true
|
|
9730
9740
|
});
|
|
9731
9741
|
onActivated(() => {
|
|
9732
|
-
addTab(route
|
|
9742
|
+
addTab(route);
|
|
9733
9743
|
});
|
|
9734
9744
|
watch(() => qiankunState.value?.refreshExtraTab, val => {
|
|
9735
9745
|
if (val) {
|