bl-common-vue3 3.8.66 → 3.8.68

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.66",
3
+ "version": "3.8.68",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -895,10 +895,6 @@ export default {
895
895
  overflow: auto;
896
896
 
897
897
  scroll-behavior: smooth;
898
-
899
- &-focus {
900
- //outline: none;
901
- }
902
898
  }
903
899
 
904
900
  [contenteditable] {
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
  <!-- 二维码弹框 -->
12
- <QrcodeModal :visible="qrcodeModalVisible" :isCopy="true" :download="false" :urls="annexUploadPageUrl" @cancel="handleCancelQrcode" :zIndex="visible ? 1001 : 1000" :title="t('BlMobileAnnexUpload.index-1')"></QrcodeModal>
12
+ <QrcodeModal :visible="qrcodeModalVisible" :isCopy="true" :download="false" :urls="annexUploadPageUrl" @cancel="handleCancelQrcode" @request="handleRequest" :zIndex="visible ? 1001 : 1000" :title="t('BlMobileAnnexUpload.index-1')"></QrcodeModal>
13
13
 
14
14
  <!-- 批量上传弹框 -->
15
15
  <a-modal
@@ -21,6 +21,7 @@
21
21
  @ok="onSave"
22
22
  :maskClosable="false"
23
23
  :bodyStyle="{ maxHeight: '450px', overflow: 'scroll' }"
24
+ :getContainer="getPopupContainer"
24
25
  destroy-on-close>
25
26
  <template #title>
26
27
  <a-space>
@@ -174,7 +175,15 @@ export default defineComponent({
174
175
  },
175
176
  };
176
177
  }
177
- state.annexUploadPageUrl = `${props.h5Domain}/h5_orgs/pages/common/annexUpload?key=${encodeURIComponent(state.key)}&uploadConfig=${encodeURIComponent(JSON.stringify(uploadConfig))}`;
178
+ Object.keys(uploadConfig).forEach((key) => {
179
+ const cfg = uploadConfig[key] || {};
180
+ if (!Number.isFinite(cfg.count)) cfg.count = 999999;
181
+ if (!Number.isFinite(cfg.size)) cfg.size = 999999;
182
+ uploadConfig[key] = cfg;
183
+ });
184
+
185
+ const h5Domain = (props.h5Domain || location.origin).replace(/\/$/, "");
186
+ state.annexUploadPageUrl = `${h5Domain}/h5_orgs/pages/common/annexUpload?key=${encodeURIComponent(state.key || "")}&uploadConfig=${encodeURIComponent(JSON.stringify(uploadConfig))}`;
178
187
  };
179
188
 
180
189
  // 获取key
@@ -353,6 +362,10 @@ export default defineComponent({
353
362
  }
354
363
  };
355
364
 
365
+ const getPopupContainer = (trigger) => {
366
+ return window?.rawDocument?.body || document?.body;
367
+ };
368
+
356
369
  onUnmounted(() => {
357
370
  state.timer && clearInterval(state.timer);
358
371
  });
@@ -364,6 +377,10 @@ export default defineComponent({
364
377
  loadLanguageAsync(newLang);
365
378
  });
366
379
 
380
+ const handleRequest = (emitObj) => {
381
+ emit("request", emitObj);
382
+ };
383
+
367
384
  return {
368
385
  btnTitle,
369
386
  ...toRefs(state),
@@ -374,6 +391,8 @@ export default defineComponent({
374
391
  onSave,
375
392
  handleCancel,
376
393
  handleCancelQrcode,
394
+ getPopupContainer,
395
+ handleRequest,
377
396
  t,
378
397
  };
379
398
  },
@@ -4,9 +4,10 @@
4
4
  :title="titleProps"
5
5
  centered
6
6
  :footer="null"
7
- @close="handleClose"
7
+ @cancel="handleClose"
8
8
  :width="modalWidth"
9
9
  :zIndex="zIndex"
10
+ :getContainer="getPopupContainer"
10
11
  >
11
12
  <Row :gutter="[12, 12]" :wrap="true">
12
13
  <Col
@@ -227,6 +228,10 @@ export default defineComponent({
227
228
  message.success(t('QrcodeModal.index.612016-2'))
228
229
  }
229
230
 
231
+ const getPopupContainer = () => {
232
+ return window?.rawDocument?.body || document?.body;
233
+ };
234
+
230
235
  return {
231
236
  t,
232
237
  ...toRefs(state),
@@ -235,7 +240,8 @@ export default defineComponent({
235
240
  titleProps,
236
241
  handleClose,
237
242
  downloadCode,
238
- copy
243
+ copy,
244
+ getPopupContainer
239
245
  };
240
246
  },
241
247
  });
@@ -105,7 +105,7 @@ export default defineComponent({
105
105
  }
106
106
  state.owner_id = option.value;
107
107
  state.SelectTenant = option
108
- context.emit("selectcancel" , state.owner_id , state.SelectTenant);
108
+ context.emit("noChangeNewInfo" , state.owner_id , state.SelectTenant);
109
109
  };
110
110
 
111
111
  //清除功能,如果不需要清除功能可以不调用