@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.
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
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 | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
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: "button" | "link";
50
+ type: "link" | "button";
51
51
  items: OperationItem[];
52
52
  } | undefined;
53
53
  operationContent?: {
@@ -18,6 +18,8 @@ export interface PisellHeaderProgressBarProps {
18
18
  className?: string;
19
19
  /** 自定义样式 */
20
20
  style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
21
23
  /** 返回按钮点击事件 */
22
24
  onBack?: () => void;
23
25
  /** 关闭按钮点击事件 */
@@ -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", {
@@ -4,6 +4,7 @@ export interface PisellList01Props {
4
4
  dataSource?: any[];
5
5
  showSearch: boolean;
6
6
  showCategory: boolean;
7
+ placeholder?: string;
7
8
  renderItem?: (item: any, index: number) => React.ReactNode;
8
9
  className?: string;
9
10
  style?: React.CSSProperties;
@@ -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: "Search",
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 | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
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 | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
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: "button" | "link";
50
+ type: "link" | "button";
51
51
  items: OperationItem[];
52
52
  } | undefined;
53
53
  operationContent?: {
@@ -18,6 +18,8 @@ export interface PisellHeaderProgressBarProps {
18
18
  className?: string;
19
19
  /** 自定义样式 */
20
20
  style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
21
23
  /** 返回按钮点击事件 */
22
24
  onBack?: () => void;
23
25
  /** 关闭按钮点击事件 */
@@ -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,
@@ -4,6 +4,7 @@ export interface PisellList01Props {
4
4
  dataSource?: any[];
5
5
  showSearch: boolean;
6
6
  showCategory: boolean;
7
+ placeholder?: string;
7
8
  renderItem?: (item: any, index: number) => React.ReactNode;
8
9
  className?: string;
9
10
  style?: React.CSSProperties;
@@ -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.525",
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/utils": "1.0.43",
74
- "@pisell/icon": "0.0.10"
73
+ "@pisell/icon": "0.0.10",
74
+ "@pisell/utils": "1.0.43"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "^18.0.0",