浏览代码

DatePicker: fix function name typo (#21663)

Allen 3 年之前
父节点
当前提交
f109628ad1
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      packages/date-picker/src/basic/time-spinner.vue

+ 4 - 4
packages/date-picker/src/basic/time-spinner.vue

@@ -218,16 +218,16 @@
       },
 
       bindScrollEvent() {
-        const bindFuntion = (type) => {
+        const bindFunction = (type) => {
           this.$refs[type].wrap.onscroll = (e) => {
             // TODO: scroll is emitted when set scrollTop programatically
             // should find better solutions in the future!
             this.handleScroll(type, e);
           };
         };
-        bindFuntion('hours');
-        bindFuntion('minutes');
-        bindFuntion('seconds');
+        bindFunction('hours');
+        bindFunction('minutes');
+        bindFunction('seconds');
       },
 
       handleScroll(type) {