n20-common-lib 2.7.45 → 2.7.46
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
|
@@ -250,7 +250,7 @@ export default {
|
|
|
250
250
|
const calcSelectWidth = (item, value) => {
|
|
251
251
|
let textMaxWidth = 426 - getWidth(item.label) - 16
|
|
252
252
|
let textMinWidth = 76
|
|
253
|
-
const multiple = item.props?.multiple || false
|
|
253
|
+
const multiple = item.props?.multiple || item?.multiple || false
|
|
254
254
|
if (!multiple) {
|
|
255
255
|
if (!value) {
|
|
256
256
|
return textMinWidth + 'px'
|
|
@@ -279,12 +279,13 @@ export default {
|
|
|
279
279
|
item.props?.valueKey || 'value',
|
|
280
280
|
item.props?.labelKey || 'label'
|
|
281
281
|
)
|
|
282
|
+
console.log(selectedName)
|
|
282
283
|
if (value?.length > 1) {
|
|
283
284
|
return getWidth(selectedName) + 32 > textMaxWidth
|
|
284
285
|
? textMaxWidth + 'px'
|
|
285
|
-
: getWidth(selectedName) +
|
|
286
|
+
: getWidth(selectedName) + 32 + 'px'
|
|
286
287
|
} else {
|
|
287
|
-
return getWidth(selectedName) + 32 < textMinWidth ? textMinWidth + 'px' : getWidth(selectedName) +
|
|
288
|
+
return getWidth(selectedName) + 32 < textMinWidth ? textMinWidth + 'px' : getWidth(selectedName) + 48 + 'px'
|
|
288
289
|
}
|
|
289
290
|
}
|
|
290
291
|
}
|