1
0
mirror of synced 2025-12-09 07:08:22 +08:00
This commit is contained in:
xuliangzhan
2019-05-07 19:24:35 +08:00
parent c9229b098c
commit ad4470e4ac
9 changed files with 12 additions and 12 deletions

View File

@@ -250,7 +250,7 @@ new Vue({ i18n }).$mount('#app')
| trigger | 触发方式 | String | manual手动触发方式只能用于 mode=row / click点击触发编辑 / dblclick双击触发编辑 | click |
| mode | 编辑模式 | String | cell单元格编辑模式 / row行编辑模式 | cell |
| showIcon | 是否显示列头编辑图标 | Boolean | — | true |
| showStatus | 是否显示单元格值的修改状态 | Boolean | — | true |
| showStatus | 是否显示单元格值的修改状态 | Boolean | — | false |
##### edit-rules 校验规则配置项说明

View File

@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vxe-table/favicon.ico><title>vxe-table 表格</title><link href=/vxe-table/static/css/chunk-vendors.5ff10599.css rel=preload as=style><link href=/vxe-table/static/css/index.f0f72828.css rel=preload as=style><link href=/vxe-table/static/js/chunk-vendors.8949f45e.js rel=preload as=script><link href=/vxe-table/static/js/index.06c88642.js rel=preload as=script><link href=/vxe-table/static/css/chunk-vendors.5ff10599.css rel=stylesheet><link href=/vxe-table/static/css/index.f0f72828.css rel=stylesheet></head><body><noscript><strong>We're sorry but vxe-table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vxe-table/static/js/chunk-vendors.8949f45e.js></script><script src=/vxe-table/static/js/index.06c88642.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vxe-table/favicon.ico><title>vxe-table 表格</title><link href=/vxe-table/static/css/chunk-vendors.5ff10599.css rel=preload as=style><link href=/vxe-table/static/css/index.f0f72828.css rel=preload as=style><link href=/vxe-table/static/js/chunk-vendors.8949f45e.js rel=preload as=script><link href=/vxe-table/static/js/index.6703a1d4.js rel=preload as=script><link href=/vxe-table/static/css/chunk-vendors.5ff10599.css rel=stylesheet><link href=/vxe-table/static/css/index.f0f72828.css rel=stylesheet></head><body><noscript><strong>We're sorry but vxe-table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vxe-table/static/js/chunk-vendors.8949f45e.js></script><script src=/vxe-table/static/js/index.6703a1d4.js></script></body></html>

File diff suppressed because one or more lines are too long

1
docs/static/js/index.6703a1d4.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,12 +1,12 @@
<template>
<div>
<p>设置 edit-config={trigger: 'click', mode: 'cell', showStatus: false} 关闭编辑状态显示功能</p>
<p>设置 edit-config={trigger: 'click', mode: 'cell', showStatus: true} 开启编辑状态显示功能</p>
<vxe-table
ref="xTable"
border
:data.sync="tableData"
:edit-config="{trigger: 'click', mode: 'cell', showStatus: false}">
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true}">
<vxe-table-column type="index" width="60"></vxe-table-column>
<vxe-table-column prop="name" label="Name" :edit-render="{type: 'default'}"></vxe-table-column>
<vxe-table-column prop="sex" label="Sex" :edit-render="{type: 'default'}"></vxe-table-column>

View File

@@ -5105,10 +5105,10 @@ function renderColumn(h, _vm, $table, fixedType, row, rowIndex, column, columnIn
} // 如果显示状态
if (editConfig && !(editConfig.showStatus === false)) {
if (editConfig && editConfig.showStatus) {
var oRowIndex = getRecords().indexOf(row);
var oRow = tableSourceData[oRowIndex];
isDirty = oRow && utils.getCellValue(oRow, column.property) !== utils.getCellValue(row, column.property);
isDirty = oRow && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isEqual(utils.getCellValue(oRow, column.property), utils.getCellValue(row, column.property));
}
return h('td', {

View File

@@ -5114,10 +5114,10 @@ function renderColumn(h, _vm, $table, fixedType, row, rowIndex, column, columnIn
} // 如果显示状态
if (editConfig && !(editConfig.showStatus === false)) {
if (editConfig && editConfig.showStatus) {
var oRowIndex = getRecords().indexOf(row);
var oRow = tableSourceData[oRowIndex];
isDirty = oRow && utils.getCellValue(oRow, column.property) !== utils.getCellValue(row, column.property);
isDirty = oRow && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isEqual(utils.getCellValue(oRow, column.property), utils.getCellValue(row, column.property));
}
return h('td', {

File diff suppressed because one or more lines are too long

View File

@@ -50,10 +50,10 @@ function renderColumn (h, _vm, $table, fixedType, row, rowIndex, column, columnI
attrs = { rowspan, colspan }
}
// 如果显示状态
if (editConfig && !(editConfig.showStatus === false)) {
if (editConfig && editConfig.showStatus) {
let oRowIndex = getRecords().indexOf(row)
let oRow = tableSourceData[oRowIndex]
isDirty = oRow && UtilTools.getCellValue(oRow, column.property) !== UtilTools.getCellValue(row, column.property)
isDirty = oRow && !XEUtils.isEqual(UtilTools.getCellValue(oRow, column.property), UtilTools.getCellValue(row, column.property))
}
return h('td', {
class: ['vxe-body--column', column.id, {