@zat-design/sisyphus-react 3.13.10 → 3.13.12
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/es/ProAction/index.js +1 -1
- package/es/ProEditLabel/components/RenderProForm.js +1 -1
- package/es/ProEditLabel/propsType.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.js +1 -1
- package/es/ProForm/components/base/Checkbox/index.js +1 -1
- package/es/ProForm/components/base/Input/index.js +1 -1
- package/lib/ProAction/index.js +2 -2
- package/lib/ProEditLabel/components/RenderProForm.js +2 -2
- package/lib/ProEditLabel/propsType.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +1 -1
- package/lib/ProForm/components/base/Checkbox/index.js +2 -2
- package/lib/ProForm/components/base/Input/index.js +2 -2
- package/package.json +1 -1
package/es/ProAction/index.js
CHANGED
@@ -12,7 +12,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
12
12
|
import React from 'react';
|
13
13
|
import { useSetState } from 'ahooks';
|
14
14
|
import CheckModalContent from './components/CheckModalContent';
|
15
|
-
import ProDrawerForm from '../
|
15
|
+
import { ProDrawerForm } from '../index';
|
16
16
|
import locale from '../locale';
|
17
17
|
import './index.less';
|
18
18
|
var ProAction = function ProAction(props) {
|
@@ -5,7 +5,7 @@ import _omit from "lodash/omit";
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
6
6
|
import { useEffect } from 'react';
|
7
7
|
import { InfoCircleOutlined } from '@ant-design/icons';
|
8
|
-
import ProForm from '../../
|
8
|
+
import { ProForm } from '../../index';
|
9
9
|
import { matchFormValue } from '../utils';
|
10
10
|
var RenderProForm = function RenderProForm(props) {
|
11
11
|
var _props3, _props6, _props7;
|
@@ -2,7 +2,7 @@ import { InputProps } from 'antd/es/input';
|
|
2
2
|
import { PopconfirmProps } from 'antd/es/popconfirm';
|
3
3
|
import { FormInstance } from 'antd/es/form';
|
4
4
|
import React from 'react';
|
5
|
-
import type { ProFormColumnType } from '../
|
5
|
+
import type { ProFormColumnType } from '../index';
|
6
6
|
export interface ContainerType {
|
7
7
|
/**
|
8
8
|
* @description 触发方式
|
@@ -305,7 +305,7 @@ var RenderField = function RenderField(_ref) {
|
|
305
305
|
var debounceValidate = function debounceValidate() {
|
306
306
|
var validateFieldKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
307
307
|
setTimeout(function () {
|
308
|
-
form.validateFields(
|
308
|
+
form.validateFields(validateFieldKeys);
|
309
309
|
}, 100);
|
310
310
|
};
|
311
311
|
// 单元格更新数据时,加个防抖,防止更新频率过快,卡顿
|
@@ -7,7 +7,7 @@ import { createElement as _createElement } from "react";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
8
|
import Container from '../../Container';
|
9
9
|
import { useProConfig } from '../../../../ProConfigProvider';
|
10
|
-
import ProForm from '
|
10
|
+
import ProForm from '../../../index';
|
11
11
|
var Checkbox = function Checkbox(props) {
|
12
12
|
var dataSource = props.dataSource,
|
13
13
|
otherProps = props.otherProps,
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
9
9
|
import { useProConfig } from '../../../../ProConfigProvider';
|
10
10
|
import Container from '../../Container';
|
11
11
|
import locale from '../../../../locale';
|
12
|
-
import ProForm from '
|
12
|
+
import ProForm from '../../../index';
|
13
13
|
import { maskStringRangeWithRegex } from '../../../utils/valueType';
|
14
14
|
// 参数优先级
|
15
15
|
// 组件内默认值 < config默认值 < props
|
package/lib/ProAction/index.js
CHANGED
@@ -19,7 +19,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
var _react = _interopRequireDefault(require("react"));
|
20
20
|
var _ahooks = require("ahooks");
|
21
21
|
var _CheckModalContent = _interopRequireDefault(require("./components/CheckModalContent"));
|
22
|
-
var
|
22
|
+
var _index = require("../index");
|
23
23
|
var _locale = _interopRequireDefault(require("../locale"));
|
24
24
|
require("./index.less");
|
25
25
|
var ProAction = function ProAction(props) {
|
@@ -203,7 +203,7 @@ var ProAction = function ProAction(props) {
|
|
203
203
|
},
|
204
204
|
title: ((_config$2 = config[0]) === null || _config$2 === void 0 ? void 0 : _config$2.title) || (_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProAction2 = _locale.default.ProAction) === null || _locale$ProAction2 === void 0 ? void 0 : _locale$ProAction2.defaultTitle),
|
205
205
|
children: children
|
206
|
-
}) : ChildContent, state.open ? (0, _jsxRuntime.jsx)(
|
206
|
+
}) : ChildContent, state.open ? (0, _jsxRuntime.jsx)(_index.ProDrawerForm, {
|
207
207
|
open: state.open,
|
208
208
|
mode: "Modal",
|
209
209
|
title: config === null || config === void 0 ? void 0 : (_config$index = config[index]) === null || _config$index === void 0 ? void 0 : _config$index.title,
|
@@ -12,7 +12,7 @@ var _omit2 = _interopRequireDefault(require("lodash/omit"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
13
13
|
var _react = require("react");
|
14
14
|
var _icons = require("@ant-design/icons");
|
15
|
-
var
|
15
|
+
var _index = require("../../index");
|
16
16
|
var _utils = require("../utils");
|
17
17
|
var RenderProForm = function RenderProForm(props) {
|
18
18
|
var _props3, _props6, _props7;
|
@@ -65,7 +65,7 @@ var RenderProForm = function RenderProForm(props) {
|
|
65
65
|
align: "start",
|
66
66
|
children: [(0, _jsxRuntime.jsx)(_icons.InfoCircleOutlined, {}), primitiveProps === null || primitiveProps === void 0 ? void 0 : primitiveProps.tip]
|
67
67
|
})
|
68
|
-
}), (0, _jsxRuntime.jsx)(
|
68
|
+
}), (0, _jsxRuntime.jsx)(_index.ProForm, (0, _objectSpread2.default)({
|
69
69
|
span: 24,
|
70
70
|
footer: false,
|
71
71
|
onValuesChange: function onValuesChange(changeValue, values) {
|
@@ -2,7 +2,7 @@ import { InputProps } from 'antd/es/input';
|
|
2
2
|
import { PopconfirmProps } from 'antd/es/popconfirm';
|
3
3
|
import { FormInstance } from 'antd/es/form';
|
4
4
|
import React from 'react';
|
5
|
-
import type { ProFormColumnType } from '../
|
5
|
+
import type { ProFormColumnType } from '../index';
|
6
6
|
export interface ContainerType {
|
7
7
|
/**
|
8
8
|
* @description 触发方式
|
@@ -313,7 +313,7 @@ var RenderField = function RenderField(_ref) {
|
|
313
313
|
var debounceValidate = function debounceValidate() {
|
314
314
|
var validateFieldKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
315
315
|
setTimeout(function () {
|
316
|
-
form.validateFields(
|
316
|
+
form.validateFields(validateFieldKeys);
|
317
317
|
}, 100);
|
318
318
|
};
|
319
319
|
// 单元格更新数据时,加个防抖,防止更新频率过快,卡顿
|
@@ -13,7 +13,7 @@ var _react = require("react");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
14
14
|
var _Container = _interopRequireDefault(require("../../Container"));
|
15
15
|
var _ProConfigProvider = require("../../../../ProConfigProvider");
|
16
|
-
var
|
16
|
+
var _index = _interopRequireDefault(require("../../../index"));
|
17
17
|
var _excluded = ["dataSource", "otherProps", "fieldNames"];
|
18
18
|
var Checkbox = function Checkbox(props) {
|
19
19
|
var dataSource = props.dataSource,
|
@@ -21,7 +21,7 @@ var Checkbox = function Checkbox(props) {
|
|
21
21
|
fieldNames = props.fieldNames,
|
22
22
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
23
23
|
var initialConfig = (0, _ProConfigProvider.useProConfig)('Checkbox') || {};
|
24
|
-
var _ref =
|
24
|
+
var _ref = _index.default.useFieldProps() || {},
|
25
25
|
isViewCon = _ref.isView,
|
26
26
|
viewEmpty = _ref.viewEmpty;
|
27
27
|
var isView = typeof props.isView === 'boolean' ? props.isView : isViewCon; // 组件可直接接收isView参数, 优先级高
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _ProConfigProvider = require("../../../../ProConfigProvider");
|
16
16
|
var _Container = _interopRequireDefault(require("../../Container"));
|
17
17
|
var _locale = _interopRequireDefault(require("../../../../locale"));
|
18
|
-
var
|
18
|
+
var _index = _interopRequireDefault(require("../../../index"));
|
19
19
|
var _valueType = require("../../../utils/valueType");
|
20
20
|
var _excluded = ["label", "form", "placeholder", "fieldName", "otherProps", "desensitization"];
|
21
21
|
// 参数优先级
|
@@ -28,7 +28,7 @@ var Input = function Input(props) {
|
|
28
28
|
otherProps = props.otherProps,
|
29
29
|
desensitization = props.desensitization,
|
30
30
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
31
|
-
var _ref =
|
31
|
+
var _ref = _index.default.useFieldProps() || {},
|
32
32
|
isViewCon = _ref.isView,
|
33
33
|
viewEmpty = _ref.viewEmpty;
|
34
34
|
var isView = typeof props.isView === 'boolean' ? props.isView : isViewCon; // 组件可直接接收isView参数, 优先级高
|