sone-ui-component-3.2.4 2.0.273 → 2.0.275

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": "sone-ui-component-3.2.4",
3
- "version": "2.0.273",
3
+ "version": "2.0.275",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -365,7 +365,7 @@
365
365
  </el-table-column>
366
366
  <!-- 序号+复选 -->
367
367
  <el-table-column
368
- :width="option.indexCheckWidth"
368
+ :width="option.indexCheckWidth||70"
369
369
  fixed
370
370
  :label="option.indexLabel ? option.indexLabel : '序号'"
371
371
  type="index"
@@ -467,7 +467,6 @@
467
467
  :align="column.hasOwnProperty('align') ? column.align : 'left'"
468
468
  filter-placement="bottom-end"
469
469
  :header-align="column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left'"
470
- :show-overflow-tooltip="column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false"
471
470
  v-else-if="column.hasOwnProperty('istrue')?column.istrue:true"
472
471
  :column-key="column.hasOwnProperty('elementId')? column.elementId:column.prop"
473
472
  :resizable="column.hasOwnProperty('resizable') ? column.resizable : true"
@@ -486,7 +485,6 @@
486
485
  :align="childColumn.hasOwnProperty('align') ? childColumn.align : 'left'"
487
486
  filter-placement="bottom-end"
488
487
  :header-align="childColumn.hasOwnProperty('headerAlign') ? childColumn.headerAlign : 'left'"
489
- :show-overflow-tooltip="childColumn.hasOwnProperty('showOverflowTooltip') ? childColumn.showOverflowTooltip : false"
490
488
  v-if="childColumn.hasOwnProperty('istrue')?childColumn.istrue:true"
491
489
  :column-key="childColumn.prop"
492
490
  :resizable="childColumn.hasOwnProperty('resizable') ? childColumn.resizable : true"
@@ -545,7 +543,11 @@
545
543
  :row="scope.row"
546
544
  v-if="childColumn.slotCell"
547
545
  ></slot>
548
- <template v-else>{{ scope.row[childColumn.prop] }}</template>
546
+ <template v-else>
547
+ <el-tooltip :content="scope.row[childColumn.prop]" placement="top" effect="light" popper-class="over_popper">
548
+ <span class="over_title">{{ scope.row[childColumn.prop] }}</span>
549
+ </el-tooltip>
550
+ </template>
549
551
  </template>
550
552
  </el-table-column>
551
553
  </template>
@@ -608,7 +610,11 @@
608
610
  :row="scope.row"
609
611
  v-if="column.slotCell"
610
612
  ></slot>
611
- <template v-else>{{ scope.row[column.prop] }}</template>
613
+ <template v-else>
614
+ <el-tooltip :content="scope.row[column.prop]" placement="top" effect="light" popper-class="over_popper">
615
+ <span class="over_title">{{ scope.row[column.prop] }}</span>
616
+ </el-tooltip>
617
+ </template>
612
618
  </template>
613
619
  </el-table-column>
614
620
  </template>
@@ -693,7 +699,7 @@ import IconButton from "sone-ui-component/packages/IconButton/index.vue";
693
699
  default: () => {
694
700
  return {
695
701
  index: true,
696
- indexWidth: 50,
702
+ indexWidth: 70,
697
703
  height: 'auto',
698
704
  maxHeight: 'auto',
699
705
 
@@ -2,8 +2,8 @@
2
2
  * @Description:
3
3
  * @Author: songlin
4
4
  * @Date: 2021-09-14 14:33:47
5
- * @LastEditTime: 2023-03-30 09:37:43
6
- * @LastEditors: renhai🤣🤣
5
+ * @LastEditTime: 2024-06-04 18:01:41
6
+ * @LastEditors: lw
7
7
  */
8
8
  import Vue from 'vue';
9
9
 
@@ -23,7 +23,7 @@ function createSVG(text = "", singal) {
23
23
  max-width: 160px;
24
24
  padding: 6px;
25
25
  border: 3px solid #FF6B61;
26
- opacity: .2;
26
+ opacity: 0.5;
27
27
  border-radius: 10px;
28
28
  color: #FF6B61;
29
29
  font-size: ${sFontsize};
package/src/index.js CHANGED
@@ -55,7 +55,7 @@ if (typeof window !== 'undefined' && window.Vue) {
55
55
  }
56
56
 
57
57
  export default {
58
- version: '2.0.273',
58
+ version: '2.0.275',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,
@@ -314,3 +314,15 @@
314
314
  height:auto;
315
315
  }
316
316
  }
317
+
318
+
319
+ // 调整表格超出样式
320
+ .over_title{
321
+ overflow: hidden;
322
+ white-space: nowrap;
323
+ text-overflow: ellipsis;
324
+ }
325
+
326
+ .over_popper{
327
+ max-width:150px;
328
+ }
@@ -61,7 +61,7 @@
61
61
  background: #ffffff;
62
62
  position: absolute;
63
63
  right: 10px;top:20px;
64
- z-index: 2001;
64
+ z-index: 120;
65
65
  div{
66
66
  min-height: 30px;
67
67
  line-height:30px;
@@ -182,10 +182,10 @@
182
182
  height: 26px;
183
183
  position: absolute;
184
184
  left: 0;
185
- z-index: 1999;
185
+ z-index: 100;
186
186
  }
187
187
  .sone-tree-wrap .el-tree-node__content > .el-tree-node__expand-icon {
188
- z-index: 2000;
188
+ z-index: 101;
189
189
  }
190
190
 
191
191
  .sone-components-tree-more-btn-color{