瀏覽代碼

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

bill 6 小時之前
父節點
當前提交
9174d1cde7
共有 1 個文件被更改,包括 1 次插入0 次删除
  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) => ({