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 || 'LayTransfer', Component)
app.component(Component.name || 'LayTransfer', Component)
}
export default Component as IDefineComponent

View File

@@ -4,9 +4,9 @@
<div class="layui-transfer-box" style="width: 200px; height: 360px">
<div class="layui-transfer-header">
<lay-checkbox
v-model="allLeftSelectedKeys"
skin="primary"
label="all"
v-model="allLeftSelectedKeys"
>
<span>列表一</span>
</lay-checkbox>
@@ -17,8 +17,9 @@
v-model="leftSelectedKeys"
skin="primary"
:label="dataSource[id]"
><span>{{ dataSource.title }}</span></lay-checkbox
>
<span>{{ dataSource.title }}</span>
</lay-checkbox>
</li>
</ul>
</div>
@@ -28,21 +29,21 @@
class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled"
data-index="0"
>
<i class="layui-icon layui-icon-next"></i></button
<i class="layui-icon layui-icon-next" /></button
><button
type="button"
class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled"
data-index="1"
>
<i class="layui-icon layui-icon-prev"></i>
<i class="layui-icon layui-icon-prev" />
</button>
</div>
<div class="layui-transfer-box" style="width: 200px; height: 360px">
<div class="layui-transfer-header">
<lay-checkbox
v-model="allRightSelectedKeys"
skin="primary"
label="all"
v-model="allRightSelectedKeys"
>
<span>列表二</span>
</lay-checkbox>
@@ -53,8 +54,9 @@
v-model="rightSelectedKeys"
skin="primary"
:label="dataSource[id]"
><span>{{ dataSource.title }}</span></lay-checkbox
>
<span>{{ dataSource.title }}</span>
</lay-checkbox>
</li>
</ul>
</div>
@@ -64,12 +66,13 @@
<script setup name="LayTransfer"></script>
<script setup lang="ts">
import { defineProps, ref } from 'vue'
import { Recordable } from '/@src/module/type'
const props = withDefaults(
defineProps<{
id?: string
dataSource: Object[]
selectedKeys: Array<String>
dataSource: Recordable[]
selectedKeys: Array<string>
}>(),
{
id: 'id',