Commit 75ca4cc3 authored by leon's avatar leon

feat: remove eval

parent 4eeb712e
This source diff could not be displayed because it is too large. You can view the blob instead.
import { Function } from '../static/plugin/eval5/eval5.js' // import { Function } from '../static/plugin/eval5/eval5.js'
const install = (Vue, vm) => { const install = (Vue, vm) => {
/** /**
* 数据转换 * 数据转换
*/ */
const converFunction = (func, data) => { // const converFunction = (func, data) => {
if(!func) return // if(!func) return
return new Function('"use strict";return (' + func + ')')()(data); // return new Function('"use strict";return (' + func + ')')()(data);
} // }
/** /**
* 补足数字位数 * 补足数字位数
...@@ -100,7 +100,7 @@ const install = (Vue, vm) => { ...@@ -100,7 +100,7 @@ const install = (Vue, vm) => {
} }
vm.$u.common = { vm.$u.common = {
converFunction, // converFunction,
fillDigit, fillDigit,
toThousands, toThousands,
dateFormat, dateFormat,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment