perf: code style
This commit is contained in:
parent
894b63b801
commit
f96d6b221c
|
|
@ -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({
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(() => props.icon, update, { flush: 'post' });
|
||||||
onMounted(update);
|
onMounted(update);
|
||||||
|
|
||||||
return () => (
|
return () => (
|
||||||
|
|
|
||||||
|
|
@ -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 @@
|
||||||
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 @@
|
||||||
}
|
}
|
||||||
: {};
|
: {};
|
||||||
});
|
});
|
||||||
|
|
||||||
return { getStyle, SizeEnum };
|
return { getStyle, SizeEnum };
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
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 @@
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-layout-sider-trigger {
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue