style(prettier): reset code style with prettier

This commit is contained in:
落小梅
2021-10-12 11:30:07 +08:00
parent aee99c49c9
commit 2b59e008f3
148 changed files with 4296 additions and 4191 deletions

View File

@@ -3,7 +3,7 @@ import Component from './index.vue'
import type { IDefineComponent } from '../type/index'
Component.install = (app: App) => {
app.component(Component.name || 'LayMenu', Component)
app.component(Component.name || 'LayMenu', Component)
}
export default Component as IDefineComponent

View File

@@ -1,7 +1,7 @@
<template>
<ul class="layui-nav" :class="[tree ? 'layui-nav-tree':'']">
<slot></slot>
</ul>
<ul class="layui-nav" :class="[tree ? 'layui-nav-tree' : '']">
<slot />
</ul>
</template>
<script setup name="LayMenu" lang="ts">
@@ -13,7 +13,7 @@ const props = withDefaults(
tree?: boolean
}>(),
{
selectedKey: "",
selectedKey: '',
tree: false,
}
)
@@ -21,6 +21,6 @@ const props = withDefaults(
const isTree = ref(props.tree)
const selectKey = ref(props.selectedKey)
provide("isTree",isTree);
provide("selectKey",selectKey)
provide('isTree', isTree)
provide('selectKey', selectKey)
</script>