vue-auto-register
- 自动注册某一文件夹下的.vue为全局组件
install
$ npm i -S vue-auto-register
start
component
// @/componsts/**/Map.vue => <DtMap/>Vue // @/componsts/**/Map.vue => <MyMap/>Vue
filter
// @fun f1 => {{ msg | f1 }}Vue // @fun f1 => {{ msg | f_f1 }}Vue
@/path/to/filters.js
export const ft1 = v => 1
export const ft2 = v => 2