@ccs-ui/rc-pro 2.4.7 → 2.4.9
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/docs-dist/404.html +1 -1
- package/docs-dist/atom__demos.90c61f8e.async.js +1 -0
- package/docs-dist/guide/index.html +1 -1
- package/docs-dist/index.html +1 -1
- package/docs-dist/{meta__packages.6918a5b3.chunk.css → meta__packages.005955bf.chunk.css} +1 -1
- package/docs-dist/{meta__packages.3df2aa7f.async.js → meta__packages.afac63ad.async.js} +238 -222
- package/docs-dist/plugins/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/enumerations/DataEvent.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomEllipsisProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomFullScreenProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomLoadingProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomMultiStateProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/interfaces/ResizeSize.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownInstance.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterInstance.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItem.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItems.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomOperationProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomPageRequestProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomResizeProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomTitleProps.md/index.html +1 -1
- package/docs-dist/rc-pro/atom/_api/type-aliases/TableEventHandle.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +1 -1
- package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +1 -1
- package/docs-dist/rc-pro/cascader/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +1 -1
- package/docs-dist/rc-pro/context/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +1 -1
- package/docs-dist/rc-pro/context/_api/type-aliases/AppFieldNames.md/index.html +1 -1
- package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +1 -1
- package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +1 -1
- package/docs-dist/rc-pro/context/_api/type-aliases/PageFieldNames.md/index.html +1 -1
- package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +1 -1
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkBtnProps.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +1 -1
- package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +1 -1
- package/docs-dist/rc-pro/editor/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorCodeProps.md/index.html +1 -1
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorRichProps.md/index.html +1 -1
- package/docs-dist/rc-pro/editor/_api/type-aliases/LexicalEditorBaseProps.md/index.html +1 -1
- package/docs-dist/rc-pro/editor/_api/type-aliases/RichImageUpload.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemChildren.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +1 -1
- package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +1 -1
- package/docs-dist/rc-pro/index.html +1 -1
- package/docs-dist/rc-pro/index.md/index.html +1 -1
- package/docs-dist/rc-pro/page-layout/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/page-layout/_api/interfaces/KeepAliveTabsProps.md/index.html +1 -1
- package/docs-dist/rc-pro/page-layout/_api/interfaces/SinglePageProps.md/index.html +1 -1
- package/docs-dist/rc-pro/page-layout/_api/type-aliases/MenuType.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +1 -1
- package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +1 -1
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +1 -1
- package/docs-dist/rc-pro/upload/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/upload/_api/interfaces/ImageInfo.md/index.html +1 -1
- package/docs-dist/rc-pro/upload/_api/type-aliases/FileUploadList.md/index.html +1 -1
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadImageProps.md/index.html +1 -1
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadProps.md/index.html +1 -1
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadRequest.md/index.html +1 -1
- package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +1 -1
- package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +1 -1
- package/docs-dist/rc-pros/atom/index.html +1 -1
- package/docs-dist/rc-pros/auth/index.html +1 -1
- package/docs-dist/rc-pros/button/index.html +1 -1
- package/docs-dist/rc-pros/cascader/index.html +1 -1
- package/docs-dist/rc-pros/date-picker/index.html +1 -1
- package/docs-dist/rc-pros/dialog/index.html +1 -1
- package/docs-dist/rc-pros/editor/index.html +1 -1
- package/docs-dist/rc-pros/form/index.html +1 -1
- package/docs-dist/rc-pros/index.html +1 -1
- package/docs-dist/rc-pros/page-layout/index.html +1 -1
- package/docs-dist/rc-pros/pro-table/index.html +1 -1
- package/docs-dist/rc-pros/pro-tabs/index.html +1 -1
- package/docs-dist/rc-pros/result/index.html +1 -1
- package/docs-dist/rc-pros/select/index.html +1 -1
- package/docs-dist/rc-pros/time-picker/index.html +1 -1
- package/docs-dist/rc-pros/upload/index.html +1 -1
- package/docs-dist/rc-pros/water-mark/index.html +1 -1
- package/docs-dist/{select__demos.4ae9fdec.async.js → select__demos.19a1f254.async.js} +1 -1
- package/docs-dist/{umi.8f111ec1.js → umi.941a7883.js} +1 -1
- package/docs-dist/utils/index.html +1 -1
- package/docs-dist/~demos/:id/index.html +1 -1
- package/docs-dist/~demos/atom-demo-base/index.html +1 -1
- package/docs-dist/~demos/atom-demo-ellipsis/index.html +1 -1
- package/docs-dist/~demos/atom-demo-filter/index.html +1 -1
- package/docs-dist/~demos/atom-demo-operation/index.html +1 -1
- package/docs-dist/~demos/atom-demo-state/index.html +1 -1
- package/docs-dist/~demos/auth-demo-basic/index.html +1 -1
- package/docs-dist/~demos/button-demo-button/index.html +1 -1
- package/docs-dist/~demos/button-demo-group/index.html +1 -1
- package/docs-dist/~demos/cascader-demo-basic/index.html +1 -1
- package/docs-dist/~demos/cascader-demo-cache/index.html +1 -1
- package/docs-dist/~demos/date-picker-demo-basic/index.html +1 -1
- package/docs-dist/~demos/date-picker-demo-range/index.html +1 -1
- package/docs-dist/~demos/dialog-demo-demos/index.html +1 -1
- package/docs-dist/~demos/dialog-demo-form/index.html +1 -1
- package/docs-dist/~demos/dialog-demo-prompt/index.html +1 -1
- package/docs-dist/~demos/editor-demo-demos/index.html +1 -1
- package/docs-dist/~demos/editor-demo-rich/index.html +1 -1
- package/docs-dist/~demos/form-demo-demos/index.html +1 -1
- package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-basic/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-cascade/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-extra/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-filter/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-refresh/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-selection/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-show-depend/index.html +1 -1
- package/docs-dist/~demos/pro-table-demo-tree-async/index.html +1 -1
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +1 -1
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +1 -1
- package/docs-dist/~demos/result-demo-basic/index.html +1 -1
- package/docs-dist/~demos/select-demo-customize/index.html +1 -1
- package/docs-dist/~demos/time-picker-demo-basic/index.html +1 -1
- package/docs-dist/~demos/upload-demo-basic/index.html +1 -1
- package/docs-dist/~demos/upload-demo-image/index.html +1 -1
- package/docs-dist/~demos/water-mark-demo-basic/index.html +1 -1
- package/es/atom/ellipsis.d.ts +1 -6
- package/es/atom/ellipsis.js +34 -23
- package/es/atom/index.d.ts +1 -1
- package/es/dialog/HookModal.js +24 -23
- package/es/dialog/button.d.ts +1 -1
- package/es/dialog/hook.js +1 -1
- package/es/pro-table/table.js +5 -6
- package/es/select/customize.d.ts +1 -1
- package/es/select/customize.js +9 -6
- package/es/select/index.d.ts +1 -0
- package/es/select/index.js +1 -0
- package/es/select/index.less +3 -0
- package/package.json +1 -1
- package/docs-dist/atom__demos.018af23a.async.js +0 -1
package/es/atom/ellipsis.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AtomEllipsisProps } from './_api';
|
|
3
|
-
|
|
4
|
-
* 文本缩略
|
|
5
|
-
* @param EllipsisProps
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
declare function AtomEllipsis({ content, rows, direction, showTooltip, }: AtomEllipsisProps): string | import("react/jsx-runtime").JSX.Element | undefined;
|
|
3
|
+
declare function AtomEllipsis(props: AtomEllipsisProps): import("react/jsx-runtime").JSX.Element | "";
|
|
9
4
|
declare namespace AtomEllipsis {
|
|
10
5
|
var displayName: string;
|
|
11
6
|
}
|
package/es/atom/ellipsis.js
CHANGED
|
@@ -12,7 +12,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
import { CopyOutlined } from '@ant-design/icons';
|
|
14
14
|
import CcsUtils from '@ccs-ui/utils';
|
|
15
|
-
import { useDebounce, useSize } from 'ahooks';
|
|
15
|
+
import { useDebounce, useSize, useUpdateEffect } from 'ahooks';
|
|
16
16
|
import { Button, message, Tooltip } from 'antd';
|
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
|
18
18
|
import runes from 'runes2';
|
|
@@ -57,13 +57,15 @@ function ResizeObserverTarget(_ref) {
|
|
|
57
57
|
* @param EllipsisProps
|
|
58
58
|
* @returns
|
|
59
59
|
*/
|
|
60
|
-
function
|
|
60
|
+
function Ellipsis(_ref2) {
|
|
61
61
|
var content = _ref2.content,
|
|
62
62
|
_ref2$rows = _ref2.rows,
|
|
63
63
|
rows = _ref2$rows === void 0 ? 1 : _ref2$rows,
|
|
64
64
|
_ref2$direction = _ref2.direction,
|
|
65
65
|
direction = _ref2$direction === void 0 ? 'end' : _ref2$direction,
|
|
66
66
|
showTooltip = _ref2.showTooltip;
|
|
67
|
+
var containerRef = useRef(null);
|
|
68
|
+
|
|
67
69
|
// 计算单行高度的容器
|
|
68
70
|
var singleRowRef = React.useRef(null);
|
|
69
71
|
// 计算省略号内容容器
|
|
@@ -87,6 +89,11 @@ function AtomEllipsis(_ref2) {
|
|
|
87
89
|
maxHeight: 0,
|
|
88
90
|
step: 0
|
|
89
91
|
});
|
|
92
|
+
|
|
93
|
+
// content变化时重置状态
|
|
94
|
+
useUpdateEffect(function () {
|
|
95
|
+
setStatus(MEASURE_STATUS.INIT);
|
|
96
|
+
}, [content]);
|
|
90
97
|
useEffect(function () {
|
|
91
98
|
var chatLength = contentChars.length;
|
|
92
99
|
// 设置最大显示高度,防止数据抖动
|
|
@@ -109,7 +116,7 @@ function AtomEllipsis(_ref2) {
|
|
|
109
116
|
// 测量省略号
|
|
110
117
|
if (status === MEASURE_STATUS.MEASURE_WALKING) {
|
|
111
118
|
// 二分量
|
|
112
|
-
var newStepNum = Math.
|
|
119
|
+
var newStepNum = Math.round(dataRef.current.step / 2);
|
|
113
120
|
dataRef.current.step = newStepNum;
|
|
114
121
|
var dom = walkingContentRef.current;
|
|
115
122
|
// 内容没有超出最大高度
|
|
@@ -132,9 +139,9 @@ function AtomEllipsis(_ref2) {
|
|
|
132
139
|
});
|
|
133
140
|
} else {
|
|
134
141
|
// 减少量为0,测量结束
|
|
135
|
-
if (newStepNum === 0) {
|
|
142
|
+
if (newStepNum === 1 || newStepNum === 0) {
|
|
136
143
|
setIndexNumber(function (state) {
|
|
137
|
-
return state - 1;
|
|
144
|
+
return state - (newStepNum + 1);
|
|
138
145
|
});
|
|
139
146
|
setStatus(MEASURE_STATUS.STABLE_ELLIPSIS);
|
|
140
147
|
return;
|
|
@@ -207,33 +214,37 @@ function AtomEllipsis(_ref2) {
|
|
|
207
214
|
}
|
|
208
215
|
setStatus(MEASURE_STATUS.INIT);
|
|
209
216
|
};
|
|
210
|
-
return /*#__PURE__*/
|
|
211
|
-
children: /*#__PURE__*/
|
|
217
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
218
|
+
children: [/*#__PURE__*/_jsx(ResizeObserverTarget, {
|
|
219
|
+
targetRef: containerRef,
|
|
220
|
+
onResize: onResize
|
|
221
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
212
222
|
className: "ccs-ellipsis",
|
|
213
|
-
|
|
223
|
+
ref: containerRef,
|
|
224
|
+
children: [[MEASURE_STATUS.INIT, MEASURE_STATUS.NULL].includes(status) && /*#__PURE__*/_jsx("div", {
|
|
214
225
|
"aria-hidden": true,
|
|
215
226
|
ref: singleRowRef,
|
|
216
227
|
style: measureStyle,
|
|
217
228
|
children: "\xA0"
|
|
218
|
-
}, "stable"),
|
|
219
|
-
|
|
220
|
-
style: {
|
|
221
|
-
maxHeight: dataRef.current.maxHeight
|
|
222
|
-
},
|
|
223
|
-
className: "ccs-ellipsis-scroll",
|
|
224
|
-
children: renderContent()
|
|
225
|
-
}, "measure-walking"), status === MEASURE_STATUS.NULL && /*#__PURE__*/_jsxs(_Fragment, {
|
|
226
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
229
|
+
}, "stable"), MEASURE_STATUS.MEASURE_WALKING === status && /*#__PURE__*/_jsx(_Fragment, {
|
|
230
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
227
231
|
ref: walkingContentRef,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
style: {
|
|
233
|
+
maxHeight: dataRef.current.maxHeight
|
|
234
|
+
},
|
|
235
|
+
className: "ccs-ellipsis-scroll",
|
|
236
|
+
children: renderContent()
|
|
237
|
+
}, "measure-walking")
|
|
233
238
|
})]
|
|
234
|
-
})
|
|
239
|
+
})]
|
|
235
240
|
});
|
|
236
241
|
}
|
|
242
|
+
function AtomEllipsis(props) {
|
|
243
|
+
if (props.content === '' || props.content === undefined) {
|
|
244
|
+
return props.content;
|
|
245
|
+
}
|
|
246
|
+
return /*#__PURE__*/_jsx(Ellipsis, _objectSpread({}, props));
|
|
247
|
+
}
|
|
237
248
|
if (process.env.NODE_ENV !== 'production') {
|
|
238
249
|
AtomEllipsis.displayName = 'AtomEllipsis';
|
|
239
250
|
}
|
package/es/atom/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ declare const Atom: {
|
|
|
42
42
|
} & import("react").RefAttributes<import("../ccs").AtomCountdownInstance>>;
|
|
43
43
|
/** 文本缩略 */
|
|
44
44
|
Ellipsis: import("react").MemoExoticComponent<{
|
|
45
|
-
(
|
|
45
|
+
(props: import("../ccs").AtomEllipsisProps): import("react/jsx-runtime").JSX.Element | "";
|
|
46
46
|
displayName: string;
|
|
47
47
|
}>;
|
|
48
48
|
/** 分页请求hooks */
|
package/es/dialog/HookModal.js
CHANGED
|
@@ -156,35 +156,36 @@ var HookModal = function HookModal(props) {
|
|
|
156
156
|
requestFieldNames: requestFieldNames
|
|
157
157
|
});
|
|
158
158
|
}, []);
|
|
159
|
+
var renderTitle = /*#__PURE__*/_jsx("div", {
|
|
160
|
+
style: {
|
|
161
|
+
width: '100%',
|
|
162
|
+
cursor: 'move'
|
|
163
|
+
},
|
|
164
|
+
onMouseOver: function onMouseOver() {
|
|
165
|
+
if (dragState.disabled) {
|
|
166
|
+
setDragState(function (e) {
|
|
167
|
+
return _objectSpread(_objectSpread({}, e), {}, {
|
|
168
|
+
disabled: false
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
onMouseOut: function onMouseOut() {
|
|
174
|
+
setDragState(function (e) {
|
|
175
|
+
return _objectSpread(_objectSpread({}, e), {}, {
|
|
176
|
+
disabled: true
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
children: title
|
|
181
|
+
});
|
|
159
182
|
return /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({
|
|
160
183
|
onCancel: onHandleClose,
|
|
161
184
|
afterClose: afterClose
|
|
162
185
|
}, otherInnerConfig), {}, {
|
|
163
186
|
className: classNames('ccs-dialog-modal', className),
|
|
164
187
|
footer: footer === null ? null : renderFooter,
|
|
165
|
-
title:
|
|
166
|
-
style: {
|
|
167
|
-
width: '100%',
|
|
168
|
-
cursor: 'move'
|
|
169
|
-
},
|
|
170
|
-
onMouseOver: function onMouseOver() {
|
|
171
|
-
if (dragState.disabled) {
|
|
172
|
-
setDragState(function (e) {
|
|
173
|
-
return _objectSpread(_objectSpread({}, e), {}, {
|
|
174
|
-
disabled: false
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
onMouseOut: function onMouseOut() {
|
|
180
|
-
setDragState(function (e) {
|
|
181
|
-
return _objectSpread(_objectSpread({}, e), {}, {
|
|
182
|
-
disabled: true
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
},
|
|
186
|
-
children: title
|
|
187
|
-
}),
|
|
188
|
+
title: renderTitle,
|
|
188
189
|
modalRender: function modalRender(modal) {
|
|
189
190
|
return /*#__PURE__*/_jsx(DragModal, {
|
|
190
191
|
modal: modal,
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DialogFormRef } from './form';
|
|
|
5
5
|
export type DialogButtonRef = {
|
|
6
6
|
onSetButtons: (e: React.ReactElement) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "
|
|
8
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "onClose" | "request" | "onOk" | "auth" | "extraBtn" | "preventRequestHandle" | "requestFieldNames"> & {
|
|
9
9
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
10
10
|
formInitialValues: FormProps['initialValues'];
|
|
11
11
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/dialog/hook.js
CHANGED
package/es/pro-table/table.js
CHANGED
|
@@ -209,17 +209,16 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
209
209
|
|
|
210
210
|
// 查询按钮
|
|
211
211
|
var onSearch = function onSearch() {
|
|
212
|
-
var _table$rowSelection, _table$rowSelection$o;
|
|
213
212
|
// @ts-ignore
|
|
214
|
-
|
|
213
|
+
// table?.rowSelection?.onClearByProTable?.();
|
|
215
214
|
onRequest(DataEvent.Search);
|
|
216
215
|
};
|
|
217
216
|
|
|
218
217
|
// 重置
|
|
219
218
|
var onReset = function onReset() {
|
|
220
|
-
var _table$
|
|
219
|
+
var _table$rowSelection, _table$rowSelection$o, _atomFilterRef$curren2;
|
|
221
220
|
// @ts-ignore
|
|
222
|
-
table === null || table === void 0 || (_table$
|
|
221
|
+
table === null || table === void 0 || (_table$rowSelection = table.rowSelection) === null || _table$rowSelection === void 0 || (_table$rowSelection$o = _table$rowSelection.onClearByProTable) === null || _table$rowSelection$o === void 0 || _table$rowSelection$o.call(_table$rowSelection);
|
|
223
222
|
// 重置表单
|
|
224
223
|
(_atomFilterRef$curren2 = atomFilterRef.current) === null || _atomFilterRef$curren2 === void 0 || _atomFilterRef$curren2.form.resetFields();
|
|
225
224
|
// 清空columns显示filter和sort值
|
|
@@ -238,9 +237,9 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
238
237
|
|
|
239
238
|
// 刷新
|
|
240
239
|
var onReload = function onReload() {
|
|
241
|
-
var _table$
|
|
240
|
+
var _table$rowSelection2, _table$rowSelection2$;
|
|
242
241
|
// @ts-ignore
|
|
243
|
-
table === null || table === void 0 || (_table$
|
|
242
|
+
table === null || table === void 0 || (_table$rowSelection2 = table.rowSelection) === null || _table$rowSelection2 === void 0 || (_table$rowSelection2$ = _table$rowSelection2.onClearByProTable) === null || _table$rowSelection2$ === void 0 || _table$rowSelection2$.call(_table$rowSelection2);
|
|
244
243
|
onRequest(DataEvent.Reload, data.current, data.pageSize);
|
|
245
244
|
};
|
|
246
245
|
|
package/es/select/customize.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ import { CustomizeSelectProps } from './_api';
|
|
|
4
4
|
* @param SelectCustomizeProps
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
declare function SelectIndex({ value,
|
|
7
|
+
declare function SelectIndex({ value, mode, children, contentWidth, labelInValue, onChange, ...otherProps }: CustomizeSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default SelectIndex;
|