cloud-web-corejs 1.0.54-dev.166 → 1.0.54-dev.167

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": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.166",
4
+ "version": "1.0.54-dev.167",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -28,6 +28,9 @@
28
28
  <el-form-item :label="i18nt('是否显示表尾统计行')">
29
29
  <el-switch v-model="optionModel.showGridFooter"></el-switch>
30
30
  </el-form-item>
31
+ <el-form-item :label="i18nt('是否隐藏复选框')">
32
+ <el-switch v-model="optionModel.hideGridCheckBox"></el-switch>
33
+ </el-form-item>
31
34
  <!-- <el-form-item :label="i18nt('显示导出')">
32
35
  <el-switch v-model="optionModel.showExportBtn"></el-switch>
33
36
  </el-form-item>-->
@@ -288,6 +288,7 @@ export const containers = [
288
288
  showRuleFlag: 1,
289
289
  showRuleEnabled: 1,
290
290
  showRules: [],
291
+ hideGridCheckBox:false
291
292
  }
292
293
  },
293
294
  /*{
@@ -379,12 +379,15 @@ modules = {
379
379
  let rowWidgetList = [];
380
380
  let tableColumns = this.widget.options.tableColumns;
381
381
  let newColumns = [];
382
- newColumns.push({
383
- type: "checkbox",
384
- width: 48,
385
- resizable: false,
386
- fixed: "left",
387
- });
382
+ if(!this.widget.options.hideGridCheckBox){
383
+ newColumns.push({
384
+ type: "checkbox",
385
+ width: 48,
386
+ resizable: false,
387
+ fixed: "left",
388
+ });
389
+ }
390
+
388
391
 
389
392
  const createColumn = (t, isChild) => {
390
393
  let col = {
@@ -771,6 +774,10 @@ modules = {
771
774
  };
772
775
  }
773
776
  let showFooter = this.widget.options.showGridFooter || false;
777
+ let otherConfig = {};
778
+ if(this.widget.options.hideGridCheckBox){
779
+ otherConfig.checkBoxRequired = false;
780
+ }
774
781
  let tableOption = {
775
782
  // vue: this,
776
783
  tableRef: tableRef,
@@ -786,6 +793,7 @@ modules = {
786
793
  treeConfig,
787
794
  ...editOpts,
788
795
  ...dataTableConfig.config,
796
+
789
797
  },
790
798
  exportAjax: (param) => {
791
799
  let $grid = this.getGridTable();
@@ -806,6 +814,7 @@ modules = {
806
814
  // treeNodeUrl,
807
815
  editDefaultRow,
808
816
  treeNodeParam,
817
+ ...otherConfig
809
818
  };
810
819
 
811
820
  if (isQueryTable) {