sone-ui-component-3.2.4 2.1.14 → 2.1.16
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/lib/sone-ui.common.js +42 -40
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +42 -40
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +2 -2
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/form/src/mainNoDrag.vue +4 -3
- package/packages/table/src/main.vue +1 -1
- package/packages/tree/src/main.vue +2 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
ref="sone-form"
|
|
12
12
|
class="sone-form-box"
|
|
13
13
|
:style="{
|
|
14
|
-
height: showCollapse && !isBottomCollapse ?
|
|
14
|
+
height: showCollapse && !isBottomCollapse ? rowHeight * rowHideCount + 4 + 'px' : 'auto',
|
|
15
15
|
'overflow-y': showCollapse && isBottomCollapse ? 'auto' : 'hidden'
|
|
16
16
|
}"
|
|
17
17
|
label-position="top"
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
243
243
|
},
|
|
244
244
|
rowHeight:{ //行高
|
|
245
245
|
type: Number,
|
|
246
|
-
default:
|
|
246
|
+
default: 59
|
|
247
247
|
},
|
|
248
248
|
colNum:{ //定义栅格系统的列数
|
|
249
249
|
type: Number,
|
|
@@ -300,7 +300,7 @@ export default {
|
|
|
300
300
|
rowHideCount: { //隐藏行数
|
|
301
301
|
type: Number,
|
|
302
302
|
default: 3,
|
|
303
|
-
}
|
|
303
|
+
},
|
|
304
304
|
},
|
|
305
305
|
data() {
|
|
306
306
|
return {
|
|
@@ -458,6 +458,7 @@ export default {
|
|
|
458
458
|
* @description 展开折叠事件
|
|
459
459
|
**/
|
|
460
460
|
toggle(){
|
|
461
|
+
this.$refs['sone-form'].$el.scrollTop = 0;
|
|
461
462
|
this.isBottomCollapse = !this.isBottomCollapse;
|
|
462
463
|
this.$emit('toggle', this.isBottomCollapse);
|
|
463
464
|
}
|
|
@@ -357,12 +357,13 @@ export default {
|
|
|
357
357
|
console.log('this.menuHeight---',this.menuHeight );
|
|
358
358
|
console.log('self.$el.offsetTop + this.menuHeight---',self.$el.offsetTop + this.menuHeight);
|
|
359
359
|
if ( this.type != 'handle' ) return
|
|
360
|
+
|
|
360
361
|
let soneTreeWrapHeight = this.$refs.soneTreeWrap.clientHeight
|
|
361
362
|
console.log('soneTreeWrapHeight---',soneTreeWrapHeight);
|
|
362
363
|
|
|
363
364
|
//self.offsetTop + menuHeight >父元素高度 用向上展开的样式
|
|
364
365
|
if(this.menuHeight > 0 && self.$el.offsetTop + this.menuHeight > soneTreeWrapHeight){
|
|
365
|
-
this.$refs.handleMenu.style.top = self.$el.offsetTop - 0 - this.menuHeight + 'px'
|
|
366
|
+
this.$refs.handleMenu.style.top = self.$el.offsetTop - 0 - this.menuHeight/2 + 'px'
|
|
366
367
|
this.$refs.handleMenu.style.right = '5px'
|
|
367
368
|
}else{
|
|
368
369
|
this.$refs.handleMenu.style.top = self.$el.offsetTop - 0 + 25 + 'px'
|