@pisell/materials 1.0.525 → 1.0.527
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/pisellHeaderProgressBar/index.d.ts +2 -0
- package/es/components/pisellHeaderProgressBar/index.js +4 -2
- package/es/components/pisellList01/index.d.ts +1 -0
- package/es/components/pisellList01/index.js +2 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/pisellHeaderProgressBar/index.d.ts +2 -0
- package/lib/components/pisellHeaderProgressBar/index.js +3 -2
- package/lib/components/pisellList01/index.d.ts +1 -0
- package/lib/components/pisellList01/index.js +2 -1
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: React.JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
47
47
|
width: number;
|
|
48
48
|
align: "center" | "left" | "right";
|
|
49
49
|
fixed: false | "left" | "right";
|
|
50
|
-
type: "
|
|
50
|
+
type: "link" | "button";
|
|
51
51
|
items: OperationItem[];
|
|
52
52
|
} | undefined;
|
|
53
53
|
operationContent?: {
|
|
@@ -13,6 +13,8 @@ var prefixCls = 'pisell-header-progress-bar';
|
|
|
13
13
|
var PisellHeaderProgressBar = function PisellHeaderProgressBar(_ref) {
|
|
14
14
|
var title = _ref.title,
|
|
15
15
|
stepText = _ref.stepText,
|
|
16
|
+
_ref$showBack = _ref.showBack,
|
|
17
|
+
showBack = _ref$showBack === void 0 ? true : _ref$showBack,
|
|
16
18
|
_ref$showClose = _ref.showClose,
|
|
17
19
|
showClose = _ref$showClose === void 0 ? true : _ref$showClose,
|
|
18
20
|
_ref$enableShadow = _ref.enableShadow,
|
|
@@ -50,10 +52,10 @@ var PisellHeaderProgressBar = function PisellHeaderProgressBar(_ref) {
|
|
|
50
52
|
borderBottom: enableBorder ? "".concat(borderWidth, "px solid ").concat(borderColor) : 'none'
|
|
51
53
|
});
|
|
52
54
|
return /*#__PURE__*/React.createElement(PisellSectionHeaders, {
|
|
53
|
-
backNode: /*#__PURE__*/React.createElement(Iconfont, {
|
|
55
|
+
backNode: showBack ? /*#__PURE__*/React.createElement(Iconfont, {
|
|
54
56
|
className: "".concat(prefixCls, "-back-icon"),
|
|
55
57
|
type: "pisell2-chevron-left"
|
|
56
|
-
}),
|
|
58
|
+
}) : null,
|
|
57
59
|
centerNode: /*#__PURE__*/React.createElement("div", {
|
|
58
60
|
className: "".concat(prefixCls, "-center")
|
|
59
61
|
}, stepText ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -13,6 +13,7 @@ import "./index.less";
|
|
|
13
13
|
var PisellList01 = function PisellList01(_ref) {
|
|
14
14
|
var showSearch = _ref.showSearch,
|
|
15
15
|
showCategory = _ref.showCategory,
|
|
16
|
+
placeholder = _ref.placeholder,
|
|
16
17
|
dataSource = _ref.dataSource,
|
|
17
18
|
renderItem = _ref.renderItem,
|
|
18
19
|
className = _ref.className,
|
|
@@ -65,7 +66,7 @@ var PisellList01 = function PisellList01(_ref) {
|
|
|
65
66
|
}, showSearch ? /*#__PURE__*/React.createElement("div", {
|
|
66
67
|
className: "pisell-list-01-search"
|
|
67
68
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
68
|
-
placeholder:
|
|
69
|
+
placeholder: placeholder || 'Search',
|
|
69
70
|
prefix: /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
70
71
|
style: {
|
|
71
72
|
color: '#667085'
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: React.JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
47
47
|
width: number;
|
|
48
48
|
align: "center" | "left" | "right";
|
|
49
49
|
fixed: false | "left" | "right";
|
|
50
|
-
type: "
|
|
50
|
+
type: "link" | "button";
|
|
51
51
|
items: OperationItem[];
|
|
52
52
|
} | undefined;
|
|
53
53
|
operationContent?: {
|
|
@@ -41,6 +41,7 @@ var prefixCls = "pisell-header-progress-bar";
|
|
|
41
41
|
var PisellHeaderProgressBar = ({
|
|
42
42
|
title,
|
|
43
43
|
stepText,
|
|
44
|
+
showBack = true,
|
|
44
45
|
showClose = true,
|
|
45
46
|
enableShadow = false,
|
|
46
47
|
enableBorder = false,
|
|
@@ -62,13 +63,13 @@ var PisellHeaderProgressBar = ({
|
|
|
62
63
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
63
64
|
import_pisellSectionHeaders.default,
|
|
64
65
|
{
|
|
65
|
-
backNode: /* @__PURE__ */ import_react.default.createElement(
|
|
66
|
+
backNode: showBack ? /* @__PURE__ */ import_react.default.createElement(
|
|
66
67
|
import_iconfont.default,
|
|
67
68
|
{
|
|
68
69
|
className: `${prefixCls}-back-icon`,
|
|
69
70
|
type: "pisell2-chevron-left"
|
|
70
71
|
}
|
|
71
|
-
),
|
|
72
|
+
) : null,
|
|
72
73
|
centerNode: /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-center` }, stepText ? /* @__PURE__ */ import_react.default.createElement("div", { className: "step" }, stepText) : null, title ? /* @__PURE__ */ import_react.default.createElement("div", { className: "select-text" }, title) : null),
|
|
73
74
|
actionNode: showClose ? /* @__PURE__ */ import_react.default.createElement(
|
|
74
75
|
import_iconfont.default,
|
|
@@ -41,6 +41,7 @@ var import_index = require("./index.less");
|
|
|
41
41
|
var PisellList01 = ({
|
|
42
42
|
showSearch,
|
|
43
43
|
showCategory,
|
|
44
|
+
placeholder,
|
|
44
45
|
dataSource,
|
|
45
46
|
renderItem,
|
|
46
47
|
className,
|
|
@@ -72,7 +73,7 @@ var PisellList01 = ({
|
|
|
72
73
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-list-01 ${className}`, style }, showSearch ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-list-01-search" }, /* @__PURE__ */ import_react.default.createElement(
|
|
73
74
|
import_input.default,
|
|
74
75
|
{
|
|
75
|
-
placeholder: "Search",
|
|
76
|
+
placeholder: placeholder || "Search",
|
|
76
77
|
prefix: /* @__PURE__ */ import_react.default.createElement(import_icons.SearchOutlined, { style: { color: "#667085" } }),
|
|
77
78
|
onChange: onSearch,
|
|
78
79
|
allowClear: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.527",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"swiper": "^8.4.7",
|
|
71
71
|
"react-barcode": "^1.5.3",
|
|
72
72
|
"@pisell/date-picker": "1.0.114",
|
|
73
|
-
"@pisell/
|
|
74
|
-
"@pisell/
|
|
73
|
+
"@pisell/icon": "0.0.10",
|
|
74
|
+
"@pisell/utils": "1.0.43"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "^18.0.0",
|