@pisell/materials 1.0.649 → 1.0.650
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/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/group/index.js +12 -2
- package/es/components/dataSourceComponents/dataSourceForm/group/index.less +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.less +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import useFormSetting from "../provider/hooks/useFormSetting";
|
|
4
4
|
import usePisellConfig from "../../../pisell-config-provider/hooks/usePisellConfig";
|
|
5
5
|
import "./index.less";
|
|
6
|
+
import { Col, Row } from 'antd';
|
|
6
7
|
/**
|
|
7
8
|
* @title: 表单分组组件
|
|
8
9
|
* @description: 用于在表单中划分分组,支持标题、描述、背景色等配置
|
|
@@ -51,15 +52,24 @@ var FormGroup = function FormGroup(props) {
|
|
|
51
52
|
'pisell-lowcode-data-source-form-group-top': groupInfoPosition === 'top',
|
|
52
53
|
'pisell-lowcode-data-source-form-group-side': groupInfoPosition === 'side'
|
|
53
54
|
})
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
56
|
+
style: {
|
|
57
|
+
flex: 1
|
|
58
|
+
},
|
|
59
|
+
gutter: 16
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
61
|
+
span: groupInfoPosition === 'top' ? 24 : 6
|
|
54
62
|
}, (propsShowTitle && title || propsShowDescription && description) && /*#__PURE__*/React.createElement("div", {
|
|
55
63
|
className: 'pisell-lowcode-data-source-form-group-info'
|
|
56
64
|
}, propsShowTitle && title && /*#__PURE__*/React.createElement("div", {
|
|
57
65
|
className: "pisell-lowcode-data-source-form-group-title"
|
|
58
66
|
}, title), propsShowDescription && description && /*#__PURE__*/React.createElement("div", {
|
|
59
67
|
className: "pisell-lowcode-data-source-form-group-description"
|
|
60
|
-
}, description)), /*#__PURE__*/React.createElement(
|
|
68
|
+
}, description))), /*#__PURE__*/React.createElement(Col, {
|
|
69
|
+
span: groupInfoPosition === 'top' ? 24 : 18
|
|
70
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
61
71
|
className: "pisell-lowcode-data-source-form-group-content",
|
|
62
72
|
style: contentStyle
|
|
63
|
-
}, children));
|
|
73
|
+
}, children))));
|
|
64
74
|
};
|
|
65
75
|
export default FormGroup;
|
|
@@ -37,6 +37,7 @@ var import_classnames = __toESM(require("classnames"));
|
|
|
37
37
|
var import_useFormSetting = __toESM(require("../provider/hooks/useFormSetting"));
|
|
38
38
|
var import_usePisellConfig = __toESM(require("../../../pisell-config-provider/hooks/usePisellConfig"));
|
|
39
39
|
var import_index = require("./index.less");
|
|
40
|
+
var import_antd = require("antd");
|
|
40
41
|
var FormGroup = (props) => {
|
|
41
42
|
const {
|
|
42
43
|
title,
|
|
@@ -73,15 +74,14 @@ var FormGroup = (props) => {
|
|
|
73
74
|
"pisell-lowcode-data-source-form-group-side": groupInfoPosition === "side"
|
|
74
75
|
})
|
|
75
76
|
},
|
|
76
|
-
(propsShowTitle && title || propsShowDescription && description) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-data-source-form-group-info" }, propsShowTitle && title && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-data-source-form-group-title" }, title), propsShowDescription && description && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-data-source-form-group-description" }, description)),
|
|
77
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
77
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { flex: 1 }, gutter: 16 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: groupInfoPosition === "top" ? 24 : 6 }, (propsShowTitle && title || propsShowDescription && description) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-data-source-form-group-info" }, propsShowTitle && title && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-data-source-form-group-title" }, title), propsShowDescription && description && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-data-source-form-group-description" }, description))), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: groupInfoPosition === "top" ? 24 : 18 }, /* @__PURE__ */ import_react.default.createElement(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
80
|
className: "pisell-lowcode-data-source-form-group-content",
|
|
81
81
|
style: contentStyle
|
|
82
82
|
},
|
|
83
83
|
children
|
|
84
|
-
)
|
|
84
|
+
)))
|
|
85
85
|
);
|
|
86
86
|
};
|
|
87
87
|
var group_default = FormGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.650",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
73
73
|
"react-window": "^1.8.10",
|
|
74
74
|
"styled-components": "^6.0.0-rc.3",
|
|
75
|
-
"@pisell/date-picker": "1.0.115",
|
|
76
75
|
"@pisell/icon": "0.0.10",
|
|
76
|
+
"@pisell/date-picker": "1.0.115",
|
|
77
77
|
"@pisell/utils": "1.0.43"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|