Sfoglia il codice sorgente

fix(dropdown): add missing function

添加Dropdown组件缺失的函数
无木 3 anni fa
parent
commit
a82a69d00d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/components/Dropdown/src/Dropdown.vue

+ 2 - 0
src/components/Dropdown/src/Dropdown.vue

@@ -91,4 +91,6 @@
       return originAttrs;
     };
   });
+
+  const getAttr = (key: string | number) => ({ key });
 </script>