Explorar o código

fix(dropdown): add missing function

添加Dropdown组件缺失的函数
无木 %!s(int64=3) %!d(string=hai) anos
pai
achega
a82a69d00d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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>