tdesign-mobile-vue
Version:
tdesign-mobile-vue
20 lines (15 loc) • 453 B
JavaScript
/**
* tdesign v1.9.3
* (c) 2025 TDesign Group
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
function template(str, vars) {
return str.replace(/\${(.*?)}/g, function (_, prop) {
var _vars$prop$trim;
return (_vars$prop$trim = vars[prop.trim()]) !== null && _vars$prop$trim !== void 0 ? _vars$prop$trim : "";
});
}
exports.template = template;
//# sourceMappingURL=stringTemplate.js.map