@ccs-ui/rc-pro 2.4.7 → 2.4.8
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.3df2aa7f.async.js → meta__packages.2767b211.async.js} +207 -197
- 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/{umi.8f111ec1.js → umi.dd352436.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/pro-table/table.js +5 -6
- 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/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/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkccs_ui=self.webpackChunkccs_ui||[]).push([[9254],{5702:function(d,s,u){u.r(s);var o=u(48305),r=u.n(o),i=u(47219),e=u(32097),a=u(81465),n=u(18466),t=u(75271),l=u(52676),c=["Apple","Pear","Orange"];s.default=function(){var C=(0,t.useState)(""),_=r()(C,2),D=_[0],E=_[1],f=(0,t.useState)(!1),B=r()(f,2),h=B[0],m=B[1];return(0,l.jsxs)("div",{id:"ccs-pro-table",children:[(0,l.jsx)(a.Z,{orientation:"left",plain:!0,children:"\u5C0F\u7EC4\u4EF6"}),(0,l.jsx)(e.default.FullScreen,{parentHtmlId:"ccs-pro-table",btnProps:{children:"\u5168\u5C4F"}}),(0,l.jsx)(e.default.Checkbox,{btnProps:{children:"\u4E0B\u62C9\u9009\u62E9\u7EC4"},options:c,defaultCheckedKeys:["Apple","Pear"],onChange:function(F){console.log("CcsAtom.Checkbox onChange",F)}}),(0,l.jsx)(e.default.Countdown,{icon:(0,l.jsx)(i.Z,{}),type:"text",num:10,disabledText:"\u540E\u91CD\u53D1",children:"\u5012\u8BA1\u65F6\u6309\u94AE"}),(0,l.jsx)(n.ZP,{type:"text",onClick:function(){m(!0),setTimeout(function(){m(!1)},2e3)},children:"\u5F00\u542FLoading"}),(0,l.jsx)(e.default.Loading,{loading:h}),(0,l.jsx)(a.Z,{orientation:"left",plain:!0,children:"\u5BB9\u5668\u5C3A\u5BF8\u53D8\u5316\u9632\u6296"}),(0,l.jsx)("div",{style:{color:"gray",fontSize:12,marginLeft:16},children:D||"\u62D6\u62FD\u6D4F\u89C8\u5668\u53D8\u66F4\u5C3A\u5BF8"}),(0,l.jsx)(e.default.Resize,{onResize:function(F){console.log("e",F),E(JSON.stringify(F))}})]})}},6777:function(d,s,u){u.r(s);var o=u(32097),r=u(76098),i=u(81465),e=u(52676),a="\u94F8\u9B42\u624E\u6839\uFF0C\u65B9\u80FD\u884C\u7A33\u81F4\u8FDC\u3002\u5E74\u8F7B\u5E72\u90E8\u6295\u8EAB\u4E61\u6751\u5168\u9762\u632F\u5174\uFF0C\u9996\u8981\u7684\u662F\u89E3\u51B3\u201C\u4E3A\u8C01\u5E72\u4E8B\u3001\u5982\u4F55\u5E72\u4E8B\u201D\u7684\u6839\u672C\u95EE\u9898\u3002\u4E61\u6751\u5DE5\u4F5C\u76F4\u9762\u57FA\u5C42\u7FA4\u4F17\uFF0C\u60C5\u51B5\u9519\u7EFC\u590D\u6742\u3002\u82E5\u7406\u8BBA\u6B66\u88C5\u4E0D\u6DF1\u3001\u653F\u7B56\u628A\u63E1\u4E0D\u51C6\uFF0C\u884C\u52A8\u4FBF\u4F1A\u504F\u79BB\u822A\u5411\uFF1B\u82E5\u7FA4\u4F17\u611F\u60C5\u4E0D\u591F\u6DF1\u539A\uFF0C\u5DE5\u4F5C\u5C31\u53EF\u80FD\u9677\u5165\u201C\u81EA\u8BF4\u81EA\u8BDD\u201D\u6216\u201C\u6C34\u571F\u4E0D\u670D\u201D\u7684\u56F0\u5883\u3002\u5FC5\u987B\u628A\u5F3A\u5316\u601D\u60F3\u6DEC\u70BC\u548C\u653F\u6CBB\u5386\u7EC3\u6446\u5728\u9996\u4F4D\uFF0C\u5F15\u5BFC\u5E74\u8F7B\u5E72\u90E8\u6DF1\u5165\u5B66\u4E60\u8D2F\u5F7B\u4E60\u8FD1\u5E73\u65B0\u65F6\u4EE3\u4E2D\u56FD\u7279\u8272\u793E\u4F1A\u4E3B\u4E49\u601D\u60F3\uFF0C\u7279\u522B\u662F\u4E60\u8FD1\u5E73\u603B\u4E66\u8BB0\u5173\u4E8E\u201C\u4E09\u519C\u201D\u5DE5\u4F5C\u91CD\u8981\u8BBA\u8FF0\uFF0C\u5728\u52E4\u5B66\u5584\u601D\u4E2D\u4E0D\u65AD\u575A\u5B9A\u7406\u60F3\u4FE1\u5FF5\uFF0C\u786E\u4FDD\u4E61\u6751\u5DE5\u4F5C\u59CB\u7EC8\u6CBF\u7740\u6B63\u786E\u65B9\u5411\u524D\u8FDB\u3002\u8BA9\u7406\u8BBA\u5B66\u4E60\u7684\u201C\u6DF1\u5EA6\u201D\u8F6C\u5316\u4E3A\u670D\u52A1\u7FA4\u4F17\u7684\u201C\u6E29\u5EA6\u201D\uFF0C\u63A8\u52A8\u5E74\u8F7B\u5E72\u90E8\u6C89\u5230\u7530\u95F4\u5730\u5934\u3001\u519C\u5BB6\u9662\u843D\uFF0C\u4E0E\u519C\u6C11\u7FA4\u4F17\u540C\u5750\u4E00\u6761\u677F\u51F3\u3001\u540C\u5E72\u4E00\u573A\u519C\u6D3B\uFF0C\u5728\u503E\u542C\u6C11\u58F0\u3001\u611F\u77E5\u6C11\u60C5\u4E2D\u589E\u8FDB\u7406\u89E3\u3001\u5EFA\u7ACB\u4FE1\u4EFB\uFF0C\u771F\u6B63\u628A\u6839\u624E\u5728\u6CE5\u571F\u91CC\u3001\u624E\u5728\u767E\u59D3\u4E2D";function n(){return new Promise(function(l){setTimeout(function(){l({success:!0,data:{result:[{id:"1",name0:"name0",name1:a,name2:a,name3:a,name4:a}],total:10}})},1500)})}var t=[{dataIndex:"name0",title:"name0",ellipsis:{rows:2,direction:"middle"},width:80},{dataIndex:"name1",title:"name1",ellipsis:{rows:2,direction:"middle"},width:140},{dataIndex:"name2",title:"name2",ellipsis:{rows:2,direction:"middle"},width:100},{dataIndex:"name3",title:"name3",ellipsis:{rows:2,direction:"middle"}},{dataIndex:"name4",title:"name4",ellipsis:{rows:2,direction:"middle"}}];s.default=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Z,{orientation:"left",plain:!0,children:"\u7701\u7565\u5C3E\u90E8"}),(0,e.jsx)(o.default.Ellipsis,{content:a,rows:2,showTooltip:!0}),(0,e.jsx)(i.Z,{orientation:"left",plain:!0,children:"\u7701\u7565\u5934\u90E8"}),(0,e.jsx)(o.default.Ellipsis,{direction:"start",content:a,rows:2,showTooltip:!0}),(0,e.jsx)(i.Z,{orientation:"left",plain:!0,children:"\u7701\u7565\u4E2D\u95F4"}),(0,e.jsx)(o.default.Ellipsis,{direction:"middle",showTooltip:!0,content:a,rows:2}),(0,e.jsx)(i.Z,{orientation:"left",plain:!0,children:"\u8868\u683C\u4E2D\u4F7F\u7528"}),(0,e.jsx)(r.default,{bordered:!0,table:{rowKey:"id",columns:t,request:n,scroll:{x:1200}}})]})}},28254:function(d,s,u){u.r(s);var o=u(86247),r=u(32097),i=u(19152),e=u(6052),a=u(8639),n=u(92167),t=u(52676);s.default=function(){var l=[{label:"\u7528\u6237",name:["workerName","aaaa"],children:(0,t.jsx)(i.Z,{placeholder:"\u8BF7\u8F93\u5165",allowClear:!0})},{label:"\u8D26\u53F7",name:"loginCode",children:(0,t.jsx)(i.Z,{placeholder:"\u8BF7\u8F93\u5165"})},{label:"\u72B6\u6001",name:"state",children:(0,t.jsx)(e.default,{style:{width:100},placeholder:"\u8BF7\u9009\u62E9",options:[{value:"1",label:"\u6709\u6548"},{value:"0",label:"\u65E0\u6548"}]})},{label:"\u7535\u8BDD",name:"mobile",children:(0,t.jsx)(a.Z,{style:{width:100},placeholder:"\u8BF7\u8F93\u5165"})},{label:"\u89D2\u8272",name:"roleId",children:(0,t.jsx)(e.default,{options:[],style:{width:100}}),depends:["state","mobile"]},{label:"\u521B\u5EFA\u65F6\u95F4",name:"createTime",children:(0,t.jsx)(n.default,{style:{width:160}})},{label:"\u533A\u95F4",children:(0,t.jsx)(o.default.RangePicker,{}),name:["createTimeStart","createTimeEnd"],isGroupName:!0}];return(0,t.jsx)(r.default.Filter,{formItems:l,onSearch:function(){console.log("onSearch...")}})}},41756:function(d,s,u){u.r(s);var o=u(32097),r=u(668),i=u(22126),e=u(52676);s.default=function(){return(0,e.jsx)("div",{id:"ccs-pro-table",children:(0,e.jsx)(o.default.Operation,{parentHtmlId:"ccs-pro-table",extraLeft:(0,e.jsx)(r.default.Group,{items:[{label:"\u6309\u94AE1",key:"btn1",type:"primary"},{label:"\u6309\u94AE2",key:"btn2"}]}),onReset:function(){console.log("onReset...")},size:"middle",onChangeSize:function(n){console.log("onChangeSize",n)},extraRight:(0,e.jsx)(i.default,{placement:"bottomRight",options:[{label:"\u9009\u98791",value:"1"},{label:"\u9009\u98792",value:"2"},{label:"\u9009\u98793",value:"3"}]})})})}},29626:function(d,s,u){u.r(s);var o=u(82092),r=u.n(o),i=u(8984),e=u(18466),a=u(64723),n=u(52676);s.default=function(){var t=(0,a.default)({data:{value:1},result:{value:1},list:{users:[{a:1,b:1}]}}),l=t.state,c=t.setRaw,C=t.setByPath,_=t.setArray,D=t.reset;return(0,n.jsxs)("div",{style:{color:"gray",fontSize:14,marginLeft:16},children:[(0,n.jsx)("div",{style:{marginBottom:10},children:JSON.stringify(l)}),(0,n.jsxs)(i.Z,{wrap:!0,children:[(0,n.jsx)(e.ZP,{onClick:function(){return C("data.value",2)},children:"\u66F4\u65B0 data.value"}),(0,n.jsx)(e.ZP,{onClick:function(){return C({"data.value":300,"result.value":300})},children:"\u591A\u503C\u66F4\u65B0"}),(0,n.jsx)(e.ZP,{onClick:function(){return _("list.users",{a:2,b:2})},children:"\u6570\u7EC4push"}),(0,n.jsx)(e.ZP,{onClick:function(){return _("list.users",{a:2,b:2},"$unshift")},children:"\u6570\u7EC4unshift"}),(0,n.jsx)(e.ZP,{onClick:function(){return c({list:{users:r()({},0,{a:{$set:333}})}})},children:"\u81EA\u5B9A\u4E49\u66F4\u65B0"}),(0,n.jsx)(e.ZP,{onClick:function(){return D()},children:"\u91CD\u7F6E"})]})]})}}}]);
|