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

@@ -1,28 +1,21 @@
<script lang="ts">
export default {
name:"LayCollapse"
}
name: "LayCollapse",
};
</script>
<script setup lang="ts">
import {
withDefaults,
provide,
ref,
watch,
} from "vue";
import { withDefaults, provide, ref, watch } from "vue";
export interface LayCollapseProps {
modelValue?: number | string | [];
accordion?: boolean;
modelValue?: number | string | [];
accordion?: boolean;
}
const props = withDefaults(defineProps<LayCollapseProps>(),
{
modelValue: () => [],
accordion: false,
}
);
const props = withDefaults(defineProps<LayCollapseProps>(), {
modelValue: () => [],
accordion: false,
});
// 监听传入的值
watch(
@@ -46,4 +39,4 @@ provide("layCollapse", {
<div class="layui-collapse">
<slot></slot>
</div>
</template>
</template>