n20-common-lib 3.0.72 → 3.0.74

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": "n20-common-lib",
3
- "version": "3.0.72",
3
+ "version": "3.0.74",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -136,7 +136,7 @@
136
136
  line-height: 16px !important;
137
137
  vertical-align: middle !important;
138
138
  cursor: pointer;
139
-
139
+ padding-right: 4px !important;
140
140
  .vxe-sort--asc-btn,
141
141
  .vxe-sort--desc-btn {
142
142
  width: 6px;
@@ -1,4 +1,6 @@
1
1
  .n20-secondary-tab__wrapper {
2
+ height: 39px;
3
+ line-height: 39px;
2
4
  display: flex;
3
5
  justify-content: space-between;
4
6
  align-items: center;
@@ -7,7 +9,7 @@
7
9
  .el-tabs__header {
8
10
  margin-bottom: 0;
9
11
  }
10
- .el-tabs__nav-wrap {
12
+ .el-tabs__nav-wrap {
11
13
  overflow: visible;
12
14
  }
13
15
  .el-tabs__nav-scroll {
@@ -33,7 +35,7 @@
33
35
  height: 2px;
34
36
  background-color: $--color-primary;
35
37
  display: block;
36
- margin-top: 3px;
38
+ margin-top: 4px;
37
39
  }
38
40
  }
39
41
  &.is-disabled {
@@ -102,8 +104,7 @@
102
104
  line-height: 22px !important;
103
105
  padding: 8px 12px !important;
104
106
  border-radius: 4px !important;
105
- box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08),
106
- 0 9px 28px 0 rgba(0, 0, 0, 0.05),
107
+ box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
107
108
  0 12px 48px 16px rgba(0, 0, 0, 0.03) !important;
108
109
  border: none !important;
109
110
 
@@ -340,13 +340,13 @@
340
340
  position: static;
341
341
  }
342
342
  }
343
-
344
- .vxe-header--row {
343
+ .vxe-header--row th,
344
+ th.vxe-header--column {
345
345
  color: var(--text-1, #1d2129);
346
346
  font-family: 'PingFang SC';
347
347
  font-size: 14px;
348
348
  font-style: normal;
349
- font-weight: 500;
349
+ font-weight: 700;
350
350
  line-height: 22px;
351
351
  background-color: #f5f5f5;
352
352
  }
@@ -389,7 +389,12 @@
389
389
  z-index: 9999 !important;
390
390
  }
391
391
 
392
- .cell-default-set-- .vxe-table--body-wrapper .vxe-body--row .vxe-body--column .vxe-cell .vxe-cell--label:empty::before {
392
+ .cell-default-set--
393
+ .vxe-table--body-wrapper
394
+ .vxe-body--row
395
+ .vxe-body--column
396
+ .vxe-cell
397
+ .vxe-cell--label:empty::before {
393
398
  content: '--';
394
399
  }
395
400
 
@@ -205,7 +205,7 @@
205
205
  </div>
206
206
  </template>
207
207
  <!-- 处理旧格式 formatter 和 render -->
208
- <template #default="{ row, column }">
208
+ <template v-if="item._oldFormatter || item._oldRender" #default="{ row, column }">
209
209
  <!-- 旧的 render 函数 -->
210
210
  <template v-if="item._oldRender && item.render">
211
211
  <vxe-tooltip :content="row[column.property]">
@@ -218,13 +218,6 @@
218
218
  <template v-else-if="item._oldFormatter && item._originalFormatter">
219
219
  <div v-html="item._originalFormatter({ row })"></div>
220
220
  </template>
221
- <!-- 纯对象字段 -->
222
- <template
223
- v-else-if="row[column.property] && typeof row[column.property] === 'object' && row[column.property].name"
224
- >
225
- {{ row[column.property].name }}
226
- </template>
227
- <slot v-else :name="`cell_${item.prop}`" :row="row">{{ row[column.property] }}</slot>
228
221
  </template>
229
222
  </vxe-column>
230
223
  </template>