st-comp 0.0.111 → 0.0.112
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/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +323 -322
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-a506dbba.js → index-a301a9d6.js} +5 -4
- package/lib/{python-f575acc3.js → python-ce6bece2.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +5 -3
package/package.json
CHANGED
|
@@ -154,13 +154,15 @@ const submitDialog = () => {
|
|
|
154
154
|
if (["", null].includes(range[0]) && ["", null].includes(range[1])) {
|
|
155
155
|
return ElMessage.warning("格式错误: 请至少填写一个值");
|
|
156
156
|
}
|
|
157
|
+
const unitLeft = radioType === '1' ? "" : (unit[0] ?? "")
|
|
158
|
+
const unitRight = radioType === '1' ? "" : (unit[1] ?? "")
|
|
157
159
|
// 格式化文案
|
|
158
160
|
if (!["", null].includes(range[0]) && !["", null].includes(range[1])) {
|
|
159
|
-
indicatorValue.value.tagText = `${label}${radioType === '1' ? '排名' : ''}: ${range[0]}${
|
|
161
|
+
indicatorValue.value.tagText = `${label}${radioType === '1' ? '排名' : ''}: ${range[0]}${unitLeft} ~ ${range[1]}${unitRight}`;
|
|
160
162
|
} else if (!["", null].includes(range[0])) {
|
|
161
|
-
indicatorValue.value.tagText = `${label}${radioType === '1' ? '排名' : ''}: ≥${range[0]}${
|
|
163
|
+
indicatorValue.value.tagText = `${label}${radioType === '1' ? '排名' : ''}: ≥${range[0]}${unitLeft}`;
|
|
162
164
|
} else {
|
|
163
|
-
indicatorValue.value.tagText = `${label}${radioType === '1' ? '排名' : ''}: ≤${range[1]}${
|
|
165
|
+
indicatorValue.value.tagText = `${label}${radioType === '1' ? '排名' : ''}: ≤${range[1]}${unitRight}`;
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
168
|
}
|