Merge remote-tracking branch 'baidu/master'

This commit is contained in:
2betop 2020-09-03 15:11:51 +08:00
commit d188f9f8eb
3 changed files with 19 additions and 19 deletions

View File

@ -17,7 +17,7 @@ import {
import { wrapFetcher, buildApi } from './utils/api';
import {
filter,
reigsterTplEnginer,
registerTplEnginer,
evalExpression,
evalJS,
setCustomEvalJs,
@ -192,7 +192,7 @@ export {
utils,
resizeSensor,
registerFilter,
reigsterTplEnginer,
registerTplEnginer,
evalExpression,
evalJS,
setCustomEvalJs,

View File

@ -1,4 +1,4 @@
import {reigsterTplEnginer, filter, Enginer} from './tpl';
import { registerTplEnginer, filter, Enginer } from './tpl';
import template from 'lodash/template';
import { getFilters } from './tpl-builtin';
import React from 'react';

View File

@ -11,7 +11,7 @@ const enginers: {
[propName: string]: Enginer;
} = {};
export function reigsterTplEnginer(name: string, enginer: Enginer) {
export function registerTplEnginer(name: string, enginer: Enginer) {
enginers[name] = enginer;
}
@ -105,7 +105,7 @@ export function evalJS(js: string, data: object): any {
[registerBulitin, registerLodash].forEach(fn => {
const info = fn();
reigsterTplEnginer(info.name, {
registerTplEnginer(info.name, {
test: info.test,
compile: info.compile
});