wy-ei / vue-filter

:v: A collection of Vue.js filter. [Depressed]
MIT License
353 stars 40 forks source link

Documentation flaws which make readers confusing #13

Open boxsnake opened 7 years ago

boxsnake commented 7 years ago

I noticed that in the documentations, there are some flaws which make readers confusing.

  1. In github's documents, it uses filter(params) format, while in NPM documents, it uses filter params. I tested in Vue 2.x.x, only filter(params) works. I think the documentation differences will make user confusing.

  2. In both Github and Npm documents, it says Vue.install(VueFilter) to manually install this filter bundle. However, when I tested in Vue 2.x.x, install is not a valid function of Vue, users should use Vue.use(VueFilter) instead.

wy-ei commented 7 years ago

@boxsnake I update README last time, but I don't publish it on NPM, so there are some difference. thanks for you remind, I will publish the change to NPM soon.

ee07b577 commented 7 years ago

does this supports es2015? like "import filters in 'vue-filter'" ? Vue.use(filters), and then how to use it in components?

jackie-cheng commented 7 years ago

求时间戳转几分钟前几小时前几天前的过滤器