first commit

This commit is contained in:
lingxiao865
2026-02-10 08:05:03 +08:00
commit c5af079d8c
1094 changed files with 97530 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { coalesce } from '../common/utils';
export const getTypeof = function (obj) {
return typeof obj;
};
export const getActionClass = function (prefix, buttonLayout, actionItem, tClassAction) {
const cls = [`${prefix}__button`, `${prefix}__button--action`];
if (buttonLayout) {
cls.push(`${prefix}__button--${buttonLayout}`);
}
return `${cls.join(' ')} ${coalesce(actionItem.tClass, tClassAction)}`;
};