ods-component-lib 1.19.0 → 1.19.1
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/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34991,10 +34991,12 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
|
|
|
34991
34991
|
}, [props.dataGridPageName]);
|
|
34992
34992
|
React.useEffect(function () {
|
|
34993
34993
|
if (props.columns !== undefined && props.columns.length > 0) {
|
|
34994
|
-
var newColumns = props.columns.map(function (colItem) {
|
|
34994
|
+
var newColumns = props.columns.map(function (colItem, i) {
|
|
34995
34995
|
if (colItem.tooltip !== undefined && colItem.tooltip.enable) {
|
|
34996
34996
|
var headerCellRenderr = function headerCellRenderr() {
|
|
34997
|
-
return React__default.createElement("div",
|
|
34997
|
+
return React__default.createElement("div", {
|
|
34998
|
+
key: i
|
|
34999
|
+
}, React__default.createElement("span", null, colItem.caption), React__default.createElement(antd.Tooltip, {
|
|
34998
35000
|
title: colItem.tooltip.title
|
|
34999
35001
|
}, React__default.createElement(icons.InfoCircleOutlined, {
|
|
35000
35002
|
style: {
|
|
@@ -35549,10 +35551,11 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
|
|
|
35549
35551
|
layout: "vertical",
|
|
35550
35552
|
onFinish: onFastUpdateFormFinish,
|
|
35551
35553
|
onFinishFailed: onFastUpdateFormFinishFailed
|
|
35552
|
-
}, constants$1.allowedDataTypesForMultiCellEditing.map(function (item) {
|
|
35554
|
+
}, constants$1.allowedDataTypesForMultiCellEditing.map(function (item, i) {
|
|
35553
35555
|
switch (item) {
|
|
35554
35556
|
case "number":
|
|
35555
35557
|
return React__default.createElement(antd.Form.Item, {
|
|
35558
|
+
key: i,
|
|
35556
35559
|
name: "number",
|
|
35557
35560
|
label: "",
|
|
35558
35561
|
rules: [{
|