@cniot/mdd-editor 0.2.0-beta.40 → 0.2.0-beta.42
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/build/index.es.js
CHANGED
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
var _a, _b;
|
|
8
8
|
import React$1, { createContext, memo, useEffect, useLayoutEffect, useState, useCallback, useMemo, isValidElement, cloneElement, useContext, useRef, forwardRef, useImperativeHandle } from "react";
|
|
9
9
|
import EventEmitter from "EventEmitter";
|
|
10
|
-
import { Message, Radio, Select as Select$2, Checkbox, Grid, Button, Table, Input as Input$1, formilyReact, Icon, TimePicker2, ConfigProvider, formilyCore, CnForm, Range, Rating, componentMap, Card, Form, Dialog, CnAsyncSelect, Box, Collapse, Balloon, NumberPicker, CnSwitch, CnTooltip,
|
|
10
|
+
import { Message, Radio, Select as Select$2, Checkbox, Grid, Button, Table, Input as Input$1, formilyReact, Icon, TimePicker2, ConfigProvider, formilyCore, CnForm, Range, Rating, componentMap, Card, Form, Dialog, CnAsyncSelect, Box, Collapse, Balloon, Switch, NumberPicker, CnSwitch, CnTooltip, Tab, CnNumberPicker, CnRadioGroup, CnRadio, CnMessage, CnButton, CnIcon, CnDrawer, CnCard, CnTab, CnTabItem } from "@cainiaofe/cn-ui";
|
|
11
11
|
import { isArray as isArray$6, isObject as isObject$e, keys as keys$4, isString, remove } from "lodash";
|
|
12
12
|
import axios from "axios";
|
|
13
13
|
import { useDebounceFn, useToggle } from "ahooks";
|
|
@@ -3469,7 +3469,6 @@ class DetailItemSchema extends JSONWatch {
|
|
|
3469
3469
|
columnsDirection = "row",
|
|
3470
3470
|
columnsBoxes = [],
|
|
3471
3471
|
height = 100,
|
|
3472
|
-
hideCard = true,
|
|
3473
3472
|
...more2
|
|
3474
3473
|
} = props || {};
|
|
3475
3474
|
super({
|
|
@@ -3491,7 +3490,6 @@ class DetailItemSchema extends JSONWatch {
|
|
|
3491
3490
|
columnsDirection,
|
|
3492
3491
|
columnsBoxes,
|
|
3493
3492
|
height,
|
|
3494
|
-
hideCard,
|
|
3495
3493
|
...more2
|
|
3496
3494
|
});
|
|
3497
3495
|
}
|
|
@@ -25364,6 +25362,12 @@ function FilterPanel$2({ schema, swaggerFields = [] }) {
|
|
|
25364
25362
|
schema.set(item.name, item.value);
|
|
25365
25363
|
}
|
|
25366
25364
|
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25365
|
+
label: "\u9ED8\u8BA4\u5C55\u5F00:",
|
|
25366
|
+
name: "defaultExpand",
|
|
25367
|
+
help: "\u4EC5\u5728 \u65B0\u7248\u5E03\u5C40\u4E2D\u751F\u6548"
|
|
25368
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25369
|
+
defaultChecked: schema.get("defaultExpand")
|
|
25370
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25367
25371
|
label: "\u6587\u672C\u4F4D\u7F6E:",
|
|
25368
25372
|
name: "labelAlign"
|
|
25369
25373
|
}, /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
@@ -27642,6 +27646,11 @@ const customTitleRender = (props) => {
|
|
|
27642
27646
|
if (key === "type" && val === "detail-static-steps") {
|
|
27643
27647
|
data.initStepSource();
|
|
27644
27648
|
}
|
|
27649
|
+
if (key === "type" && val === "detail-columns") {
|
|
27650
|
+
data.set("hideCard", true);
|
|
27651
|
+
} else {
|
|
27652
|
+
data.set("hideCard", false);
|
|
27653
|
+
}
|
|
27645
27654
|
onChange(data);
|
|
27646
27655
|
};
|
|
27647
27656
|
return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
package/package.json
CHANGED
|
@@ -21,7 +21,6 @@ export default class DetailItemSchema extends JSONWatch {
|
|
|
21
21
|
columnsDirection = 'row', // 分栏组件 方向,默认横向分栏
|
|
22
22
|
columnsBoxes = [],
|
|
23
23
|
height = 100,
|
|
24
|
-
hideCard = true,
|
|
25
24
|
...more
|
|
26
25
|
} = props || {};
|
|
27
26
|
super({
|
|
@@ -43,7 +42,6 @@ export default class DetailItemSchema extends JSONWatch {
|
|
|
43
42
|
columnsDirection,
|
|
44
43
|
columnsBoxes,
|
|
45
44
|
height,
|
|
46
|
-
hideCard,
|
|
47
45
|
...more,
|
|
48
46
|
});
|
|
49
47
|
}
|
|
@@ -121,7 +121,7 @@ export default function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
121
121
|
ref={mddFormRef}
|
|
122
122
|
data={fields}
|
|
123
123
|
penetrateType={PenetrateTypes.FILTER}
|
|
124
|
-
componentOptions={[...componentOptions, { value: 'blocks-filter', label: '筛选项区块'
|
|
124
|
+
componentOptions={[...componentOptions, { value: 'blocks-filter', label: '筛选项区块' }]}
|
|
125
125
|
title="配置查询条件"
|
|
126
126
|
onAdd={onAddHandle}
|
|
127
127
|
onRemove={onRemoveHandle}
|
|
@@ -140,6 +140,9 @@ export default function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
140
140
|
schema.set(item.name, item.value);
|
|
141
141
|
}}
|
|
142
142
|
>
|
|
143
|
+
<Form.Item label="默认展开:" name="defaultExpand" help="仅在 新版布局中生效">
|
|
144
|
+
<Switch defaultChecked={schema.get('defaultExpand')} />
|
|
145
|
+
</Form.Item>
|
|
143
146
|
<Form.Item label="文本位置:" name="labelAlign">
|
|
144
147
|
<Select dataSource={labelDataSource} defaultValue={schema.get('labelAlign')} />
|
|
145
148
|
</Form.Item>
|