@pisell/materials 1.0.633 → 1.0.634

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 | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => 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 | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => 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: "link" | "button";
50
+ type: "button" | "link";
51
51
  items: OperationItem[];
52
52
  } | undefined;
53
53
  operationContent?: {
@@ -4,6 +4,7 @@ declare const SelectWithDataSource: (props: import("antd").SelectProps<any, impo
4
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
+ extraParams?: Record<string, any> | undefined;
7
8
  } & {
8
9
  dataSource?: any;
9
10
  }) => React.JSX.Element;
@@ -38,6 +38,7 @@ declare const formFieldMap: {
38
38
  optionSourceType?: "default" | "custom" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
+ extraParams?: Record<string, any> | undefined;
41
42
  } & {
42
43
  dataSource?: any;
43
44
  }) => import("react").JSX.Element;
@@ -94,6 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
94
95
  optionSourceType?: "default" | "custom" | "api" | undefined;
95
96
  labelField: string;
96
97
  valueField: string;
98
+ extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
101
  }) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -218,7 +218,7 @@ var useActions = function useActions() {
218
218
  return _context3.abrupt("return", {});
219
219
  case 5:
220
220
  getApi = genCustomApi(actions === null || actions === void 0 ? void 0 : actions.get);
221
- return _context3.abrupt("return", getApi({}));
221
+ return _context3.abrupt("return", getApi(extraParams === null || extraParams === void 0 ? void 0 : extraParams.get));
222
222
  case 7:
223
223
  _context3.next = 9;
224
224
  return getNocobaseData({
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import { createFromIconfontCN } from '@ant-design/icons';
3
3
  import React from 'react';
4
4
  var MyIcon = createFromIconfontCN({
5
- scriptUrl: 'https://static.pisellcdn.com/pisell2/iconfont_1.0.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2/iconfont_1.1.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
 
8
8
  var IconFont = function IconFont(props) {
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => 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 | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => 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: "link" | "button";
50
+ type: "button" | "link";
51
51
  items: OperationItem[];
52
52
  } | undefined;
53
53
  operationContent?: {
@@ -4,6 +4,7 @@ declare const SelectWithDataSource: (props: import("antd").SelectProps<any, impo
4
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
+ extraParams?: Record<string, any> | undefined;
7
8
  } & {
8
9
  dataSource?: any;
9
10
  }) => React.JSX.Element;
@@ -38,6 +38,7 @@ declare const formFieldMap: {
38
38
  optionSourceType?: "default" | "custom" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
+ extraParams?: Record<string, any> | undefined;
41
42
  } & {
42
43
  dataSource?: any;
43
44
  }) => import("react").JSX.Element;
@@ -94,6 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
94
95
  optionSourceType?: "default" | "custom" | "api" | undefined;
95
96
  labelField: string;
96
97
  valueField: string;
98
+ extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
101
  }) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -151,7 +151,7 @@ var useActions = ({
151
151
  return {};
152
152
  }
153
153
  const getApi = genCustomApi(actions == null ? void 0 : actions.get);
154
- return getApi({});
154
+ return getApi(extraParams == null ? void 0 : extraParams.get);
155
155
  }
156
156
  const res = await (0, import_serve.getNocobaseData)({
157
157
  key: name || "",
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2/iconfont_1.0.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2/iconfont_1.1.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.633",
3
+ "version": "1.0.634",
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
  "vod-js-sdk-v6": "^1.4.11",
73
- "@pisell/utils": "1.0.43",
74
73
  "@pisell/date-picker": "1.0.115",
74
+ "@pisell/utils": "1.0.43",
75
75
  "@pisell/icon": "0.0.10"
76
76
  },
77
77
  "peerDependencies": {