| 12345678910111213141516171819202122232425 |
- import globalMixins from "./globalMixins"
- const globals = {
- install: function (Vue, option) {
- // 全局混入
- Vue.mixin(globalMixins);
- // // 全局过滤
- // Object.keys(filters).forEach((key) => {
- // Vue.filter(key, filters[key]);
- // });
- // // 全局指令
- // Object.keys(directives).forEach((key) => {
- // Vue.directive(key, directives[key]);
- // });
- // // 全局属性和方法
- // Object.keys(propertiesAndMethods).forEach((key) => {
- // Vue.prototype[key] = propertiesAndMethods[key];
- // });
- },
- }
- export default globals
|