|
@@ -10,6 +10,7 @@ import { IconPlus, IconReduce } from "@queenjs/icons";
|
|
|
import { InputNumber } from "ant-design-vue";
|
|
|
import { defineUI } from "queenjs";
|
|
|
import { TipIcons } from "../../TipIcons";
|
|
|
+import { IconFit } from "@/assets/icons";
|
|
|
|
|
|
export default defineUI({
|
|
|
setup() {
|
|
@@ -74,12 +75,15 @@ export default defineUI({
|
|
|
<div
|
|
|
class={cx(group, "flex items-center p-4px rounded bg-[#262626]")}
|
|
|
>
|
|
|
+ <IconFit class="text-light-50 text-36px cursor-pointer rounded transition hover:bg-dark-800"
|
|
|
+ // onClick={() => editorCtrl.setScale(scale - 0.1)}
|
|
|
+ />
|
|
|
<IconReduce
|
|
|
- class="ml-5px text-light-50 text-30px cursor-pointer transition hover:bg-dark-800"
|
|
|
+ class="text-light-50 text-36px cursor-pointer rounded transition hover:bg-dark-800"
|
|
|
onClick={() => editorCtrl.setScale(scale - 0.1)}
|
|
|
/>
|
|
|
<IconPlus
|
|
|
- class="text-light-50 text-30px cursor-pointer transition hover:bg-dark-800"
|
|
|
+ class="text-light-50 text-36px cursor-pointer rounded transition hover:bg-dark-800"
|
|
|
onClick={() => editorCtrl.setScale(scale + 0.1)}
|
|
|
/>
|
|
|
<InputNumber
|
|
@@ -88,7 +92,7 @@ export default defineUI({
|
|
|
bordered={false}
|
|
|
controls={false}
|
|
|
value={scale}
|
|
|
- class="!w-60px !ml-10px text-center !bg-[#303030] rounded"
|
|
|
+ class="!w-60px text-center !bg-[#303030] rounded"
|
|
|
formatter={(v: any) => Math.floor(v * 100) + "%"}
|
|
|
onPressEnter={(e: any) => {
|
|
|
const newScale = e.target.value.split("%")[0] / 100;
|
|
@@ -128,14 +132,22 @@ const bottomBtnStyles = css`
|
|
|
`;
|
|
|
|
|
|
const group = css`
|
|
|
+ .ant-input-number,
|
|
|
+ .inficon {
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
+ }
|
|
|
.inficon {
|
|
|
- transition: all 0.2s ease-in;
|
|
|
- margin-right: -37px;
|
|
|
+ margin-right: -36px;
|
|
|
}
|
|
|
.ant-input-number-input {
|
|
|
+ height: 36px;
|
|
|
+ line-height: 36px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
&:hover {
|
|
|
+ .ant-input-number {
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
.inficon {
|
|
|
margin-right: 0;
|
|
|
}
|