@para-ui/core 3.0.114 → 3.0.115
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/ComboSelect/index.js +25 -22
- package/ComboSelect/interface.d.ts +2 -0
- package/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/README.md +11 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/umd/ComboSelect.js +1 -1
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- /package/_verture/{index-24fedf46.js → index-b698be52.js} +0 -0
package/ComboSelect/index.js
CHANGED
|
@@ -179,7 +179,8 @@ var ComboSelect = function ComboSelect(props) {
|
|
|
179
179
|
dropdownMatchSelectWidth = _useGlobalProps$dropd === void 0 ? true : _useGlobalProps$dropd,
|
|
180
180
|
getPopupContainer = _useGlobalProps.getPopupContainer,
|
|
181
181
|
maxTagTextLength = _useGlobalProps.maxTagTextLength,
|
|
182
|
-
renderInputContent = _useGlobalProps.renderInputContent
|
|
182
|
+
renderInputContent = _useGlobalProps.renderInputContent,
|
|
183
|
+
renderNotCheckListInputContent = _useGlobalProps.renderNotCheckListInputContent;
|
|
183
184
|
var _React$useContext = React__default.useContext(GlobalContext),
|
|
184
185
|
language = _React$useContext.language,
|
|
185
186
|
locale = _React$useContext.locale;
|
|
@@ -888,31 +889,33 @@ var ComboSelect = function ComboSelect(props) {
|
|
|
888
889
|
}));
|
|
889
890
|
}, [checkKeys, refresh, params, inRefresh, open, loadedKeys]);
|
|
890
891
|
//组合选择器输入框
|
|
891
|
-
var comboSelectorInput =
|
|
892
|
+
var comboSelectorInput = jsx("div", Object.assign({
|
|
892
893
|
className: 'comboselect-wrapper',
|
|
893
894
|
ref: selectRef,
|
|
894
895
|
onClick: handleSelectorClick
|
|
895
896
|
}, {
|
|
896
|
-
children:
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
897
|
+
children: renderNotCheckListInputContent ? renderNotCheckListInputContent() : jsxs(Fragment, {
|
|
898
|
+
children: [jsx("div", Object.assign({
|
|
899
|
+
className: clsx('comboselect-overflow', !checkable && 'comboselect-overflow-single')
|
|
900
|
+
}, {
|
|
901
|
+
children: tagMemo
|
|
902
|
+
})), !disablePopup && jsx("span", Object.assign({
|
|
903
|
+
className: 'comboselect-arrow'
|
|
904
|
+
}, {
|
|
905
|
+
children: jsx(Down, {})
|
|
906
|
+
})), hasAllClear && jsx("span", Object.assign({
|
|
907
|
+
className: 'comboselect-clear',
|
|
908
|
+
onClick: handleAllClear
|
|
909
|
+
}, {
|
|
910
|
+
children: jsx(CloseCircle, {})
|
|
911
|
+
})), !(checkList === null || checkList === void 0 ? void 0 : checkList.length) && jsx("span", Object.assign({
|
|
912
|
+
className: 'comboselect-placeholder'
|
|
913
|
+
}, {
|
|
914
|
+
children: placeholder !== null && placeholder !== void 0 ? placeholder : intl({
|
|
915
|
+
id: 'pleaseSelect'
|
|
916
|
+
})
|
|
917
|
+
}))]
|
|
918
|
+
})
|
|
916
919
|
}));
|
|
917
920
|
//渲染label
|
|
918
921
|
var renderLabel = function renderLabel() {
|
|
@@ -147,4 +147,6 @@ export interface ComboSelectProps extends HelperTextDetailProps {
|
|
|
147
147
|
maxTagTextLength?: number;
|
|
148
148
|
/** 自定义渲染输入框内容 */
|
|
149
149
|
renderInputContent?: (options: SelectOpt | SelectOpt[]) => React.ReactNode;
|
|
150
|
+
/** 脱离选中项的自定义输入框内容 */
|
|
151
|
+
renderNotCheckListInputContent?: () => React.ReactNode;
|
|
150
152
|
}
|
package/Form/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { DeepClone } from '@paraview/lib';
|
|
5
5
|
import React__default from 'react';
|
|
6
|
-
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-
|
|
6
|
+
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-b698be52.js';
|
|
7
7
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
9
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
package/FormItem/index.js
CHANGED
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 版本: 3.0.115
|
|
2
|
+
|
|
3
|
+
para-ui/core@3.0.115 发布
|
|
4
|
+
【组合选择器-ComboSelect】组合选择器增加renderNotCheckListInputContent参数,不依赖选项,自定义展示内容
|
|
5
|
+
|
|
1
6
|
## 版本: 3.0.114
|
|
2
7
|
|
|
3
8
|
para-ui/core@3.0.114 发布
|
|
@@ -108,6 +113,12 @@
|
|
|
108
113
|
para-ui/core@3.0.95 发布
|
|
109
114
|
【表单-form】修改校验文案
|
|
110
115
|
|
|
116
|
+
## 版本: 3.0.94
|
|
117
|
+
para-ui/core@3.0.94 发布
|
|
118
|
+
【树-tree】修复树空状态和loading同时出现的问题
|
|
119
|
+
【表格-Table】修复表格右侧固定,滚动不对齐问题
|
|
120
|
+
【下拉框-Select】修改下拉框初始值延迟问题
|
|
121
|
+
|
|
111
122
|
## 版本: 3.0.93
|
|
112
123
|
|
|
113
124
|
para-ui/core@3.0.93 发布
|
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export { D as Dropdown } from './_verture/index-77f9e0fb.js';
|
|
|
22
22
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
23
23
|
export { default as Empty } from './Empty/index.js';
|
|
24
24
|
export { default as Form } from './Form/index.js';
|
|
25
|
-
export { F as FormItem } from './_verture/index-
|
|
25
|
+
export { F as FormItem } from './_verture/index-b698be52.js';
|
|
26
26
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-305f73f4.js';
|
|
27
27
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
28
28
|
export { default as Help } from './Help/index.js';
|