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 +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +15 -6
package/package.json
CHANGED
@@ -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>-->
|
@@ -379,12 +379,15 @@ modules = {
|
|
379
379
|
let rowWidgetList = [];
|
380
380
|
let tableColumns = this.widget.options.tableColumns;
|
381
381
|
let newColumns = [];
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
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) {
|