- {autoDimensionValues
- ? "留空时会优先使用商品尺寸信息自动显示 CM;手动时只输入数值即可。"
- : "当前没有拿到商品尺寸信息,请直接输入数值,系统会自动补 CM。"}
+
+
+
+
+
+ 尺寸文字
+
+
+ {autoDimensionValues
+ ? "留空时会优先使用商品尺寸信息自动显示 CM;手动时只输入数值即可。"
+ : "当前没有拿到商品尺寸信息,请直接输入数值,系统会自动补 CM。"}
+
+
+ {getDimensionLabel({
+ annotation: selectedAnnotation,
+ annotations,
+ autoDimensionValues,
+ }) ? (
+
+ 建议值{" "}
+ {getDimensionLabel({
+ annotation: selectedAnnotation,
+ annotations,
+ autoDimensionValues,
+ })}
+
+ ) : null}
+
+
+
+ setAnnotations((current) =>
+ current.map((annotation) =>
+ annotation.id === selectedAnnotation.id
+ ? {
+ ...annotation,
+ label: normalizeDimensionInput(
+ event.target.value
+ ),
+ }
+ : annotation
+ )
+ )
+ }
+ placeholder={LABEL_PLACEHOLDER}
+ value={normalizeDimensionInput(selectedAnnotation.label)}
+ />
+
+ {DIMENSION_UNIT}
+
+
+
+
+
+
+
+
+ 线条样式
+
+
+ 可为当前尺寸线设置颜色,并控制是否开启外发光。
+
+
+
+ 外发光
+
+ setAnnotations((current) =>
+ current.map((annotation) =>
+ annotation.id === selectedAnnotation.id
+ ? { ...annotation, glow: checked }
+ : annotation
+ )
+ )
+ }
+ />
- {getDimensionLabel({
- annotation: selectedAnnotation,
- annotations,
- autoDimensionValues,
- }) ? (
-
- 建议值{" "}
- {getDimensionLabel({
- annotation: selectedAnnotation,
- annotations,
- autoDimensionValues,
- })}
-
- ) : null}
-
-
+ 当前已有尺寸线,正在为你自动保留最近一条为选中状态。
+ 如果样式面板没刷新,点一下对应尺寸线即可继续编辑。
+