@douyinfe/semi-ui 2.52.0-beta.1 → 2.53.0-beta.0
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/dist/css/semi.css +1 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +930 -1249
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/_utils/index.d.ts +2 -0
- package/lib/cjs/_utils/index.js +77 -0
- package/lib/cjs/_utils/semi-global.d.ts +46 -0
- package/lib/cjs/_utils/semi-global.js +13 -0
- package/lib/cjs/autoComplete/index.d.ts +2 -25
- package/lib/cjs/autoComplete/index.js +4 -2
- package/lib/cjs/avatar/index.d.ts +2 -10
- package/lib/cjs/avatar/index.js +4 -2
- package/lib/cjs/backtop/index.d.ts +2 -5
- package/lib/cjs/backtop/index.js +4 -2
- package/lib/cjs/button/Button.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +3 -1
- package/lib/cjs/button/index.js +3 -0
- package/lib/cjs/carousel/index.d.ts +2 -2
- package/lib/cjs/cascader/index.d.ts +5 -33
- package/lib/cjs/cascader/index.js +34 -23
- package/lib/cjs/collapse/index.d.ts +2 -7
- package/lib/cjs/collapse/index.js +4 -2
- package/lib/cjs/collapsible/index.d.ts +3 -9
- package/lib/cjs/collapsible/index.js +4 -2
- package/lib/cjs/configProvider/index.d.ts +2 -1
- package/lib/cjs/configProvider/index.js +5 -2
- package/lib/cjs/datePicker/datePicker.d.ts +2 -44
- package/lib/cjs/datePicker/datePicker.js +5 -3
- package/lib/cjs/datePicker/yearAndMonth.js +20 -16
- package/lib/cjs/dropdown/index.d.ts +2 -12
- package/lib/cjs/dropdown/index.js +4 -2
- package/lib/cjs/form/arrayField.js +3 -3
- package/lib/cjs/form/hoc/withField.d.ts +3 -3
- package/lib/cjs/modal/Modal.d.ts +2 -20
- package/lib/cjs/modal/Modal.js +5 -4
- package/lib/cjs/modal/confirm.d.ts +14 -14
- package/lib/cjs/navigation/index.d.ts +2 -15
- package/lib/cjs/navigation/index.js +4 -2
- package/lib/cjs/notification/notice.d.ts +2 -12
- package/lib/cjs/notification/notice.js +3 -2
- package/lib/cjs/overflowList/index.d.ts +2 -9
- package/lib/cjs/overflowList/index.js +3 -2
- package/lib/cjs/popconfirm/index.d.ts +2 -15
- package/lib/cjs/popconfirm/index.js +4 -2
- package/lib/cjs/popover/index.d.ts +2 -23
- package/lib/cjs/popover/index.js +4 -2
- package/lib/cjs/resizeObserver/index.d.ts +14 -2
- package/lib/cjs/resizeObserver/index.js +66 -32
- package/lib/cjs/select/index.d.ts +1 -0
- package/lib/cjs/select/index.js +3 -2
- package/lib/cjs/select/option.js +2 -1
- package/lib/cjs/sideSheet/index.d.ts +1 -0
- package/lib/cjs/sideSheet/index.js +3 -2
- package/lib/cjs/table/ResizableTable.js +1 -1
- package/lib/cjs/tabs/index.d.ts +1 -0
- package/lib/cjs/tabs/index.js +4 -2
- package/lib/cjs/timePicker/TimePicker.d.ts +1 -1
- package/lib/cjs/timePicker/index.d.ts +2 -34
- package/lib/cjs/timePicker/index.js +3 -1
- package/lib/cjs/toast/toast.d.ts +2 -11
- package/lib/cjs/toast/toast.js +3 -2
- package/lib/cjs/tooltip/index.d.ts +2 -32
- package/lib/cjs/tooltip/index.js +3 -2
- package/lib/cjs/typography/base.d.ts +7 -4
- package/lib/cjs/typography/base.js +127 -64
- package/lib/cjs/typography/numeral.d.ts +1 -1
- package/lib/cjs/typography/paragraph.d.ts +1 -1
- package/lib/cjs/typography/text.d.ts +1 -1
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/es/_utils/index.d.ts +2 -0
- package/lib/es/_utils/index.js +75 -0
- package/lib/es/_utils/semi-global.d.ts +46 -0
- package/lib/es/_utils/semi-global.js +6 -0
- package/lib/es/autoComplete/index.d.ts +2 -25
- package/lib/es/autoComplete/index.js +4 -2
- package/lib/es/avatar/index.d.ts +2 -10
- package/lib/es/avatar/index.js +4 -2
- package/lib/es/backtop/index.d.ts +2 -5
- package/lib/es/backtop/index.js +4 -2
- package/lib/es/button/Button.d.ts +1 -1
- package/lib/es/button/index.d.ts +3 -1
- package/lib/es/button/index.js +3 -0
- package/lib/es/carousel/index.d.ts +2 -2
- package/lib/es/cascader/index.d.ts +5 -33
- package/lib/es/cascader/index.js +35 -24
- package/lib/es/collapse/index.d.ts +2 -7
- package/lib/es/collapse/index.js +4 -2
- package/lib/es/collapsible/index.d.ts +3 -9
- package/lib/es/collapsible/index.js +4 -2
- package/lib/es/configProvider/index.d.ts +2 -1
- package/lib/es/configProvider/index.js +5 -2
- package/lib/es/datePicker/datePicker.d.ts +2 -44
- package/lib/es/datePicker/datePicker.js +5 -3
- package/lib/es/datePicker/yearAndMonth.js +20 -16
- package/lib/es/dropdown/index.d.ts +2 -12
- package/lib/es/dropdown/index.js +4 -2
- package/lib/es/form/arrayField.js +3 -3
- package/lib/es/form/hoc/withField.d.ts +3 -3
- package/lib/es/modal/Modal.d.ts +2 -20
- package/lib/es/modal/Modal.js +6 -5
- package/lib/es/modal/confirm.d.ts +14 -14
- package/lib/es/navigation/index.d.ts +2 -15
- package/lib/es/navigation/index.js +4 -2
- package/lib/es/notification/notice.d.ts +2 -12
- package/lib/es/notification/notice.js +4 -3
- package/lib/es/overflowList/index.d.ts +2 -9
- package/lib/es/overflowList/index.js +4 -3
- package/lib/es/popconfirm/index.d.ts +2 -15
- package/lib/es/popconfirm/index.js +4 -2
- package/lib/es/popover/index.d.ts +2 -23
- package/lib/es/popover/index.js +4 -2
- package/lib/es/resizeObserver/index.d.ts +14 -2
- package/lib/es/resizeObserver/index.js +64 -31
- package/lib/es/select/index.d.ts +1 -0
- package/lib/es/select/index.js +4 -3
- package/lib/es/select/option.js +2 -1
- package/lib/es/sideSheet/index.d.ts +1 -0
- package/lib/es/sideSheet/index.js +4 -3
- package/lib/es/table/ResizableTable.js +1 -1
- package/lib/es/tabs/index.d.ts +1 -0
- package/lib/es/tabs/index.js +4 -2
- package/lib/es/timePicker/TimePicker.d.ts +1 -1
- package/lib/es/timePicker/index.d.ts +2 -34
- package/lib/es/timePicker/index.js +3 -1
- package/lib/es/toast/toast.d.ts +2 -11
- package/lib/es/toast/toast.js +4 -3
- package/lib/es/tooltip/index.d.ts +2 -32
- package/lib/es/tooltip/index.js +4 -3
- package/lib/es/typography/base.d.ts +7 -4
- package/lib/es/typography/base.js +128 -65
- package/lib/es/typography/numeral.d.ts +1 -1
- package/lib/es/typography/paragraph.d.ts +1 -1
- package/lib/es/typography/text.d.ts +1 -1
- package/lib/es/typography/title.d.ts +1 -1
- package/package.json +9 -9
- package/dist/umd/semi-ui.min.js.LICENSE.txt +0 -5
|
@@ -3,7 +3,7 @@ import type { CollapsibleAdapter, CollapsibleFoundationProps, CollapsibleFoundat
|
|
|
3
3
|
import CollapsibleFoundation from '@douyinfe/semi-foundation/lib/cjs/collapsible/foundation';
|
|
4
4
|
import BaseComponent from "../_base/baseComponent";
|
|
5
5
|
import '@douyinfe/semi-foundation/lib/cjs/collapsible/collapsible.css';
|
|
6
|
-
interface CollapsibleProps extends CollapsibleFoundationProps {
|
|
6
|
+
export interface CollapsibleProps extends CollapsibleFoundationProps {
|
|
7
7
|
motion?: boolean;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
isOpen?: boolean;
|
|
@@ -23,14 +23,8 @@ interface CollapsibleState extends CollapsibleFoundationState {
|
|
|
23
23
|
isTransitioning: boolean;
|
|
24
24
|
}
|
|
25
25
|
declare class Collapsible extends BaseComponent<CollapsibleProps, CollapsibleState> {
|
|
26
|
-
static
|
|
27
|
-
|
|
28
|
-
duration: number;
|
|
29
|
-
motion: boolean;
|
|
30
|
-
keepDOM: boolean;
|
|
31
|
-
collapseHeight: number;
|
|
32
|
-
fade: boolean;
|
|
33
|
-
};
|
|
26
|
+
static __SemiComponentName__: string;
|
|
27
|
+
static defaultProps: any;
|
|
34
28
|
foundation: CollapsibleFoundation;
|
|
35
29
|
private domRef;
|
|
36
30
|
private resizeObserver;
|
|
@@ -12,6 +12,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _constants = require("@douyinfe/semi-foundation/lib/cjs/collapsible/constants");
|
|
14
14
|
require("@douyinfe/semi-foundation/lib/cjs/collapsible/collapsible.css");
|
|
15
|
+
var _utils = require("../_utils");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
class Collapsible extends _baseComponent.default {
|
|
17
18
|
constructor(props) {
|
|
@@ -135,14 +136,15 @@ class Collapsible extends _baseComponent.default {
|
|
|
135
136
|
}, (this.props.keepDOM || this.props.collapseHeight !== 0 || this.state.visible || this.props.isOpen) && this.props.children));
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
|
-
Collapsible.
|
|
139
|
+
Collapsible.__SemiComponentName__ = "Collapsible";
|
|
140
|
+
Collapsible.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(Collapsible.__SemiComponentName__, {
|
|
139
141
|
isOpen: false,
|
|
140
142
|
duration: 250,
|
|
141
143
|
motion: true,
|
|
142
144
|
keepDOM: false,
|
|
143
145
|
collapseHeight: 0,
|
|
144
146
|
fade: false
|
|
145
|
-
};
|
|
147
|
+
});
|
|
146
148
|
Collapsible.getEntryInfo = entry => {
|
|
147
149
|
//judge whether parent or self display none
|
|
148
150
|
let inRenderTree;
|
|
@@ -4,6 +4,7 @@ import { ContextValue } from './context';
|
|
|
4
4
|
export interface ConfigProviderProps extends ContextValue {
|
|
5
5
|
}
|
|
6
6
|
export default class ConfigProvider extends React.Component<ConfigProviderProps> {
|
|
7
|
+
constructor(props: ConfigProviderProps);
|
|
7
8
|
static propTypes: {
|
|
8
9
|
locale: PropTypes.Requireable<object>;
|
|
9
10
|
timeZone: PropTypes.Requireable<NonNullable<string | number>>;
|
|
@@ -14,6 +15,6 @@ export default class ConfigProvider extends React.Component<ConfigProviderProps>
|
|
|
14
15
|
locale: import("../locale/interface").Locale;
|
|
15
16
|
direction: string;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
renderChildren(): string | number | boolean | React.ReactFragment | JSX.Element;
|
|
18
19
|
render(): JSX.Element;
|
|
19
20
|
}
|
|
@@ -19,7 +19,10 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
21
|
class ConfigProvider extends _react.default.Component {
|
|
22
|
-
|
|
22
|
+
constructor(props) {
|
|
23
|
+
super(props);
|
|
24
|
+
}
|
|
25
|
+
renderChildren() {
|
|
23
26
|
const {
|
|
24
27
|
direction,
|
|
25
28
|
children
|
|
@@ -42,7 +45,7 @@ class ConfigProvider extends _react.default.Component {
|
|
|
42
45
|
value: Object.assign({
|
|
43
46
|
direction
|
|
44
47
|
}, rest)
|
|
45
|
-
}, this.
|
|
48
|
+
}, this.renderChildren());
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
exports.default = ConfigProvider;
|
|
@@ -127,50 +127,8 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
127
127
|
yearAndMonthOpts: PropTypes.Requireable<object>;
|
|
128
128
|
onClickOutSide: PropTypes.Requireable<(...args: any[]) => any>;
|
|
129
129
|
};
|
|
130
|
-
static
|
|
131
|
-
|
|
132
|
-
borderless: boolean;
|
|
133
|
-
autoAdjustOverflow: boolean;
|
|
134
|
-
stopPropagation: boolean;
|
|
135
|
-
motion: boolean;
|
|
136
|
-
prefixCls: "semi-datepicker";
|
|
137
|
-
presetPosition: string;
|
|
138
|
-
zIndex: number;
|
|
139
|
-
type: string;
|
|
140
|
-
size: string;
|
|
141
|
-
density: string;
|
|
142
|
-
multiple: boolean;
|
|
143
|
-
defaultOpen: boolean;
|
|
144
|
-
disabledHours: (...args: any[]) => void;
|
|
145
|
-
disabledMinutes: (...args: any[]) => void;
|
|
146
|
-
disabledSeconds: (...args: any[]) => void;
|
|
147
|
-
hideDisabledOptions: boolean;
|
|
148
|
-
onBlur: (...args: any[]) => void;
|
|
149
|
-
onFocus: (...args: any[]) => void;
|
|
150
|
-
onClear: (...args: any[]) => void;
|
|
151
|
-
onCancel: (...args: any[]) => void;
|
|
152
|
-
onConfirm: (...args: any[]) => void;
|
|
153
|
-
onChange: (...args: any[]) => void;
|
|
154
|
-
onOpenChange: (...args: any[]) => void;
|
|
155
|
-
onPanelChange: (...args: any[]) => void;
|
|
156
|
-
onPresetClick: (...args: any[]) => void;
|
|
157
|
-
weekStartsOn: 0;
|
|
158
|
-
disabledDate: {
|
|
159
|
-
(): false;
|
|
160
|
-
(): false;
|
|
161
|
-
};
|
|
162
|
-
disabledTime: {
|
|
163
|
-
(): false;
|
|
164
|
-
(): false;
|
|
165
|
-
};
|
|
166
|
-
inputReadOnly: boolean;
|
|
167
|
-
spacing: number;
|
|
168
|
-
autoSwitchDate: boolean;
|
|
169
|
-
syncSwitchMonth: boolean;
|
|
170
|
-
rangeSeparator: " ~ ";
|
|
171
|
-
insetInput: boolean;
|
|
172
|
-
onClickOutSide: (...args: any[]) => void;
|
|
173
|
-
};
|
|
130
|
+
static __SemiComponentName__: string;
|
|
131
|
+
static defaultProps: any;
|
|
174
132
|
triggerElRef: React.MutableRefObject<HTMLElement>;
|
|
175
133
|
panelRef: React.RefObject<HTMLDivElement>;
|
|
176
134
|
monthGrid: React.RefObject<MonthsGrid>;
|
|
@@ -27,6 +27,7 @@ var _footer = _interopRequireDefault(require("./footer"));
|
|
|
27
27
|
var _trigger = _interopRequireDefault(require("../trigger"));
|
|
28
28
|
var _yearAndMonth = _interopRequireDefault(require("./yearAndMonth"));
|
|
29
29
|
require("@douyinfe/semi-foundation/lib/cjs/datePicker/datePicker.css");
|
|
30
|
+
var _utils = require("../_utils");
|
|
30
31
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
32
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
32
33
|
var t = {};
|
|
@@ -471,7 +472,7 @@ class DatePicker extends _baseComponent.default {
|
|
|
471
472
|
return /range/i.test(type) && !(0, _isFunction2.default)(triggerRender);
|
|
472
473
|
}
|
|
473
474
|
componentDidUpdate(prevProps) {
|
|
474
|
-
if (prevProps.value
|
|
475
|
+
if (!(0, _isEqual2.default)(prevProps.value, this.props.value)) {
|
|
475
476
|
this.foundation.initFromProps(Object.assign({}, this.props));
|
|
476
477
|
} else if (this.props.timeZone !== prevProps.timeZone) {
|
|
477
478
|
this.foundation.initFromProps({
|
|
@@ -846,7 +847,8 @@ DatePicker.propTypes = {
|
|
|
846
847
|
yearAndMonthOpts: _propTypes.default.object,
|
|
847
848
|
onClickOutSide: _propTypes.default.func
|
|
848
849
|
};
|
|
849
|
-
DatePicker.
|
|
850
|
+
DatePicker.__SemiComponentName__ = "DatePicker";
|
|
851
|
+
DatePicker.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(DatePicker.__SemiComponentName__, {
|
|
850
852
|
onChangeWithDateFirst: true,
|
|
851
853
|
borderless: false,
|
|
852
854
|
autoAdjustOverflow: true,
|
|
@@ -884,4 +886,4 @@ DatePicker.defaultProps = {
|
|
|
884
886
|
rangeSeparator: _constants.strings.DEFAULT_SEPARATOR_RANGE,
|
|
885
887
|
insetInput: false,
|
|
886
888
|
onClickOutSide: _noop2.default
|
|
887
|
-
};
|
|
889
|
+
});
|
|
@@ -48,16 +48,6 @@ class YearAndMonth extends _baseComponent.default {
|
|
|
48
48
|
currentYear,
|
|
49
49
|
currentMonth
|
|
50
50
|
} = props;
|
|
51
|
-
const currentLeftYear = currentYear.left || now.getFullYear();
|
|
52
|
-
const currentLeftMonth = currentMonth.left || now.getMonth() + 1;
|
|
53
|
-
currentYear = {
|
|
54
|
-
left: currentLeftYear,
|
|
55
|
-
right: currentLeftYear
|
|
56
|
-
};
|
|
57
|
-
currentMonth = {
|
|
58
|
-
left: currentLeftMonth,
|
|
59
|
-
right: currentMonth.right || currentLeftMonth + 1
|
|
60
|
-
};
|
|
61
51
|
this.state = {
|
|
62
52
|
years: (0, _index2.getYears)(props.startYear, props.endYear).map(year => ({
|
|
63
53
|
value: year,
|
|
@@ -67,8 +57,14 @@ class YearAndMonth extends _baseComponent.default {
|
|
|
67
57
|
value: idx + 1,
|
|
68
58
|
month: idx + 1
|
|
69
59
|
})),
|
|
70
|
-
currentYear
|
|
71
|
-
|
|
60
|
+
currentYear: {
|
|
61
|
+
left: currentYear.left || now.getFullYear(),
|
|
62
|
+
right: currentYear.right || now.getFullYear()
|
|
63
|
+
},
|
|
64
|
+
currentMonth: {
|
|
65
|
+
left: currentMonth.left || now.getMonth() + 1,
|
|
66
|
+
right: currentMonth.right || now.getMonth() + 2
|
|
67
|
+
}
|
|
72
68
|
};
|
|
73
69
|
this.yearRef = /*#__PURE__*/_react.default.createRef();
|
|
74
70
|
this.monthRef = /*#__PURE__*/_react.default.createRef();
|
|
@@ -105,11 +101,19 @@ class YearAndMonth extends _baseComponent.default {
|
|
|
105
101
|
}
|
|
106
102
|
static getDerivedStateFromProps(props, state) {
|
|
107
103
|
const willUpdateStates = {};
|
|
108
|
-
if (!(0, _isEqual2.default)(props.currentYear, state.currentYear)
|
|
109
|
-
|
|
104
|
+
if (!(0, _isEqual2.default)(props.currentYear, state.currentYear)) {
|
|
105
|
+
const nowYear = new Date().getFullYear();
|
|
106
|
+
willUpdateStates.currentYear = {
|
|
107
|
+
left: props.currentYear.left || nowYear,
|
|
108
|
+
right: props.currentYear.right || nowYear
|
|
109
|
+
};
|
|
110
110
|
}
|
|
111
|
-
if (!(0, _isEqual2.default)(props.currentMonth, state.currentMonth)
|
|
112
|
-
|
|
111
|
+
if (!(0, _isEqual2.default)(props.currentMonth, state.currentMonth)) {
|
|
112
|
+
const nowMonth = new Date().getMonth();
|
|
113
|
+
willUpdateStates.currentMonth = {
|
|
114
|
+
left: props.currentMonth.left || nowMonth + 1,
|
|
115
|
+
right: props.currentMonth.right || nowMonth + 2
|
|
116
|
+
};
|
|
113
117
|
}
|
|
114
118
|
return willUpdateStates;
|
|
115
119
|
}
|
|
@@ -76,18 +76,8 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
|
|
|
76
76
|
visible: PropTypes.Requireable<boolean>;
|
|
77
77
|
zIndex: PropTypes.Requireable<number>;
|
|
78
78
|
};
|
|
79
|
-
static
|
|
80
|
-
|
|
81
|
-
prefixCls: string;
|
|
82
|
-
zIndex: 1060;
|
|
83
|
-
motion: boolean;
|
|
84
|
-
trigger: string;
|
|
85
|
-
position: string;
|
|
86
|
-
mouseLeaveDelay: number;
|
|
87
|
-
showTick: boolean;
|
|
88
|
-
closeOnEsc: boolean;
|
|
89
|
-
onEscKeyDown: (...args: any[]) => void;
|
|
90
|
-
};
|
|
79
|
+
static __SemiComponentName__: string;
|
|
80
|
+
static defaultProps: any;
|
|
91
81
|
tooltipRef: React.RefObject<Tooltip>;
|
|
92
82
|
constructor(props: DropdownProps);
|
|
93
83
|
context: DropdownContextType;
|
|
@@ -20,6 +20,7 @@ var _dropdownDivider = _interopRequireDefault(require("./dropdownDivider"));
|
|
|
20
20
|
var _dropdownTitle = _interopRequireDefault(require("./dropdownTitle"));
|
|
21
21
|
var _context = _interopRequireDefault(require("./context"));
|
|
22
22
|
require("@douyinfe/semi-foundation/lib/cjs/dropdown/dropdown.css");
|
|
23
|
+
var _utils = require("../_utils");
|
|
23
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
25
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
25
26
|
var t = {};
|
|
@@ -236,7 +237,8 @@ Dropdown.propTypes = {
|
|
|
236
237
|
visible: _propTypes.default.bool,
|
|
237
238
|
zIndex: _propTypes.default.number
|
|
238
239
|
};
|
|
239
|
-
Dropdown.
|
|
240
|
+
Dropdown.__SemiComponentName__ = "Dropdown";
|
|
241
|
+
Dropdown.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(Dropdown.__SemiComponentName__, {
|
|
240
242
|
onVisibleChange: _noop2.default,
|
|
241
243
|
prefixCls: _constants.cssClasses.PREFIX,
|
|
242
244
|
zIndex: _constants2.numbers.DEFAULT_Z_INDEX,
|
|
@@ -247,6 +249,6 @@ Dropdown.defaultProps = {
|
|
|
247
249
|
showTick: false,
|
|
248
250
|
closeOnEsc: true,
|
|
249
251
|
onEscKeyDown: _noop2.default
|
|
250
|
-
};
|
|
252
|
+
});
|
|
251
253
|
var _default = Dropdown;
|
|
252
254
|
exports.default = _default;
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _isUndefined2 = _interopRequireDefault(require("lodash/isUndefined"));
|
|
8
|
-
var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
9
|
var _uuid = require("@douyinfe/semi-foundation/lib/cjs/utils/uuid");
|
|
11
10
|
var _context = require("./context");
|
|
12
11
|
var _warning = _interopRequireDefault(require("@douyinfe/semi-foundation/lib/cjs/utils/warning"));
|
|
12
|
+
var _fastCopy = _interopRequireDefault(require("fast-copy"));
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -70,8 +70,8 @@ class ArrayFieldComponent extends _react.Component {
|
|
|
70
70
|
// whether the fields inside arrayField should use props.initValue in current render process
|
|
71
71
|
this.shouldUseInitValue = !context.getArrayField(field);
|
|
72
72
|
// Separate the arrays that reset and the usual add and remove modify, otherwise they will affect each other
|
|
73
|
-
const initValueCopyForFormState = (0,
|
|
74
|
-
const initValueCopyForReset = (0,
|
|
73
|
+
const initValueCopyForFormState = (0, _fastCopy.default)(initValue);
|
|
74
|
+
const initValueCopyForReset = (0, _fastCopy.default)(initValue);
|
|
75
75
|
context.registerArrayField(field, initValueCopyForReset);
|
|
76
76
|
// register ArrayField will update state.updateKey to render, So there is no need to execute forceUpdate here
|
|
77
77
|
context.updateStateValue(field, initValueCopyForFormState, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithFieldOption } from '@douyinfe/semi-foundation/lib/cjs/form/interface';
|
|
3
|
-
import { CommonFieldProps, CommonexcludeType } from '../interface';
|
|
4
|
-
import { Subtract } from 'utility-types';
|
|
2
|
+
import type { WithFieldOption } from '@douyinfe/semi-foundation/lib/cjs/form/interface';
|
|
3
|
+
import type { CommonFieldProps, CommonexcludeType } from '../interface';
|
|
4
|
+
import type { Subtract } from 'utility-types';
|
|
5
5
|
/**
|
|
6
6
|
* withFiled is used to inject components
|
|
7
7
|
* 1. Takes over the value and onChange of the component and synchronizes them to Form Foundation
|
package/lib/cjs/modal/Modal.d.ts
CHANGED
|
@@ -68,26 +68,8 @@ declare class Modal extends BaseComponent<ModalReactProps, ModalState> {
|
|
|
68
68
|
fullScreen: PropTypes.Requireable<boolean>;
|
|
69
69
|
footerFill: PropTypes.Requireable<boolean>;
|
|
70
70
|
};
|
|
71
|
-
static
|
|
72
|
-
|
|
73
|
-
motion: boolean;
|
|
74
|
-
mask: boolean;
|
|
75
|
-
centered: boolean;
|
|
76
|
-
closable: boolean;
|
|
77
|
-
visible: boolean;
|
|
78
|
-
okType: string;
|
|
79
|
-
maskClosable: boolean;
|
|
80
|
-
hasCancel: boolean;
|
|
81
|
-
onCancel: (...args: any[]) => void;
|
|
82
|
-
onOk: (...args: any[]) => void;
|
|
83
|
-
afterClose: (...args: any[]) => void;
|
|
84
|
-
maskFixed: boolean;
|
|
85
|
-
closeOnEsc: boolean;
|
|
86
|
-
size: string;
|
|
87
|
-
keepDOM: boolean;
|
|
88
|
-
lazyRender: boolean;
|
|
89
|
-
fullScreen: boolean;
|
|
90
|
-
};
|
|
71
|
+
static __SemiComponentName__: string;
|
|
72
|
+
static defaultProps: any;
|
|
91
73
|
static useModal: typeof useModal;
|
|
92
74
|
foundation: ModalFoundation;
|
|
93
75
|
private readonly modalRef;
|
package/lib/cjs/modal/Modal.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.destroyFns = destroyFns;
|
|
|
36
36
|
class Modal extends _baseComponent.default {
|
|
37
37
|
constructor(props) {
|
|
38
38
|
super(props);
|
|
39
|
+
this.bodyOverflow = null;
|
|
39
40
|
this.handleCancel = e => {
|
|
40
41
|
this.foundation.handleCancel(e);
|
|
41
42
|
};
|
|
@@ -182,7 +183,6 @@ class Modal extends _baseComponent.default {
|
|
|
182
183
|
};
|
|
183
184
|
this.foundation = new _modalFoundation.default(this.adapter);
|
|
184
185
|
this.modalRef = /*#__PURE__*/_react.default.createRef();
|
|
185
|
-
this.bodyOverflow = '';
|
|
186
186
|
this.scrollBarWidth = 0;
|
|
187
187
|
this.originBodyWidth = '100%';
|
|
188
188
|
}
|
|
@@ -203,7 +203,7 @@ class Modal extends _baseComponent.default {
|
|
|
203
203
|
const {
|
|
204
204
|
getPopupContainer
|
|
205
205
|
} = this.props;
|
|
206
|
-
if (!getPopupContainer && this.bodyOverflow !== 'hidden') {
|
|
206
|
+
if (!getPopupContainer && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') {
|
|
207
207
|
document.body.style.overflow = this.bodyOverflow;
|
|
208
208
|
document.body.style.width = this.originBodyWidth;
|
|
209
209
|
}
|
|
@@ -321,7 +321,8 @@ Modal.propTypes = {
|
|
|
321
321
|
fullScreen: _propTypes.default.bool,
|
|
322
322
|
footerFill: _propTypes.default.bool
|
|
323
323
|
};
|
|
324
|
-
Modal.
|
|
324
|
+
Modal.__SemiComponentName__ = "Modal";
|
|
325
|
+
Modal.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(Modal.__SemiComponentName__, {
|
|
325
326
|
zIndex: 1000,
|
|
326
327
|
motion: true,
|
|
327
328
|
mask: true,
|
|
@@ -340,7 +341,7 @@ Modal.defaultProps = {
|
|
|
340
341
|
keepDOM: false,
|
|
341
342
|
lazyRender: true,
|
|
342
343
|
fullScreen: false
|
|
343
|
-
};
|
|
344
|
+
});
|
|
344
345
|
Modal.useModal = _useModal.default;
|
|
345
346
|
Modal.info = function (props) {
|
|
346
347
|
return (0, _confirm.default)((0, _confirm.withInfo)(props));
|
|
@@ -159,27 +159,27 @@ export declare function withError(props: ModalReactProps): {
|
|
|
159
159
|
width?: string | number;
|
|
160
160
|
height?: string | number;
|
|
161
161
|
content?: React.ReactNode;
|
|
162
|
-
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
163
|
-
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
164
162
|
closeOnEsc?: boolean;
|
|
165
163
|
preventScroll?: boolean;
|
|
166
164
|
afterClose?: () => void;
|
|
167
165
|
keepDOM?: boolean;
|
|
168
|
-
|
|
169
|
-
okText?: string;
|
|
170
|
-
closeIcon?: React.ReactNode;
|
|
171
|
-
bodyStyle?: React.CSSProperties;
|
|
166
|
+
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
172
167
|
closable?: boolean;
|
|
173
|
-
|
|
168
|
+
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
169
|
+
bodyStyle?: React.CSSProperties;
|
|
174
170
|
cancelButtonProps?: import("../button").BaseButtonProps;
|
|
171
|
+
cancelText?: string;
|
|
175
172
|
centered?: boolean;
|
|
176
173
|
confirmLoading?: boolean;
|
|
177
174
|
cancelLoading?: boolean;
|
|
178
175
|
hasCancel?: boolean;
|
|
176
|
+
maskClosable?: boolean;
|
|
179
177
|
maskStyle?: React.CSSProperties;
|
|
180
178
|
maskFixed?: boolean;
|
|
179
|
+
okText?: string;
|
|
181
180
|
okType?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").OKType;
|
|
182
181
|
onOk?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
182
|
+
closeIcon?: React.ReactNode;
|
|
183
183
|
lazyRender?: boolean;
|
|
184
184
|
fullScreen?: boolean;
|
|
185
185
|
footerFill?: boolean;
|
|
@@ -380,12 +380,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
380
380
|
suppressHydrationWarning?: boolean;
|
|
381
381
|
accessKey?: string;
|
|
382
382
|
autoFocus?: boolean;
|
|
383
|
-
content?: string;
|
|
384
|
-
formAction?: string;
|
|
385
|
-
formEncType?: string;
|
|
386
|
-
formMethod?: string;
|
|
387
|
-
formNoValidate?: boolean;
|
|
388
|
-
formTarget?: string;
|
|
389
383
|
contextMenu?: string;
|
|
390
384
|
dir?: string;
|
|
391
385
|
draggable?: boolean | "true" | "false";
|
|
@@ -396,6 +390,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
396
390
|
inputMode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
397
391
|
nonce?: string;
|
|
398
392
|
tabIndex?: number;
|
|
393
|
+
content?: string;
|
|
399
394
|
'aria-expanded'?: boolean | "true" | "false";
|
|
400
395
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
|
|
401
396
|
'aria-controls'?: string;
|
|
@@ -432,7 +427,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
432
427
|
'aria-colcount'?: number;
|
|
433
428
|
'aria-colindex'?: number;
|
|
434
429
|
'aria-colspan'?: number;
|
|
435
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "date" | "
|
|
430
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "date" | "location" | "page" | "step";
|
|
436
431
|
'aria-details'?: string;
|
|
437
432
|
'aria-disabled'?: boolean | "true" | "false";
|
|
438
433
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup";
|
|
@@ -467,6 +462,11 @@ export declare function withError(props: ModalReactProps): {
|
|
|
467
462
|
'aria-valuemin'?: number;
|
|
468
463
|
'aria-valuenow'?: number;
|
|
469
464
|
'aria-valuetext'?: string;
|
|
465
|
+
formAction?: string;
|
|
466
|
+
formEncType?: string;
|
|
467
|
+
formMethod?: string;
|
|
468
|
+
formNoValidate?: boolean;
|
|
469
|
+
formTarget?: string;
|
|
470
470
|
};
|
|
471
471
|
};
|
|
472
472
|
export declare function withConfirm(props: ModalReactProps): {
|
|
@@ -119,21 +119,8 @@ declare class Nav extends BaseComponent<NavProps, NavState> {
|
|
|
119
119
|
limitIndent: PropTypes.Requireable<boolean>;
|
|
120
120
|
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
121
121
|
};
|
|
122
|
-
static
|
|
123
|
-
|
|
124
|
-
subNavOpenDelay: number;
|
|
125
|
-
tooltipHideDelay: number;
|
|
126
|
-
tooltipShowDelay: number;
|
|
127
|
-
onCollapseChange: (...args: any[]) => void;
|
|
128
|
-
onSelect: (...args: any[]) => void;
|
|
129
|
-
onClick: (...args: any[]) => void;
|
|
130
|
-
onOpenChange: (...args: any[]) => void;
|
|
131
|
-
toggleIconPosition: string;
|
|
132
|
-
limitIndent: boolean;
|
|
133
|
-
prefixCls: string;
|
|
134
|
-
subNavMotion: boolean;
|
|
135
|
-
mode: string;
|
|
136
|
-
};
|
|
122
|
+
static __SemiComponentName__: string;
|
|
123
|
+
static defaultProps: any;
|
|
137
124
|
itemsChanged: boolean;
|
|
138
125
|
constructor(props: NavProps);
|
|
139
126
|
static getDerivedStateFromProps(props: NavProps, state: NavState): Partial<NavState>;
|
|
@@ -20,6 +20,7 @@ var _Header = _interopRequireDefault(require("./Header"));
|
|
|
20
20
|
var _navContext = _interopRequireDefault(require("./nav-context"));
|
|
21
21
|
var _localeConsumer = _interopRequireDefault(require("../locale/localeConsumer"));
|
|
22
22
|
require("@douyinfe/semi-foundation/lib/cjs/navigation/navigation.css");
|
|
23
|
+
var _utils = require("../_utils");
|
|
23
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
25
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -368,7 +369,8 @@ Nav.propTypes = {
|
|
|
368
369
|
limitIndent: _propTypes.default.bool,
|
|
369
370
|
getPopupContainer: _propTypes.default.func
|
|
370
371
|
};
|
|
371
|
-
Nav.
|
|
372
|
+
Nav.__SemiComponentName__ = "Navigation";
|
|
373
|
+
Nav.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(Nav.__SemiComponentName__, {
|
|
372
374
|
subNavCloseDelay: _constants.numbers.DEFAULT_SUBNAV_CLOSE_DELAY,
|
|
373
375
|
subNavOpenDelay: _constants.numbers.DEFAULT_SUBNAV_OPEN_DELAY,
|
|
374
376
|
tooltipHideDelay: _constants.numbers.DEFAULT_TOOLTIP_HIDE_DELAY,
|
|
@@ -386,6 +388,6 @@ Nav.defaultProps = {
|
|
|
386
388
|
// defaultOpenKeys: [],
|
|
387
389
|
// defaultSelectedKeys: [],
|
|
388
390
|
// items: [],
|
|
389
|
-
};
|
|
391
|
+
});
|
|
390
392
|
var _default = Nav;
|
|
391
393
|
exports.default = _default;
|
|
@@ -29,18 +29,8 @@ declare class Notice extends BaseComponent<NoticeReactProps, NoticeState> {
|
|
|
29
29
|
close: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
30
|
direction: PropTypes.Requireable<"ltr" | "rtl">;
|
|
31
31
|
};
|
|
32
|
-
static
|
|
33
|
-
|
|
34
|
-
id: string;
|
|
35
|
-
close: (...args: any[]) => void;
|
|
36
|
-
onClose: (...args: any[]) => void;
|
|
37
|
-
onClick: (...args: any[]) => void;
|
|
38
|
-
onCloseClick: (...args: any[]) => void;
|
|
39
|
-
content: string;
|
|
40
|
-
title: string;
|
|
41
|
-
showClose: boolean;
|
|
42
|
-
theme: string;
|
|
43
|
-
};
|
|
32
|
+
static __SemiComponentName__: string;
|
|
33
|
+
static defaultProps: any;
|
|
44
34
|
get adapter(): NoticeAdapter;
|
|
45
35
|
constructor(props: NoticeReactProps);
|
|
46
36
|
context: ContextValue;
|
|
@@ -182,7 +182,8 @@ Notice.propTypes = {
|
|
|
182
182
|
close: _propTypes.default.func,
|
|
183
183
|
direction: _propTypes.default.oneOf(directions)
|
|
184
184
|
};
|
|
185
|
-
Notice.
|
|
185
|
+
Notice.__SemiComponentName__ = "Notification";
|
|
186
|
+
Notice.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(Notice.__SemiComponentName__, {
|
|
186
187
|
duration,
|
|
187
188
|
id: '',
|
|
188
189
|
close: _noop2.default,
|
|
@@ -193,6 +194,6 @@ Notice.defaultProps = {
|
|
|
193
194
|
title: '',
|
|
194
195
|
showClose: true,
|
|
195
196
|
theme: 'normal'
|
|
196
|
-
};
|
|
197
|
+
});
|
|
197
198
|
var _default = Notice;
|
|
198
199
|
exports.default = _default;
|
|
@@ -44,15 +44,8 @@ export interface OverflowListState {
|
|
|
44
44
|
overflowWidth?: number;
|
|
45
45
|
}
|
|
46
46
|
declare class OverflowList extends BaseComponent<OverflowListProps, OverflowListState> {
|
|
47
|
-
static
|
|
48
|
-
|
|
49
|
-
minVisibleItems: number;
|
|
50
|
-
overflowRenderer: () => ReactElement;
|
|
51
|
-
renderMode: string;
|
|
52
|
-
threshold: number;
|
|
53
|
-
visibleItemRenderer: () => ReactElement;
|
|
54
|
-
onOverflow: () => any;
|
|
55
|
-
};
|
|
47
|
+
static __SemiComponentName__: string;
|
|
48
|
+
static defaultProps: any;
|
|
56
49
|
static propTypes: {
|
|
57
50
|
className: PropTypes.Requireable<string>;
|
|
58
51
|
collapseFrom: PropTypes.Requireable<"end" | "start">;
|
|
@@ -276,7 +276,8 @@ class OverflowList extends _baseComponent.default {
|
|
|
276
276
|
}, list);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
OverflowList.
|
|
279
|
+
OverflowList.__SemiComponentName__ = "OverflowList";
|
|
280
|
+
OverflowList.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(OverflowList.__SemiComponentName__, {
|
|
280
281
|
collapseFrom: 'end',
|
|
281
282
|
minVisibleItems: 0,
|
|
282
283
|
overflowRenderer: () => null,
|
|
@@ -284,7 +285,7 @@ OverflowList.defaultProps = {
|
|
|
284
285
|
threshold: 0.75,
|
|
285
286
|
visibleItemRenderer: () => null,
|
|
286
287
|
onOverflow: () => null
|
|
287
|
-
};
|
|
288
|
+
});
|
|
288
289
|
OverflowList.propTypes = {
|
|
289
290
|
// if render in scroll mode, key is required in items
|
|
290
291
|
className: _propTypes.default.string,
|
|
@@ -65,21 +65,8 @@ export default class Popconfirm extends BaseComponent<PopconfirmProps, Popconfir
|
|
|
65
65
|
trigger: PropTypes.Requireable<string>;
|
|
66
66
|
position: PropTypes.Requireable<string>;
|
|
67
67
|
};
|
|
68
|
-
static
|
|
69
|
-
|
|
70
|
-
trigger: string;
|
|
71
|
-
onVisibleChange: (...args: any[]) => void;
|
|
72
|
-
disabled: boolean;
|
|
73
|
-
icon: JSX.Element;
|
|
74
|
-
okType: string;
|
|
75
|
-
cancelType: string;
|
|
76
|
-
prefixCls: string;
|
|
77
|
-
zIndex: number;
|
|
78
|
-
showCloseIcon: boolean;
|
|
79
|
-
onCancel: (...args: any[]) => void;
|
|
80
|
-
onConfirm: (...args: any[]) => void;
|
|
81
|
-
onClickOutSide: (...args: any[]) => void;
|
|
82
|
-
};
|
|
68
|
+
static __SemiComponentName__: string;
|
|
69
|
+
static defaultProps: any;
|
|
83
70
|
footerRef: React.RefObject<HTMLDivElement | null>;
|
|
84
71
|
popoverRef: React.RefObject<Popover | null>;
|
|
85
72
|
foundation: PopconfirmFoundation;
|
|
@@ -20,6 +20,7 @@ var _button = _interopRequireDefault(require("../button"));
|
|
|
20
20
|
var _context = _interopRequireDefault(require("../configProvider/context"));
|
|
21
21
|
var _localeConsumer = _interopRequireDefault(require("../locale/localeConsumer"));
|
|
22
22
|
require("@douyinfe/semi-foundation/lib/cjs/popconfirm/popconfirm.css");
|
|
23
|
+
var _utils = require("../_utils");
|
|
23
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
25
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
25
26
|
var t = {};
|
|
@@ -261,7 +262,8 @@ Popconfirm.propTypes = {
|
|
|
261
262
|
trigger: _propTypes.default.string,
|
|
262
263
|
position: _propTypes.default.string
|
|
263
264
|
};
|
|
264
|
-
Popconfirm.
|
|
265
|
+
Popconfirm.__SemiComponentName__ = "Popconfirm";
|
|
266
|
+
Popconfirm.defaultProps = (0, _utils.getDefaultPropsFromGlobalConfig)(Popconfirm.__SemiComponentName__, {
|
|
265
267
|
stopPropagation: true,
|
|
266
268
|
trigger: 'click',
|
|
267
269
|
// position: 'bottomLeft',
|
|
@@ -278,4 +280,4 @@ Popconfirm.defaultProps = {
|
|
|
278
280
|
onCancel: _noop2.default,
|
|
279
281
|
onConfirm: _noop2.default,
|
|
280
282
|
onClickOutSide: _noop2.default
|
|
281
|
-
};
|
|
283
|
+
});
|