@qsxy/element-plus-react 1.0.0-next.16 → 1.0.0-next.17
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/Dialog/Dialog.js
CHANGED
|
@@ -41,6 +41,7 @@ function InternalElDialog(props, ref) {
|
|
|
41
41
|
alignCenter = props.alignCenter,
|
|
42
42
|
draggable = props.draggable,
|
|
43
43
|
fullscreen = props.fullscreen,
|
|
44
|
+
headerClass = props.headerClass,
|
|
44
45
|
top = props.top,
|
|
45
46
|
close = props.close,
|
|
46
47
|
beforeClose = props.beforeClose,
|
|
@@ -245,7 +246,8 @@ function InternalElDialog(props, ref) {
|
|
|
245
246
|
ref: headerRef,
|
|
246
247
|
classPrefix: classPrefix,
|
|
247
248
|
showClose: showClose,
|
|
248
|
-
border: border
|
|
249
|
+
border: border,
|
|
250
|
+
headerClass: headerClass
|
|
249
251
|
}, title), children)))), document.body));
|
|
250
252
|
}
|
|
251
253
|
var Comp = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(InternalElDialog));
|
package/dist/Empty/Empty.js
CHANGED
package/dist/Empty/ImgEmpty.js
CHANGED
|
@@ -16,10 +16,10 @@ var ImgEmpty = function ImgEmpty() {
|
|
|
16
16
|
x2: "61.1496914%",
|
|
17
17
|
y2: "100%"
|
|
18
18
|
}, /*#__PURE__*/React.createElement("stop", {
|
|
19
|
-
|
|
19
|
+
stopColor: "var(--el-empty-fill-color-1)",
|
|
20
20
|
offset: "0%"
|
|
21
21
|
}), /*#__PURE__*/React.createElement("stop", {
|
|
22
|
-
|
|
22
|
+
stopColor: "var(--el-empty-fill-color-4)",
|
|
23
23
|
offset: "100%"
|
|
24
24
|
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
25
25
|
id: ids[1],
|
|
@@ -28,10 +28,10 @@ var ImgEmpty = function ImgEmpty() {
|
|
|
28
28
|
x2: "100%",
|
|
29
29
|
y2: "90.5%"
|
|
30
30
|
}, /*#__PURE__*/React.createElement("stop", {
|
|
31
|
-
|
|
31
|
+
stopColor: "var(--el-empty-fill-color-1)",
|
|
32
32
|
offset: "0%"
|
|
33
33
|
}), /*#__PURE__*/React.createElement("stop", {
|
|
34
|
-
|
|
34
|
+
stopColor: "var(--el-empty-fill-color-6)",
|
|
35
35
|
offset: "100%"
|
|
36
36
|
})), /*#__PURE__*/React.createElement("rect", {
|
|
37
37
|
id: "path-3-1",
|
|
@@ -42,7 +42,7 @@ var ImgEmpty = function ImgEmpty() {
|
|
|
42
42
|
})), /*#__PURE__*/React.createElement("g", {
|
|
43
43
|
id: "Illustrations",
|
|
44
44
|
stroke: "none",
|
|
45
|
-
|
|
45
|
+
strokeWidth: "1",
|
|
46
46
|
fill: "none",
|
|
47
47
|
fillRule: "evenodd"
|
|
48
48
|
}, /*#__PURE__*/React.createElement("g", {
|
package/dist/Form/Form.d.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ForwardedRef } from 'react';
|
|
2
2
|
import { FormProvider } from './FormContext';
|
|
3
3
|
import Field from './FormItem';
|
|
4
4
|
import List from './List';
|
|
5
|
-
import { FormProps } from './typings';
|
|
5
|
+
import { FormInstance, FormProps, Store } from './typings';
|
|
6
6
|
import useForm from './useForm';
|
|
7
7
|
import useWatch from './useWatch';
|
|
8
|
-
|
|
8
|
+
declare const ForwardForm: <RecordType = Store>(props: FormProps<RecordType> & {
|
|
9
|
+
ref?: React.ForwardedRef<FormInstance<RecordType>>;
|
|
10
|
+
}) => React.ReactElement;
|
|
11
|
+
type InternalFormType = typeof ForwardForm;
|
|
12
|
+
interface FormInterface extends InternalFormType {
|
|
13
|
+
displayName?: string;
|
|
9
14
|
FormProvider: typeof FormProvider;
|
|
10
15
|
Item: typeof Field;
|
|
11
16
|
List: typeof List;
|
|
12
17
|
useForm: typeof useForm;
|
|
13
18
|
useWatch: typeof useWatch;
|
|
14
19
|
}
|
|
15
|
-
declare const Form:
|
|
20
|
+
declare const Form: FormInterface;
|
|
16
21
|
export default Form;
|
package/dist/Form/Form.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _templateObject;
|
|
2
3
|
var _excluded = ["colon", "inline", "labelPosition", "cols", "flat", "formStyle", "name", "initialValues", "fields", "component", "preserve", "children", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "className", "disabled", "labelWidth", "size", "rules", "hideRequiredAsterisk", "requireAsteriskPosition", "showMessage", "scrollToError"];
|
|
3
|
-
var _this = this,
|
|
4
|
-
_templateObject;
|
|
5
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
5
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
7
6
|
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; }
|
|
@@ -29,7 +28,8 @@ import List from "./List";
|
|
|
29
28
|
import useForm from "./useForm";
|
|
30
29
|
import useWatch from "./useWatch";
|
|
31
30
|
import { isSimilar } from "./utils/valueUtil";
|
|
32
|
-
|
|
31
|
+
function InternalForm(props, ref) {
|
|
32
|
+
var _this = this;
|
|
33
33
|
props = mergeDefaultProps({
|
|
34
34
|
inline: false,
|
|
35
35
|
cols: 0,
|
|
@@ -189,7 +189,9 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
189
189
|
restProps === null || restProps === void 0 || (_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 || _restProps$onReset.call(_this, event);
|
|
190
190
|
}
|
|
191
191
|
}), wrapperNode);
|
|
192
|
-
}
|
|
192
|
+
}
|
|
193
|
+
var ForwardForm = /*#__PURE__*/forwardRef(InternalForm);
|
|
194
|
+
var Form = ForwardForm;
|
|
193
195
|
Form.FormProvider = FormProvider;
|
|
194
196
|
Form.Item = Field;
|
|
195
197
|
Form.List = List;
|
package/dist/Form/typings.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { InternalFieldProps } from './FormItem';
|
|
|
5
5
|
type BaseFormProps = Omit<React.AllHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'form' | 'size' | 'children'>;
|
|
6
6
|
type RenderProps = (values: Store, form: FormInstance) => React.ReactElement;
|
|
7
7
|
export type FormRules = Record<string, Rule[] | Record<string, Rule[]>>;
|
|
8
|
-
export interface FormProps<Values =
|
|
8
|
+
export interface FormProps<Values = Store> extends BaseFormProps {
|
|
9
9
|
/** 经 Form.useForm() 创建的 form 控制实例,不提供时会自动创建 */
|
|
10
10
|
form?: FormInstance<Values>;
|
|
11
11
|
children?: RenderProps | ComponentChildren;
|
|
@@ -25,7 +25,7 @@ export interface FormProps<Values = any> extends BaseFormProps {
|
|
|
25
25
|
/** 配置 Form.Item 的 colon 的默认值。表示是否显示 label 后面的冒号 */
|
|
26
26
|
colon?: boolean;
|
|
27
27
|
/** 表单默认值,只有初始化以及重置时生效 */
|
|
28
|
-
initialValues?:
|
|
28
|
+
initialValues?: Values;
|
|
29
29
|
/** 表单域标签的位置, 如果值为 left 或者 right 时,则需要设置 label-width */
|
|
30
30
|
labelPosition?: 'left' | 'right' | 'top';
|
|
31
31
|
/** 表单域标签的宽度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 支持 auto。 */
|
|
@@ -39,4 +39,4 @@ export declare const activeRow: <T>(payload: T) => Action;
|
|
|
39
39
|
* @param payload
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
|
-
export declare const onCheck: <T>(payload: Pick<State<T>, "
|
|
42
|
+
export declare const onCheck: <T>(payload: Pick<State<T>, "isIndeterminate" | "selection">) => Action;
|