zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
13 lines • 410 B
JavaScript
import { template as _template } from 'lodash-es';
import { CHART_PREFIX } from './constant.js';
export function generateName(name) {
return `${CHART_PREFIX}-${name}`;
}
const TEMPLATE_OPTIONS = {
// eslint-disable-next-line regexp/match-any
interpolate: /{([\S\s]+?)}/g,
};
export function template(str, data) {
return _template(str, TEMPLATE_OPTIONS)(data);
}
//# sourceMappingURL=unit.js.map