UNPKG

@ray-js/smart-ui

Version:

轻量、可靠的智能小程序 UI 组件库

17 lines (16 loc) 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function kebabCase(srt) { var t = srt.replace(/[A-Z]/g, function (match) { return "-".concat(match.toLowerCase()); }); if (t[0] === '-') { return t.slice(1); } return t; } var SmartUIAutoImport = { libraryName: '@ray-js/smart-ui', format: function (localName, importedName) { return "import { ".concat(importedName !== localName ? "".concat(importedName, " as ").concat(localName) : localName, " } from \"@ray-js/smart-ui/es/").concat(kebabCase(importedName), "\";"); }, }; exports.default = SmartUIAutoImport;