Files
kiss-translator/src/libs/fabManager.js

19 lines
463 B
JavaScript
Raw Normal View History

2025-10-21 02:07:33 +08:00
import ShadowDomManager from "./shadowDomManager";
import { APP_CONSTS } from "../config";
import ContentFab from "../views/Action/ContentFab";
export class FabManager extends ShadowDomManager {
2025-10-30 22:01:08 +08:00
constructor({ processActions, fabConfig }) {
2025-10-21 02:07:33 +08:00
super({
id: APP_CONSTS.fabID,
className: "notranslate",
reactComponent: ContentFab,
2025-10-30 22:01:08 +08:00
props: { processActions, fabConfig },
2025-10-21 02:07:33 +08:00
});
2025-10-22 01:50:49 +08:00
if (!fabConfig?.isHide) {
this.show();
}
2025-10-21 02:07:33 +08:00
}
}