update
This commit is contained in:
@@ -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 校验规则配置项说明
|
||||
|
||||
|
||||
@@ -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>
|
||||
1
docs/static/js/index.06c88642.js
vendored
1
docs/static/js/index.06c88642.js
vendored
File diff suppressed because one or more lines are too long
1
docs/static/js/index.6703a1d4.js
vendored
Normal file
1
docs/static/js/index.6703a1d4.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
@@ -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', {
|
||||
|
||||
@@ -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', {
|
||||
|
||||
2
lib/index.umd.min.js
vendored
2
lib/index.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user