@pisell/materials 1.0.111 → 1.0.113

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.
Files changed (35) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/page/index.js +131 -131
  20. package/es/components/table/BasicTable/index.js +2 -3
  21. package/es/index.d.ts +1 -1
  22. package/es/index.js +2 -2
  23. package/lib/components/page/index.js +129 -129
  24. package/lib/components/table/BasicTable/index.js +2 -2
  25. package/lib/index.d.ts +1 -1
  26. package/lib/index.js +12 -12
  27. package/lowcode/classic-layout/meta.ts +115 -0
  28. package/lowcode/classic-layout/snippets.ts +65 -0
  29. package/lowcode/list/meta.ts +89 -4
  30. package/lowcode/list/snippets.ts +241 -60
  31. package/package.json +3 -3
  32. package/es/components/qrcode/index.d.ts +0 -3
  33. package/es/components/qrcode/index.js +0 -44
  34. package/lib/components/qrcode/index.d.ts +0 -3
  35. package/lib/components/qrcode/index.js +0 -68
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
@@ -5,146 +5,146 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
  import React from "react";
7
7
  import ConfigProvider from "../config-provider";
8
- import { AdapterDayjs } from "@pisell/date-picker/es/AdapterDayjs";
9
- import { LocalizationProvider, createTheme, ThemeProvider } from "@pisell/date-picker";
8
+ import { AdapterDayjs } from '@pisell/date-picker/es/AdapterDayjs';
9
+ import { LocalizationProvider, createTheme, ThemeProvider } from '@pisell/date-picker';
10
10
  var theme = {
11
- components: {
12
- Table: {
13
- colorFillContent: "#EAECF0",
14
- colorFillSecondary: "#F2F4F7",
15
- colorBorderSecondary: "#EAECF0",
16
- colorFillAlter: "#F9FAFB",
17
- controlItemBgHover: "#F9FAFB",
18
- colorTextHeading: "#475467",
19
- colorTextDescription: "#667085",
20
- colorText: "#101828",
21
- controlHeight: 32,
22
- padding: 24,
23
- margin: 16
11
+ "components": {
12
+ "Table": {
13
+ "colorFillContent": "#EAECF0",
14
+ "colorFillSecondary": "#F2F4F7",
15
+ "colorBorderSecondary": "#EAECF0",
16
+ "colorFillAlter": "#F9FAFB",
17
+ "controlItemBgHover": "#F9FAFB",
18
+ "colorTextHeading": "#475467",
19
+ "colorTextDescription": "#667085",
20
+ "colorText": "#101828",
21
+ "controlHeight": 32,
22
+ "padding": 24,
23
+ "margin": 16
24
24
  },
25
- Button: {
26
- borderRadiusSM: 6,
27
- borderRadiusLG: 9,
28
- borderRadius: 8,
29
- controlHeight: 36,
30
- colorBgContainerDisabled: "#F2F4F7",
31
- colorBgTextHover: "#F9FAFB",
32
- colorBorder: "#D0D5DD",
33
- colorError: "#D92D20",
34
- colorErrorActive: "#D92D20",
35
- colorErrorHover: "#B42318",
36
- colorErrorBg: "#FEF3F2",
37
- colorErrorBorderHover: "#FDA29B",
38
- colorErrorOutline: "rgba(217, 45, 32, 0.06)",
39
- colorLink: "#175CD3",
40
- colorLinkActive: "#194185",
41
- colorLinkHover: "#1849A9",
42
- colorPrimaryActive: "#7f56d9",
43
- colorPrimaryBorder: "#E9D7FE",
44
- colorText: "#344054",
45
- colorTextDisabled: "#D0D5DD",
46
- colorTextLightSolid: "#fff",
47
- colorBgTextActive: "#D0D5DD",
48
- controlOutline: "rgba(127, 86, 217, 0.04)",
49
- controlTmpOutline: "#F9FAFB",
50
- paddingContentHorizontal: 14,
51
- marginXS: 8
25
+ "Button": {
26
+ "borderRadiusSM": 6,
27
+ "borderRadiusLG": 9,
28
+ "borderRadius": 8,
29
+ "controlHeight": 36,
30
+ "colorBgContainerDisabled": "#F2F4F7",
31
+ "colorBgTextHover": "#F9FAFB",
32
+ "colorBorder": "#D0D5DD",
33
+ "colorError": "#D92D20",
34
+ "colorErrorActive": "#D92D20",
35
+ "colorErrorHover": "#B42318",
36
+ "colorErrorBg": "#FEF3F2",
37
+ "colorErrorBorderHover": "#FDA29B",
38
+ "colorErrorOutline": "rgba(217, 45, 32, 0.06)",
39
+ "colorLink": "#175CD3",
40
+ "colorLinkActive": "#194185",
41
+ "colorLinkHover": "#1849A9",
42
+ "colorPrimaryActive": "#7f56d9",
43
+ "colorPrimaryBorder": "#E9D7FE",
44
+ "colorText": "#344054",
45
+ "colorTextDisabled": "#D0D5DD",
46
+ "colorTextLightSolid": "#fff",
47
+ "colorBgTextActive": "#D0D5DD",
48
+ "controlOutline": "rgba(127, 86, 217, 0.04)",
49
+ "controlTmpOutline": "#F9FAFB",
50
+ "paddingContentHorizontal": 14,
51
+ "marginXS": 8
52
52
  },
53
- Divider: {
54
- colorSplit: "#EAECF0"
53
+ "Divider": {
54
+ "colorSplit": "#EAECF0"
55
55
  },
56
- Breadcrumb: {
57
- itemColor: "#475467",
58
- colorTextDescription: "#475467",
59
- lastItemColor: "#6941C6",
60
- separatorMargin: 12,
61
- separatorColor: "#D0D5DD",
62
- linkHoverColor: "#1D2939",
63
- linkColor: "#475467",
64
- colorBgTextHover: "#F9FAFB",
65
- paddingXXS: 8
56
+ "Breadcrumb": {
57
+ "itemColor": "#475467",
58
+ "colorTextDescription": "#475467",
59
+ "lastItemColor": "#6941C6",
60
+ "separatorMargin": 12,
61
+ "separatorColor": "#D0D5DD",
62
+ "linkHoverColor": "#1D2939",
63
+ "linkColor": "#475467",
64
+ "colorBgTextHover": "#F9FAFB",
65
+ "paddingXXS": 8
66
66
  },
67
- Dropdown: {
68
- borderRadiusLG: 8,
67
+ "Dropdown": {
68
+ "borderRadiusLG": 8,
69
69
  // "boxShadowPopoverArrow": "2px 2px 5px rgba(0, 0, 0, 0.05)",
70
- controlHeight: 42,
71
- fontSize: 14
70
+ "controlHeight": 42,
71
+ "fontSize": 14
72
72
  },
73
- DatePicker: {
74
- borderRadius: 8,
75
- colorTextPlaceholder: "#667085",
76
- colorIcon: "#667085",
77
- colorTextQuaternary: "#D0D5DD",
78
- colorBgContainerDisabled: "#F9FAFB",
79
- colorTextDisabled: "#98A2B3"
73
+ "DatePicker": {
74
+ "borderRadius": 8,
75
+ "colorTextPlaceholder": "#667085",
76
+ "colorIcon": "#667085",
77
+ "colorTextQuaternary": "#D0D5DD",
78
+ "colorBgContainerDisabled": "#F9FAFB",
79
+ "colorTextDisabled": "#98A2B3"
80
80
  }
81
81
  },
82
- token: {
83
- colorPrimary: "#7F56D9",
84
- colorPrimaryBg: "#F9F5FF",
85
- colorPrimaryBgHover: "#F4EBFF",
86
- colorPrimaryBorder: "#E9D7FE",
87
- colorPrimaryBorderHover: "#D6BBFB",
88
- colorPrimaryHover: "#6941C6",
89
- colorPrimaryActive: "#53389E",
90
- colorPrimaryTextHover: "#53389E",
91
- colorPrimaryText: "#6941C6",
92
- colorPrimaryTextActive: "#42307D",
93
- colorSuccess: "#079455",
94
- colorSuccessBg: "#ECFDF3",
95
- colorSuccessBgHover: "#DCFAE6",
96
- colorSuccessBorder: "#ABEFC6",
97
- colorSuccessBorderHover: "#75E0A7",
98
- colorSuccessHover: "#067647",
99
- colorSuccessText: "#067647",
100
- colorSuccessActive: "#085D3A",
101
- colorSuccessTextHover: "#085D3A",
102
- colorSuccessTextActive: "#074D31",
103
- colorWarning: "#dc6803",
104
- colorWarningBg: "#FFFAEB",
105
- colorWarningBgHover: "#FEF0C7",
106
- colorWarningBorder: "#FEDF89",
107
- colorWarningBorderHover: "#FEC84B",
108
- colorWarningHover: "#B54708",
109
- colorWarningText: "#B54708",
110
- colorWarningActive: "#93370D",
111
- colorWarningTextHover: "#93370D",
112
- colorWarningTextActive: "#7A2E0E",
113
- colorError: "#d92d20",
114
- colorErrorBg: "#FEF3F2",
115
- colorErrorBgHover: "#FEE4E2",
116
- colorErrorBorder: "#FECDCA",
117
- colorErrorBorderHover: "#FDA29B",
118
- colorErrorHover: "#B42318",
119
- colorErrorText: "#B42318",
120
- colorErrorActive: "#912018",
121
- colorErrorTextHover: "#912018",
122
- colorErrorTextActive: "#7A271A",
123
- colorInfo: "#1570ef",
124
- colorInfoBg: "#EFF8FF",
125
- colorInfoBgHover: "#D1E9FF",
126
- colorInfoBorder: "#B2DDFF",
127
- colorInfoBorderHover: "#84CAFF",
128
- colorInfoHover: "#175CD3",
129
- colorInfoText: "#175CD3",
130
- colorInfoActive: "#1849A9",
131
- colorInfoTextHover: "#1849A9",
132
- colorInfoTextActive: "#194185",
133
- colorText: "#101828",
134
- colorTextSecondary: "#475467",
135
- colorTextTertiary: "#667085",
136
- colorTextQuaternary: "#D0D5DD",
137
- colorBorder: "#D0D5DD",
138
- colorBorderSecondary: "#EAECF0",
139
- colorFill: "#D0D5DD",
140
- colorFillSecondary: "#EAECF0",
141
- colorFillTertiary: "#F2F4F7",
142
- colorFillQuaternary: "#F9FAFB",
143
- colorBgLayout: "#F2F4F7",
144
- colorBgSpotlight: "#101828",
145
- colorBgMask: "rgba(0, 0, 0, 0.5)",
146
- wireframe: false,
147
- borderRadius: 8
82
+ "token": {
83
+ "colorPrimary": "#7F56D9",
84
+ "colorPrimaryBg": "#F9F5FF",
85
+ "colorPrimaryBgHover": "#F4EBFF",
86
+ "colorPrimaryBorder": "#E9D7FE",
87
+ "colorPrimaryBorderHover": "#D6BBFB",
88
+ "colorPrimaryHover": "#6941C6",
89
+ "colorPrimaryActive": "#53389E",
90
+ "colorPrimaryTextHover": "#53389E",
91
+ "colorPrimaryText": "#6941C6",
92
+ "colorPrimaryTextActive": "#42307D",
93
+ "colorSuccess": "#079455",
94
+ "colorSuccessBg": "#ECFDF3",
95
+ "colorSuccessBgHover": "#DCFAE6",
96
+ "colorSuccessBorder": "#ABEFC6",
97
+ "colorSuccessBorderHover": "#75E0A7",
98
+ "colorSuccessHover": "#067647",
99
+ "colorSuccessText": "#067647",
100
+ "colorSuccessActive": "#085D3A",
101
+ "colorSuccessTextHover": "#085D3A",
102
+ "colorSuccessTextActive": "#074D31",
103
+ "colorWarning": "#dc6803",
104
+ "colorWarningBg": "#FFFAEB",
105
+ "colorWarningBgHover": "#FEF0C7",
106
+ "colorWarningBorder": "#FEDF89",
107
+ "colorWarningBorderHover": "#FEC84B",
108
+ "colorWarningHover": "#B54708",
109
+ "colorWarningText": "#B54708",
110
+ "colorWarningActive": "#93370D",
111
+ "colorWarningTextHover": "#93370D",
112
+ "colorWarningTextActive": "#7A2E0E",
113
+ "colorError": "#d92d20",
114
+ "colorErrorBg": "#FEF3F2",
115
+ "colorErrorBgHover": "#FEE4E2",
116
+ "colorErrorBorder": "#FECDCA",
117
+ "colorErrorBorderHover": "#FDA29B",
118
+ "colorErrorHover": "#B42318",
119
+ "colorErrorText": "#B42318",
120
+ "colorErrorActive": "#912018",
121
+ "colorErrorTextHover": "#912018",
122
+ "colorErrorTextActive": "#7A271A",
123
+ "colorInfo": "#1570ef",
124
+ "colorInfoBg": "#EFF8FF",
125
+ "colorInfoBgHover": "#D1E9FF",
126
+ "colorInfoBorder": "#B2DDFF",
127
+ "colorInfoBorderHover": "#84CAFF",
128
+ "colorInfoHover": "#175CD3",
129
+ "colorInfoText": "#175CD3",
130
+ "colorInfoActive": "#1849A9",
131
+ "colorInfoTextHover": "#1849A9",
132
+ "colorInfoTextActive": "#194185",
133
+ "colorText": "#101828",
134
+ "colorTextSecondary": "#475467",
135
+ "colorTextTertiary": "#667085",
136
+ "colorTextQuaternary": "#D0D5DD",
137
+ "colorBorder": "#D0D5DD",
138
+ "colorBorderSecondary": "#EAECF0",
139
+ "colorFill": "#D0D5DD",
140
+ "colorFillSecondary": "#EAECF0",
141
+ "colorFillTertiary": "#F2F4F7",
142
+ "colorFillQuaternary": "#F9FAFB",
143
+ "colorBgLayout": "#F2F4F7",
144
+ "colorBgSpotlight": "#101828",
145
+ "colorBgMask": "rgba(0, 0, 0, 0.5)",
146
+ "wireframe": false,
147
+ "borderRadius": 8
148
148
  }
149
149
  };
150
150
  var datePickerTheme = createTheme({
@@ -72,12 +72,11 @@ var BasicTable = function BasicTable(props) {
72
72
  // 总数
73
73
  var total = useMemo(function () {
74
74
  // 如果dataSource.length > 当前分页时为前端分页处理 此时total优先取_dataSource中total
75
- // 改为通过localPagination判断
76
- if (localPagination) {
75
+ if (dataSource.length > formPagination.size) {
77
76
  return (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.total) || 0;
78
77
  }
79
78
  return (pagination === null || pagination === void 0 ? void 0 : pagination.total) || (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.total) || 0;
80
- }, [_dataSource, pagination, localPagination]);
79
+ }, [_dataSource, pagination]);
81
80
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, _extends({}, other, {
82
81
  onChange: function onChange(pagination, filters, sorter) {
83
82
  form.setFieldsValue({
package/es/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { Progress } from "antd";
26
26
  export { Rate } from "antd";
27
27
  export { Result } from "antd";
28
28
  export { Row } from "antd";
29
+ export { QRCode } from "antd";
29
30
  export { Space } from "antd";
30
31
  export { Spin } from "antd";
31
32
  export { Steps } from "antd";
@@ -65,4 +66,3 @@ export { default as Filter } from "./components/filter";
65
66
  export { default as Translation } from "./components/translation";
66
67
  export { default as SortableList } from "./components/sortableList";
67
68
  export { default as RecordView } from "./components/record-view";
68
- export { default as QRCode } from "./components/qrcode";
package/es/index.js CHANGED
@@ -44,6 +44,7 @@ export { Row } from "antd";
44
44
 
45
45
  // export { Skeleton } from 'antd';
46
46
 
47
+ export { QRCode } from "antd";
47
48
  export { Space } from "antd";
48
49
  export { Spin } from "antd";
49
50
  export { Steps } from "antd";
@@ -87,5 +88,4 @@ export { default as Page } from "./components/page";
87
88
  export { default as Filter } from "./components/filter";
88
89
  export { default as Translation } from "./components/translation";
89
90
  export { default as SortableList } from "./components/sortableList";
90
- export { default as RecordView } from "./components/record-view";
91
- export { default as QRCode } from "./components/qrcode";
91
+ export { default as RecordView } from "./components/record-view";
@@ -37,143 +37,143 @@ var import_config_provider = __toESM(require("../config-provider"));
37
37
  var import_AdapterDayjs = require("@pisell/date-picker/es/AdapterDayjs");
38
38
  var import_date_picker = require("@pisell/date-picker");
39
39
  var theme = {
40
- components: {
41
- Table: {
42
- colorFillContent: "#EAECF0",
43
- colorFillSecondary: "#F2F4F7",
44
- colorBorderSecondary: "#EAECF0",
45
- colorFillAlter: "#F9FAFB",
46
- controlItemBgHover: "#F9FAFB",
47
- colorTextHeading: "#475467",
48
- colorTextDescription: "#667085",
49
- colorText: "#101828",
50
- controlHeight: 32,
51
- padding: 24,
52
- margin: 16
40
+ "components": {
41
+ "Table": {
42
+ "colorFillContent": "#EAECF0",
43
+ "colorFillSecondary": "#F2F4F7",
44
+ "colorBorderSecondary": "#EAECF0",
45
+ "colorFillAlter": "#F9FAFB",
46
+ "controlItemBgHover": "#F9FAFB",
47
+ "colorTextHeading": "#475467",
48
+ "colorTextDescription": "#667085",
49
+ "colorText": "#101828",
50
+ "controlHeight": 32,
51
+ "padding": 24,
52
+ "margin": 16
53
53
  },
54
- Button: {
55
- borderRadiusSM: 6,
56
- borderRadiusLG: 9,
57
- borderRadius: 8,
58
- controlHeight: 36,
59
- colorBgContainerDisabled: "#F2F4F7",
60
- colorBgTextHover: "#F9FAFB",
61
- colorBorder: "#D0D5DD",
62
- colorError: "#D92D20",
63
- colorErrorActive: "#D92D20",
64
- colorErrorHover: "#B42318",
65
- colorErrorBg: "#FEF3F2",
66
- colorErrorBorderHover: "#FDA29B",
67
- colorErrorOutline: "rgba(217, 45, 32, 0.06)",
68
- colorLink: "#175CD3",
69
- colorLinkActive: "#194185",
70
- colorLinkHover: "#1849A9",
71
- colorPrimaryActive: "#7f56d9",
72
- colorPrimaryBorder: "#E9D7FE",
73
- colorText: "#344054",
74
- colorTextDisabled: "#D0D5DD",
75
- colorTextLightSolid: "#fff",
76
- colorBgTextActive: "#D0D5DD",
77
- controlOutline: "rgba(127, 86, 217, 0.04)",
78
- controlTmpOutline: "#F9FAFB",
79
- paddingContentHorizontal: 14,
80
- marginXS: 8
54
+ "Button": {
55
+ "borderRadiusSM": 6,
56
+ "borderRadiusLG": 9,
57
+ "borderRadius": 8,
58
+ "controlHeight": 36,
59
+ "colorBgContainerDisabled": "#F2F4F7",
60
+ "colorBgTextHover": "#F9FAFB",
61
+ "colorBorder": "#D0D5DD",
62
+ "colorError": "#D92D20",
63
+ "colorErrorActive": "#D92D20",
64
+ "colorErrorHover": "#B42318",
65
+ "colorErrorBg": "#FEF3F2",
66
+ "colorErrorBorderHover": "#FDA29B",
67
+ "colorErrorOutline": "rgba(217, 45, 32, 0.06)",
68
+ "colorLink": "#175CD3",
69
+ "colorLinkActive": "#194185",
70
+ "colorLinkHover": "#1849A9",
71
+ "colorPrimaryActive": "#7f56d9",
72
+ "colorPrimaryBorder": "#E9D7FE",
73
+ "colorText": "#344054",
74
+ "colorTextDisabled": "#D0D5DD",
75
+ "colorTextLightSolid": "#fff",
76
+ "colorBgTextActive": "#D0D5DD",
77
+ "controlOutline": "rgba(127, 86, 217, 0.04)",
78
+ "controlTmpOutline": "#F9FAFB",
79
+ "paddingContentHorizontal": 14,
80
+ "marginXS": 8
81
81
  },
82
- Divider: {
83
- colorSplit: "#EAECF0"
82
+ "Divider": {
83
+ "colorSplit": "#EAECF0"
84
84
  },
85
- Breadcrumb: {
86
- itemColor: "#475467",
87
- colorTextDescription: "#475467",
88
- lastItemColor: "#6941C6",
89
- separatorMargin: 12,
90
- separatorColor: "#D0D5DD",
91
- linkHoverColor: "#1D2939",
92
- linkColor: "#475467",
93
- colorBgTextHover: "#F9FAFB",
94
- paddingXXS: 8
85
+ "Breadcrumb": {
86
+ "itemColor": "#475467",
87
+ "colorTextDescription": "#475467",
88
+ "lastItemColor": "#6941C6",
89
+ "separatorMargin": 12,
90
+ "separatorColor": "#D0D5DD",
91
+ "linkHoverColor": "#1D2939",
92
+ "linkColor": "#475467",
93
+ "colorBgTextHover": "#F9FAFB",
94
+ "paddingXXS": 8
95
95
  },
96
- Dropdown: {
97
- borderRadiusLG: 8,
96
+ "Dropdown": {
97
+ "borderRadiusLG": 8,
98
98
  // "boxShadowPopoverArrow": "2px 2px 5px rgba(0, 0, 0, 0.05)",
99
- controlHeight: 42,
100
- fontSize: 14
99
+ "controlHeight": 42,
100
+ "fontSize": 14
101
101
  },
102
- DatePicker: {
103
- borderRadius: 8,
104
- colorTextPlaceholder: "#667085",
105
- colorIcon: "#667085",
106
- colorTextQuaternary: "#D0D5DD",
107
- colorBgContainerDisabled: "#F9FAFB",
108
- colorTextDisabled: "#98A2B3"
102
+ "DatePicker": {
103
+ "borderRadius": 8,
104
+ "colorTextPlaceholder": "#667085",
105
+ "colorIcon": "#667085",
106
+ "colorTextQuaternary": "#D0D5DD",
107
+ "colorBgContainerDisabled": "#F9FAFB",
108
+ "colorTextDisabled": "#98A2B3"
109
109
  }
110
110
  },
111
- token: {
112
- colorPrimary: "#7F56D9",
113
- colorPrimaryBg: "#F9F5FF",
114
- colorPrimaryBgHover: "#F4EBFF",
115
- colorPrimaryBorder: "#E9D7FE",
116
- colorPrimaryBorderHover: "#D6BBFB",
117
- colorPrimaryHover: "#6941C6",
118
- colorPrimaryActive: "#53389E",
119
- colorPrimaryTextHover: "#53389E",
120
- colorPrimaryText: "#6941C6",
121
- colorPrimaryTextActive: "#42307D",
122
- colorSuccess: "#079455",
123
- colorSuccessBg: "#ECFDF3",
124
- colorSuccessBgHover: "#DCFAE6",
125
- colorSuccessBorder: "#ABEFC6",
126
- colorSuccessBorderHover: "#75E0A7",
127
- colorSuccessHover: "#067647",
128
- colorSuccessText: "#067647",
129
- colorSuccessActive: "#085D3A",
130
- colorSuccessTextHover: "#085D3A",
131
- colorSuccessTextActive: "#074D31",
132
- colorWarning: "#dc6803",
133
- colorWarningBg: "#FFFAEB",
134
- colorWarningBgHover: "#FEF0C7",
135
- colorWarningBorder: "#FEDF89",
136
- colorWarningBorderHover: "#FEC84B",
137
- colorWarningHover: "#B54708",
138
- colorWarningText: "#B54708",
139
- colorWarningActive: "#93370D",
140
- colorWarningTextHover: "#93370D",
141
- colorWarningTextActive: "#7A2E0E",
142
- colorError: "#d92d20",
143
- colorErrorBg: "#FEF3F2",
144
- colorErrorBgHover: "#FEE4E2",
145
- colorErrorBorder: "#FECDCA",
146
- colorErrorBorderHover: "#FDA29B",
147
- colorErrorHover: "#B42318",
148
- colorErrorText: "#B42318",
149
- colorErrorActive: "#912018",
150
- colorErrorTextHover: "#912018",
151
- colorErrorTextActive: "#7A271A",
152
- colorInfo: "#1570ef",
153
- colorInfoBg: "#EFF8FF",
154
- colorInfoBgHover: "#D1E9FF",
155
- colorInfoBorder: "#B2DDFF",
156
- colorInfoBorderHover: "#84CAFF",
157
- colorInfoHover: "#175CD3",
158
- colorInfoText: "#175CD3",
159
- colorInfoActive: "#1849A9",
160
- colorInfoTextHover: "#1849A9",
161
- colorInfoTextActive: "#194185",
162
- colorText: "#101828",
163
- colorTextSecondary: "#475467",
164
- colorTextTertiary: "#667085",
165
- colorTextQuaternary: "#D0D5DD",
166
- colorBorder: "#D0D5DD",
167
- colorBorderSecondary: "#EAECF0",
168
- colorFill: "#D0D5DD",
169
- colorFillSecondary: "#EAECF0",
170
- colorFillTertiary: "#F2F4F7",
171
- colorFillQuaternary: "#F9FAFB",
172
- colorBgLayout: "#F2F4F7",
173
- colorBgSpotlight: "#101828",
174
- colorBgMask: "rgba(0, 0, 0, 0.5)",
175
- wireframe: false,
176
- borderRadius: 8
111
+ "token": {
112
+ "colorPrimary": "#7F56D9",
113
+ "colorPrimaryBg": "#F9F5FF",
114
+ "colorPrimaryBgHover": "#F4EBFF",
115
+ "colorPrimaryBorder": "#E9D7FE",
116
+ "colorPrimaryBorderHover": "#D6BBFB",
117
+ "colorPrimaryHover": "#6941C6",
118
+ "colorPrimaryActive": "#53389E",
119
+ "colorPrimaryTextHover": "#53389E",
120
+ "colorPrimaryText": "#6941C6",
121
+ "colorPrimaryTextActive": "#42307D",
122
+ "colorSuccess": "#079455",
123
+ "colorSuccessBg": "#ECFDF3",
124
+ "colorSuccessBgHover": "#DCFAE6",
125
+ "colorSuccessBorder": "#ABEFC6",
126
+ "colorSuccessBorderHover": "#75E0A7",
127
+ "colorSuccessHover": "#067647",
128
+ "colorSuccessText": "#067647",
129
+ "colorSuccessActive": "#085D3A",
130
+ "colorSuccessTextHover": "#085D3A",
131
+ "colorSuccessTextActive": "#074D31",
132
+ "colorWarning": "#dc6803",
133
+ "colorWarningBg": "#FFFAEB",
134
+ "colorWarningBgHover": "#FEF0C7",
135
+ "colorWarningBorder": "#FEDF89",
136
+ "colorWarningBorderHover": "#FEC84B",
137
+ "colorWarningHover": "#B54708",
138
+ "colorWarningText": "#B54708",
139
+ "colorWarningActive": "#93370D",
140
+ "colorWarningTextHover": "#93370D",
141
+ "colorWarningTextActive": "#7A2E0E",
142
+ "colorError": "#d92d20",
143
+ "colorErrorBg": "#FEF3F2",
144
+ "colorErrorBgHover": "#FEE4E2",
145
+ "colorErrorBorder": "#FECDCA",
146
+ "colorErrorBorderHover": "#FDA29B",
147
+ "colorErrorHover": "#B42318",
148
+ "colorErrorText": "#B42318",
149
+ "colorErrorActive": "#912018",
150
+ "colorErrorTextHover": "#912018",
151
+ "colorErrorTextActive": "#7A271A",
152
+ "colorInfo": "#1570ef",
153
+ "colorInfoBg": "#EFF8FF",
154
+ "colorInfoBgHover": "#D1E9FF",
155
+ "colorInfoBorder": "#B2DDFF",
156
+ "colorInfoBorderHover": "#84CAFF",
157
+ "colorInfoHover": "#175CD3",
158
+ "colorInfoText": "#175CD3",
159
+ "colorInfoActive": "#1849A9",
160
+ "colorInfoTextHover": "#1849A9",
161
+ "colorInfoTextActive": "#194185",
162
+ "colorText": "#101828",
163
+ "colorTextSecondary": "#475467",
164
+ "colorTextTertiary": "#667085",
165
+ "colorTextQuaternary": "#D0D5DD",
166
+ "colorBorder": "#D0D5DD",
167
+ "colorBorderSecondary": "#EAECF0",
168
+ "colorFill": "#D0D5DD",
169
+ "colorFillSecondary": "#EAECF0",
170
+ "colorFillTertiary": "#F2F4F7",
171
+ "colorFillQuaternary": "#F9FAFB",
172
+ "colorBgLayout": "#F2F4F7",
173
+ "colorBgSpotlight": "#101828",
174
+ "colorBgMask": "rgba(0, 0, 0, 0.5)",
175
+ "wireframe": false,
176
+ "borderRadius": 8
177
177
  }
178
178
  };
179
179
  var _a;
@@ -85,11 +85,11 @@ var BasicTable = (props) => {
85
85
  other.columns
86
86
  ]);
87
87
  const total = (0, import_react.useMemo)(() => {
88
- if (localPagination) {
88
+ if (dataSource.length > formPagination.size) {
89
89
  return (_dataSource == null ? void 0 : _dataSource.total) || 0;
90
90
  }
91
91
  return (pagination == null ? void 0 : pagination.total) || (_dataSource == null ? void 0 : _dataSource.total) || 0;
92
- }, [_dataSource, pagination, localPagination]);
92
+ }, [_dataSource, pagination]);
93
93
  return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
94
94
  import_antd.Table,
95
95
  {