bl-common-vue3 3.8.82 → 3.8.83

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.82",
3
+ "version": "3.8.83",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -4,6 +4,7 @@
4
4
  :visible="visible"
5
5
  :destroyOnClose="true"
6
6
  :width="1200"
7
+ wrapClassName="column-setting-drawer-wrap"
7
8
  :body-style="{
8
9
  paddingBottom: '80px',
9
10
  boxSizing: 'border-box',
@@ -17,8 +18,8 @@
17
18
  <a-button type="primary" ghost @click="restoreDefault">{{ t('ColumnSetting.index.391089-1') }}</a-button>
18
19
  </a-space>
19
20
  </template>
20
- <div class="setting-content">
21
- <div class="fake-table">
21
+ <div class="setting-content beauty-scroller-bar">
22
+ <div class="fake-table" :style="{ minWidth: tableMinWidth }">
22
23
  <div class="fake-table-tr fake-table-title">
23
24
  <div class="draggable-icon-box"></div>
24
25
  <div class="column" :style="columnStyle('name')">{{ t('ColumnSetting.index.391089-2') }}</div>
@@ -260,6 +261,14 @@ export default defineComponent({
260
261
  loadLanguageAsync(newLang);
261
262
  });
262
263
 
264
+ const tableMinWidth = computed(() => {
265
+ let width = 900;
266
+ if (props.hasExportSetting) width += 100;
267
+ if (props.hasSearchSetting) width += 100;
268
+ if (props.hasCountsSetting) width += 100;
269
+ return `${width}px`;
270
+ });
271
+
263
272
  const columnStyle = computed(() => {
264
273
  return (field) => {
265
274
  let _style = {
@@ -287,6 +296,7 @@ export default defineComponent({
287
296
  handleClose,
288
297
  onSubmit,
289
298
  restoreDefault,
299
+ tableMinWidth,
290
300
  columnStyle,
291
301
  isSystemAdmin
292
302
  };
@@ -303,6 +313,11 @@ export default defineComponent({
303
313
  .fake-table {
304
314
  border: 1px solid #f0f0f0;
305
315
  }
316
+ .setting-content {
317
+ width: 100%;
318
+ overflow-x: auto;
319
+ overflow-y: visible;
320
+ }
306
321
  .fake-table-title {
307
322
  background: #fafafa;
308
323
  position: sticky;
@@ -341,4 +356,66 @@ export default defineComponent({
341
356
  justify-content: space-between;
342
357
  align-items: center;
343
358
  }
359
+
360
+ :global(.column-setting-drawer-wrap .ant-drawer-content-wrapper) {
361
+ max-width: 100vw;
362
+ }
363
+
364
+ @media (max-width: 767px) {
365
+ :global(.column-setting-drawer-wrap .ant-drawer-body) {
366
+ padding: 12px 8px 72px !important;
367
+ overflow-y: auto;
368
+ overflow-x: hidden;
369
+ }
370
+
371
+ :global(.column-setting-drawer-wrap .ant-drawer-header) {
372
+ padding: 12px;
373
+ }
374
+
375
+ :global(.column-setting-drawer-wrap .ant-drawer-title) {
376
+ min-width: 0;
377
+ }
378
+
379
+ :global(.column-setting-drawer-wrap .ant-drawer-extra) {
380
+ margin-left: 8px;
381
+ }
382
+
383
+ .setting-content {
384
+ padding-bottom: 6px;
385
+ -webkit-overflow-scrolling: touch;
386
+ }
387
+
388
+ .fake-table-title {
389
+ top: -12px;
390
+ }
391
+
392
+ .fake-table-tr {
393
+ min-height: 42px;
394
+
395
+ .column {
396
+ padding: 0 8px;
397
+ white-space: nowrap;
398
+ }
399
+ }
400
+
401
+ .drawer-footer {
402
+ padding: 8px;
403
+ gap: 8px;
404
+ align-items: stretch;
405
+
406
+ > div {
407
+ min-width: 0;
408
+ }
409
+
410
+ .text-right {
411
+ display: flex;
412
+ justify-content: flex-end;
413
+ }
414
+
415
+ :deep(.ant-btn) {
416
+ padding-left: 8px;
417
+ padding-right: 8px;
418
+ }
419
+ }
420
+ }
344
421
  </style>