doway-coms 2.11.28 → 2.11.30

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,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.11.28",
3
+ "version": "2.11.30",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -214,7 +214,7 @@ export default {
214
214
  let tempObject = vm.columns.find(x => x.currentKey == item)
215
215
  let tempData = {
216
216
  field: tempObject.field,
217
- sort: index + 1,
217
+ sort: index + 1 + 100,//davis20250407 序号从100开始,防止和系统字段序号冲突
218
218
  hidden: !tempObject.visible,
219
219
  width: tempObject.width,
220
220
  extraInfo:{}
@@ -2558,6 +2558,14 @@ export default {
2558
2558
  this.$refs.baseGrid.getTableColumn().collectColumn
2559
2559
  // 表格排序信息更新
2560
2560
  XEUtils.arrayEach(tableCollectColumn, (loopCol) => {
2561
+ if(loopCol.type==='seq'){
2562
+ loopCol.params.sort = 1
2563
+ return
2564
+ }
2565
+ if(loopCol.type==='checkbox'){
2566
+ loopCol.params.sort = 2
2567
+ return
2568
+ }
2561
2569
  const find = XEUtils.find(
2562
2570
  emitColumns.fields,
2563
2571
  (item) => loopCol.field === item.field
@@ -3135,32 +3143,35 @@ export default {
3135
3143
  },
3136
3144
  reloadColumn(columns) {
3137
3145
  this.internalColumns = []
3138
- if (this.showSeq) {
3146
+
3147
+ columns.forEach((column) => {
3148
+ this.internalColumns.push(this.initColumns(column))
3149
+ })
3150
+ //注意,不能移到上面添加,会出现布局问题,暂时不知道什么原因????
3151
+ if (this.showCheckBox) {
3139
3152
  this.internalColumns.push({
3140
- type: 'seq',
3153
+ type: 'checkbox',
3141
3154
  fixed: 'left',
3142
- width: 50,
3143
- slots: {
3144
- header: 'seqHeader',
3145
- },
3155
+ width: 40,
3146
3156
  params: {
3147
3157
  disableUserVisible: true,
3148
3158
  },
3149
3159
  })
3150
3160
  }
3151
- if (this.showCheckBox) {
3161
+ if (this.showSeq) {
3152
3162
  this.internalColumns.push({
3153
- type: 'checkbox',
3163
+ type: 'seq',
3154
3164
  fixed: 'left',
3155
- width: 40,
3165
+ width: 50,
3166
+ slots: {
3167
+ header: 'seqHeader',
3168
+ },
3156
3169
  params: {
3157
3170
  disableUserVisible: true,
3158
3171
  },
3159
3172
  })
3160
3173
  }
3161
- columns.forEach((column) => {
3162
- this.internalColumns.push(this.initColumns(column))
3163
- })
3174
+
3164
3175
  //设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
3165
3176
  this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
3166
3177
 
@@ -1,12 +1,25 @@
1
1
  .vxe-table--render-default.border--full .vxe-body--column, .vxe-table--render-default.border--full .vxe-footer--column, .vxe-table--render-default.border--full .vxe-header--column{
2
- /* background-image: linear-gradient(#a7a6a6, #a7a6a6), linear-gradient(#a7a6a6, #a7a6a6) !important; */
3
- background-image:none !important;
4
- box-shadow: 0 0 0 0.5px #a7a6a6;
5
- /* border-bottom:1px solid #a7a6a6!important;
6
- border-right:1px solid #a7a6a6!important;
7
- border-left:1px solid #a7a6a6!important; */
8
- }
9
- .vxe-table--render-default.border--full .vxe-header--column{
10
- border-bottom:2px solid #a7a6a6;
11
- background: #9ccaf4;
12
- }
2
+ /* background-image: linear-gradient(#a7a6a6, #a7a6a6), linear-gradient(#a7a6a6, #a7a6a6) !important; */
3
+ background-image:none !important;
4
+ box-shadow: 0 0 0 0.5px #a7a6a6;
5
+ /* border-bottom:1px solid #a7a6a6!important;
6
+ border-right:1px solid #a7a6a6!important;
7
+ border-left:1px solid #a7a6a6!important; */
8
+ }
9
+ .vxe-table--render-default.border--full .vxe-header--column{
10
+ border-bottom:2px solid #a7a6a6;
11
+ background: #9ccaf4;
12
+ }
13
+ .vxe-table--fixed-left-wrapper .vxe-body--column.col--last{
14
+ border-right:2px solid #a7a6a6!important;
15
+ }
16
+ .vxe-table--fixed-left-wrapper .vxe-header--column.col--last{
17
+ border-right:2px solid #a7a6a6!important;
18
+ }
19
+ .vxe-table--fixed-right-wrapper .vxe-body--column.col--last{
20
+ border-left:2px solid #a7a6a6!important;
21
+ }
22
+ .vxe-table--fixed-right-wrapper .vxe-header--column.col--last{
23
+ border-left:2px solid #a7a6a6!important;
24
+ }
25
+