Explorar o código

fix: 修复面板过滤不生效问题

bill hai 6 horas
pai
achega
9174d1cde7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/hook/use-describe.ts

+ 1 - 0
src/core/hook/use-describe.ts

@@ -22,6 +22,7 @@ export const useInstallStrokeWidthDescribe = (
   watch(
     () => [fixed || options.length > 0, proportion.value] as const,
     ([fixed, proportion]) => {
+      if (!describes.value.strokeWidth) return;
       if (fixed) {
         const property = getFixedStrokeWidthProperty(shape);
         property.props.options = options.map((size) => ({