bug
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="AiEditInput" :class="{[align]:true,error}">
|
<section class="AiEditInput" :class="{[align]:true,error}">
|
||||||
<el-input v-if="edit" size="small" v-model="content" @change="handleChange" @blur="cancel" clearable autofocus/>
|
<el-input v-if="edit" size="small" v-model="content" @change="handleChange" @blur="cancel" clearable autofocus/>
|
||||||
<div class="valueText" v-else v-text="value" @click="edit=true"/>
|
<div class="valueText" v-if="!edit && value" v-text="value" @click="edit=true"/>
|
||||||
|
<i v-if="!edit && !value" class="el-icon-edit" @click="edit = true"></i>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -54,7 +55,8 @@ export default {
|
|||||||
.valueText {
|
.valueText {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 32px;
|
min-width: 43px;
|
||||||
|
height: 32px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<ai-table v-if="moduleId" :tableData="cateList" :col-configs="cateColConfigs" :isShowPagination="false" @getList="getCateList">
|
<ai-table v-if="moduleId" :tableData="cateList" :col-configs="cateColConfigs" :isShowPagination="false" @getList="getCateList">
|
||||||
<el-table-column slot="category" label="分类名称" align="center">
|
<el-table-column slot="category" label="分类名称" align="center">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<ai-edit-input v-model="row.categoryName" :error.sync="row.error"/>
|
<ai-edit-input v-model="row.categoryName" :key="row.id" :error.sync="row.error"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="options" width="220px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="220px" fixed="right" label="操作" align="center">
|
||||||
|
|||||||
Reference in New Issue
Block a user