@para-ui/core 2.2.31 → 2.2.33
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/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.js +1 -1
- package/CollapseBox/index.js +1 -1
- package/ComboSelect/index.js +2 -2
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/InputLang/index.js +1 -1
- package/Menu/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/OperateBtn/index.js +1 -1
- package/Pagination/index.js +2 -2
- package/README.md +17 -0
- package/Search/index.js +1 -1
- package/Select/index.js +2 -2
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +2 -2
- package/Selector/interface.d.ts +12 -0
- package/SelectorPicker/index.js +2 -2
- package/SingleBox/index.js +1 -1
- package/Table/index.js +2 -2
- package/TextField/index.js +1 -1
- package/Transfer/index.js +1 -1
- package/Tree/index.js +1 -1
- package/Upload/ImgCrop/interface.d.ts +20 -1
- package/Upload/index.js +1 -1
- package/cdn/AutoTips/index.js +3 -3
- package/cdn/Breadcrumbs/index.js +5 -5
- package/cdn/CollapseBox/index.js +1 -1
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/Form/index.js +2 -2
- package/cdn/FormItem/index.js +2 -2
- package/cdn/InputLang/index.js +1 -1
- package/cdn/Menu/index.js +2 -2
- package/cdn/MultiBox/index.js +1 -1
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/Pagination/index.js +2 -2
- package/cdn/Search/index.js +5 -5
- package/cdn/Select/index.js +2 -2
- package/cdn/SelectInput/index.js +2 -2
- package/cdn/Selector/index.js +3 -3
- package/cdn/SelectorPicker/index.js +10 -10
- package/cdn/SingleBox/index.js +1 -1
- package/cdn/Table/index.js +2 -2
- package/cdn/TextField/index.js +1 -1
- package/cdn/Transfer/index.js +5 -5
- package/cdn/Tree/index.js +1 -1
- package/cdn/Upload/index.js +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
- package/style.css +2 -2
package/Selector/interface.d.ts
CHANGED
|
@@ -172,6 +172,8 @@ export interface SelectorNodeProps {
|
|
|
172
172
|
detail?: boolean;
|
|
173
173
|
/** 详情渲染 */
|
|
174
174
|
detailRender?: () => ReactNode;
|
|
175
|
+
/** 选中每一项自定义 */
|
|
176
|
+
leftRender?: () => ReactNode;
|
|
175
177
|
/** 是否存在下级 */
|
|
176
178
|
child?: boolean;
|
|
177
179
|
/** 是否关闭 */
|
|
@@ -306,6 +308,10 @@ export interface SelectorDataProps {
|
|
|
306
308
|
handSelectorNodeInfo?: (item: SelectorAnyJson) => SelectorAnyJson;
|
|
307
309
|
/** 选中数据标题render */
|
|
308
310
|
selectDataTitleRender?: (list?: SelectorAnyJson[]) => ReactNode;
|
|
311
|
+
/** 选中每一项自定义 */
|
|
312
|
+
selectRenderItem?: (item: SelectorAnyJson) => ReactNode;
|
|
313
|
+
/** 选中项整体自定义渲染 */
|
|
314
|
+
selectRender?: (list: SelectorAnyJson[]) => ReactNode;
|
|
309
315
|
/** 点击× */
|
|
310
316
|
onClose?: (item: SelectorAnyJson, index: number) => void;
|
|
311
317
|
[name: string]: any;
|
|
@@ -392,6 +398,10 @@ export interface SelectorProps {
|
|
|
392
398
|
requestCallback?: (data: any, cb: (data: any) => void, isSearch?: boolean) => void;
|
|
393
399
|
/** 选中数据标题render */
|
|
394
400
|
selectDataTitleRender?: (list?: SelectorAnyJson[]) => ReactNode;
|
|
401
|
+
/** 选中每一项自定义 */
|
|
402
|
+
selectRenderItem?: (item: SelectorAnyJson) => ReactNode;
|
|
403
|
+
/** 选中项整体自定义渲染 */
|
|
404
|
+
selectRender?: (list: SelectorAnyJson[]) => ReactNode;
|
|
395
405
|
/** 空状态属性 */
|
|
396
406
|
emptyProps?: EmptyProps;
|
|
397
407
|
/**
|
|
@@ -400,6 +410,8 @@ export interface SelectorProps {
|
|
|
400
410
|
* @return [] 返回平铺数组
|
|
401
411
|
* */
|
|
402
412
|
onSearch?: (val: string, reqParams: SearchFuncProps) => (Promise<SearchReqDataProps> | SearchReqDataProps);
|
|
413
|
+
/** 刷新事件 */
|
|
414
|
+
onRefresh?: () => void;
|
|
403
415
|
/** 选择事件 返回true不触发onChange事件
|
|
404
416
|
* item 点击数据, 全选时候的数据
|
|
405
417
|
* bol 选中/不选中
|