UNPKG

@ray-js/smart-ui

Version:

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

24 lines (23 loc) 761 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* * @Author: mjh * @Date: 2025-05-20 14:47:06 * @LastEditors: mjh * @LastEditTime: 2025-05-20 15:07:58 * @Description: */ 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;