doway-coms 2.11.0 → 2.11.2

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.0",
3
+ "version": "2.11.2",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1252,35 +1252,6 @@ export default {
1252
1252
  } catch (err) {
1253
1253
  console.debug(err)
1254
1254
  }
1255
- //拖动后输入框有错位问题,暂时不启用
1256
- // this.initColumnDrop()
1257
- for (let i = 0; i < this.columns.length; i++) {
1258
- this.internalColumns.push(this.initColumns(this.columns[i]))
1259
- if (
1260
- this.columns[i].visible !== false &&
1261
- this.columns[i].controlType !== 'operation'
1262
- ) {
1263
- this.internalColumns[i].slots.header = this.columns[i].field
1264
- }
1265
- }
1266
- //设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
1267
- this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
1268
- if(this.mergeFields.length>0){
1269
- this.gridOptions['spanMethod'] = this.rowspanMethod
1270
- }
1271
-
1272
- // 初始化排序和筛选
1273
- if (this.sortRemote) {
1274
- let data = []
1275
- this.defaultSort.forEach((x) => {
1276
- data.push([x.field, x.order])
1277
- })
1278
- this.$emit('sortModify', data)
1279
-
1280
- //设置筛选过滤条件
1281
- this.setFilterExpression(this.internalColumns)
1282
- }
1283
-
1284
1255
  if (this.showSeq) {
1285
1256
  this.internalColumns.push(
1286
1257
  // {
@@ -1314,6 +1285,36 @@ export default {
1314
1285
  },
1315
1286
  })
1316
1287
  }
1288
+ //拖动后输入框有错位问题,暂时不启用
1289
+ // this.initColumnDrop()
1290
+ for (let i = 0; i < this.columns.length; i++) {
1291
+ this.internalColumns.push(this.initColumns(this.columns[i]))
1292
+ if (
1293
+ this.columns[i].visible !== false &&
1294
+ this.columns[i].controlType !== 'operation'
1295
+ ) {
1296
+ this.internalColumns[i].slots.header = this.columns[i].field
1297
+ }
1298
+ }
1299
+ //设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
1300
+ this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
1301
+ if(this.mergeFields.length>0){
1302
+ this.gridOptions['spanMethod'] = this.rowspanMethod
1303
+ }
1304
+
1305
+ // 初始化排序和筛选
1306
+ if (this.sortRemote) {
1307
+ let data = []
1308
+ this.defaultSort.forEach((x) => {
1309
+ data.push([x.field, x.order])
1310
+ })
1311
+ this.$emit('sortModify', data)
1312
+
1313
+ //设置筛选过滤条件
1314
+ this.setFilterExpression(this.internalColumns)
1315
+ }
1316
+
1317
+
1317
1318
  this.gridEdit = this.edit
1318
1319
  },
1319
1320
  mounted() {