chore: commit时格式整理

This commit is contained in:
dingyongya
2022-02-16 17:22:55 +08:00
parent c2b9d36868
commit 7f3674d532
95 changed files with 823 additions and 852 deletions

View File

@@ -5,13 +5,7 @@ export default {
</script>
<script setup lang="ts">
import {
ref,
watch,
useSlots,
withDefaults,
onMounted,
} from "vue";
import { ref, watch, useSlots, withDefaults, onMounted } from "vue";
import { Recordable } from "../../types";
import { guid } from "../../utils/guidUtil";
import LayCheckbox from "../checkbox";
@@ -23,25 +17,23 @@ import "./index.less";
const tableId = guid();
export interface LayTableProps {
id?: string;
skin?: string;
size?: string;
page?: Recordable;
checkbox?: boolean;
columns: Recordable[];
dataSource: Recordable[];
defaultToolbar?: boolean;
selectedKeys?: Recordable[];
id?: string;
skin?: string;
size?: string;
page?: Recordable;
checkbox?: boolean;
columns: Recordable[];
dataSource: Recordable[];
defaultToolbar?: boolean;
selectedKeys?: Recordable[];
}
const props = withDefaults(defineProps<LayTableProps>(),
{
id: "id",
size: "md",
dataSource: () => [],
selectedKeys: () => [],
}
);
const props = withDefaults(defineProps<LayTableProps>(), {
id: "id",
size: "md",
dataSource: () => [],
selectedKeys: () => [],
});
const emit = defineEmits([
"change",
@@ -114,11 +106,10 @@ let tableHeader = ref<HTMLElement | null>(null);
let tableBody = ref<HTMLElement | null>(null);
onMounted(() => {
tableBody.value?.addEventListener('scroll', () => {
tableHeader.value!.scrollLeft = tableBody.value?.scrollLeft || 0;
})
})
tableBody.value?.addEventListener("scroll", () => {
tableHeader.value!.scrollLeft = tableBody.value?.scrollLeft || 0;
});
});
</script>
<template>
@@ -256,4 +247,4 @@ onMounted(() => {
</div>
</div>
</div>
</template>
</template>

View File

@@ -1 +1 @@
import { Recordable } from "../../types";
import { Recordable } from "../../types";