2024-12-01 11:56:54 +00:00
|
|
|
var getLineWidthFlex = function getLineWidthFlex(textPosition, text) {
|
2024-11-10 07:01:22 +00:00
|
|
|
if (!text) {
|
|
|
|
return [1, 0];
|
|
|
|
}
|
|
|
|
if (textPosition === 'left') {
|
|
|
|
return [1, 5];
|
|
|
|
}
|
|
|
|
if (textPosition === 'right') {
|
|
|
|
return [5, 1];
|
|
|
|
}
|
|
|
|
return [1, 1];
|
2024-12-01 11:56:54 +00:00
|
|
|
};
|
2024-11-10 07:01:22 +00:00
|
|
|
export default {
|
2024-12-01 11:56:54 +00:00
|
|
|
getLineWidthFlex: getLineWidthFlex
|
|
|
|
};
|