提交 f96d6b22 编写于 作者: V vben

perf: code style

上级 894b63b8
......@@ -53,8 +53,6 @@ export default defineComponent({
}
};
watch(() => props.icon, update, { flush: 'post' });
const wrapStyleRef = computed((): any => {
const { size, color } = props;
let fs = size;
......@@ -68,6 +66,7 @@ export default defineComponent({
};
});
watch(() => props.icon, update, { flush: 'post' });
onMounted(update);
return () => (
......
......@@ -15,8 +15,6 @@
// components
import { defineComponent, computed } from 'vue';
// hook
import { SizeEnum, sizeMap } from '/@/enums/sizeEnum';
import { BasicLoadingProps } from './type';
......
......@@ -21,7 +21,6 @@
absolute: Boolean as PropType<boolean>,
},
setup(props) {
// 样式前缀
const getStyle = computed((): any => {
return props.absolute
? {
......@@ -32,6 +31,7 @@
}
: {};
});
return { getStyle, SizeEnum };
},
});
......
......@@ -29,7 +29,6 @@
setup(props, { attrs, emit }) {
const wrapRef = ref<Nullable<HTMLDivElement>>(null);
const vditorRef = ref<Nullable<Vditor>>(null);
const initedRef = ref(false);
function init() {
......
......@@ -66,7 +66,7 @@ export default defineComponent({
offset += 54;
}
return {
height: `calc(100% - ${offset}px)`,
height: `calc(100% - ${offset - 30}px)`,
position: 'relative',
overflow: 'auto',
};
......
......@@ -417,3 +417,8 @@
padding: 0 16px;
flex-grow: 1;
}
.ant-layout-sider-trigger {
height: 30px;
line-height: 30px;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册