ztxkui 2.4.3 → 2.4.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.
|
@@ -174,13 +174,7 @@ var list1 = [
|
|
|
174
174
|
connector: ' ', // 连接符
|
|
175
175
|
},
|
|
176
176
|
// 材质
|
|
177
|
-
texture:
|
|
178
|
-
isRequired: 1,
|
|
179
|
-
addonBefore: null,
|
|
180
|
-
addonAfter: null,
|
|
181
|
-
unit: null,
|
|
182
|
-
connector: ' ', // 连接符
|
|
183
|
-
},
|
|
177
|
+
texture: null,
|
|
184
178
|
// 规格,一个产品层次可能对应多个规格
|
|
185
179
|
specifications: [
|
|
186
180
|
{
|
|
@@ -315,6 +309,18 @@ var TableDemo = function () {
|
|
|
315
309
|
width: 100,
|
|
316
310
|
dataIndex: 'key2',
|
|
317
311
|
key: 'key2',
|
|
312
|
+
shouldCellUpdate: function (record, preRecord) {
|
|
313
|
+
console.log('key2render');
|
|
314
|
+
if (lengthChange) {
|
|
315
|
+
setLengthChange(false);
|
|
316
|
+
return true;
|
|
317
|
+
}
|
|
318
|
+
if (moveChange) {
|
|
319
|
+
setMoveChange(false);
|
|
320
|
+
return true;
|
|
321
|
+
}
|
|
322
|
+
return record.key2 !== preRecord.key2;
|
|
323
|
+
},
|
|
318
324
|
render: function (text, record, index) {
|
|
319
325
|
return (React.createElement(EnhanceSelect, { value: text, list: list1, dataKey: "id", titleKey: "name", onChange: function (value, option, fullData) {
|
|
320
326
|
var newRecord = {
|
|
@@ -350,7 +356,7 @@ var TableDemo = function () {
|
|
|
350
356
|
catch (err) {
|
|
351
357
|
console.log(err);
|
|
352
358
|
}
|
|
353
|
-
return React.createElement(TestCom, { aboutField: aboutField, controleType: "
|
|
359
|
+
return React.createElement(TestCom, { aboutField: aboutField, controleType: "hide" });
|
|
354
360
|
},
|
|
355
361
|
},
|
|
356
362
|
{
|
|
@@ -24,9 +24,9 @@ import React from 'react';
|
|
|
24
24
|
import { Spin } from 'antd';
|
|
25
25
|
import classNames from 'classnames';
|
|
26
26
|
var Container = function (_a) {
|
|
27
|
-
var loading = _a.loading, children = _a.children, className = _a.className, restProps = __rest(_a, ["loading", "children", "className"]);
|
|
27
|
+
var loading = _a.loading, children = _a.children, className = _a.className, containerRef = _a.containerRef, restProps = __rest(_a, ["loading", "children", "className", "containerRef"]);
|
|
28
28
|
var classes = classNames('zt-container', className);
|
|
29
|
-
return (React.createElement("div", __assign({ className: classes }, restProps),
|
|
29
|
+
return (React.createElement("div", __assign({ className: classes }, restProps, { ref: containerRef }),
|
|
30
30
|
loading && (React.createElement("div", { className: "zt-container__loading" },
|
|
31
31
|
React.createElement(Spin, { size: "large", spinning: loading }))),
|
|
32
32
|
children));
|