@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.
- package/dist/pro.css +1 -1
- package/dist/pro.js +22026 -9580
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/index.scss +13 -0
- package/es/form/Filter/index.js +169 -53
- package/es/form/Filter/layout.scss +4 -0
- package/es/form/Filter/useBindUrl.d.ts +2 -0
- package/es/form/Filter/useBindUrl.js +118 -0
- package/es/form/ProForm/index.js +5 -3
- package/es/form/ProForm/useFieldSchema.js +53 -32
- package/es/form/SchemaForm/initializeDataSource.d.ts +1 -2
- package/es/form/SchemaForm/initializeDataSource.js +14 -19
- package/es/form/SchemaForm/initializeRequest.js +25 -26
- package/es/form/SchemaForm/initializeRules.d.ts +2 -2
- package/es/form/SchemaForm/initializeRules.js +30 -23
- package/es/form/SchemaForm/reactions.d.ts +4 -4
- package/es/form/SchemaForm/reactions.js +30 -23
- package/es/form/typing.d.ts +12 -5
- package/es/form/utils.d.ts +16 -1
- package/es/form/utils.js +21 -2
- package/es/global.scss +45 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/es/page-header/index.d.ts +2 -0
- package/es/page-header/index.js +13 -3
- package/es/page-header/index.scss +8 -0
- package/es/table/components/Layout/index.scss +5 -5
- package/lib/actions/index.scss +13 -0
- package/lib/form/Filter/index.js +170 -53
- package/lib/form/Filter/layout.scss +4 -0
- package/lib/form/Filter/useBindUrl.d.ts +2 -0
- package/lib/form/Filter/useBindUrl.js +129 -0
- package/lib/form/ProForm/index.js +5 -3
- package/lib/form/ProForm/useFieldSchema.js +52 -31
- package/lib/form/SchemaForm/initializeDataSource.d.ts +1 -2
- package/lib/form/SchemaForm/initializeDataSource.js +14 -19
- package/lib/form/SchemaForm/initializeRequest.js +26 -26
- package/lib/form/SchemaForm/initializeRules.d.ts +2 -2
- package/lib/form/SchemaForm/initializeRules.js +30 -22
- package/lib/form/SchemaForm/reactions.d.ts +4 -4
- package/lib/form/SchemaForm/reactions.js +30 -23
- package/lib/form/typing.d.ts +12 -5
- package/lib/form/utils.d.ts +16 -1
- package/lib/form/utils.js +23 -2
- package/lib/global.scss +45 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/page-header/index.d.ts +2 -0
- package/lib/page-header/index.js +12 -2
- package/lib/page-header/index.scss +8 -0
- package/lib/table/components/Layout/index.scss +5 -5
- 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.
|
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.
|
310
|
+
var version = '1.3.17';
|
309
311
|
exports.version = version;
|
package/lib/page-header/index.js
CHANGED
@@ -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
|
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
|
-
|
37
|
-
|
38
|
-
|
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
|
}
|