Skip to content

Commit f96d6b2

Browse files
committedOct 20, 2020
perf: code style
1 parent 894b63b commit f96d6b2

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed
 

‎src/components/Icon/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export default defineComponent({
5353
}
5454
};
5555

56-
watch(() => props.icon, update, { flush: 'post' });
57-
5856
const wrapStyleRef = computed((): any => {
5957
const { size, color } = props;
6058
let fs = size;
@@ -68,6 +66,7 @@ export default defineComponent({
6866
};
6967
});
7068

69+
watch(() => props.icon, update, { flush: 'post' });
7170
onMounted(update);
7271

7372
return () => (

‎src/components/Loading/BasicLoading.vue

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
// components
1616
import { defineComponent, computed } from 'vue';
1717
18-
// hook
19-
2018
import { SizeEnum, sizeMap } from '/@/enums/sizeEnum';
2119
2220
import { BasicLoadingProps } from './type';

‎src/components/Loading/FullLoading.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
absolute: Boolean as PropType<boolean>,
2222
},
2323
setup(props) {
24-
// 样式前缀
2524
const getStyle = computed((): any => {
2625
return props.absolute
2726
? {
@@ -32,6 +31,7 @@
3231
}
3332
: {};
3433
});
34+
3535
return { getStyle, SizeEnum };
3636
},
3737
});

‎src/components/Markdown/src/index.vue

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
setup(props, { attrs, emit }) {
3030
const wrapRef = ref<Nullable<HTMLDivElement>>(null);
3131
const vditorRef = ref<Nullable<Vditor>>(null);
32-
3332
const initedRef = ref(false);
3433
3534
function init() {

‎src/components/Menu/src/BasicMenu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default defineComponent({
6666
offset += 54;
6767
}
6868
return {
69-
height: `calc(100% - ${offset}px)`,
69+
height: `calc(100% - ${offset - 30}px)`,
7070
position: 'relative',
7171
overflow: 'auto',
7272
};

‎src/layouts/default/index.less

+5
Original file line numberDiff line numberDiff line change
@@ -417,3 +417,8 @@
417417
padding: 0 16px;
418418
flex-grow: 1;
419419
}
420+
421+
.ant-layout-sider-trigger {
422+
height: 30px;
423+
line-height: 30px;
424+
}

0 commit comments

Comments
 (0)
Please sign in to comment.