doway-coms 2.10.56 → 2.10.57
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,9 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :style="computedformStyle">
|
|
3
|
-
|
|
2
|
+
<div :style="computedformStyle" class="form-container">
|
|
3
|
+
<a-button
|
|
4
|
+
class="collapse-btn"
|
|
5
|
+
type="link"
|
|
6
|
+
@click="hiddenDetail = !hiddenDetail"
|
|
7
|
+
>
|
|
8
|
+
<a-icon :type="hiddenDetail ? 'down' : 'up'" class="collapse-icon" />
|
|
9
|
+
<!-- {{ hiddenDetail ? '展开' : '收起' }} -->
|
|
10
|
+
</a-button>
|
|
4
11
|
<div
|
|
5
12
|
:style="getFieldStyle(col)"
|
|
6
|
-
v-for="col in internalComputedHiddenCols"
|
|
13
|
+
v-for="(col,colIndex) in internalComputedHiddenCols"
|
|
7
14
|
:key="col.field"
|
|
8
15
|
v-show="hiddenDetail ? colIndex === 0 : true"
|
|
9
16
|
>
|
|
@@ -319,7 +326,7 @@
|
|
|
319
326
|
/>
|
|
320
327
|
</div>
|
|
321
328
|
<template v-if="layoutType==='default'">
|
|
322
|
-
|
|
329
|
+
<div class="d-form-item-ghost"></div>
|
|
323
330
|
<div class="d-form-item-ghost"></div>
|
|
324
331
|
<div class="d-form-item-ghost"></div>
|
|
325
332
|
<div class="d-form-item-ghost"></div>
|
|
@@ -435,7 +442,7 @@ export default {
|
|
|
435
442
|
display: 'flex',
|
|
436
443
|
flexFlow: 'row wrap',
|
|
437
444
|
justifyContent: 'flex-start',
|
|
438
|
-
padding: '
|
|
445
|
+
padding: '5px 5px 0px 5px',
|
|
439
446
|
overflowY: 'auto'
|
|
440
447
|
}
|
|
441
448
|
|
|
@@ -585,7 +592,7 @@ export default {
|
|
|
585
592
|
methods: {
|
|
586
593
|
getFieldStyle(colInfo){
|
|
587
594
|
let fieldStyle ={
|
|
588
|
-
width: colInfo.colSpan ? ('calc('+colInfo.colSpan*
|
|
595
|
+
width: colInfo.colSpan ? ('calc('+colInfo.colSpan*250+'px + '+(colInfo.colSpan-1)*16+'px)'): '250px',
|
|
589
596
|
flex: (colInfo.colSpan ? colInfo.colSpan+' 1 auto' : null),
|
|
590
597
|
flexGrow: '1',
|
|
591
598
|
flexShrink: '1',
|
|
@@ -594,7 +601,7 @@ export default {
|
|
|
594
601
|
marginRight: '8px',
|
|
595
602
|
marginBottom: '0px',
|
|
596
603
|
marginLeft: '8px',
|
|
597
|
-
padding: '
|
|
604
|
+
padding: '2px 8px 2px 8px',
|
|
598
605
|
minWidth: '150px',
|
|
599
606
|
borderRadius: '6px'
|
|
600
607
|
}
|
|
@@ -750,6 +757,9 @@ export default {
|
|
|
750
757
|
</script>
|
|
751
758
|
|
|
752
759
|
<style lang="less" scoped>
|
|
760
|
+
.form-container{
|
|
761
|
+
position: relative
|
|
762
|
+
}
|
|
753
763
|
.d-form-item-ghost{
|
|
754
764
|
visibility: hidden;
|
|
755
765
|
height: 0;
|
|
@@ -820,6 +830,25 @@ export default {
|
|
|
820
830
|
.form {
|
|
821
831
|
margin-left: 30px;
|
|
822
832
|
}
|
|
833
|
+
|
|
834
|
+
.collapse-btn {
|
|
835
|
+
position: absolute;
|
|
836
|
+
top: 0px;
|
|
837
|
+
right: 0px;
|
|
838
|
+
padding: 4px 8px;
|
|
839
|
+
z-index: 1000;
|
|
840
|
+
background-color: #fff; // 添加背景色使按钮更突出
|
|
841
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); // 添加阴影效果
|
|
842
|
+
border-radius: 4px;
|
|
843
|
+
.collapse-icon {
|
|
844
|
+
transition: transform 0.3s;
|
|
845
|
+
}
|
|
846
|
+
&:hover {
|
|
847
|
+
background-color: #f0f0f0;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
|
|
823
852
|
</style>
|
|
824
853
|
<style lang="less">
|
|
825
854
|
@import '../../styles/default.less';
|