@@ -20,6 +20,10 @@ defineProps({
20
20
type: String ,
21
21
required: false ,
22
22
},
23
+ valueWidth: {
24
+ type: String ,
25
+ required: false ,
26
+ },
23
27
value: {
24
28
type: [String , Number , Boolean ],
25
29
required: false ,
@@ -88,7 +92,11 @@ const { openTab } = useLinksStore();
88
92
<NFlex
89
93
class =" detail"
90
94
:class =" { grow, array, disabled, vertical }"
91
- :style =" { '--prefix-min-width': labelWidth, '--text-flex': flex }"
95
+ :style =" {
96
+ '--prefix-min-width': labelWidth,
97
+ '--text-flex': flex,
98
+ '--value-min-width': valueWidth,
99
+ }"
92
100
:align =" align"
93
101
:wrap =" wrap"
94
102
:vertical =" vertical"
@@ -131,7 +139,7 @@ const { openTab } = useLinksStore();
131
139
<style lang="scss" scoped>
132
140
.prefix {
133
141
flex : 0 0 auto ;
134
- align-self : center ;
142
+ align-self : baseline ;
135
143
min-width : var (--prefix-min-width , 4rem );
136
144
color : var (--white-50 );
137
145
font-weight : 600 ;
@@ -141,7 +149,7 @@ const { openTab } = useLinksStore();
141
149
.value {
142
150
flex : 1 1 auto ;
143
151
align-self : center ;
144
- min-width : max-content ;
152
+ min-width : var ( --value-min-width , max-content ) ;
145
153
}
146
154
147
155
.disabled {
@@ -153,12 +161,13 @@ const { openTab } = useLinksStore();
153
161
.detail {
154
162
flex : var (--text-flex );
155
163
align-items : baseline ;
156
- min-width : max-content ;
164
+ min-width : var ( --value-min-width , max-content ) ;
157
165
158
166
& .vertical {
159
167
width : 100% ;
160
168
161
169
.prefix {
170
+ align-self : center ;
162
171
min-width : var (--prefix-min-width , max-content );
163
172
}
164
173
}
@@ -176,7 +185,7 @@ const { openTab } = useLinksStore();
176
185
& .array {
177
186
flex : 1 1 auto ;
178
187
width : 100% ;
179
- min-width : fit-content ;
188
+ min-width : var ( --value-min-width , fit-content ) ;
180
189
181
190
.prefix {
182
191
align-self : baseline ;
0 commit comments