@hzab/list-render 1.9.7-beta → 1.9.7-beta1
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/CHANGELOG.md +1 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/card-render/index.less +1 -2
- package/src/common/utils.js +6 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -130,7 +130,7 @@ const listDM = useMemo(
|
|
|
130
130
|
| 属性名称 | 属性类型 | 必须 | 默认值 | 描述 |
|
|
131
131
|
| -------------- | -------- | ---- | ------ | -------------- |
|
|
132
132
|
| CardItemRender | JSX | | | 自定义渲染卡片 |
|
|
133
|
-
|
|
|
133
|
+
| columns | Number | 是 | 3 | 栅格列数 |
|
|
134
134
|
|
|
135
135
|
##### cardConf.colConf[xxx]
|
|
136
136
|
|
package/package.json
CHANGED
package/src/common/utils.js
CHANGED
|
@@ -205,7 +205,10 @@ export const getOptItByVal = function (val, options, opt) {
|
|
|
205
205
|
export const removeInTableFalseFields = (data) => {
|
|
206
206
|
// 深拷贝原始数据
|
|
207
207
|
const result = _.cloneDeep(data);
|
|
208
|
-
|
|
208
|
+
if (result?.form) {
|
|
209
|
+
delete result.form?.labelCol;
|
|
210
|
+
delete result.form?.wrapperCol;
|
|
211
|
+
}
|
|
209
212
|
// 检查是否存在 schema 和 properties
|
|
210
213
|
if (result?.schema?.properties) {
|
|
211
214
|
// 遍历properties中的所有属性
|
|
@@ -213,6 +216,8 @@ export const removeInTableFalseFields = (data) => {
|
|
|
213
216
|
if (result.schema.properties[key].inTable === false) {
|
|
214
217
|
// 删除整个包含inTable:false的属性
|
|
215
218
|
delete result.schema.properties[key];
|
|
219
|
+
} else if (result.schema.properties[key]["x-display"]) {
|
|
220
|
+
delete result.schema.properties[key]["x-display"];
|
|
216
221
|
}
|
|
217
222
|
});
|
|
218
223
|
}
|