@teamix/pro 1.3.14 → 1.3.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.
Files changed (53) hide show
  1. package/dist/pro.css +1 -1
  2. package/dist/pro.js +22026 -9580
  3. package/dist/pro.min.css +1 -1
  4. package/dist/pro.min.js +1 -1
  5. package/es/actions/index.scss +13 -0
  6. package/es/form/Filter/index.js +169 -53
  7. package/es/form/Filter/layout.scss +4 -0
  8. package/es/form/Filter/useBindUrl.d.ts +2 -0
  9. package/es/form/Filter/useBindUrl.js +118 -0
  10. package/es/form/ProForm/index.js +5 -3
  11. package/es/form/ProForm/useFieldSchema.js +53 -32
  12. package/es/form/SchemaForm/initializeDataSource.d.ts +1 -2
  13. package/es/form/SchemaForm/initializeDataSource.js +14 -19
  14. package/es/form/SchemaForm/initializeRequest.js +25 -26
  15. package/es/form/SchemaForm/initializeRules.d.ts +2 -2
  16. package/es/form/SchemaForm/initializeRules.js +30 -23
  17. package/es/form/SchemaForm/reactions.d.ts +4 -4
  18. package/es/form/SchemaForm/reactions.js +30 -23
  19. package/es/form/typing.d.ts +12 -5
  20. package/es/form/utils.d.ts +16 -1
  21. package/es/form/utils.js +21 -2
  22. package/es/global.scss +45 -0
  23. package/es/index.d.ts +2 -1
  24. package/es/index.js +3 -2
  25. package/es/page-header/index.d.ts +2 -0
  26. package/es/page-header/index.js +13 -3
  27. package/es/page-header/index.scss +8 -0
  28. package/es/table/components/Layout/index.scss +5 -5
  29. package/lib/actions/index.scss +13 -0
  30. package/lib/form/Filter/index.js +170 -53
  31. package/lib/form/Filter/layout.scss +4 -0
  32. package/lib/form/Filter/useBindUrl.d.ts +2 -0
  33. package/lib/form/Filter/useBindUrl.js +129 -0
  34. package/lib/form/ProForm/index.js +5 -3
  35. package/lib/form/ProForm/useFieldSchema.js +52 -31
  36. package/lib/form/SchemaForm/initializeDataSource.d.ts +1 -2
  37. package/lib/form/SchemaForm/initializeDataSource.js +14 -19
  38. package/lib/form/SchemaForm/initializeRequest.js +26 -26
  39. package/lib/form/SchemaForm/initializeRules.d.ts +2 -2
  40. package/lib/form/SchemaForm/initializeRules.js +30 -22
  41. package/lib/form/SchemaForm/reactions.d.ts +4 -4
  42. package/lib/form/SchemaForm/reactions.js +30 -23
  43. package/lib/form/typing.d.ts +12 -5
  44. package/lib/form/utils.d.ts +16 -1
  45. package/lib/form/utils.js +23 -2
  46. package/lib/global.scss +45 -0
  47. package/lib/index.d.ts +2 -1
  48. package/lib/index.js +3 -1
  49. package/lib/page-header/index.d.ts +2 -0
  50. package/lib/page-header/index.js +12 -2
  51. package/lib/page-header/index.scss +8 -0
  52. package/lib/table/components/Layout/index.scss +5 -5
  53. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import ProSidebar from './sidebar';
13
13
  import { ProTimeline } from './timeline';
14
14
  import * as nocode from './nocode';
15
15
  import * as templates from './templates';
16
+ import './global.scss';
16
17
  export * from './actions';
17
18
  export * from './card';
18
19
  export * from './field';
@@ -26,5 +27,5 @@ export * from './table';
26
27
  export * from './sidebar';
27
28
  export * from './utils';
28
29
  export * from './timeline';
29
- declare const version = "1.3.14";
30
+ declare const version = "1.3.17";
30
31
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, hooks, nocode, templates, utils, };
package/lib/index.js CHANGED
@@ -295,6 +295,8 @@ exports.templates = templates;
295
295
 
296
296
  var _icon = _interopRequireDefault(require("@teamix/icon"));
297
297
 
298
+ require("./global.scss");
299
+
298
300
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
299
301
 
300
302
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -305,5 +307,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
305
307
  // 设置图标源
306
308
  _icon.default.setConfig(_utils.default.getTeamixIconConfig());
307
309
 
308
- var version = '1.3.14';
310
+ var version = '1.3.17';
309
311
  exports.version = version;
@@ -20,6 +20,8 @@ export declare type ProPageHeaderDataItem = {
20
20
  export declare type ProPageHeaderProps = {
21
21
  /** 标题 */
22
22
  title?: React.ReactNode;
23
+ /** 标题说明 */
24
+ titleTooltip?: React.ReactNode;
23
25
  /** 描述 */
24
26
  description?: React.ReactNode;
25
27
  /** 图标 */
@@ -27,7 +27,7 @@ require("./index.scss");
27
27
 
28
28
  var _excluded = ["text", "children"],
29
29
  _excluded2 = ["color", "title", "num", "className"],
30
- _excluded3 = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style", "tabs"];
30
+ _excluded3 = ["title", "titleTooltip", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style", "tabs"];
31
31
 
32
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
33
 
@@ -42,6 +42,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
42
42
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
43
43
 
44
44
  var cls = (0, _utils.baseClass)('teamix-pro-page-header');
45
+ var Tooltip = _components.Balloon.Tooltip;
45
46
 
46
47
  var renderNav = function renderNav(breadcrumbs) {
47
48
  if (breadcrumbs && breadcrumbs.length) {
@@ -152,6 +153,7 @@ var renderTabs = function renderTabs(tabs) {
152
153
 
153
154
  var ProPageHeader = function ProPageHeader(props) {
154
155
  var title = props.title,
156
+ titleTooltip = props.titleTooltip,
155
157
  description = props.description,
156
158
  icon = props.icon,
157
159
  iconColor = props.iconColor,
@@ -219,7 +221,15 @@ var ProPageHeader = function ProPageHeader(props) {
219
221
  size: "large"
220
222
  }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon)), /*#__PURE__*/_react.default.createElement("span", {
221
223
  className: cls('title-name')
222
- }, title), (0, _utils.renderTags)(tags, 'large'), renderTabs(tabs !== null && tabs !== void 0 ? tabs : {}));
224
+ }, title, titleTooltip && /*#__PURE__*/_react.default.createElement(Tooltip, {
225
+ trigger: /*#__PURE__*/_react.default.createElement("span", {
226
+ className: cls('title-tooltip-icon')
227
+ }, /*#__PURE__*/_react.default.createElement(_icon.default, {
228
+ type: "info-circle-line",
229
+ size: "xs"
230
+ })),
231
+ align: "t"
232
+ }, titleTooltip)), (0, _utils.renderTags)(tags, 'large'), renderTabs(tabs !== null && tabs !== void 0 ? tabs : {}));
223
233
  };
224
234
 
225
235
  return /*#__PURE__*/_react.default.createElement("header", _objectSpread({
@@ -43,6 +43,7 @@ $prefix: 'teamix-pro-page-header';
43
43
  font-weight: 500;
44
44
  align-items: center;
45
45
  word-break: break-all;
46
+ color: var(--color-text1-4);
46
47
 
47
48
  &-name {
48
49
  white-space: nowrap;
@@ -50,6 +51,13 @@ $prefix: 'teamix-pro-page-header';
50
51
  text-overflow: ellipsis;
51
52
  }
52
53
 
54
+ &-tooltip-icon {
55
+ position: relative;
56
+ margin-left: 2px;
57
+ display: inline-flex;
58
+ top: -7px;
59
+ }
60
+
53
61
  &-icon {
54
62
  padding: var(--s-1, 4px);
55
63
  }
@@ -32,11 +32,11 @@ $prefix: 'teamix-pro-table-layout';
32
32
  &-filter-btn:not(:first-child) {
33
33
  margin-left: 8px;
34
34
  }
35
- &-panel-filter {
36
- margin: 8px 0;
37
- padding: 16px;
38
- background: var(--panel-filter-bg, var(--color-fill1-2));
39
- }
35
+ // &-panel-filter {
36
+ // margin: 8px 0;
37
+ // padding: 16px;
38
+ // background: var(--panel-filter-bg, var(--color-fill1-2));
39
+ // }
40
40
  &-main-action {
41
41
  margin-bottom: 8px;
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamix/pro",
3
- "version": "1.3.14",
3
+ "version": "1.3.17",
4
4
  "description": "TeamixPro大包",
5
5
  "keywords": [
6
6
  "aliyun",