@cniot/mdd-editor 0.2.0-beta.40 → 0.2.0-beta.41
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/README.MD +3 -0
- package/build/index.cjs.js +1 -1
- package/build/index.es.js +7 -1
- package/package.json +1 -1
- package/src/template/ftp/Filter.jsx +4 -1
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";
|
|
@@ -25364,6 +25364,12 @@ function FilterPanel$2({ schema, swaggerFields = [] }) {
|
|
|
25364
25364
|
schema.set(item.name, item.value);
|
|
25365
25365
|
}
|
|
25366
25366
|
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25367
|
+
label: "\u9ED8\u8BA4\u5C55\u5F00:",
|
|
25368
|
+
name: "defaultExpand",
|
|
25369
|
+
help: "\u4EC5\u5728 \u65B0\u7248\u5E03\u5C40\u4E2D\u751F\u6548"
|
|
25370
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25371
|
+
defaultChecked: schema.get("defaultExpand")
|
|
25372
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25367
25373
|
label: "\u6587\u672C\u4F4D\u7F6E:",
|
|
25368
25374
|
name: "labelAlign"
|
|
25369
25375
|
}, /* @__PURE__ */ React$1.createElement(Select$2, {
|
package/package.json
CHANGED
|
@@ -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>
|