Open boxsnake opened 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.
does this supports es2015? like "import filters in 'vue-filter'" ? Vue.use(filters), and then how to use it in components?
求时间戳转几分钟前几小时前几天前的过滤器
I noticed that in the documentations, there are some flaws which make readers confusing.
In github's documents, it uses
filter(params)
format, while in NPM documents, it usesfilter params
. I tested in Vue 2.x.x, onlyfilter(params)
works. I think the documentation differences will make user confusing.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 useVue.use(VueFilter)
instead.