@sheinx/base 3.8.0-beta.19 → 3.8.0-beta.20
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/cjs/form/form-field.type.d.ts +12 -21
- package/cjs/form/form-field.type.d.ts.map +1 -1
- package/cjs/form/form-fieldset.type.d.ts +35 -23
- package/cjs/form/form-fieldset.type.d.ts.map +1 -1
- package/cjs/form/form-flow.type.d.ts +6 -6
- package/cjs/form/form.type.d.ts +28 -24
- package/cjs/form/form.type.d.ts.map +1 -1
- package/cjs/form/form.type.js +4 -0
- package/cjs/sticky/sticky.js +2 -2
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +2 -1
- package/cjs/table/table.type.d.ts +80 -82
- package/cjs/table/table.type.d.ts.map +1 -1
- package/cjs/table/tfoot.d.ts.map +1 -1
- package/cjs/table/tfoot.js +6 -2
- package/cjs/table/tfoot.type.d.ts +1 -0
- package/cjs/table/tfoot.type.d.ts.map +1 -1
- package/esm/form/form-field.type.d.ts +12 -21
- package/esm/form/form-field.type.d.ts.map +1 -1
- package/esm/form/form-fieldset.type.d.ts +35 -23
- package/esm/form/form-fieldset.type.d.ts.map +1 -1
- package/esm/form/form-flow.type.d.ts +6 -6
- package/esm/form/form.type.d.ts +28 -24
- package/esm/form/form.type.d.ts.map +1 -1
- package/esm/form/form.type.js +5 -0
- package/esm/sticky/sticky.js +2 -2
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +2 -1
- package/esm/table/table.type.d.ts +80 -82
- package/esm/table/table.type.d.ts.map +1 -1
- package/esm/table/tfoot.d.ts.map +1 -1
- package/esm/table/tfoot.js +6 -2
- package/esm/table/tfoot.type.d.ts +1 -0
- package/esm/table/tfoot.type.d.ts.map +1 -1
- package/package.json +2 -2
package/esm/form/form.type.d.ts
CHANGED
|
@@ -14,50 +14,54 @@ export interface FormValidateFn<FormValue> {
|
|
|
14
14
|
*/
|
|
15
15
|
(fields?: string | string[]): Promise<FormValue>;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* FormValue 泛型表示表单数据的类型,通常是一个对象类型
|
|
19
|
+
* 例如:{ name: string, age: number, address: { city: string } }
|
|
20
|
+
*/
|
|
17
21
|
export interface FormRef<FormValue> {
|
|
18
22
|
/**
|
|
19
|
-
* @en
|
|
20
|
-
* @cn
|
|
23
|
+
* @en Get form data. Returns the entire form data object (FormValue type) when no parameter is passed, returns the value of the specified field when a field path is passed. Field paths support dot notation and array indexes, such as 'user.name' (get nested object), 'list[0].id' (get array element). Commonly used to get form data for other operations
|
|
24
|
+
* @cn 获取表单数据。不传参数时返回整个表单的数据对象(FormValue 类型),传入字段路径时返回指定字段的值。字段路径支持点表示法和数组索引,如 'user.name'(获取嵌套对象)、'list[0].id'(获取数组元素)。常用于获取表单数据进行其他操作
|
|
21
25
|
*/
|
|
22
26
|
getValue: (name?: string) => any | FormValue;
|
|
23
27
|
/**
|
|
24
|
-
* @en Validate form
|
|
25
|
-
* @cn
|
|
28
|
+
* @en Validate all fields in the entire form. Returns a Promise that resolves with the entire form data object (FormValue type) on successful validation, and rejects with error information on failure. Usually called before form submission to ensure all data validity
|
|
29
|
+
* @cn 校验整个表单的所有字段。返回一个 Promise,校验成功时 resolve 整个表单的数据对象(FormValue 类型),失败时 reject 错误信息。通常在提交表单前调用以确保所有数据的有效性
|
|
26
30
|
*/
|
|
27
31
|
validate: () => Promise<any>;
|
|
28
32
|
/**
|
|
29
|
-
* @en
|
|
30
|
-
* @cn
|
|
33
|
+
* @en Validate specified form fields. The fields parameter is a field path, which can be a single path string or an array of paths. Field paths support: 'name' (top-level field), 'user.email' (nested object), 'list[0].name' (array element). Returns a Promise that resolves with the specified field data on success, and rejects with the first error encountered on failure. Suitable for step-by-step forms or partial validation scenarios
|
|
34
|
+
* @cn 校验指定的表单字段。fields 参数为字段路径,可以是单个路径字符串或路径数组。字段路径支持:'name'(顶层字段)、'user.email'(嵌套对象)、'list[0].name'(数组元素)。返回 Promise,成功时 resolve 指定字段的数据,失败时 reject 第一个遇到的错误。适用于分步表单或部分校验场景
|
|
31
35
|
*/
|
|
32
36
|
validateFields: (fields: string | string[]) => Promise<any>;
|
|
33
37
|
/**
|
|
34
|
-
* @en
|
|
35
|
-
* @cn
|
|
38
|
+
* @en Validate specified fields and always return form data. The fields parameter is a field path, validates all fields when not passed. Resolves with specified field data on success, rejects with a ValidationError object on failure, containing: values (form data) and errorFields (array containing name and errors information for each error field). Suitable for scenarios that need to get both form data and detailed error information
|
|
39
|
+
* @cn 校验指定字段并始终返回表单数据。fields 参数为字段路径,不传时校验所有字段。成功时 resolve 指定字段的数据,失败时 reject 一个 ValidationError 对象,包含:values(表单数据)和 errorFields(数组,包含每个错误字段的 name 和 errors 信息)。适用于需要同时获取表单数据和详细错误信息的场景
|
|
36
40
|
*/
|
|
37
41
|
validateFieldsWithValue: (fields?: (string | keyof FormValue) | (string | keyof FormValue)[]) => Promise<any>;
|
|
38
42
|
/**
|
|
39
|
-
* @en The
|
|
40
|
-
* @cn
|
|
43
|
+
* @en Validate specified fields and return the first error encountered. The fields parameter is a field path. Same functionality as validateFields, but the name more clearly indicates that it will return error information. Rejects with a FormError object (containing only the first error) on failure. Suitable for scenarios that only care about the first error
|
|
44
|
+
* @cn 校验指定字段并返回第一个遇到的错误。fields 参数为字段路径。与 validateFields 功能相同,但名称更明确地表示会返回错误信息。失败时 reject 一个 FormError 对象(仅包含第一个错误)。适用于只关心第一个错误的场景
|
|
41
45
|
*/
|
|
42
46
|
validateFieldsWithError: (fields: string | string[]) => Promise<any>;
|
|
43
47
|
/**
|
|
44
|
-
* @en Clear
|
|
45
|
-
* @cn
|
|
48
|
+
* @en Clear validation error information for specified fields. The names parameter is an array of field paths, clears errors for all fields when not passed. Field paths support formats like 'name', 'user.email', 'list[0].id'. Commonly used for resetting form state, clearing specific field errors, etc.
|
|
49
|
+
* @cn 清除指定字段的校验错误信息。names 参数为字段路径数组,不传时清除所有字段的错误。字段路径支持 'name'、'user.email'、'list[0].id' 等格式。常用于重置表单状态、清除特定字段错误等场景
|
|
46
50
|
*/
|
|
47
51
|
clearValidate: (names?: string[]) => void;
|
|
48
52
|
/**
|
|
49
|
-
* @en
|
|
50
|
-
* @cn
|
|
53
|
+
* @en Manually trigger form submission. The withValidate parameter controls whether to validate before submission, default is true. After validation passes, it will call the Form's onSubmit callback with the entire form data object (FormValue type). Usually used for custom submit buttons or programmatic submission
|
|
54
|
+
* @cn 手动触发表单提交。withValidate 参数控制是否在提交前进行校验,默认为 true。校验通过后会调用 Form 的 onSubmit 回调,传入整个表单的数据对象(FormValue 类型)。通常用于自定义提交按钮或程序化提交
|
|
51
55
|
*/
|
|
52
56
|
submit: (withValidate?: boolean) => void;
|
|
53
57
|
/**
|
|
54
|
-
* @en
|
|
55
|
-
* @cn
|
|
58
|
+
* @en Reset the form to its initial state. Restores form data to defaultValue (uncontrolled) or empty object (controlled), and clears all validation errors. Will trigger the Form's onReset callback
|
|
59
|
+
* @cn 重置表单到初始状态。将表单数据恢复为 defaultValue(非受控)或空对象(受控),并清除所有校验错误。会触发 Form 的 onReset 回调
|
|
56
60
|
*/
|
|
57
61
|
reset: () => void;
|
|
58
62
|
/**
|
|
59
|
-
* @en set field
|
|
60
|
-
* @cn
|
|
63
|
+
* @en Batch set form field values. Pass in an object where key is the field path and value is the value to set. Field paths support: dot notation ('user.name') to access nested objects, array indexes ('list[0].id') to access array elements. Options parameters: validate controls whether to trigger validation (default false), forceUpdate controls whether to force update (default false). Suitable for dynamically setting form values, linked updates, etc.
|
|
64
|
+
* @cn 批量设置表单字段值。传入一个对象,key 为字段路径,value 为要设置的值。字段路径支持:点表示法('user.name')访问嵌套对象,数组索引('list[0].id')访问数组元素。options 参数:validate 控制是否触发校验(默认 false),forceUpdate 控制是否强制更新(默认 false)。适用于动态设置表单值、联动更新等场景
|
|
61
65
|
*/
|
|
62
66
|
set: (value: {
|
|
63
67
|
[key: string]: any;
|
|
@@ -66,8 +70,8 @@ export interface FormRef<FormValue> {
|
|
|
66
70
|
forceUpdate?: boolean;
|
|
67
71
|
}) => void;
|
|
68
72
|
/**
|
|
69
|
-
* @en Scroll to the position of the specified field
|
|
70
|
-
* @cn
|
|
73
|
+
* @en Scroll the page to the position of the specified form field. The name parameter is a field path, supporting formats like 'name', 'user.email', 'list[0].id'. Requires the Form to set the name property to work properly. The scrollIntoViewOptions parameter conforms to the standard ScrollIntoViewOptions interface, which can control scrolling behavior, position, etc. Commonly used for error positioning, step-by-step form navigation, etc.
|
|
74
|
+
* @cn 滚动页面到指定表单字段的位置。name 参数为字段路径,支持 'name'、'user.email'、'list[0].id' 等格式。需要 Form 设置 name 属性才能正常工作。scrollIntoViewOptions 参数符合标准 ScrollIntoViewOptions 接口,可以控制滚动行为、位置等。常用于错误定位、分步表单导航等
|
|
71
75
|
*/
|
|
72
76
|
scrollToField: (name: string, scrollIntoViewOptions?: ScrollIntoViewOptions) => void;
|
|
73
77
|
}
|
|
@@ -87,16 +91,16 @@ export interface FormProps<V extends ObjectType> extends Partial<BaseFormProps<V
|
|
|
87
91
|
*/
|
|
88
92
|
scrollToError?: boolean | number;
|
|
89
93
|
/**
|
|
90
|
-
* @en
|
|
91
|
-
* @cn
|
|
94
|
+
* @en Get a reference to the form instance. Supports both function callback and ref object methods. Through formRef, you can call various form methods, such as manually triggering validation (validate, validateFields), submission (submit), reset (reset), getting/setting values (getValue, set), etc. The generic V in FormRef<V> represents the type of form data
|
|
95
|
+
* @cn 获取表单实例的引用。支持函数回调和 ref 对象两种方式。通过 formRef 可以调用表单的各种方法,如手动触发校验(validate、validateFields)、提交(submit)、重置(reset)、获取/设置值(getValue、set)等。FormRef<V> 中的泛型 V 表示表单数据的类型
|
|
92
96
|
* @override
|
|
93
97
|
*/
|
|
94
98
|
formRef?: ((form: FormRef<V>) => void) | {
|
|
95
99
|
current?: FormRef<V>;
|
|
96
100
|
};
|
|
97
101
|
/**
|
|
98
|
-
* @en
|
|
99
|
-
* @cn hooks
|
|
102
|
+
* @en Callback function for setting form reference when using Form.useForm() hooks. Usually doesn't need to be set manually, the Form component will handle it automatically. But may be needed in some special scenarios (such as cross-component communication)
|
|
103
|
+
* @cn 在使用 Form.useForm() hooks 时,用于设置表单引用的回调函数。通常不需要手动设置,Form 组件会自动处理。但在某些特殊场景(如跨组件通信)可能需要使用
|
|
100
104
|
*/
|
|
101
105
|
setForm?: (form: FormRef<V>) => void;
|
|
102
106
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.type.d.ts","sourceRoot":"","sources":["form.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAC/C,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc,CAC7B,SAAS;IAIT;;;OAGG;IACH,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAClD;AAGD,MAAM,WAAW,OAAO,CAAC,SAAS;IAChC;;;OAGG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,GAAG,GAAG,SAAS,CAAC;IAC7C;;;OAGG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7B;;;OAGG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAE5D;;;OAGG;IACH,uBAAuB,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG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AO,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IAElE;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;AACD,wBAAkB"}
|
package/esm/form/form.type.js
CHANGED
package/esm/sticky/sticky.js
CHANGED
|
@@ -32,6 +32,7 @@ function getStaticTop(el) {
|
|
|
32
32
|
return top;
|
|
33
33
|
}
|
|
34
34
|
var Sticky = function Sticky(props) {
|
|
35
|
+
var _props$style;
|
|
35
36
|
if (props.target) {
|
|
36
37
|
devUseWarning.deprecated('target', 'scrollContainer', 'Sticky');
|
|
37
38
|
}
|
|
@@ -476,9 +477,8 @@ var Sticky = function Sticky(props) {
|
|
|
476
477
|
}
|
|
477
478
|
var StickyEl = show && parentVisible ? /*#__PURE__*/_jsx("div", {
|
|
478
479
|
style: _objectSpread(_objectSpread({
|
|
479
|
-
zIndex: defaultZIndex
|
|
480
|
+
zIndex: ((_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.zIndex) || defaultZIndex
|
|
480
481
|
}, style), elementSize),
|
|
481
|
-
ref: fixedStickyElRef,
|
|
482
482
|
children: /*#__PURE__*/_jsx("div", {
|
|
483
483
|
className: props.className,
|
|
484
484
|
style: props.style,
|
package/esm/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAisBE"}
|
package/esm/table/table.js
CHANGED
|
@@ -411,7 +411,8 @@ export default (function (props) {
|
|
|
411
411
|
summary: props.summary,
|
|
412
412
|
columns: columns,
|
|
413
413
|
jssStyle: props.jssStyle,
|
|
414
|
-
colgroup: colgroup
|
|
414
|
+
colgroup: colgroup,
|
|
415
|
+
data: props.data
|
|
415
416
|
};
|
|
416
417
|
var StickyWrapper = props.sticky ? Sticky : React.Fragment;
|
|
417
418
|
var sticky = _typeof(props.sticky) === 'object' ? props.sticky : {
|
|
@@ -101,24 +101,24 @@ export interface TableRef {
|
|
|
101
101
|
export interface TableSelectProps<DataItem, Value> {
|
|
102
102
|
/**
|
|
103
103
|
* @en The current selected value.
|
|
104
|
-
* @cn
|
|
104
|
+
* @cn 当前选中的数据值,数据格式与 onRowSelect 回调返回的格式保持一致
|
|
105
105
|
* @override any
|
|
106
106
|
*/
|
|
107
107
|
value?: Value;
|
|
108
108
|
/**
|
|
109
109
|
* @en Select row. Rows is the selected data.
|
|
110
|
-
* @cn
|
|
110
|
+
* @cn 行选择事件的回调函数。rows 参数为当前选中的行数据。如需格式化选中的数据,请配合使用 format 和 prediction 属性
|
|
111
111
|
*/
|
|
112
112
|
onRowSelect?: (rows: Value) => void;
|
|
113
113
|
/**
|
|
114
|
-
* @en Format
|
|
115
|
-
* @cn
|
|
114
|
+
* @en Format selected value. When string: extracts value using key (e.g., 'id' extracts d.id). When function: parameter is row data, returns formatted value
|
|
115
|
+
* @cn 格式化选中值。字符串时:作为属性名提取值(如 'id' 提取 d.id)。函数时:参数为行数据,返回格式化后的值
|
|
116
116
|
* @default d => d
|
|
117
117
|
*/
|
|
118
118
|
format?: ObjectKey<DataItem> | ((data: DataItem) => Value extends (infer U)[] ? U : Value);
|
|
119
119
|
/**
|
|
120
|
-
* @en
|
|
121
|
-
* @cn
|
|
120
|
+
* @en Custom value matching function. Parameters: value (selected value), data (row data). Returns true if matched. Used when default comparison fails (e.g., different object references)
|
|
121
|
+
* @cn 自定义值匹配函数。参数:value(选中值),data(行数据)。返回 true 表示匹配。用于默认比较失效时(如对象引用不同)
|
|
122
122
|
* @default (val, d) => val===format(d)
|
|
123
123
|
*/
|
|
124
124
|
prediction?: (value: Value extends (infer U)[] ? U : Value, data: DataItem) => boolean;
|
|
@@ -143,9 +143,8 @@ export interface TableProps<DataItem, Value> extends Pick<CommonType, 'className
|
|
|
143
143
|
tree?: () => TreeClasses;
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
147
|
-
* @cn
|
|
148
|
-
* @en Cell click event
|
|
146
|
+
* @en Cell click event handler. Parameters: data (row data), info.rowIndex (row index), info.columnIndex (column index), info.columnKey (column key)
|
|
147
|
+
* @cn 单元格点击事件的回调函数。参数:data(行数据),info.rowIndex(行索引),info.columnIndex(列索引),info.columnKey(列的唯一标识)
|
|
149
148
|
*/
|
|
150
149
|
onCellClick?: (data: DataItem, info: {
|
|
151
150
|
rowIndex: number;
|
|
@@ -153,52 +152,52 @@ export interface TableProps<DataItem, Value> extends Pick<CommonType, 'className
|
|
|
153
152
|
columnKey: string | number;
|
|
154
153
|
}) => void;
|
|
155
154
|
/**
|
|
156
|
-
* @en
|
|
157
|
-
* @cn
|
|
155
|
+
* @en Horizontal scroll position (only works with virtual scrolling)
|
|
156
|
+
* @cn 横向滚动位置(仅在虚拟滚动模式下生效)
|
|
158
157
|
*/
|
|
159
158
|
scrollLeft?: number;
|
|
160
159
|
/**
|
|
161
|
-
* @en
|
|
162
|
-
* @cn
|
|
160
|
+
* @en Expected height of a single row. Used for virtual scrolling calculations and scrollbar display.
|
|
161
|
+
* @cn 单行的预估高度。用于虚拟滚动的计算和滚动条显示
|
|
163
162
|
* @default 40
|
|
164
163
|
*/
|
|
165
164
|
rowHeight?: number;
|
|
166
165
|
/**
|
|
167
|
-
* @en row hover
|
|
168
|
-
* @cn
|
|
166
|
+
* @en Enable row hover highlighting effect
|
|
167
|
+
* @cn 是否启用行的鼠标悬浮高亮效果
|
|
169
168
|
* @default true
|
|
170
169
|
*/
|
|
171
170
|
hover?: boolean;
|
|
172
171
|
/**
|
|
173
|
-
* @en
|
|
174
|
-
* @cn
|
|
172
|
+
* @en Content to display when table has no data
|
|
173
|
+
* @cn 表格无数据时显示的内容
|
|
175
174
|
* @default getLocale("Data not found")
|
|
176
175
|
*/
|
|
177
176
|
empty?: React.ReactNode;
|
|
178
177
|
/**
|
|
179
|
-
* @en
|
|
180
|
-
* @cn 是否启用
|
|
178
|
+
* @en Enable cell selection with Ctrl/Cmd + click
|
|
179
|
+
* @cn 是否启用 Ctrl/Cmd + 点击来选中单元格
|
|
181
180
|
* @default false
|
|
182
181
|
*/
|
|
183
182
|
cellSelectable?: boolean;
|
|
184
183
|
/**
|
|
185
|
-
* @en height
|
|
186
|
-
* @cn
|
|
184
|
+
* @en Table height (same as style.height)
|
|
185
|
+
* @cn 表格高度(与 style.height 作用相同)
|
|
187
186
|
*/
|
|
188
187
|
height?: number | string;
|
|
189
188
|
/**
|
|
190
|
-
* @en
|
|
191
|
-
* @cn
|
|
189
|
+
* @en Scroll event callback. Parameters: x (horizontal scroll ratio 0-1), y (vertical scroll ratio 0-1), left (horizontal scroll pixels), top (vertical scroll pixels)
|
|
190
|
+
* @cn 滚动事件回调函数。参数:x(横向滚动比例 0-1),y(纵向滚动比例 0-1),left(横向滚动像素值),top(纵向滚动像素值)
|
|
192
191
|
*/
|
|
193
192
|
onScroll?: (x: number, y: number, left: number, top: number) => void;
|
|
194
193
|
/**
|
|
195
|
-
* @en
|
|
196
|
-
* @cn
|
|
194
|
+
* @en Pagination configuration. See [Pagination](/components/Pagination) for details
|
|
195
|
+
* @cn 分页配置项。详见 [Pagination](/components/Pagination) 组件文档
|
|
197
196
|
*/
|
|
198
197
|
pagination?: PaginationProps;
|
|
199
198
|
/**
|
|
200
|
-
* @en
|
|
201
|
-
* @cn
|
|
199
|
+
* @en Loading state. Shows default [Spin](/components/Spin) when true, or custom loading component when provided
|
|
200
|
+
* @cn 加载状态。为 true 时显示默认的 [Spin](/components/Spin) 组件,也可传入自定义的加载组件
|
|
202
201
|
* @default false
|
|
203
202
|
*/
|
|
204
203
|
loading?: boolean | React.ReactNode;
|
|
@@ -207,134 +206,133 @@ export interface TableProps<DataItem, Value> extends Pick<CommonType, 'className
|
|
|
207
206
|
*/
|
|
208
207
|
fixed?: TableFix | 'auto';
|
|
209
208
|
/**
|
|
210
|
-
* @en
|
|
211
|
-
* @cn
|
|
209
|
+
* @en Enable virtual scrolling. Set to 'lazy' to prevent re-rendering during scroll
|
|
210
|
+
* @cn 启用虚拟滚动。设置为 'lazy' 可在滚动时避免重新渲染,提升性能
|
|
212
211
|
*/
|
|
213
212
|
virtual?: boolean | 'lazy';
|
|
214
213
|
/**
|
|
215
|
-
* @en
|
|
216
|
-
* @cn
|
|
214
|
+
* @en Maximum rows rendered at once. Uses lazy rendering for performance with large datasets. Adjust if displaying more than 20 rows. Set to 0 to render all data.
|
|
215
|
+
* @cn 单次渲染的最大行数。使用懒加载优化大数据量性能。若表格超过 20 行,可调整此值。设为 0 渲染全部数据
|
|
217
216
|
* @default 20
|
|
218
217
|
*/
|
|
219
218
|
rowsInView?: number;
|
|
220
219
|
/**
|
|
221
|
-
* @en size
|
|
222
|
-
* @cn
|
|
220
|
+
* @en Table size
|
|
221
|
+
* @cn 表格尺寸大小
|
|
223
222
|
* @default 'default'
|
|
224
223
|
*/
|
|
225
224
|
size?: CommonType['size'];
|
|
226
225
|
/**
|
|
227
|
-
* @en
|
|
228
|
-
* @cn
|
|
226
|
+
* @en Enable single row selection (radio mode)
|
|
227
|
+
* @cn 启用单选模式(只能选中一行)
|
|
229
228
|
* @default false
|
|
230
229
|
*/
|
|
231
230
|
radio?: boolean;
|
|
232
231
|
/**
|
|
233
|
-
* @en
|
|
234
|
-
* @cn
|
|
232
|
+
* @en Vertical alignment of cell content
|
|
233
|
+
* @cn 单元格内容的垂直对齐方式
|
|
235
234
|
* @default 'top'
|
|
236
235
|
*/
|
|
237
236
|
verticalAlign?: 'top' | 'middle';
|
|
238
237
|
/**
|
|
239
|
-
* @en
|
|
240
|
-
* @cn
|
|
238
|
+
* @en Native tr/td elements (only applies styles, no functionality)
|
|
239
|
+
* @cn 原生 tr/td 元素(仅应用样式,不提供功能)
|
|
241
240
|
*/
|
|
242
241
|
children?: React.ReactNode;
|
|
243
242
|
/**
|
|
244
|
-
* @en
|
|
245
|
-
* @cn
|
|
243
|
+
* @en Total table width. Defaults to container width. Must not be less than sum of column widths
|
|
244
|
+
* @cn 表格总宽度。默认为容器宽度,不能小于各列宽度之和
|
|
246
245
|
*/
|
|
247
246
|
width?: number | string;
|
|
248
247
|
/**
|
|
249
|
-
* @en array
|
|
250
|
-
* @cn
|
|
248
|
+
* @en Column configuration array. See TableColumn for details
|
|
249
|
+
* @cn 列配置数组。详见 TableColumn 文档
|
|
251
250
|
* @override TableColumn[]
|
|
252
251
|
* @default []
|
|
253
252
|
*/
|
|
254
253
|
columns?: ColumnItem<DataItem>[];
|
|
255
254
|
/**
|
|
256
|
-
* @en
|
|
257
|
-
* @cn
|
|
255
|
+
* @en Disable rows. When true, disables all rows. When function: parameter d is row data, returns true to disable that row
|
|
256
|
+
* @cn 禁用行选择。为 true 时禁用所有行。为函数时:参数 d 为行数据,返回 true 禁用该行
|
|
258
257
|
*/
|
|
259
258
|
disabled?: boolean | ((d: DataItem) => boolean);
|
|
260
259
|
/**
|
|
261
|
-
* @en
|
|
262
|
-
* @cn
|
|
260
|
+
* @en Show expand button even when tree node has no children
|
|
261
|
+
* @cn 树形表格中,即使节点没有子数据也显示展开按钮
|
|
263
262
|
* @default false
|
|
264
263
|
*/
|
|
265
264
|
treeEmptyExpand?: boolean;
|
|
266
265
|
/**
|
|
267
|
-
* @en
|
|
268
|
-
* @cn
|
|
266
|
+
* @en Specify which elements can trigger row click. Use '*' to allow any element, or specify attribute names
|
|
267
|
+
* @cn 指定哪些元素可以触发行点击。'*' 表示任何元素都可触发,也可指定特定的属性名
|
|
269
268
|
* @default ['*']
|
|
270
269
|
*/
|
|
271
270
|
rowClickAttr?: string[] | string | boolean;
|
|
272
271
|
/**
|
|
273
|
-
* @en
|
|
274
|
-
* @cn
|
|
272
|
+
* @en Row click event handler. Parameters: rowData (current row data), index (row index), fireAttr (triggered element attribute)
|
|
273
|
+
* @cn 行点击事件回调。参数:rowData(当前行数据),index(行索引),fireAttr(触发点击的元素属性)
|
|
275
274
|
*/
|
|
276
275
|
onRowClick?: (rowData: DataItem, index: number, fireAttr?: string | boolean) => void;
|
|
277
276
|
/**
|
|
278
|
-
* @en
|
|
279
|
-
* @cn
|
|
277
|
+
* @en Enable alternating row colors (zebra striping)
|
|
278
|
+
* @cn 启用交替行颜色(斑马纹效果)
|
|
280
279
|
*/
|
|
281
280
|
striped?: boolean;
|
|
282
281
|
/**
|
|
283
|
-
* @en
|
|
284
|
-
* @cn
|
|
282
|
+
* @en Custom CSS class for each row. Parameters: rowData (row data), index (row index). Returns class name string
|
|
283
|
+
* @cn 为每一行设置自定义 CSS 类名。参数:rowData(行数据),index(行索引)。返回类名字符串
|
|
285
284
|
* @override (rowData: DataItem, index: number) => string | undefined
|
|
286
285
|
*/
|
|
287
286
|
rowClassName?: (rowData: DataItem, index: number) => string | undefined;
|
|
288
287
|
/**
|
|
289
|
-
* @en tr
|
|
290
|
-
* @cn tr
|
|
288
|
+
* @en Event handlers for tr elements
|
|
289
|
+
* @cn 表格行 (tr) 元素的事件处理器集合
|
|
291
290
|
* @override object
|
|
292
291
|
*/
|
|
293
292
|
rowEvents?: ObjectType;
|
|
294
293
|
/**
|
|
295
|
-
* @en data
|
|
296
|
-
* @cn
|
|
294
|
+
* @en Table data array
|
|
295
|
+
* @cn 表格数据数组
|
|
297
296
|
* @override object[]
|
|
298
297
|
*/
|
|
299
298
|
data?: DataItem[];
|
|
300
299
|
/**
|
|
301
|
-
* @en
|
|
302
|
-
* @cn
|
|
300
|
+
* @en Show select all checkbox in header
|
|
301
|
+
* @cn 是否在表头显示全选复选框
|
|
303
302
|
* @default true
|
|
304
303
|
*/
|
|
305
304
|
showSelectAll?: boolean;
|
|
306
305
|
/**
|
|
307
|
-
* @en
|
|
308
|
-
* @cn
|
|
306
|
+
* @en Display table border
|
|
307
|
+
* @cn 显示表格边框
|
|
309
308
|
* @default false
|
|
310
309
|
*/
|
|
311
310
|
bordered?: boolean;
|
|
312
311
|
/**
|
|
313
|
-
* @en
|
|
314
|
-
* @cn
|
|
312
|
+
* @en Include all descendant nodes when selecting all (tree mode)
|
|
313
|
+
* @cn 全选时是否包含所有子孙节点(树形模式)
|
|
315
314
|
* @default false
|
|
316
315
|
*/
|
|
317
316
|
treeCheckAll?: boolean;
|
|
318
317
|
/**
|
|
319
|
-
* @en
|
|
320
|
-
* @cn
|
|
318
|
+
* @en Custom render function for sort icons. params.status: current sort state ('asc'|'desc'|null), params.triggerAsc: trigger ascending sort, params.triggerDesc: trigger descending sort
|
|
319
|
+
* @cn 自定义渲染排序图标的函数。参数:status 当前排序状态('asc'|'desc'|null),triggerAsc 触发升序排序,triggerDesc 触发降序排序
|
|
321
320
|
*/
|
|
322
321
|
renderSorter?: (params: RenderSorterParam) => React.ReactNode;
|
|
323
322
|
/**
|
|
324
|
-
* @en
|
|
325
|
-
* @cn
|
|
323
|
+
* @en Hide table header
|
|
324
|
+
* @cn 隐藏表格头部
|
|
326
325
|
* @default false
|
|
327
326
|
*/
|
|
328
327
|
hideHeader?: boolean;
|
|
329
328
|
/**
|
|
330
|
-
* @en
|
|
331
|
-
* @cn
|
|
329
|
+
* @en Table footer for summary rows
|
|
330
|
+
* @cn 表格底部,用于显示汇总行
|
|
332
331
|
*/
|
|
333
332
|
summary?: SummaryItem[][] | SummaryItem[];
|
|
334
333
|
/**
|
|
335
|
-
* @en
|
|
336
|
-
* @cn
|
|
337
|
-
*
|
|
334
|
+
* @en Sticky table header. When true, sticks to top with 0 offset. Can also pass object with top offset and CSS mode options
|
|
335
|
+
* @cn 固定表头。为 true 时固定在顶部(偏移量为 0)。也可传入对象配置 top 偏移量和 CSS 模式等选项
|
|
338
336
|
*/
|
|
339
337
|
sticky?: boolean | {
|
|
340
338
|
top?: number;
|
|
@@ -342,27 +340,27 @@ export interface TableProps<DataItem, Value> extends Pick<CommonType, 'className
|
|
|
342
340
|
target?: Element | null;
|
|
343
341
|
};
|
|
344
342
|
/**
|
|
345
|
-
* @en
|
|
346
|
-
* @cn
|
|
343
|
+
* @en Show horizontal scrollbar at table top
|
|
344
|
+
* @cn 在表格顶部显示横向滚动条
|
|
347
345
|
* @default false
|
|
348
346
|
* @version 3.4.0
|
|
349
347
|
*/
|
|
350
348
|
showTopScrollbar?: boolean;
|
|
351
349
|
/**
|
|
352
|
-
* @en
|
|
353
|
-
* @cn
|
|
350
|
+
* @en Show sticky horizontal scrollbar at table bottom. Can pass boolean or object with bottom offset and zIndex
|
|
351
|
+
* @cn 在表格底部显示固定的横向滚动条。可传入布尔值或包含 bottom 偏移量和 zIndex 的对象
|
|
354
352
|
* @default false
|
|
355
353
|
* @version 3.7.0
|
|
356
354
|
*/
|
|
357
355
|
showBottomScrollbar?: boolean | BottomScrollbarOption;
|
|
358
356
|
/**
|
|
359
|
-
* @en
|
|
360
|
-
* @cn
|
|
357
|
+
* @en Get table instance reference. Provides methods: scrollToIndex, getRenderIndexByData, scrollColumnIntoView, scrollColumnByLeft, sortByColumn. Use with caution, only supported in virtual mode
|
|
358
|
+
* @cn 获取表格实例引用。提供方法:scrollToIndex 滚动到指定行,getRenderIndexByData 获取数据的渲染索引,scrollColumnIntoView 滚动到指定列,scrollColumnByLeft 按像素横向滚动,sortByColumn 程序化排序。请谨慎使用,仅在虚拟模式下支持
|
|
361
359
|
*/
|
|
362
360
|
tableRef?: (table: TableRef) => void;
|
|
363
361
|
/**
|
|
364
|
-
* @en
|
|
365
|
-
* @cn
|
|
362
|
+
* @en Row selection callback. Parameter rows contains selected data. Use format and prediction for data formatting
|
|
363
|
+
* @cn 行选择回调函数。参数 rows 包含选中的数据。如需数据格式化,请配合使用 format 和 prediction
|
|
366
364
|
*/
|
|
367
365
|
onRowSelect?: (rows: Value) => void;
|
|
368
366
|
/**
|
|
@@ -1 +1 @@
|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AM,MAAM,UAAU,CAAC,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC"}
|
package/esm/table/tfoot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,wBA+FE"}
|
package/esm/table/tfoot.js
CHANGED
|
@@ -59,8 +59,12 @@ export default (function (props) {
|
|
|
59
59
|
}, index);
|
|
60
60
|
};
|
|
61
61
|
var getTrs = function getTrs() {
|
|
62
|
-
var _props$summary
|
|
63
|
-
|
|
62
|
+
var _props$summary, _props$data;
|
|
63
|
+
if (props !== null && props !== void 0 && (_props$summary = props.summary) !== null && _props$summary !== void 0 && _props$summary.length && (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) === 0) {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
var _props$summary2 = props.summary,
|
|
67
|
+
summary = _props$summary2 === void 0 ? [] : _props$summary2;
|
|
64
68
|
if (!isArray(summary[0])) {
|
|
65
69
|
summary = [summary];
|
|
66
70
|
}
|
|
@@ -4,5 +4,6 @@ export { SummaryItem } from './table.type';
|
|
|
4
4
|
export interface TfootProps extends Pick<OptionalToRequired<TableProps<any, any>>, 'summary' | 'jssStyle'> {
|
|
5
5
|
columns: TableFormatColumn<any>[];
|
|
6
6
|
colgroup: (number | string | undefined)[];
|
|
7
|
+
data?: any[];
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=tfoot.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.8.0-beta.
|
|
3
|
+
"version": "3.8.0-beta.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.8.0-beta.
|
|
13
|
+
"@sheinx/hooks": "3.8.0-beta.20",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|