This commit is contained in:
zhuoda
2020-04-08 20:37:51 +08:00
parent b9e0e5c004
commit 0454869921
455 changed files with 5251 additions and 2520 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内置插件
*/