Commit 927bd1b8 authored by leon's avatar leon

feat:change Function file name

parent a829b9d0
......@@ -6,9 +6,9 @@ const install = (Vue, vm) => {
/**
* 数据转换
*/
const converFunction = (func, data) => {
const converFunction = (func, data, filter = {}) => {
if (!func) return
return new Function('"use strict";return (' + func + ')')()(data);
return new Function('"use strict";return (' + func + ')')()(data, filter);
}
/**
......
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