@arim-aisdc/public-components 2.2.1 → 2.2.2

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 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
17
17
  value: any;
18
18
  field: string;
19
19
  label?: string;
20
- text: string | JSX.Element | Element;
20
+ text: string | Element | JSX.Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -399,6 +399,7 @@ var CustomForm = function CustomForm(_ref, ref) {
399
399
  case CustomFormItemType.DateTime:
400
400
  element = /*#__PURE__*/_jsx(DatePicker, {
401
401
  showTime: true,
402
+ picker: (item === null || item === void 0 ? void 0 : item.picker) || 'date',
402
403
  style: {
403
404
  width: item !== null && item !== void 0 && item.wapperWidth ? item === null || item === void 0 ? void 0 : item.wapperWidth : '100%'
404
405
  }
@@ -58,6 +58,8 @@ export declare enum PickerType {
58
58
  Week = "week",
59
59
  Quarter = "quarter "
60
60
  }
61
+ type PanelMode = 'time' | 'date' | 'week' | 'month' | 'quarter' | 'year' | 'decade';
62
+ export type PickerMode = Exclude<PanelMode, 'datetime' | 'decade'>;
61
63
  export type CustomSearchFieldType = {
62
64
  field: string;
63
65
  label?: ReactNode | string;
@@ -70,7 +72,7 @@ export type CustomSearchFieldType = {
70
72
  maxLength?: number;
71
73
  rows?: number;
72
74
  wapperWidth?: number;
73
- picker?: PickerType;
75
+ picker?: PickerType | PickerMode;
74
76
  defaultFormat?: any;
75
77
  showTimeFormat?: any;
76
78
  allowClear?: boolean;
@@ -121,7 +123,7 @@ export type CustomSearchFieldType = {
121
123
  labelInValue?: boolean;
122
124
  baseUrl?: string;
123
125
  token?: any;
124
- method?: "POST" | "PUT" | "PATCH";
126
+ method?: 'POST' | 'PUT' | 'PATCH';
125
127
  };
126
128
  export interface CustomFormProps {
127
129
  data: CustomSearchFieldType[];
@@ -159,3 +161,4 @@ export interface CustomFormProps {
159
161
  labelAlign?: FormLabelAlign;
160
162
  btnSpan?: number;
161
163
  }
164
+ export {};
@@ -133,6 +133,9 @@
133
133
  box-sizing: border-box;
134
134
  height: fit-content;
135
135
  flex: 1;
136
+ .cell-wapper {
137
+ line-height: @global-table-max-header-cell-wapper-line-height;
138
+ }
136
139
  }
137
140
 
138
141
  .table-header-scroll {
@@ -146,6 +149,9 @@
146
149
  overflow: auto scroll;
147
150
  font-weight: @global-table-max-body-font-weight;
148
151
  // background: @tableColor2;
152
+ .tbody-tr-td {
153
+ line-height: @global-table-body-tbody-tr-td-line-height;
154
+ }
149
155
 
150
156
  &::-webkit-scrollbar {
151
157
  width: 10px;
@@ -66,4 +66,5 @@
66
66
  @global-table-max-scrollbar-track: var(--global-table-max-scrollbar-track, #E8E8E8);
67
67
  @global-table-max-header-font-weight: var(--global-table-max-header-font-weight);
68
68
  @global-table-max-body-font-weight: var(--global-table-max-body-font-weight);
69
-
69
+ @global-table-max-header-cell-wapper-line-height: var(--global-table-max-header-cell-wapper-line-height, 16px);
70
+ @global-table-body-tbody-tr-td-line-height: var(--global-table-body-tbody-tr-td-line-height, 32px);
@@ -14,19 +14,22 @@ var tableMaxCommonStyle = {
14
14
  '--global-table-max-center-border-radius': 'unset',
15
15
  '--global-table-max-center-border-bottom': 'none',
16
16
  '--global-table-max-header-font-weight': '400',
17
- '--global-table-max-body-font-weight': '400'
17
+ '--global-table-max-body-font-weight': '400',
18
+ '--global-table-max-header-cell-wapper-line-height': '16px',
19
+ '--global-table-body-tbody-tr-td-line-height': '32px'
18
20
  };
19
21
  var tableMaxCommonStyleTwo = {
20
22
  '--global-table-max-padding-top': '8px',
21
23
  '--global-table-max-padding-left': '8px',
22
24
  '--global-table-max-padding-right': '16px',
23
25
  '--global-table-max-padding-bottom': '7px',
24
- '--global-table-max-border': '1px solid #D9D9D9',
25
26
  '--global-table-max-footer-border-radius': '0px 0px 8px 8px',
26
27
  '--global-table-max-center-border-radius': '8px 8px 0px 0px',
27
28
  '--global-table-max-center-border-bottom': 'none',
28
29
  '--global-table-max-header-font-weight': '500',
29
- '--global-table-max-body-font-weight': '400'
30
+ '--global-table-max-body-font-weight': '400',
31
+ '--global-table-max-header-cell-wapper-line-height': '32px',
32
+ '--global-table-body-tbody-tr-td-line-height': '42px'
30
33
  };
31
34
  export var PublicThemeVariablesConfig = {
32
35
  light: _objectSpread({
@@ -268,7 +271,8 @@ export var PublicThemeVariablesConfigTwo = {
268
271
  // 卡片、表格body背景色 -1
269
272
  '--global-card-effect-background-color': '#E8E8E8',
270
273
  '--global-default-text-color': '#242A30',
271
- '--global-table-max-scrollbar-track': '#E8E8E8'
274
+ '--global-table-max-scrollbar-track': '#E8E8E8',
275
+ '--global-table-max-border': '1px solid #D9D9D9'
272
276
  }, tableMaxCommonStyleTwo),
273
277
  dark: _objectSpread({
274
278
  '--global-curd-input-background-color': '#494c5dff',
@@ -349,7 +353,8 @@ export var PublicThemeVariablesConfigTwo = {
349
353
  // 卡片、表格body背景色 -1
350
354
  '--global-card-effect-background-color': '#1E345B',
351
355
  '--global-default-text-color': '#fff',
352
- '--global-table-max-scrollbar-track': '#334155'
356
+ '--global-table-max-scrollbar-track': '#334155',
357
+ '--global-table-max-border': '1px solid #475569'
353
358
  }, tableMaxCommonStyleTwo)
354
359
  };
355
360
  export var publicThemeMap = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",