doway-coms 2.11.4 → 2.11.6

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.4",
3
+ "version": "2.11.6",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -44,7 +44,6 @@
44
44
  @cell-click="cellClick"
45
45
  resizable
46
46
  :show-overflow="showOverFlow"
47
- :show-header-overflow="showHeaderOverflow"
48
47
  show-footer-overflow
49
48
  highlight-current-row
50
49
  highlight-hover-row
@@ -198,6 +197,17 @@
198
197
  />
199
198
  </div>
200
199
  </template>
200
+ <template #checkbox_default="scope">
201
+ <div class="interceptor-class">
202
+ <a-checkbox
203
+ class="inner-cell-control"
204
+ size="small"
205
+ @change="cellValueChange(scope)"
206
+ v-model="scope.row[scope.column.property]"
207
+ :disabled="true"
208
+ />
209
+ </div>
210
+ </template>
201
211
  <template #number_edit="scope">
202
212
  <div class="interceptor-class">
203
213
  <a-input-number
@@ -1070,7 +1080,7 @@ export default {
1070
1080
  },
1071
1081
  showHeaderOverflow: {
1072
1082
  type: Boolean,
1073
- default: true,
1083
+ default: null,
1074
1084
  },
1075
1085
  cellClassName: {
1076
1086
  type: Function,
@@ -1286,6 +1296,18 @@ export default {
1286
1296
  } catch (err) {
1287
1297
  console.debug(err)
1288
1298
  }
1299
+ let tempShowHeadOverflow = true
1300
+ //样式定义
1301
+ if(this.$store.getters.baseSetting && this.$store.getters.baseSetting.gridShowHeaderOverflow){
1302
+ tempShowHeadOverflow = this.$store.getters.baseSetting.gridShowHeaderOverflow
1303
+ }
1304
+ if(this.showHeaderOverflow!==null){
1305
+ tempShowHeadOverflow = this.showHeaderOverflow
1306
+ }
1307
+ this.gridOptions['showHeaderOverflow'] = tempShowHeadOverflow
1308
+ //----------------------------------------
1309
+
1310
+
1289
1311
  //拖动后输入框有错位问题,暂时不启用
1290
1312
  // this.initColumnDrop()
1291
1313
  for (let i = 0; i < this.columns.length; i++) {
@@ -1348,7 +1370,7 @@ export default {
1348
1370
  )
1349
1371
  }
1350
1372
 
1351
-
1373
+
1352
1374
  this.gridEdit = this.edit
1353
1375
  },
1354
1376
  mounted() {
@@ -1903,15 +1925,15 @@ export default {
1903
1925
  },
1904
1926
  /**
1905
1927
  * 固定列到左侧
1906
- * @param scope
1928
+ * @param scope
1907
1929
  */
1908
1930
  fixedLeftColumn(scope){
1909
1931
  this.$refs.baseGrid.setColumnFixed(scope.column.field, 'left')
1910
-
1932
+
1911
1933
  },
1912
1934
  /**
1913
1935
  * 取消固定列
1914
- * @param scope
1936
+ * @param scope
1915
1937
  */
1916
1938
  fixedCancelColumn(scope){
1917
1939
 
@@ -2039,6 +2061,9 @@ export default {
2039
2061
  originCol.controlType = controlType.text
2040
2062
  }
2041
2063
  if (originCol.controlType === controlType.checkbox) {
2064
+ if (originCol.checkbox_default){
2065
+ customSlot['default'] = 'checkbox_default'
2066
+ }
2042
2067
  originCol.dataSource = [
2043
2068
  { caption: '是', value: true },
2044
2069
  { caption: '否', value: false },