mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-21 09:56:54 +08:00
v1.1.0
This commit is contained in:
@@ -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内置插件
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user