@zat-design/sisyphus-react 3.1.5-beta.7 → 3.1.5-beta.9

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.
Files changed (83) hide show
  1. package/.dumi/theme/layouts/layout.less +43 -27
  2. package/dist/index.esm.css +32 -19
  3. package/es/ProDownload/utils.js +2 -0
  4. package/es/ProForm/components/base/RangePicker/index.js +0 -3
  5. package/es/ProForm/components/combination/ProAddressBar/index.js +74 -55
  6. package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +1 -1
  7. package/es/ProForm/components/render/RenderFields.js +4 -2
  8. package/es/ProForm/style/index.less +37 -40
  9. package/es/ProForm/utils/useShouldUpdate.js +16 -16
  10. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  11. package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  12. package/es/ProLayout/components/ProHeader/components/index.js +2 -1
  13. package/es/ProLayout/components/ProHeader/index.js +1 -2
  14. package/es/ProLayout/components/ProHeader/style/index.less +9 -0
  15. package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
  16. package/es/ProTable/components/RenderColumn/index.js +41 -25
  17. package/es/ProTable/index.js +3 -2
  18. package/es/ProTable/propsType.d.ts +2 -0
  19. package/es/ProTable/style/index.less +13 -0
  20. package/es/ProTable/utils.d.ts +1 -1
  21. package/es/ProTable/utils.js +258 -201
  22. package/es/ProThemeTools/component/PrdTools/index.js +1 -1
  23. package/es/ProThemeTools/index.d.ts +2 -2
  24. package/es/ProThemeTools/index.js +24 -17
  25. package/es/ProThemeTools/propsType.d.ts +8 -6
  26. package/es/ProThemeTools/utils/index.d.ts +7 -0
  27. package/es/ProThemeTools/utils/index.js +19 -1
  28. package/es/index.d.ts +1 -1
  29. package/es/index.js +1 -1
  30. package/es/style/components.less +0 -1
  31. package/es/style/theme/index.less +1 -0
  32. package/es/style/theme/tokens.less +1 -0
  33. package/lib/ProEditTable/components/RenderField/index.js +2 -0
  34. package/lib/ProForm/components/base/RangePicker/index.js +1 -4
  35. package/lib/ProForm/components/combination/ProAddressBar/index.js +69 -52
  36. package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +1 -1
  37. package/lib/ProForm/components/old/InputRange/index.js +0 -1
  38. package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
  39. package/lib/ProForm/components/render/Render.js +1 -0
  40. package/lib/ProForm/components/render/RenderFields.js +4 -2
  41. package/lib/ProForm/style/index.less +37 -40
  42. package/lib/ProForm/utils/useShouldUpdate.js +16 -16
  43. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  44. package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  45. package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
  46. package/lib/ProLayout/components/ProHeader/index.js +1 -2
  47. package/lib/ProLayout/components/ProHeader/style/index.less +9 -0
  48. package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
  49. package/lib/ProTable/components/RenderColumn/index.js +38 -24
  50. package/lib/ProTable/components/TableResizable/index.js +8 -0
  51. package/lib/ProTable/index.js +3 -2
  52. package/lib/ProTable/propsType.d.ts +2 -0
  53. package/lib/ProTable/style/index.less +13 -0
  54. package/lib/ProTable/utils.d.ts +1 -1
  55. package/lib/ProTable/utils.js +258 -201
  56. package/lib/ProTabs/index.js +1 -0
  57. package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
  58. package/lib/ProThemeTools/index.d.ts +2 -2
  59. package/lib/ProThemeTools/index.js +24 -16
  60. package/lib/ProThemeTools/propsType.d.ts +8 -6
  61. package/lib/ProThemeTools/utils/index.d.ts +7 -0
  62. package/lib/ProThemeTools/utils/index.js +20 -2
  63. package/lib/ProTree/components/Tree.js +7 -0
  64. package/lib/ProTree/index.js +0 -1
  65. package/lib/ProTreeModal/components/Tree.js +1 -0
  66. package/lib/ProUpload/index.js +7 -0
  67. package/lib/index.d.ts +1 -1
  68. package/lib/index.js +1 -1
  69. package/lib/old/ProCertValidity/index.js +1 -1
  70. package/lib/style/components.less +0 -1
  71. package/lib/style/theme/index.less +1 -0
  72. package/lib/style/theme/tokens.less +1 -0
  73. package/package.json +1 -1
  74. package/es/old/ProBackBtn/style/index.less +0 -19
  75. package/lib/old/ProBackBtn/style/index.less +0 -19
  76. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  77. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +0 -0
  78. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  79. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
  80. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  81. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +0 -0
  82. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  83. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
@@ -1,54 +1,70 @@
1
1
  .__amiya {
2
2
  &-theme {
3
- right: 100px;
4
- bottom: 100px;
5
- z-index: 10;
3
+ right : 100px;
4
+ bottom : 100px;
5
+ z-index : 10;
6
6
  position: fixed !important;
7
7
  }
8
8
 
9
9
  &-nav {
10
- flex: 1;
11
- border-bottom: none !important;
12
- display: flex;
10
+ flex : 1;
11
+ border-bottom : none !important;
12
+ display : flex;
13
13
  justify-content: flex-end;
14
14
  }
15
15
 
16
16
  &-theme-color {
17
- width: 1em;
18
- height: 1em;
19
- margin-right: 4px;
17
+ width : 1em;
18
+ height : 1em;
19
+ margin-right : 4px;
20
20
  border-radius: 2px;
21
- display: flex;
21
+ display : flex;
22
22
  }
23
23
 
24
24
  &-menu {
25
- position: fixed;
26
- z-index: 100;
27
- top: 60px;
28
- left: 0;
29
- bottom: 0;
30
- width: 260px;
25
+ position : fixed;
26
+ z-index : 100;
27
+ top : 60px;
28
+ left : 0;
29
+ bottom : 0;
30
+ width : 260px;
31
31
  background-color: #f2f5fa;
32
- box-sizing: border-box;
33
- transition: left 0.3s;
32
+ box-sizing : border-box;
33
+ transition : left 0.3s;
34
+ margin-left : 40px;
34
35
 
35
36
  .ant-menu {
36
- height: 100%;
37
- padding-top: 24px;
38
- overflow: auto;
37
+ height : 100%;
38
+ padding : 24px 0;
39
+ overflow : hidden;
40
+ overflow-y: auto;
41
+
42
+ &.ant-menu-inline .ant-menu-item:not(:last-child) {
43
+ margin-bottom: 0;
44
+ margin-top : 0;
45
+ }
46
+
47
+ &.ant-menu-inline .ant-menu-item::after {
48
+ display: none;
49
+ }
50
+
51
+ &.ant-menu-inline .ant-menu-item {
52
+ width: calc(98%);
53
+ }
54
+ }
55
+
56
+ .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
57
+ border-radius: 8px;
39
58
  }
40
59
  }
41
60
  }
42
61
 
43
- .__dumi-default-previewer {
44
- background-color: #f9fafb;
45
- }
46
62
 
47
63
  .__dumi-default-previewer-actions {
48
64
  background-color: #fff;
49
- justify-content: center;
65
+ justify-content : center;
50
66
 
51
- > span {
67
+ >span {
52
68
  display: none;
53
69
  }
54
70
  }
@@ -68,4 +84,4 @@ img {
68
84
  .deleted-sign.deleted.prefix,
69
85
  .inserted-sign.inserted.prefix {
70
86
  user-select: none;
71
- }
87
+ }
@@ -799,6 +799,23 @@
799
799
  box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
800
800
  z-index: 101;
801
801
  }
802
+ .back-button-container.ant-btn {
803
+ color: var(--zaui-text);
804
+ font-weight: 400;
805
+ background: var(--zaui-disabled-bg);
806
+ border: none;
807
+ }
808
+ .back-button-container.ant-btn:hover {
809
+ color: var(--zaui-aide-text);
810
+ background: var(--zaui-disabled-bg);
811
+ border: none;
812
+ }
813
+ .back-button-container.ant-btn:active,
814
+ .back-button-container.ant-btn:focus {
815
+ color: var(--zaui-text);
816
+ font-weight: 400;
817
+ background: var(--zaui-disabled-bg);
818
+ }
802
819
  .pro-header {
803
820
  background-color: var(--zaui-base-bg, #ffffff);
804
821
  padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1) + var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1)) 0 0 0;
@@ -806,6 +823,9 @@
806
823
  .pro-header.pro-header-no-back .pro-header-top {
807
824
  padding-left: 0;
808
825
  }
826
+ .pro-header.pro-header-no-back .pro-header-left.pro-header-left-space {
827
+ margin-left: 0 !important;
828
+ }
809
829
  .pro-header.pro-header-no-describe {
810
830
  -webkit-box-shadow: none;
811
831
  box-shadow: none;
@@ -1599,6 +1619,15 @@
1599
1619
  .pro-table .custom-column-btn .anticon {
1600
1620
  height: 16px;
1601
1621
  }
1622
+ .pro-table .ant-table-body .ant-table-cell .varied-cell {
1623
+ margin-left: -8px;
1624
+ background: var(--zaui-contract-bg, #fffaa1);
1625
+ padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
1626
+ border-radius: var(--zaui-border-radius, 4px);
1627
+ }
1628
+ .pro-table .ant-table-body .varied-cell.empty-cell {
1629
+ width: 24.5px;
1630
+ }
1602
1631
  .pro-table .copyable-table-cell .ant-typography {
1603
1632
  margin-bottom: 0;
1604
1633
  display: -webkit-box;
@@ -2417,12 +2446,12 @@ div.pro-textarea-view::after {
2417
2446
  .pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper,
2418
2447
  .pro-form .ant-form-item.pro-form-item-changed .ant-select-selector,
2419
2448
  .pro-form .ant-form-item.pro-form-item-changed .ant-picker {
2420
- background: #fffaa1;
2449
+ background: var(--zaui-contract-bg, #fffaa1);
2421
2450
  }
2422
2451
  .pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper input,
2423
2452
  .pro-form .ant-form-item.pro-form-item-changed .ant-select-selector input,
2424
2453
  .pro-form .ant-form-item.pro-form-item-changed .ant-picker input {
2425
- background: #fffaa1;
2454
+ background: var(--zaui-contract-bg, #fffaa1);
2426
2455
  }
2427
2456
  .pro-form .ant-form-item .ant-row {
2428
2457
  width: 100%;
@@ -4406,23 +4435,6 @@ div.pro-textarea-view::after {
4406
4435
  .pro-download.ant-btn-text {
4407
4436
  padding: 0;
4408
4437
  }
4409
- .back-button-container {
4410
- color: var(--zaui-aide-text);
4411
- font-weight: 400;
4412
- background: var(--zaui-disabled-bg);
4413
- border: none;
4414
- }
4415
- .back-button-container:hover {
4416
- color: var(--zaui-aide-text);
4417
- background: var(--zaui-disabled-bg);
4418
- border: none;
4419
- }
4420
- .back-button-container:active,
4421
- .back-button-container:focus {
4422
- color: var(--zaui-aide-text);
4423
- font-weight: 400;
4424
- background: var(--zaui-disabled-bg);
4425
- }
4426
4438
  .pro-editable .ant-table-cell .table-title-required::before {
4427
4439
  display: inline-block;
4428
4440
  margin-right: 4px;
@@ -4774,6 +4786,7 @@ input[type='button'] {
4774
4786
  --zaui-table-selected-bg: var(--zaui-table-hover-bg);
4775
4787
  --zaui-table-selected-hover-bg: var(--zaui-table-hover-bg);
4776
4788
  --zaui-table-nested-bg: #fafcfe;
4789
+ --zaui-contract-bg: #fffaa1;
4777
4790
  --zaui-form-label-width: 130px;
4778
4791
  --zaui-border-radius: 4px;
4779
4792
  --zaui-border-radius-card: 2px;
@@ -4,6 +4,8 @@ import _message from "antd/es/message";
4
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
5
  import _typeof from "@babel/runtime/helpers/esm/typeof";
6
6
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
7
+ /* eslint-disable no-empty */
8
+ /* eslint-disable prefer-promise-reject-errors */
7
9
  import { isFunction, get } from 'lodash';
8
10
  var stringify = function stringify(data) {
9
11
  var result = '';
@@ -50,9 +50,6 @@ var RangePicker = function RangePicker(props) {
50
50
  var _res = _objectSpread(_objectSpread({}, rest), {}, {
51
51
  showTime: !rest.showTime && valueType === 'dateTime' || rest.showTime
52
52
  });
53
- if (_res === null || _res === void 0 ? void 0 : _res.placeholder) {
54
- _res === null || _res === void 0 ? true : delete _res.placeholder;
55
- }
56
53
  // 字符串时间格式兼容
57
54
  if (Array.isArray(_res.value) && isString(_res.value[0]) && isString(_res.value[1])) {
58
55
  _res.value = [moment(_res.value[0]), moment(_res.value[1])];
@@ -1,9 +1,9 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
- import "antd/es/tooltip/style";
4
- import _Tooltip from "antd/es/tooltip";
5
3
  import "antd/es/cascader/style";
6
4
  import _Cascader from "antd/es/cascader";
5
+ import "antd/es/tooltip/style";
6
+ import _Tooltip from "antd/es/tooltip";
7
7
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
8
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
@@ -11,14 +11,17 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
11
11
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
12
12
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
13
13
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
14
+ import "antd/es/typography/style";
15
+ import _Typography from "antd/es/typography";
14
16
  var _excluded = ["className", "getPopupContainer", "hasDetail", "detailMaxLength", "fieldNames", "value", "disabled", "dataSource", "onChange", "useRequest", "transformResponse", "level", "isView", "enumCode", "code", "tooltip", "separator"];
15
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
18
  import { useEffect, useState, memo, useMemo } from 'react';
17
19
  import { useSetState } from 'ahooks';
18
20
  import { tools } from '@zat-design/utils';
19
21
  import { useProConfig } from '../../../../ProConfigProvider';
20
22
  import useEnum from '../../../../ProEnum/hooks/useEnum';
21
23
  var transformDataName = tools.transformDataName;
24
+ var Text = _Typography.Text;
22
25
  var filterDataSource = function filterDataSource(dataSource, level) {
23
26
  return dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
24
27
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -172,7 +175,7 @@ var ProAddressBar = function ProAddressBar(props) {
172
175
  transFormData = transformDataName(newData, {
173
176
  label: fieldNames.label,
174
177
  value: fieldNames.value,
175
- children: 'children'
178
+ children: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'
176
179
  });
177
180
  setServiceData(realLevel === 2 ? filterDataSource(transFormData, level) : transFormData);
178
181
  }
@@ -266,19 +269,19 @@ var ProAddressBar = function ProAddressBar(props) {
266
269
  }, [service]);
267
270
  useEffect(function () {
268
271
  // 传入useRequest时初始化province展示
269
- if (service && !fetched && province) {
272
+ if (service && loadData && !fetched && province) {
270
273
  initAddressLabel('province', province, provinceOptions);
271
274
  }
272
275
  }, [province, fetched, provinceOptions]);
273
276
  useEffect(function () {
274
277
  // 传入useRequest时初始化city展示
275
- if (service && !fetched && province && city) {
278
+ if (service && loadData && !fetched && province && city) {
276
279
  initAddressLabel('city', city, _defineProperty({}, parentKey, province));
277
280
  }
278
281
  }, [province, city, fetched]);
279
282
  useEffect(function () {
280
283
  // 传入useRequest时初始化county展示
281
- if (service && !fetched && city && county) {
284
+ if (service && loadData && !fetched && city && county) {
282
285
  initAddressLabel('county', county, _defineProperty({}, parentKey, city));
283
286
  }
284
287
  }, [city, county, fetched]);
@@ -288,6 +291,12 @@ var ProAddressBar = function ProAddressBar(props) {
288
291
  setDefaultLabel(getAddressLabel(realDataSource, value));
289
292
  }
290
293
  }, [realIsView, value, realDataSource]);
294
+ useEffect(function () {
295
+ // 传入useRequest但loadData为fasle查看时初始化展示
296
+ if (realIsView && value && (serviceData === null || serviceData === void 0 ? void 0 : serviceData.length) > 0) {
297
+ setDefaultLabel(getAddressLabel(serviceData, value));
298
+ }
299
+ }, [realIsView, value, serviceData]);
291
300
  var handleLoadData = /*#__PURE__*/function () {
292
301
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(selectedOptions) {
293
302
  var targetOption, data;
@@ -363,56 +372,66 @@ var ProAddressBar = function ProAddressBar(props) {
363
372
  var viewValue = ((_ref11 = [provinceLabel, cityLabel, countyLabel, value === null || value === void 0 ? void 0 : value[realLevel]]) === null || _ref11 === void 0 ? void 0 : (_ref11$filter = _ref11.filter(function (item) {
364
373
  return !!item;
365
374
  })) === null || _ref11$filter === void 0 ? void 0 : _ref11$filter.join(separator)) || '-';
366
- return _jsx("div", {
375
+ return realIsView ? tooltip ? _jsx(_Tooltip, {
376
+ className: className,
377
+ title: tooltip === true ? viewValue : tooltip,
378
+ children: _jsx(Text, {
379
+ ellipsis: {
380
+ tooltip: false
381
+ },
382
+ children: viewValue
383
+ })
384
+ }) : _jsx("span", {
385
+ className: className,
386
+ children: viewValue
387
+ }) : _jsxs("div", {
367
388
  className: "pro-address ".concat(className),
368
- children: realIsView ? viewValue : _jsxs(_Fragment, {
369
- children: [dataSource || addressCode || !loadData ? _jsx(_Cascader, {
370
- className: hasDetail ? '' : 'no-detail',
371
- placeholder: "\u8BF7\u9009\u62E9",
372
- value: addressValue,
373
- options: !loadData ? serviceData : realDataSource,
374
- disabled: disabled,
375
- displayRender: function displayRender(label) {
376
- return label === null || label === void 0 ? void 0 : label.filter(function (item) {
377
- return !!item;
378
- }).join('/');
379
- },
380
- showSearch: {
381
- filter: handlefilter
382
- },
383
- onChange: handleChange
384
- }) : _jsx(_Cascader, {
385
- className: hasDetail ? '' : 'no-detail',
386
- placeholder: "\u8BF7\u9009\u62E9",
387
- value: addressValue,
388
- loadData: handleLoadData,
389
- // @ts-ignore
390
- options: provinces,
391
- disabled: disabled,
392
- displayRender: displayRender,
393
- changeOnSelect: true,
394
- // @ts-ignore
395
- onChange: handleChange
396
- }), hasDetail && (tooltip && disabled && address ? _jsx(_Tooltip, {
397
- title: address,
398
- children: _jsx("span", {
399
- className: "pro-address-detail",
400
- children: _jsx(_Input, {
401
- disabled: disabled,
402
- value: address
403
- })
389
+ children: [dataSource || addressCode || !loadData ? _jsx(_Cascader, {
390
+ className: hasDetail ? '' : 'no-detail',
391
+ placeholder: "\u8BF7\u9009\u62E9",
392
+ value: addressValue,
393
+ options: !loadData ? serviceData : realDataSource,
394
+ disabled: disabled,
395
+ displayRender: function displayRender(label) {
396
+ return label === null || label === void 0 ? void 0 : label.filter(function (item) {
397
+ return !!item;
398
+ }).join('/');
399
+ },
400
+ showSearch: {
401
+ filter: handlefilter
402
+ },
403
+ onChange: handleChange
404
+ }) : _jsx(_Cascader, {
405
+ className: hasDetail ? '' : 'no-detail',
406
+ placeholder: "\u8BF7\u9009\u62E9",
407
+ value: addressValue,
408
+ loadData: handleLoadData,
409
+ // @ts-ignore
410
+ options: provinces,
411
+ disabled: disabled,
412
+ displayRender: displayRender,
413
+ changeOnSelect: true,
414
+ // @ts-ignore
415
+ onChange: handleChange
416
+ }), hasDetail && (tooltip && disabled && address ? _jsx(_Tooltip, {
417
+ title: address,
418
+ children: _jsx("span", {
419
+ className: "pro-address-detail",
420
+ children: _jsx(_Input, {
421
+ disabled: disabled,
422
+ value: address
404
423
  })
405
- }) : _jsx(_Input, {
406
- allowClear: true,
407
- autoComplete: "off",
408
- disabled: disabled,
409
- value: address,
410
- maxLength: detailMaxLength,
411
- placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",
412
- // @ts-ignore
413
- onChange: handleAddressChange
414
- }))]
415
- })
424
+ })
425
+ }) : _jsx(_Input, {
426
+ allowClear: true,
427
+ autoComplete: "off",
428
+ disabled: disabled,
429
+ value: address,
430
+ maxLength: detailMaxLength,
431
+ placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",
432
+ // @ts-ignore
433
+ onChange: handleAddressChange
434
+ }))]
416
435
  });
417
436
  };
418
437
  // @ts-ignore
@@ -8,7 +8,7 @@ export interface AddressProps {
8
8
  value?: string[];
9
9
  disabled?: boolean;
10
10
  hasDetail?: boolean;
11
- tooltip?: boolean;
11
+ tooltip?: boolean | ReactNode;
12
12
  detailMaxLength?: number;
13
13
  fieldNames?: {
14
14
  label: string;
@@ -134,9 +134,7 @@ var RenderFields = function RenderFields(props) {
134
134
  }, formItemChildProps), fieldProps);
135
135
  if (formDisabled) {
136
136
  _fieldProps.disabled = formDisabled;
137
- // _disabled = formDisabled;
138
137
  }
139
-
140
138
  var componentProps = _objectSpread({
141
139
  disabled: _disabled,
142
140
  placeholder: _placeholder,
@@ -146,6 +144,10 @@ var RenderFields = function RenderFields(props) {
146
144
  if (['Switch', 'SwitchCheckbox'].includes(_type)) {
147
145
  _formItemProps.valuePropName = 'checked';
148
146
  }
147
+ // 时间范围placeholder处理
148
+ if (['RangePicker'].includes(_type) && !(fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.placeholder)) {
149
+ delete componentProps.placeholder;
150
+ }
149
151
  // 没有找到对应组件 不渲染
150
152
  if (!TargetComponent) {
151
153
  return [];
@@ -15,7 +15,6 @@
15
15
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
16
16
  }
17
17
 
18
-
19
18
  .pro-collapse-level2 {
20
19
  .ant-collapse-item {
21
20
  margin-bottom: 0 !important;
@@ -28,17 +27,17 @@
28
27
  }
29
28
 
30
29
  span.ant-input-clear-icon {
31
- display : unset;
30
+ display: unset;
32
31
  visibility: hidden;
33
32
  }
34
33
 
35
34
  .ant-input-affix-wrapper:hover span.ant-input-clear-icon {
36
- display : unset;
35
+ display: unset;
37
36
  visibility: unset;
38
37
  }
39
38
 
40
39
  .ant-input-affix-wrapper:hover span.ant-input-clear-icon[class~='ant-input-clear-icon-hidden'] {
41
- display : unset;
40
+ display: unset;
42
41
  visibility: hidden;
43
42
  }
44
43
 
@@ -73,7 +72,7 @@
73
72
  // 展开折叠按钮
74
73
  .expand-button {
75
74
  line-height: @zaui-space-card;
76
- cursor : pointer;
75
+ cursor: pointer;
77
76
 
78
77
  .rotate-to-top {
79
78
  transform: rotate(90deg);
@@ -89,23 +88,22 @@
89
88
 
90
89
  .ant-form-item-tooltip {
91
90
  svg {
92
- width : 14px;
93
- height : 14px;
91
+ width: 14px;
92
+ height: 14px;
94
93
  vertical-align: bottom;
95
- fill : @zaui-aide-text;
94
+ fill: @zaui-aide-text;
96
95
  }
97
96
  }
98
97
 
99
98
  // 比较原始值场景下 不同时候的样式
100
99
  &.pro-form-item-changed {
101
-
102
100
  span.ant-input-affix-wrapper,
103
101
  .ant-select-selector,
104
102
  .ant-picker {
105
- background: #fffaa1;
103
+ background: @zaui-contract-bg;
106
104
 
107
105
  input {
108
- background: #fffaa1;
106
+ background: @zaui-contract-bg;
109
107
  }
110
108
  }
111
109
  }
@@ -141,9 +139,9 @@
141
139
  }
142
140
 
143
141
  .range-right {
144
- width : 100%;
145
- border : 1px solid @zaui-form-control-line;
146
- border-top-left-radius : 0;
142
+ width: 100%;
143
+ border: 1px solid @zaui-form-control-line;
144
+ border-top-left-radius: 0;
147
145
  border-bottom-left-radius: 0;
148
146
  }
149
147
  }
@@ -155,7 +153,7 @@
155
153
  }
156
154
 
157
155
  .ant-form-item-label {
158
- >label {
156
+ > label {
159
157
  white-space: pre-wrap;
160
158
  }
161
159
  }
@@ -166,7 +164,7 @@
166
164
 
167
165
  .ant-form-item-has-error {
168
166
  .group-separator {
169
- color : var(--ant-error-color);
167
+ color: var(--ant-error-color);
170
168
  border-color: var(--ant-error-color);
171
169
  }
172
170
 
@@ -176,10 +174,9 @@
176
174
  }
177
175
 
178
176
  .site-input-group-wrapper {
179
-
180
177
  // 范围值表单样式
181
178
  & .site-input-split {
182
- text-align : center;
179
+ text-align: center;
183
180
  background-color: @zaui-table-strip-bg;
184
181
 
185
182
  &.site-input-split-disabled {
@@ -225,33 +222,33 @@
225
222
  }
226
223
  }
227
224
 
228
- &.ant-input-group.ant-input-group-compact>*:not(:last-child) {
225
+ &.ant-input-group.ant-input-group-compact > *:not(:last-child) {
229
226
  margin-right: 0;
230
227
  }
231
228
 
232
- >*:first-child {
233
- border-top-right-radius : 0 !important;
229
+ > *:first-child {
230
+ border-top-right-radius: 0 !important;
234
231
  border-bottom-right-radius: 0 !important;
235
232
 
236
- >.ant-select-selector {
237
- border-top-right-radius : 0 !important;
233
+ > .ant-select-selector {
234
+ border-top-right-radius: 0 !important;
238
235
  border-bottom-right-radius: 0 !important;
239
236
  }
240
237
  }
241
238
 
242
- >*:last-child {
243
- border-top-left-radius : 0 !important;
239
+ > *:last-child {
240
+ border-top-left-radius: 0 !important;
244
241
  border-bottom-left-radius: 0 !important;
245
242
 
246
- >.ant-select-selector {
247
- border-top-left-radius : 0 !important;
243
+ > .ant-select-selector {
244
+ border-top-left-radius: 0 !important;
248
245
  border-bottom-left-radius: 0 !important;
249
246
  }
250
247
  }
251
248
  }
252
249
 
253
- .ant-input-group.ant-input-group-compact>* {
254
- float : none;
250
+ .ant-input-group.ant-input-group-compact > * {
251
+ float: none;
255
252
  vertical-align: top;
256
253
  }
257
254
 
@@ -260,17 +257,17 @@
260
257
  }
261
258
 
262
259
  .noDisabled {
263
- color : @zaui-disabled-text;
264
- font-size : var(--zaui-font-size, 14px);
260
+ color: @zaui-disabled-text;
261
+ font-size: var(--zaui-font-size, 14px);
265
262
  background-color: transparent;
266
- border : none;
267
- cursor : default;
268
- opacity : 1;
263
+ border: none;
264
+ cursor: default;
265
+ opacity: 1;
269
266
  }
270
267
 
271
268
  div.pro-form-custom-footer {
272
- width : unset !important;
273
- height : @zaui-space-card;
269
+ width: unset !important;
270
+ height: @zaui-space-card;
274
271
  margin-bottom: calc(var(--zaui-height-size-md, 16px) * var(--zaui-size, 1));
275
272
 
276
273
  &.pro-form-custom-footer-hidden {
@@ -279,14 +276,14 @@
279
276
  }
280
277
 
281
278
  .pro-form-view-container {
282
- display : inline-block;
283
- color : var(--zaui-text, #343434);
279
+ display: inline-block;
280
+ color: var(--zaui-text, #343434);
284
281
  word-break: break-all;
285
282
  }
286
283
 
287
284
  .pro-form-view-container_nowrap {
288
- overflow : hidden;
289
- white-space : nowrap;
285
+ overflow: hidden;
286
+ white-space: nowrap;
290
287
  text-overflow: ellipsis;
291
288
  }
292
289