@zat-design/sisyphus-react 3.13.9 → 3.13.10

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.
@@ -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 '../index';
15
+ import ProDrawerForm from '../ProDrawerForm';
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 '../../index';
8
+ import ProForm from '../../ProForm';
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 '../index';
5
+ import type { ProFormColumnType } from '../ProForm/components/render/propsType';
6
6
  export interface ContainerType {
7
7
  /**
8
8
  * @description 触发方式
@@ -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 '../../../index';
10
+ import ProForm from '../../../../ProForm';
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 '../../../index';
12
+ import ProForm from '../../../../ProForm';
13
13
  import { maskStringRangeWithRegex } from '../../../utils/valueType';
14
14
  // 参数优先级
15
15
  // 组件内默认值 < config默认值 < props
@@ -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 _index = require("../index");
22
+ var _ProDrawerForm = _interopRequireDefault(require("../ProDrawerForm"));
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)(_index.ProDrawerForm, {
206
+ }) : ChildContent, state.open ? (0, _jsxRuntime.jsx)(_ProDrawerForm.default, {
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 _index = require("../../index");
15
+ var _ProForm = _interopRequireDefault(require("../../ProForm"));
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)(_index.ProForm, (0, _objectSpread2.default)({
68
+ }), (0, _jsxRuntime.jsx)(_ProForm.default, (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 '../index';
5
+ import type { ProFormColumnType } from '../ProForm/components/render/propsType';
6
6
  export interface ContainerType {
7
7
  /**
8
8
  * @description 触发方式
@@ -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 _index = _interopRequireDefault(require("../../../index"));
16
+ var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
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 = _index.default.useFieldProps() || {},
24
+ var _ref = _ProForm.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 _index = _interopRequireDefault(require("../../../index"));
18
+ var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
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 = _index.default.useFieldProps() || {},
31
+ var _ref = _ProForm.default.useFieldProps() || {},
32
32
  isViewCon = _ref.isView,
33
33
  viewEmpty = _ref.viewEmpty;
34
34
  var isView = typeof props.isView === 'boolean' ? props.isView : isViewCon; // 组件可直接接收isView参数, 优先级高
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.9",
3
+ "version": "3.13.10",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -75,8 +75,8 @@
75
75
  },
76
76
  "peerDependencies": {
77
77
  "antd": "^4.24.8",
78
- "react": "17.x",
79
- "react-dom": "17.x",
78
+ "react": "^17.0.0 || ^18.0.0",
79
+ "react-dom": "^17.0.0 || ^18.0.0",
80
80
  "react-router-dom": "^5.1.7"
81
81
  },
82
82
  "devDependencies": {