@ccs-ui/rc-pro 2.4.8 → 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/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.2767b211.async.js → meta__packages.afac63ad.async.js} +44 -38
- 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.dd352436.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 -1
- 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/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/es/atom/ellipsis.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AtomEllipsisProps } from './_api';
|
|
3
|
-
declare function AtomEllipsis(props: AtomEllipsisProps):
|
|
3
|
+
declare function AtomEllipsis(props: AtomEllipsisProps): import("react/jsx-runtime").JSX.Element | "";
|
|
4
4
|
declare namespace AtomEllipsis {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
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
|
-
(props: import("../ccs").AtomEllipsisProps):
|
|
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/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;
|
package/es/select/customize.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["value", "
|
|
1
|
+
var _excluded = ["value", "mode", "children", "contentWidth", "labelInValue", "onChange"];
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -25,7 +25,6 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
25
25
|
*/
|
|
26
26
|
function SelectIndex(_ref) {
|
|
27
27
|
var value = _ref.value,
|
|
28
|
-
style = _ref.style,
|
|
29
28
|
mode = _ref.mode,
|
|
30
29
|
children = _ref.children,
|
|
31
30
|
contentWidth = _ref.contentWidth,
|
|
@@ -33,7 +32,7 @@ function SelectIndex(_ref) {
|
|
|
33
32
|
_onChange = _ref.onChange,
|
|
34
33
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
35
34
|
// 初始加载
|
|
36
|
-
var _useState = useState(
|
|
35
|
+
var _useState = useState('init'),
|
|
37
36
|
_useState2 = _slicedToArray(_useState, 2),
|
|
38
37
|
open = _useState2[0],
|
|
39
38
|
setOpen = _useState2[1];
|
|
@@ -117,12 +116,17 @@ function SelectIndex(_ref) {
|
|
|
117
116
|
};
|
|
118
117
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
119
118
|
children: /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
120
|
-
open: open,
|
|
119
|
+
open: !!open,
|
|
121
120
|
onOpenChange: setOpen,
|
|
122
121
|
allowClear: true,
|
|
123
122
|
defaultActiveFirstOption: true,
|
|
124
123
|
suffixIcon: loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : /*#__PURE__*/_jsx(SelectOutlined, {}),
|
|
125
|
-
placeholder: "\u8BF7\u9009\u62E9"
|
|
124
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
125
|
+
classNames: {
|
|
126
|
+
popup: {
|
|
127
|
+
root: open === 'init' ? 'ccs-select-custom-init' : undefined
|
|
128
|
+
}
|
|
129
|
+
}
|
|
126
130
|
}, otherProps), {}, {
|
|
127
131
|
popupMatchSelectWidth: contentWidth,
|
|
128
132
|
popupRender: function popupRender() {
|
|
@@ -130,7 +134,6 @@ function SelectIndex(_ref) {
|
|
|
130
134
|
},
|
|
131
135
|
mode: !!labelText ? undefined : mode,
|
|
132
136
|
value: loading ? undefined : renderValueText(),
|
|
133
|
-
style: _objectSpread({}, style),
|
|
134
137
|
onChange: _onChange,
|
|
135
138
|
options: options
|
|
136
139
|
}))
|
package/es/select/index.d.ts
CHANGED
package/es/select/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import { getDataByNamePath } from "../utils";
|
|
|
20
20
|
import ModalSelect from "./ modal";
|
|
21
21
|
import ApiSelect from "./api";
|
|
22
22
|
import CustomizeSelect from "./customize";
|
|
23
|
+
import "./index.less";
|
|
23
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
25
|
function onIsArray(data) {
|
|
25
26
|
if (Array.isArray(data)) return data;
|