提交 f96d6b22 编写于 作者: V vben

perf: code style

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