mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
fix(tpl): registerTplEnginer拼写问题
This commit is contained in:
parent
ca06a1d8e5
commit
e24434778f
@ -17,7 +17,7 @@ import {
|
|||||||
import { wrapFetcher, buildApi } from './utils/api';
|
import { wrapFetcher, buildApi } from './utils/api';
|
||||||
import {
|
import {
|
||||||
filter,
|
filter,
|
||||||
reigsterTplEnginer,
|
registerTplEnginer,
|
||||||
evalExpression,
|
evalExpression,
|
||||||
evalJS,
|
evalJS,
|
||||||
setCustomEvalJs,
|
setCustomEvalJs,
|
||||||
@ -192,7 +192,7 @@ export {
|
|||||||
utils,
|
utils,
|
||||||
resizeSensor,
|
resizeSensor,
|
||||||
registerFilter,
|
registerFilter,
|
||||||
reigsterTplEnginer,
|
registerTplEnginer,
|
||||||
evalExpression,
|
evalExpression,
|
||||||
evalJS,
|
evalJS,
|
||||||
setCustomEvalJs,
|
setCustomEvalJs,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {reigsterTplEnginer, filter, Enginer} from './tpl';
|
import { registerTplEnginer, filter, Enginer } from './tpl';
|
||||||
import template from 'lodash/template';
|
import template from 'lodash/template';
|
||||||
import { getFilters } from './tpl-builtin';
|
import { getFilters } from './tpl-builtin';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
@ -11,7 +11,7 @@ const enginers: {
|
|||||||
[propName: string]: Enginer;
|
[propName: string]: Enginer;
|
||||||
} = {};
|
} = {};
|
||||||
|
|
||||||
export function reigsterTplEnginer(name: string, enginer: Enginer) {
|
export function registerTplEnginer(name: string, enginer: Enginer) {
|
||||||
enginers[name] = enginer;
|
enginers[name] = enginer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ export function evalJS(js: string, data: object): any {
|
|||||||
[registerBulitin, registerLodash].forEach(fn => {
|
[registerBulitin, registerLodash].forEach(fn => {
|
||||||
const info = fn();
|
const info = fn();
|
||||||
|
|
||||||
reigsterTplEnginer(info.name, {
|
registerTplEnginer(info.name, {
|
||||||
test: info.test,
|
test: info.test,
|
||||||
compile: info.compile
|
compile: info.compile
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user