@tongfun/tf-widget 0.1.138 → 0.1.139
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/lib/tf-widget.common.js +11 -1
- package/lib/tf-widget.umd.js +11 -1
- package/lib/tf-widget.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/tf-widget.common.js
CHANGED
|
@@ -142289,7 +142289,17 @@ const tableAutoHeight = {
|
|
|
142289
142289
|
}; // 指定 fieldType为image渲染自定义的按钮组件查看图片
|
|
142290
142290
|
|
|
142291
142291
|
if (item.fieldType === 'image') {
|
|
142292
|
-
item.
|
|
142292
|
+
item.cellRendererSelector = params => {
|
|
142293
|
+
// 去除底部合计行的单元格
|
|
142294
|
+
if (!params.node.rowPinned) {
|
|
142295
|
+
return {
|
|
142296
|
+
component: 'TfCellButton' // 列表单元格自定义组件
|
|
142297
|
+
|
|
142298
|
+
};
|
|
142299
|
+
} else {
|
|
142300
|
+
return undefined;
|
|
142301
|
+
}
|
|
142302
|
+
};
|
|
142293
142303
|
}
|
|
142294
142304
|
}); // 添加首列为可选列,属性:左固定pinned:left; lockPosition:固定左边且不可移动
|
|
142295
142305
|
|
package/lib/tf-widget.umd.js
CHANGED
|
@@ -142299,7 +142299,17 @@ const tableAutoHeight = {
|
|
|
142299
142299
|
}; // 指定 fieldType为image渲染自定义的按钮组件查看图片
|
|
142300
142300
|
|
|
142301
142301
|
if (item.fieldType === 'image') {
|
|
142302
|
-
item.
|
|
142302
|
+
item.cellRendererSelector = params => {
|
|
142303
|
+
// 去除底部合计行的单元格
|
|
142304
|
+
if (!params.node.rowPinned) {
|
|
142305
|
+
return {
|
|
142306
|
+
component: 'TfCellButton' // 列表单元格自定义组件
|
|
142307
|
+
|
|
142308
|
+
};
|
|
142309
|
+
} else {
|
|
142310
|
+
return undefined;
|
|
142311
|
+
}
|
|
142312
|
+
};
|
|
142303
142313
|
}
|
|
142304
142314
|
}); // 添加首列为可选列,属性:左固定pinned:left; lockPosition:固定左边且不可移动
|
|
142305
142315
|
|