perf: standard code format in the views folder

This commit is contained in:
xiaoxian521
2022-05-14 10:53:06 +08:00
parent 1cf82eb7a4
commit 64326c4fb5
31 changed files with 228 additions and 166 deletions

View File

@@ -106,14 +106,16 @@ const checkboxChangeEvent: VxeTableEvents.CheckboxChange = ({ records }) => {
type="text"
icon="fa fa-pencil-square-o"
@click="editConfig(row)"
>编辑</vxe-button
>
编辑
</vxe-button>
<vxe-button
type="text"
icon="fa fa-trash-o"
@click="delConfig(row)"
>删除</vxe-button
>
删除
</vxe-button>
</template>
</vxe-table-column>
</vxe-table>
@@ -140,9 +142,9 @@ const checkboxChangeEvent: VxeTableEvents.CheckboxChange = ({ records }) => {
:indeterminate="configData.isIndeterminate"
@change="changeAllEvent"
/>
<span class="select-count"
>已选中{{ configData.selectRecords.length }}</span
>
<span class="select-count">
已选中{{ configData.selectRecords.length }}
</span>
<vxe-button size="small">{{ t("buttons.hsdelete") }}</vxe-button>
</span>
</template>

View File

@@ -217,24 +217,23 @@ function handleClose() {
/>
</template>
<template #tools>
<vxe-button
icon="fa fa-plus-square-o"
status="primary"
@click="onAdd"
>{{ t("buttons.hsadd") }}</vxe-button
>
<vxe-button icon="fa fa-plus-square-o" status="primary" @click="onAdd">
{{ t("buttons.hsadd") }}
</vxe-button>
<vxe-button
icon="fa fa-folder-open-o"
status="primary"
@click="$refs.xTree.setAllTreeExpand(true)"
>{{ t("buttons.hsexpendAll") }}</vxe-button
>
{{ t("buttons.hsexpendAll") }}
</vxe-button>
<vxe-button
icon="fa fa-folder-o"
status="primary"
@click="$refs.xTree.clearTreeExpand()"
>{{ t("buttons.hscollapseAll") }}</vxe-button
>
{{ t("buttons.hscollapseAll") }}
</vxe-button>
</template>
</vxe-toolbar>
@@ -269,24 +268,27 @@ function handleClose() {
type="text"
icon="fa fa-pencil-square-o"
@click="onEdit(row)"
>编辑</vxe-button
>
编辑
</vxe-button>
<vxe-button
type="text"
icon="fa fa-plus-square-o"
@click="onAddChild(row)"
>新增子类型</vxe-button
>
新增子类型
</vxe-button>
<vxe-button
v-show="row.model"
type="text"
icon="fa fa-cog"
@click="onDeploy(row)"
>字典配置</vxe-button
>
<vxe-button type="text" icon="fa fa-trash-o" @click="confirmEvent"
>删除</vxe-button
>
字典配置
</vxe-button>
<vxe-button type="text" icon="fa fa-trash-o" @click="confirmEvent">
删除
</vxe-button>
</template>
</vxe-table-column>
</vxe-table>