bl-common-vue3 3.8.62 → 3.8.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bl-common-vue3",
3
- "version": "3.8.62",
3
+ "version": "3.8.64",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -1,5 +1,5 @@
1
1
  import fs from "file-saver";
2
- import * as XLSX from "xlsx";
2
+ import * as XLSX from "kj-xlsx";
3
3
  export function xlsx(json, fields, filename = ".xlsx") {
4
4
  //导出xlsx
5
5
  json.forEach((item) => {
@@ -12,6 +12,7 @@
12
12
  overflowY: 'auto',
13
13
  }"
14
14
  :width="800"
15
+ :getContainer="getContainer"
15
16
  :cancelText="t('common.button.cancel')"
16
17
  :okText="t('common.button.submit')"
17
18
  >
@@ -602,6 +603,10 @@ export default defineComponent({
602
603
  }
603
604
  );
604
605
 
606
+ const getContainer = (trigger) => {
607
+ return window?.rawDocument?.body || document?.body;
608
+ };
609
+
605
610
  return {
606
611
  t,
607
612
  ...toRefs(state),
@@ -619,6 +624,7 @@ export default defineComponent({
619
624
  i18nMapShow,
620
625
  changeCompany,
621
626
  hasOptionValue,
627
+ getContainer,
622
628
  };
623
629
  },
624
630
  });