inl-ui 0.1.111-mtapi.1 → 0.1.111-mtapi.2

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.
@@ -8729,15 +8729,19 @@ const getDetailContainer = () => vue.defineComponent({
8729
8729
  }
8730
8730
  };
8731
8731
  const addTab = ___default["default"].debounce(newRoute => {
8732
- dataId.value = newRoute.params.id;
8732
+ dataId.value = newRoute.params.id || newRoute.query.id;
8733
8733
  const {
8734
- name
8734
+ name,
8735
+ newTab
8735
8736
  } = route.query;
8737
+ if (newTab) {
8738
+ dataId.value = newTab;
8739
+ }
8736
8740
  const tab = {
8737
8741
  name,
8738
8742
  url: route.fullPath,
8739
8743
  key: props.name,
8740
- uniqueKey: newRoute.params.id,
8744
+ uniqueKey: dataId.value,
8741
8745
  icon: props.icon,
8742
8746
  isExtraTab: true,
8743
8747
  params: ___default["default"].omit(route.query, "name")
@@ -8758,7 +8762,7 @@ const getDetailContainer = () => vue.defineComponent({
8758
8762
  detailList.value.push({
8759
8763
  ...tab,
8760
8764
  refreshKey: Date.now(),
8761
- id: newRoute.params.id
8765
+ id: dataId.value
8762
8766
  });
8763
8767
  console.log("detailList.value", detailList.value);
8764
8768
  setTimeout(() => {
@@ -8776,7 +8780,7 @@ const getDetailContainer = () => vue.defineComponent({
8776
8780
  ...(qiankunState.value ?? {}),
8777
8781
  activeTabKey
8778
8782
  };
8779
- }, 300, {
8783
+ }, 500, {
8780
8784
  leading: true,
8781
8785
  trailing: false
8782
8786
  });
@@ -8701,15 +8701,19 @@ const getDetailContainer = () => defineComponent({
8701
8701
  }
8702
8702
  };
8703
8703
  const addTab = _.debounce(newRoute => {
8704
- dataId.value = newRoute.params.id;
8704
+ dataId.value = newRoute.params.id || newRoute.query.id;
8705
8705
  const {
8706
- name
8706
+ name,
8707
+ newTab
8707
8708
  } = route.query;
8709
+ if (newTab) {
8710
+ dataId.value = newTab;
8711
+ }
8708
8712
  const tab = {
8709
8713
  name,
8710
8714
  url: route.fullPath,
8711
8715
  key: props.name,
8712
- uniqueKey: newRoute.params.id,
8716
+ uniqueKey: dataId.value,
8713
8717
  icon: props.icon,
8714
8718
  isExtraTab: true,
8715
8719
  params: _.omit(route.query, "name")
@@ -8730,7 +8734,7 @@ const getDetailContainer = () => defineComponent({
8730
8734
  detailList.value.push({
8731
8735
  ...tab,
8732
8736
  refreshKey: Date.now(),
8733
- id: newRoute.params.id
8737
+ id: dataId.value
8734
8738
  });
8735
8739
  console.log("detailList.value", detailList.value);
8736
8740
  setTimeout(() => {
@@ -8748,7 +8752,7 @@ const getDetailContainer = () => defineComponent({
8748
8752
  ...(qiankunState.value ?? {}),
8749
8753
  activeTabKey
8750
8754
  };
8751
- }, 300, {
8755
+ }, 500, {
8752
8756
  leading: true,
8753
8757
  trailing: false
8754
8758
  });
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.111-mtapi.0";
46
+ var version = "0.1.111-mtapi.2";
47
47
 
48
48
  const setTheme = theme => {
49
49
  if (theme === "dark") {
@@ -9715,15 +9715,19 @@ const getDetailContainer = () => vue.defineComponent({
9715
9715
  }
9716
9716
  };
9717
9717
  const addTab = ___default["default"].debounce(newRoute => {
9718
- dataId.value = newRoute.params.id;
9718
+ dataId.value = newRoute.params.id || newRoute.query.id;
9719
9719
  const {
9720
- name
9720
+ name,
9721
+ newTab
9721
9722
  } = route.query;
9723
+ if (newTab) {
9724
+ dataId.value = newTab;
9725
+ }
9722
9726
  const tab = {
9723
9727
  name,
9724
9728
  url: route.fullPath,
9725
9729
  key: props.name,
9726
- uniqueKey: newRoute.params.id,
9730
+ uniqueKey: dataId.value,
9727
9731
  icon: props.icon,
9728
9732
  isExtraTab: true,
9729
9733
  params: ___default["default"].omit(route.query, "name")
@@ -9744,7 +9748,7 @@ const getDetailContainer = () => vue.defineComponent({
9744
9748
  detailList.value.push({
9745
9749
  ...tab,
9746
9750
  refreshKey: Date.now(),
9747
- id: newRoute.params.id
9751
+ id: dataId.value
9748
9752
  });
9749
9753
  console.log("detailList.value", detailList.value);
9750
9754
  setTimeout(() => {
@@ -9762,7 +9766,7 @@ const getDetailContainer = () => vue.defineComponent({
9762
9766
  ...(qiankunState.value ?? {}),
9763
9767
  activeTabKey
9764
9768
  };
9765
- }, 300, {
9769
+ }, 500, {
9766
9770
  leading: true,
9767
9771
  trailing: false
9768
9772
  });
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.111-mtapi.0";
14
+ var version = "0.1.111-mtapi.2";
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.111-mtapi.0";
16
+ var version = "0.1.111-mtapi.2";
17
17
 
18
18
  const setTheme = theme => {
19
19
  if (theme === "dark") {
@@ -9685,15 +9685,19 @@ const getDetailContainer = () => defineComponent({
9685
9685
  }
9686
9686
  };
9687
9687
  const addTab = _.debounce(newRoute => {
9688
- dataId.value = newRoute.params.id;
9688
+ dataId.value = newRoute.params.id || newRoute.query.id;
9689
9689
  const {
9690
- name
9690
+ name,
9691
+ newTab
9691
9692
  } = route.query;
9693
+ if (newTab) {
9694
+ dataId.value = newTab;
9695
+ }
9692
9696
  const tab = {
9693
9697
  name,
9694
9698
  url: route.fullPath,
9695
9699
  key: props.name,
9696
- uniqueKey: newRoute.params.id,
9700
+ uniqueKey: dataId.value,
9697
9701
  icon: props.icon,
9698
9702
  isExtraTab: true,
9699
9703
  params: _.omit(route.query, "name")
@@ -9714,7 +9718,7 @@ const getDetailContainer = () => defineComponent({
9714
9718
  detailList.value.push({
9715
9719
  ...tab,
9716
9720
  refreshKey: Date.now(),
9717
- id: newRoute.params.id
9721
+ id: dataId.value
9718
9722
  });
9719
9723
  console.log("detailList.value", detailList.value);
9720
9724
  setTimeout(() => {
@@ -9732,7 +9736,7 @@ const getDetailContainer = () => defineComponent({
9732
9736
  ...(qiankunState.value ?? {}),
9733
9737
  activeTabKey
9734
9738
  };
9735
- }, 300, {
9739
+ }, 500, {
9736
9740
  leading: true,
9737
9741
  trailing: false
9738
9742
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.111-mtapi.1",
3
+ "version": "0.1.111-mtapi.2",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",