sone-ui-component-3.2.4 2.0.281 → 2.1.2

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.281",
3
+ "version": "2.1.2",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -322,7 +322,7 @@
322
322
  </el-table-column>
323
323
  <!--只显示序号-->
324
324
  <el-table-column
325
- :width="option.indexWidth"
325
+ :width="option.indexWidth||70"
326
326
  fixed
327
327
  :label="option.indexLabel ? option.indexLabel : '序号'"
328
328
  type="index"
@@ -332,7 +332,7 @@
332
332
  ></el-table-column>
333
333
  <!-- 序号+单选 -->
334
334
  <el-table-column
335
- :width="option.indexRadioWidth"
335
+ :width="option.indexRadioWidth||70"
336
336
  fixed
337
337
  :label="option.indexLabel ? option.indexLabel : '序号'"
338
338
  type="index"
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.281',
58
+ version: '2.1.2',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,
@@ -1,16 +1,11 @@
1
1
  .sone-tree{
2
2
  display: flex;
3
3
  height: 100%;
4
- // height: 600px;
5
- // width: 200px;
6
4
  .tree-wrap{
7
5
  width: 100%;
8
- // max-width: 200px;
9
- // min-height: 697px;
10
6
  height: 100%;
11
7
  box-sizing: border-box;
12
8
  padding: 0 10px;
13
- // position: relative;
14
9
  .sone-tree-title{
15
10
  height: 30px;
16
11
  width: 100%;
@@ -32,13 +27,11 @@
32
27
  .sone-tree-wrap{
33
28
  width: 100%;
34
29
  height: 90%;
35
- // height: calc(100% - 30px);
36
30
  margin-top: 10px;
37
31
  overflow: auto;
38
32
  box-sizing: border-box;
39
33
  padding-right: 10px;
40
34
  position: relative;
41
- // border: 1px solid #f00;
42
35
  }
43
36
  .sone-tree-wrap::-webkit-scrollbar {
44
37
  width: 6px;
@@ -51,10 +44,8 @@
51
44
  border-radius: 4px;
52
45
  }
53
46
  .sone-tree-components-handleMenu{
54
- // min-width: 130px;
55
47
  width: 130px;
56
48
  box-sizing: border-box;
57
- // padding: 4px 0;
58
49
  font-size: 12px;
59
50
  border: 1px solid #f6f6f6;
60
51
  box-shadow: 0 2px 4px #ccc;
@@ -66,7 +57,6 @@
66
57
  min-height: 30px;
67
58
  line-height:30px;
68
59
  cursor: pointer;
69
- // margin: 4px 0;
70
60
  color: #666;
71
61
  }
72
62
  div:hover{
@@ -94,7 +84,6 @@
94
84
  border: 6px solid transparent;
95
85
  position: absolute;
96
86
  top: 50%;
97
- // background: #019bee;
98
87
  }
99
88
  }
100
89
  }
@@ -123,18 +112,15 @@
123
112
  margin: 0;
124
113
  padding: 0;
125
114
  margin-top: 0 !important;
126
- // top: 25px !important;
127
115
  .popper__arrow{
128
116
  display: none;
129
117
  }
130
118
  .tree-box{
131
119
  box-sizing: border-box;
132
- // padding: 4px 0;
133
120
  div{
134
121
  min-height: 30px;
135
122
  line-height:30px;
136
123
  cursor: pointer;
137
- // margin: 4px 0;
138
124
  }
139
125
  div:hover{
140
126
  background: #fafafa;
@@ -145,7 +131,6 @@
145
131
  }
146
132
  }
147
133
  .sone-components-tree-more-btn{
148
- // display: none;
149
134
  position: absolute;
150
135
  width: 26px !important;
151
136
  min-width: auto !important;
@@ -164,11 +149,9 @@
164
149
  }
165
150
  }
166
151
  .el-tree-node__content:hover .sone-components-tree-more-btn{
167
- // display: block;
168
152
  display: flex;
169
153
  justify-content: center;
170
154
  align-items: center;
171
- // background: #c0bebe;
172
155
  }
173
156
  .sone-components-tree-more-btn .el-button:hover{
174
157
  background: #ebebeb;