zmdms-webui 2.1.6 → 2.1.8
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/es/cascader/Cascader.js +9 -0
- package/dist/es/cascader/index.js +1 -0
- package/dist/es/formitem/formItem.d.ts +0 -4
- package/dist/es/formitem/formItem.js +7 -10
- package/dist/index.dark.css +1 -1
- package/dist/index.default.css +1 -1
- package/package.json +1 -1
- package/dist/es/collapse/index.css +0 -1
- package/dist/es/container/index.css +0 -1
- package/dist/es/datepicker/index.css +0 -1
- package/dist/es/descriptions/index.css +0 -1
- package/dist/es/detaillist/index.css +0 -1
- package/dist/es/differences/index.css +0 -1
- package/dist/es/dynamicsetting/index.css +0 -1
- package/dist/es/electronsignatures/index.css +0 -1
- package/dist/es/footer/index.css +0 -1
- package/dist/es/form/index.css +0 -1
- package/dist/es/formitem/index.css +0 -1
- package/dist/es/input/index.css +0 -1
- package/dist/es/inputnumber/index.css +0 -1
- package/dist/es/leftcontent/index.css +0 -1
- package/dist/es/message/index.css +0 -1
- package/dist/es/microloading/index.css +0 -1
- package/dist/es/modal/index.css +0 -1
- package/dist/es/notauthpage/index.css +0 -0
- package/dist/es/notroutepage/index.css +0 -0
- package/dist/es/pagination/index.css +0 -1
- package/dist/es/placeholder/index.css +0 -1
- package/dist/es/print/index.css +0 -1
- package/dist/es/select/index.css +0 -1
- package/dist/es/table/index.css +0 -1
- package/dist/es/tabs/index.css +0 -1
- package/dist/es/tag/index.css +0 -1
- package/dist/es/title/index.css +0 -1
- package/dist/es/tree/index.css +0 -1
- package/dist/es/treeselect/index.css +0 -1
- package/dist/es/uploadlist/index.css +0 -1
- package/dist/es/watermark/index.css +0 -1
- package/dist/es/zttransfer/index.css +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __assign } from '../_virtual/_tslib.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Cascader as Cascader$1 } from 'antd';
|
|
4
|
+
|
|
5
|
+
var Cascader = function (props) {
|
|
6
|
+
return jsx(Cascader$1, __assign({}, props));
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { Cascader as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Cascader } from './Cascader.js';
|
|
@@ -107,10 +107,6 @@ interface IFormItem extends FormItemProps {
|
|
|
107
107
|
* 布局
|
|
108
108
|
*/
|
|
109
109
|
directionColumn?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* 额外的组件,不用走formItem
|
|
112
|
-
*/
|
|
113
|
-
outsideRender?: (itemProps: any, formInstance?: FormInstance<any>) => React__default.ReactNode;
|
|
114
110
|
}
|
|
115
111
|
declare const _default: React__default.NamedExoticComponent<IFormItem & {
|
|
116
112
|
outsideState: any;
|
|
@@ -10,25 +10,16 @@ import { Col, Tooltip } from 'antd';
|
|
|
10
10
|
|
|
11
11
|
var hiddenLabelCol = { span: 0 };
|
|
12
12
|
var FormItem = function (props) {
|
|
13
|
-
var children = props.children, isDisplay = props.isDisplay, isRequired = props.isRequired, isChangeable = props.isChangeable, isStress = props.isStress, preNode = props.preNode, nextNode = props.nextNode; props.dynamicDisabled; var hiddenBorder = props.hiddenBorder, singleSelectShowBorder = props.singleSelectShowBorder, singleSelect = props.singleSelect, hiddenLabel = props.hiddenLabel, width = props.width, className = props.className, itemClassName = props.itemClassName, render = props.render, shouldUpdateNames = props.shouldUpdateNames; props.shouldUpdateClear; var dependencies = props.dependencies, shouldUpdate = props.shouldUpdate; props.index; props.outsideState; props.shouldUpdateBeOutsideState; props.nonForm; var isCustomItem = props.isCustomItem, customStyle = props.customStyle, tipString = props.tipString, directionColumn = props.directionColumn, divider = props.divider,
|
|
13
|
+
var children = props.children, isDisplay = props.isDisplay, isRequired = props.isRequired, isChangeable = props.isChangeable, isStress = props.isStress, preNode = props.preNode, nextNode = props.nextNode; props.dynamicDisabled; var hiddenBorder = props.hiddenBorder, singleSelectShowBorder = props.singleSelectShowBorder, singleSelect = props.singleSelect, hiddenLabel = props.hiddenLabel, width = props.width, className = props.className, itemClassName = props.itemClassName, render = props.render, shouldUpdateNames = props.shouldUpdateNames; props.shouldUpdateClear; var dependencies = props.dependencies, shouldUpdate = props.shouldUpdate; props.index; props.outsideState; props.shouldUpdateBeOutsideState; props.nonForm; var isCustomItem = props.isCustomItem, customStyle = props.customStyle, tipString = props.tipString, directionColumn = props.directionColumn, divider = props.divider, resetProps = __rest(props, ["children", "isDisplay", "isRequired", "isChangeable", "isStress", "preNode", "nextNode", "dynamicDisabled", "hiddenBorder", "singleSelectShowBorder", "singleSelect", "hiddenLabel", "width", "className", "itemClassName", "render", "shouldUpdateNames", "shouldUpdateClear", "dependencies", "shouldUpdate", "index", "outsideState", "shouldUpdateBeOutsideState", "nonForm", "isCustomItem", "customStyle", "tipString", "directionColumn", "divider"]);
|
|
14
14
|
var form = MemoForm.useFormInstance();
|
|
15
15
|
// 根据配置属性,判断是否渲染表单项
|
|
16
16
|
// 是否显示表单项
|
|
17
17
|
if (isDisplay === false || isDisplay === "0") {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
if (typeof isDisplay === "function") {
|
|
21
|
-
var isD = isDisplay(form);
|
|
22
|
-
if (!isD) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
20
|
if (divider) {
|
|
27
21
|
return (jsx(ItemWrap, { width: width, className: className, tipString: tipString, style: { paddingBottom: 0 } }));
|
|
28
22
|
}
|
|
29
|
-
if (outsideRender) {
|
|
30
|
-
return (jsx(ItemWrap, __assign({ width: width, className: className, tipString: tipString, style: { paddingBottom: 0, display: "block" } }, { children: outsideRender(resetProps, form) })));
|
|
31
|
-
}
|
|
32
23
|
// 更新是否必填配置
|
|
33
24
|
var updateIsRequired = function (isRequired) {
|
|
34
25
|
var _a;
|
|
@@ -106,6 +97,12 @@ var FormItem = function (props) {
|
|
|
106
97
|
}
|
|
107
98
|
: shouldUpdate;
|
|
108
99
|
return (jsx(MemoForm.Item, __assign({ shouldUpdate: shouldUpdateHandle, noStyle: true }, { children: function (formInstance) {
|
|
100
|
+
if (typeof isDisplay === "function") {
|
|
101
|
+
var isD = isDisplay(form);
|
|
102
|
+
if (!isD) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
109
106
|
if (typeof isRequired === "function") {
|
|
110
107
|
var isR = isRequired(form);
|
|
111
108
|
updateIsRequired(isR);
|