This commit is contained in:
zhuoda
2020-04-07 22:10:57 +08:00
parent 478b39d61a
commit 8394525697
456 changed files with 5963 additions and 2908 deletions

View File

@@ -22,6 +22,11 @@ import Enum from 'vue-enum';
import enumInfo from '@/constants';
// 处理table操作按钮
import tableAction from './lib/table-action';
//时间
import moment from 'moment';
Vue.prototype.$tableAction = tableAction;
Vue.use(Enum, { enumInfo });
Vue.use(ViewUI, {
@@ -29,11 +34,18 @@ Vue.use(ViewUI, {
});
Vue.use(JsonViewer);
Vue.use(vClickOutside);
Number.prototype.toFixed = function (length) {
let x = new Decimal(this);
return x.toFixed(length);
};
//时间处理
moment.locale('zh-cn'); //设置语言 或 moment.lang('zh-cn');
Vue.prototype.$moment = moment;//赋值使用
/**
* @description 注册admin内置插件
*/