@douyinfe/semi-ui 2.30.1 → 2.30.2
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/umd/semi-ui.js +17 -7
- 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/form/baseForm.js +9 -4
- package/lib/cjs/modal/confirm.d.ts +303 -26
- package/lib/cjs/modal/confirm.js +7 -2
- package/lib/cjs/tag/index.js +2 -1
- package/lib/es/form/baseForm.js +9 -4
- package/lib/es/modal/confirm.d.ts +303 -26
- package/lib/es/modal/confirm.js +6 -2
- package/lib/es/tag/index.js +2 -1
- package/package.json +9 -9
package/dist/umd/semi-ui.js
CHANGED
|
@@ -41357,11 +41357,12 @@ class tag_Tag extends external_root_React_commonjs2_react_commonjs_react_amd_rea
|
|
|
41357
41357
|
|
|
41358
41358
|
const a11yProps = {
|
|
41359
41359
|
role: 'button',
|
|
41360
|
-
tabIndex: tabIndex
|
|
41360
|
+
tabIndex: tabIndex || 0,
|
|
41361
41361
|
onKeyDown: this.handleKeyDown
|
|
41362
41362
|
};
|
|
41363
41363
|
const baseProps = Object.assign(Object.assign({}, attr), {
|
|
41364
41364
|
onClick,
|
|
41365
|
+
tabIndex: tabIndex,
|
|
41365
41366
|
className: classnames_default()(tag_prefixCls, {
|
|
41366
41367
|
[`${tag_prefixCls}-default`]: size === 'default',
|
|
41367
41368
|
[`${tag_prefixCls}-small`]: size === 'small',
|
|
@@ -60158,6 +60159,7 @@ const ConfirmModal = props => {
|
|
|
60158
60159
|
|
|
60159
60160
|
|
|
60160
60161
|
|
|
60162
|
+
|
|
60161
60163
|
function confirm_confirm(props) {
|
|
60162
60164
|
// create a dom in adapter?
|
|
60163
60165
|
const div = document.createElement('div');
|
|
@@ -60236,8 +60238,11 @@ function withWarning(props) {
|
|
|
60236
60238
|
function withError(props) {
|
|
60237
60239
|
return Object.assign({
|
|
60238
60240
|
type: 'error',
|
|
60239
|
-
icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconAlertCircle, null)
|
|
60240
|
-
|
|
60241
|
+
icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconAlertCircle, null),
|
|
60242
|
+
okButtonProps: Object.assign({
|
|
60243
|
+
type: 'danger'
|
|
60244
|
+
}, props.okButtonProps)
|
|
60245
|
+
}, omit_default()(props, ['okButtonProps']));
|
|
60241
60246
|
}
|
|
60242
60247
|
function withConfirm(props) {
|
|
60243
60248
|
return Object.assign({
|
|
@@ -101256,7 +101261,11 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
101256
101261
|
const {
|
|
101257
101262
|
formId
|
|
101258
101263
|
} = this.state;
|
|
101259
|
-
|
|
101264
|
+
const {
|
|
101265
|
+
id
|
|
101266
|
+
} = this.props;
|
|
101267
|
+
const xId = id ? id : formId;
|
|
101268
|
+
return document.querySelectorAll(`form[x-form-id="${xId}"] .${form_constants_cssClasses.PREFIX}-field-error-message`);
|
|
101260
101269
|
},
|
|
101261
101270
|
getFieldDOM: field => document.querySelector(`.${form_constants_cssClasses.PREFIX}-field[x-field-id="${field}"]`)
|
|
101262
101271
|
});
|
|
@@ -101331,9 +101340,10 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
101331
101340
|
allowEmpty,
|
|
101332
101341
|
autoScrollToError,
|
|
101333
101342
|
showValidateIcon,
|
|
101334
|
-
extraTextPosition
|
|
101343
|
+
extraTextPosition,
|
|
101344
|
+
id
|
|
101335
101345
|
} = _a,
|
|
101336
|
-
rest = baseForm_rest(_a, ["children", "getFormApi", "onChange", "onSubmit", "onSubmitFail", "onValueChange", "component", "render", "validateFields", "initValues", "layout", "style", "className", "labelPosition", "labelWidth", "labelAlign", "labelCol", "wrapperCol", "allowEmpty", "autoScrollToError", "showValidateIcon", "extraTextPosition"]);
|
|
101346
|
+
rest = baseForm_rest(_a, ["children", "getFormApi", "onChange", "onSubmit", "onSubmitFail", "onValueChange", "component", "render", "validateFields", "initValues", "layout", "style", "className", "labelPosition", "labelWidth", "labelAlign", "labelCol", "wrapperCol", "allowEmpty", "autoScrollToError", "showValidateIcon", "extraTextPosition", "id"]);
|
|
101337
101347
|
|
|
101338
101348
|
const formCls = classnames_default()(baseForm_prefix, className, {
|
|
101339
101349
|
[baseForm_prefix + '-vertical']: layout === 'vertical',
|
|
@@ -101346,7 +101356,7 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
101346
101356
|
onReset: this.reset,
|
|
101347
101357
|
onSubmit: this.submit,
|
|
101348
101358
|
className: formCls,
|
|
101349
|
-
"x-form-id": formId
|
|
101359
|
+
"x-form-id": id ? id : formId
|
|
101350
101360
|
}), this.content);
|
|
101351
101361
|
const withRowForm = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_row, null, formContent);
|
|
101352
101362
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(FormUpdaterContext.Provider, {
|