mooho-base-admin-plus 2.10.59 → 2.10.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.10.59",
4
+ "version": "2.10.60",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -37,7 +37,6 @@
37
37
  import mixinPage from '../../mixins/page';
38
38
  import mixin from './mixin';
39
39
  import tableSetting from './table-setting.vue';
40
- import { readonly } from 'vue';
41
40
 
42
41
  // register Handsontable's modules
43
42
  registerAllModules();
@@ -56,7 +55,6 @@
56
55
  hotSetting: {
57
56
  themeName: 'ht-theme-main',
58
57
  colHeaders: true,
59
- rowHeaders: true,
60
58
  height: 'auto',
61
59
  // columns: [],
62
60
  autoWrapCol: true,
@@ -213,6 +211,9 @@
213
211
  this.tableView = view.dataView;
214
212
  this.tableView.columns = view.viewColumns;
215
213
 
214
+ // 序号
215
+ this.hotSetting.rowHeaders = this.tableView.snEnable;
216
+
216
217
  // 文本必填
217
218
  Handsontable.validators.registerValidator('text-required', (value, callback) => {
218
219
  if (!(value || '').trim()) {
@@ -1151,7 +1151,8 @@
1151
1151
  title: this.$t('Front_Label_Sn'),
1152
1152
  slot: 'sn',
1153
1153
  align: 'center',
1154
- width: 60
1154
+ width: 60,
1155
+ fixed: this.columns.some(item => item.isFixed) ? 'left' : null
1155
1156
  });
1156
1157
  }
1157
1158