bl-common-vue3 3.8.80 → 3.8.82

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.80",
3
+ "version": "3.8.82",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -192,8 +192,8 @@
192
192
  <Form layout="vertical">
193
193
  <a-row :gutter="12">
194
194
  <a-col
195
- :sm="24"
196
- :xs="24"
195
+ :sm="12"
196
+ :xs="12"
197
197
  :md="filterColSpan"
198
198
  v-for="(filter, filterIndex) in filterList"
199
199
  :key="filterIndex">
@@ -638,9 +638,9 @@
638
638
  @customRequest="handleCustomRequest" />
639
639
  </FormItem>
640
640
  </a-col>
641
- <a-col :sm="24" :xs="24" :md="filterColSpan">
641
+ <a-col :sm="12" :xs="12" :md="filterColSpan">
642
642
  <FormItem label=" ">
643
- <a-space>
643
+ <a-space class="filter-action-space">
644
644
  <a-button type="primary" @click="handleSearch">
645
645
  <template #icon>
646
646
  <bl-icon type="sousuo" />
@@ -884,18 +884,20 @@
884
884
  <template #bodyCell="{ text, record, index, column }">
885
885
  <template v-if="column && column?.key">
886
886
  <template v-if="column?.columnType === 'security'">
887
- <span>
888
- {{ getSecurityDisplayValue(record, column) }}
889
- </span>
890
- <a-button
891
- type="link"
892
- size="small"
893
- style="padding: 0 4px"
894
- v-if="shouldShowSecurityRowBtn(record, column)"
895
- @click.stop="toggleSecurityValue(record, column)">
896
- <EyeInvisibleOutlined v-if="isSecurityRowOn(record, column)" />
897
- <EyeOutlined v-else />
898
- </a-button>
887
+ <div style="display: flex; align-items: center; gap: 4px">
888
+ <span>
889
+ {{ getSecurityDisplayValue(record, column) }}
890
+ </span>
891
+ <a-button
892
+ type="link"
893
+ size="small"
894
+ style="padding: 0 4px"
895
+ v-if="shouldShowSecurityRowBtn(record, column)"
896
+ @click.stop="toggleSecurityValue(record, column)">
897
+ <EyeInvisibleOutlined v-if="isSecurityRowOn(record, column)" />
898
+ <EyeOutlined v-else />
899
+ </a-button>
900
+ </div>
899
901
  </template>
900
902
 
901
903
  <template v-else-if="column?.type">
@@ -4156,6 +4158,46 @@ export default defineComponent({
4156
4158
  }
4157
4159
  }
4158
4160
 
4161
+ .filter-action-space {
4162
+ width: 100%;
4163
+ }
4164
+
4165
+ @media (max-width: 767px) {
4166
+ .filter-warp {
4167
+ padding: 8px;
4168
+
4169
+ :deep(.ant-form-item) {
4170
+ margin-bottom: 10px;
4171
+ }
4172
+
4173
+ :deep(.ant-form-item-label) {
4174
+ padding-bottom: 4px;
4175
+
4176
+ > label {
4177
+ max-width: 100%;
4178
+ overflow: hidden;
4179
+ text-overflow: ellipsis;
4180
+ white-space: nowrap;
4181
+ }
4182
+ }
4183
+ }
4184
+
4185
+ .filter-action-space {
4186
+ display: flex;
4187
+
4188
+ :deep(.ant-space-item) {
4189
+ flex: 1;
4190
+ min-width: 0;
4191
+ }
4192
+
4193
+ :deep(.ant-btn) {
4194
+ width: 100%;
4195
+ padding-left: 6px;
4196
+ padding-right: 6px;
4197
+ }
4198
+ }
4199
+ }
4200
+
4159
4201
  .ellipsisClamp {
4160
4202
  max-width: 100%;
4161
4203
  display: -webkit-box;
@@ -3,6 +3,7 @@
3
3
  :width="720"
4
4
  :visible="visible"
5
5
  :title="title"
6
+ wrapClassName="add-dictionary-modal-wrap"
6
7
  @cancel="handleClose"
7
8
  @ok="handleSubmit"
8
9
  :ok-text="t('common.button.ok')"
@@ -13,7 +14,7 @@
13
14
  width: '140px',
14
15
  },}">
15
16
  <a-row :wrap="true" :gutter="12">
16
- <a-col :span="12">
17
+ <a-col :span="12" :xs="24" :sm="12">
17
18
  <a-form-item :label="t('components.AddDictionary.031362-0')" v-bind="validateInfos.sort">
18
19
  <a-input-number
19
20
  v-model:value="formData.sort"
@@ -24,7 +25,7 @@
24
25
  />
25
26
  </a-form-item>
26
27
  </a-col>
27
- <a-col :span="24">
28
+ <a-col :span="24" :xs="24">
28
29
  <a-form-item :label="t('components.AddDictionary.031362-1')" v-bind="validateInfos.label">
29
30
  <a-input
30
31
  v-model:value="formData.label"
@@ -37,7 +38,7 @@
37
38
  </a-input>
38
39
  </a-form-item>
39
40
  </a-col>
40
- <a-col :span="24">
41
+ <a-col :span="24" :xs="24">
41
42
  <a-form-item :label="t('components.AddDictionary.031362-3')" v-bind="validateInfos.value">
42
43
  <a-input
43
44
  v-model:value="formData.value"
@@ -45,7 +46,7 @@
45
46
  />
46
47
  </a-form-item>
47
48
  </a-col>
48
- <a-col :span="24">
49
+ <a-col :span="24" :xs="24">
49
50
  <a-form-item :label="t('components.AddDictionary.031362-5')" v-bind="validateInfos.css_class">
50
51
  <a-input
51
52
  v-model:value="formData.css_class"
@@ -53,7 +54,7 @@
53
54
  />
54
55
  </a-form-item>
55
56
  </a-col>
56
- <a-col :span="12">
57
+ <a-col :span="12" :xs="24" :sm="12">
57
58
  <a-form-item :label="t('components.AddDictionary.031362-7')" v-bind="validateInfos.color_type">
58
59
  <a-select
59
60
  v-model:value="formData.color_type"
@@ -74,12 +75,12 @@
74
75
  </a-select>
75
76
  </a-form-item>
76
77
  </a-col>
77
- <a-col :span="12">
78
+ <a-col :span="12" :xs="24" :sm="12">
78
79
  <a-form-item :label="t('common.table.status')" v-bind="validateInfos.status">
79
80
  <a-radio-group v-model:value="formData.status" :options="statusOptions" />
80
81
  </a-form-item>
81
82
  </a-col>
82
- <a-col :span="24">
83
+ <a-col :span="24" :xs="24">
83
84
  <a-form-item :label="t('common.form.remarks')" v-bind="validateInfos.remark">
84
85
  <a-textarea
85
86
  :placeholder="t('common.please.enter')"
@@ -352,4 +353,41 @@ export default defineComponent({
352
353
  :deep(.ant-alert-with-description.ant-alert-no-icon) {
353
354
  padding: 6px 10px;
354
355
  }
356
+
357
+ :global(.add-dictionary-modal-wrap .ant-modal) {
358
+ max-width: calc(100vw - 24px);
359
+ }
360
+
361
+ @media (max-width: 768px) {
362
+ :global(.add-dictionary-modal-wrap .ant-modal) {
363
+ top: 8px;
364
+ max-width: calc(100vw - 16px);
365
+ margin: 0 auto;
366
+ padding-bottom: 8px;
367
+ }
368
+
369
+ :global(.add-dictionary-modal-wrap .ant-modal-content) {
370
+ max-height: calc(100vh - 16px);
371
+ display: flex;
372
+ flex-direction: column;
373
+ }
374
+
375
+ :global(.add-dictionary-modal-wrap .ant-modal-body) {
376
+ flex: 1;
377
+ min-height: 0;
378
+ overflow-y: auto;
379
+ }
380
+
381
+ :deep(.ant-form-item) {
382
+ margin-bottom: 14px;
383
+ }
384
+
385
+ :deep(.ant-form-item-label) {
386
+ flex: 0 0 96px !important;
387
+ }
388
+
389
+ :deep(.ant-form-item-control) {
390
+ min-width: 0;
391
+ }
392
+ }
355
393
  </style>
@@ -3,6 +3,7 @@
3
3
  :width="1000"
4
4
  :visible="visible"
5
5
  :title="t('DictionarySetting.index.757488-0')"
6
+ wrapClassName="dictionary-setting-modal-wrap"
6
7
  @cancel="handleCancel"
7
8
  :destroyOnClose="true"
8
9
  :footer="null"
@@ -10,10 +11,10 @@
10
11
  >
11
12
  <a-spin :spinning="spinning">
12
13
  <div class="content-box">
13
- <div style="background: #f0f2f5">
14
- <a-row style="padding: 10px; background: #fff; margin-bottom: 4px">
15
- <a-space>
16
- <Input :placeholder="t('DictionarySetting.index.734314-0')" v-model:value="keyWord" style="width: 340px"></Input>
14
+ <div class="search-box">
15
+ <a-row class="search-row">
16
+ <a-space class="search-space" :wrap="true">
17
+ <Input class="search-input" :placeholder="t('DictionarySetting.index.734314-0')" v-model:value="keyWord"></Input>
17
18
  <a-button type="primary" @click="handleSearch">
18
19
  <template #icon>
19
20
  <bl-icon
@@ -356,9 +357,26 @@ export default defineComponent({
356
357
  <style lang="less" scoped>
357
358
  .content-box {
358
359
  height: 695px;
360
+ max-height: calc(100vh - 120px);
359
361
  display: flex;
360
362
  flex-direction: column;
361
363
  }
364
+
365
+ .search-box {
366
+ background: #f0f2f5;
367
+ }
368
+
369
+ .search-row {
370
+ padding: 10px;
371
+ background: #fff;
372
+ margin-bottom: 4px;
373
+ }
374
+
375
+ .search-input {
376
+ width: 340px;
377
+ max-width: 100%;
378
+ }
379
+
362
380
  .setting-box {
363
381
  width: 100%;
364
382
  flex: 1;
@@ -385,4 +403,76 @@ export default defineComponent({
385
403
  white-space: nowrap;
386
404
  word-break: break-all;
387
405
  }
406
+
407
+ :global(.dictionary-setting-modal-wrap .ant-modal) {
408
+ max-width: calc(100vw - 24px);
409
+ }
410
+
411
+ @media (max-width: 768px) {
412
+ :global(.dictionary-setting-modal-wrap) {
413
+ overflow: hidden;
414
+ }
415
+
416
+ :global(.dictionary-setting-modal-wrap .ant-modal) {
417
+ top: 8px;
418
+ max-width: calc(100vw - 16px);
419
+ margin: 0 auto;
420
+ padding-bottom: 8px;
421
+ }
422
+
423
+ :global(.dictionary-setting-modal-wrap .ant-modal-content) {
424
+ max-height: calc(100vh - 16px);
425
+ display: flex;
426
+ flex-direction: column;
427
+ }
428
+
429
+ :global(.dictionary-setting-modal-wrap .ant-modal-body) {
430
+ flex: 1;
431
+ min-height: 0;
432
+ overflow: hidden;
433
+ }
434
+
435
+ .content-box {
436
+ height: calc(100vh - 72px);
437
+ max-height: calc(100vh - 72px);
438
+ }
439
+
440
+ .search-row {
441
+ padding: 8px;
442
+ }
443
+
444
+ .search-space {
445
+ width: 100%;
446
+
447
+ :deep(.ant-space-item) {
448
+ &:first-child {
449
+ width: 100%;
450
+ }
451
+ }
452
+ }
453
+
454
+ .search-input {
455
+ width: 100%;
456
+ }
457
+
458
+ .setting-box {
459
+ flex-direction: column;
460
+
461
+ .setting-name {
462
+ width: 100%;
463
+ height: auto;
464
+ max-height: 156px;
465
+ padding-right: 0;
466
+ overflow-y: auto;
467
+ border-right: 0;
468
+ border-bottom: 1px solid #f0f0f0;
469
+ }
470
+
471
+ .types-content {
472
+ flex: 1;
473
+ min-height: 0;
474
+ padding-bottom: 8px;
475
+ }
476
+ }
477
+ }
388
478
  </style>