no message
This commit is contained in:
parent
5aaa372bd2
commit
53302fc16d
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<x-avatar v-if="item.columntype=='avatar' || item.component=='avatar'" :name="item.name" :options="item.options" :data="row"></x-avatar>
|
||||
<el-badge v-else-if="item.columntype=='badge' || item.columntype=='imagegroup'" :value="getType(row[item.name])" :type="item.options.type || 'warning'"></el-badge>
|
||||
<el-badge v-else-if="item.columntype=='badge' || item.columntype=='imagegroup'" :value="getType(row[item.name])" @click="handleClick(row, item)" :type="item.options.type || 'warning'"></el-badge>
|
||||
<el-image v-else-if="item.columntype=='image'" :preview-src-list="[getImg(row[item.name])]" :preview-teleported="true" hide-on-click-modal="true" lazy="true" style="max-width: 60px; height: 26px; border-radius: 2px;" fit="cover" :src="getImg(row[item.name])">
|
||||
<template #error>
|
||||
<div class="image-slot">
|
||||
@ -9,11 +9,8 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
|
||||
<input v-else-if="item.columntype=='input'" @click="handleClick(row, item)" style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="row[item.name]">
|
||||
|
||||
<p v-else-if="item.columntype=='status'">
|
||||
|
||||
<template v-for="{ value, type = 'success', label } in item.options.items">
|
||||
<x-status-indicator
|
||||
:key="value"
|
||||
@ -21,8 +18,7 @@
|
||||
:type="type"
|
||||
:label="label"
|
||||
@click="handleClick(row, item)"
|
||||
v-if="value === row[item.name]"
|
||||
></x-status-indicator>
|
||||
v-if="value === row[item.name]"></x-status-indicator>
|
||||
</template>
|
||||
</p>
|
||||
|
||||
@ -36,17 +32,19 @@
|
||||
:size="size"
|
||||
:link="link"
|
||||
:icon="icon"
|
||||
v-if="value === row[item.name]"
|
||||
>
|
||||
v-if="value === row[item.name]">
|
||||
{{ label }}
|
||||
</el-button>
|
||||
</template>
|
||||
</p>
|
||||
|
||||
<p v-else-if="item.columntype=='button'">
|
||||
<el-button @click="handleClick(row, item)" :type="item.options.type || 'warning'" :size="item.options.size || 'small'" :icon="item.options.icon">
|
||||
{{ row[item.name] }}
|
||||
</el-button>
|
||||
<el-button
|
||||
@click="handleClick(row, item)"
|
||||
:type="item.options.type || 'warning'"
|
||||
:size="item.options.size || 'small'"
|
||||
:circle="item.options.circle || false"
|
||||
:icon="item.options.icon"> {{ row[item.name] }} </el-button>
|
||||
</p>
|
||||
|
||||
<p v-else-if="item.columntype=='tag'" @click="handleClick(row, item)" v-time.tip="row[item.name]"></p>
|
||||
|
Loading…
Reference in New Issue
Block a user