MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / getFileCssName

Function getFileCssName

packages/renderer-core/src/utils/common.ts:80–89  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

78 * @returns string
79 */
80export function getFileCssName(fileName: string) {
81 if (!fileName) {
82 return;
83 }
84 const name = fileName.replace(/([A-Z])/g, '-$1').toLowerCase();
85 return (`lce-${name}`)
86 .split('-')
87 .filter((p) => !!p)
88 .join('-');
89}
90
91/**
92 * check if a object is type of JSSlot

Callers 3

__renderCompMethod · 0.90
__renderContentMethod · 0.90
common.test.tsFile · 0.90

Calls 2

replaceMethod · 0.80
filterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…