MCPcopy
hub / github.com/jeecgboot/JeecgBoot / getClassName

Function getClassName

jeecgboot-vue3/src/components/jeecg/JVxeTable/utils.ts:61–66  ·  view source on GitHub ↗
(cls: string)

Source from the content-addressed store, hash-verified

59 let classList = className.split(' ');
60 if (classList.length > 0) {
61 const getClassName = (cls: string) => {
62 if (cls.startsWith('.')) {
63 return cls.substring(1, cls.length);
64 }
65 return cls;
66 };
67 let get = (target, className, idx = 0) => {
68 let elements = target.getElementsByClassName(getClassName(className));
69 if (elements && elements.length > 0) {

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected