king
2023-10-24 4de0acf2a232ae29f2b5bd7bb2ee61a238c5d2d0
2023-10-24
3个文件已修改
11 ■■■■■ 已修改文件
src/menu/components/table/edit-table/options.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/table/edit-table/options.jsx
@@ -105,12 +105,13 @@
      field: 'commit',
      label: '数据提交',
      initval: wrap.commit || 'all',
      tooltip: '单项提交指在表单中回车或删除行时,设置为单项时如点击提交按钮,会提交修改项。',
      tooltip: '单项提交指在表单中回车或删除行时,设置为单项时如点击提交按钮,会提交修改项。失去焦点提交时会验证数据是否修改,未修改的数据不会提交。',
      required: false,
      options: [
        {value: 'all', label: '全部'},
        {value: 'change', label: '修改项'},
        {value: 'simple', label: '单项'},
        {value: 'blur', label: '失去焦点'},
      ],
      controlFields: [
        {field: 'standard', values: ['change', 'simple']},
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -86,6 +86,10 @@
        item.tableId = setting.tableId
        if (setting.commit === 'blur') {
          item.blur = true
        }
        if (item.type === 'colspan') {
          item.subcols = getColumns(item.subcols)
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -747,6 +747,10 @@
    if (value !== record[col.field]) {
      MKEmitter.emit('changeRecord', col.tableId, {...record, [col.field]: val})
    }
    // if (col.blur) {
    //   MKEmitter.emit('subLine', col, record)
    // }
  }
  onSwitchChange = (val, label) => {