فهرست منبع

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(
   watch(
     () => [fixed || options.length > 0, proportion.value] as const,
     () => [fixed || options.length > 0, proportion.value] as const,
     ([fixed, proportion]) => {
     ([fixed, proportion]) => {
+      if (!describes.value.strokeWidth) return;
       if (fixed) {
       if (fixed) {
         const property = getFixedStrokeWidthProperty(shape);
         const property = getFixedStrokeWidthProperty(shape);
         property.props.options = options.map((size) => ({
         property.props.options = options.map((size) => ({