|
@@ -1,14 +1,16 @@
|
|
|
import { useEditor } from "@/modules/editor";
|
|
|
import { defineUI } from "queenjs";
|
|
|
import { TipIcons } from "../../TipIcons";
|
|
|
+import { Dropdown } from "ant-design-vue";
|
|
|
import { css } from "@linaria/core";
|
|
|
import { useLauncher } from "@/modules/launcher";
|
|
|
-
|
|
|
+import AiText from "./AiText";
|
|
|
export default defineUI({
|
|
|
setup() {
|
|
|
const { actions, controls } = useEditor();
|
|
|
const launcher = useLauncher();
|
|
|
const { history } = controls.historyCtrl;
|
|
|
+
|
|
|
return () => (
|
|
|
<>
|
|
|
<div class="absolute top-20px left-20px space-x-10px z-999">
|
|
@@ -24,12 +26,13 @@ export default defineUI({
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="absolute top-20px right-20px space-x-10px z-999">
|
|
|
- <TipIcons.AiText
|
|
|
- class={btnCls}
|
|
|
- onClick={() => {
|
|
|
- console.log(1);
|
|
|
- }}
|
|
|
- />
|
|
|
+ {/* <Dropdown
|
|
|
+ overlay={<AiText />}
|
|
|
+ placement="bottomRight"
|
|
|
+ trigger="click"
|
|
|
+ >
|
|
|
+ <TipIcons.AiText class={btnCls} />
|
|
|
+ </Dropdown> */}
|
|
|
<TipIcons.Screenshot
|
|
|
class={btnCls}
|
|
|
onClick={() => actions.updateThumbnailByScreenshot(true)}
|