@ddwl/ddwl-ui 1.0.22 → 1.0.24

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [1.0.24](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.23...v1.0.24) (2025-07-29)
2
+
3
+
4
+
5
+ ## [1.0.23](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.22...v1.0.23) (2025-07-29)
6
+
7
+
8
+ ### Features
9
+
10
+ * d-description新增border false ([4320737](https://121.40.23.60:51888/frontend/ddwl-ui/commits/4320737b9a6650c5eca86b4d24067fad0e99d464))
11
+
12
+
13
+
1
14
  ## [1.0.22](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.21...v1.0.22) (2025-07-22)
2
15
 
3
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddwl/ddwl-ui",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "private": false,
5
5
  "main": "src/main.js",
6
6
  "description": "ddwl组件库",
@@ -2,16 +2,21 @@
2
2
  <!-- 描述列表 -->
3
3
  <template>
4
4
  <el-descriptions
5
- class="d-descriptions"
6
- :border="true"
5
+ :class="{
6
+ 'd-descriptions': true,
7
+ 'border': border
8
+ }"
9
+ :border="border"
10
+ :label-style="{
11
+ width: labelWidth,
12
+ ...labelStyle
13
+ }"
7
14
  v-bind="$attrs"
8
- v-on="$listeners"
9
15
  >
10
16
  <el-descriptions-item
11
17
  v-for="item in config"
12
18
  :key="item.prop"
13
19
  v-bind="item"
14
- v-on="$listeners"
15
20
  >
16
21
  <template slot="label">
17
22
  <item-render v-if="item.labelRender" :scope="data" :render="item.labelRender" />
@@ -46,6 +51,18 @@ export default {
46
51
  config: {
47
52
  default: () => [],
48
53
  type: Array
54
+ },
55
+ border: {
56
+ default: true,
57
+ type: Boolean
58
+ },
59
+ labelWidth: {
60
+ default: '112px',
61
+ type: String
62
+ },
63
+ labelStyle: {
64
+ default: () => ({}),
65
+ type: Object
49
66
  }
50
67
  },
51
68
  data () {
@@ -60,24 +77,48 @@ export default {
60
77
 
61
78
  <style lang='scss' scoped>
62
79
  .d-descriptions {
63
- :deep(.el-descriptions__table.is-bordered) {
64
- width: 100%;
65
- table-layout: fixed;
66
- border-collapse: collapse;
67
- }
68
- :deep(.el-descriptions-item__cell) {
69
- padding: 12px;
70
- color: #333;
71
- border: 1px solid #ebeef5;
72
- vertical-align: middle;
80
+ :deep(.el-descriptions__body) {
81
+ .el-descriptions__header {
82
+ margin-bottom: 12px;
83
+ }
84
+ .el-descriptions-item__container {
85
+ display: flex;
86
+ }
87
+ .el-descriptions-item__label {
88
+ display: block;
89
+ width: 112px;
90
+ text-align: right;
91
+ color: #333;
92
+ }
93
+ .el-descriptions-item__cell {
94
+ padding: 6px 0;
95
+ color: #333;
96
+ vertical-align: middle;
97
+ }
98
+ .el-descriptions-item__content {
99
+ color: #666;
100
+ }
73
101
  }
74
- :deep(.el-descriptions-item__cell.el-descriptions-item__label.is-bordered-label) {
75
- width: 112px;
76
- text-align: right;
77
- padding-left: 14px;
78
- background: #f7f7f7;
79
- color: #666;
80
- vertical-align: middle;
102
+ }
103
+ .d-descriptions.border {
104
+ :deep(.el-descriptions__body) {
105
+ .el-descriptions__table.is-bordered {
106
+ width: 100%;
107
+ table-layout: fixed;
108
+ border-collapse: collapse;
109
+ }
110
+ .el-descriptions-item__cell {
111
+ padding: 12px;
112
+ color: #333;
113
+ border: 1px solid #ebeef5;
114
+ vertical-align: middle;
115
+ padding-left: 14px;
116
+ }
117
+ .el-descriptions-item__cell.el-descriptions-item__label.is-bordered-label {
118
+ display: table-cell;
119
+ vertical-align: middle;
120
+ font-weight: normal;
121
+ }
81
122
  }
82
123
  }
83
124
  </style>