@teamix/pro 1.4.4 → 1.4.5
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 +13 -10
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/card/index.js +1 -1
- package/es/form/ProForm/index.scss +8 -4
- package/es/form/SchemaForm/initializeFormButton.js +4 -4
- package/es/index.d.ts +3 -2
- package/es/index.js +2 -2
- package/lib/card/index.js +1 -1
- package/lib/form/ProForm/index.scss +8 -4
- package/lib/form/SchemaForm/initializeFormButton.js +4 -5
- package/lib/index.d.ts +3 -2
- package/lib/index.js +9 -2
- package/package.json +1 -1
package/es/card/index.js
CHANGED
@@ -249,7 +249,7 @@ export var ProCard = function ProCard(props) {
|
|
249
249
|
padding: 0,
|
250
250
|
margin: 0
|
251
251
|
} : {}
|
252
|
-
}, (loading || contentLoading) && /*#__PURE__*/React.createElement(ProSkeletonRaw.Card.Content, null), !loading && /*#__PURE__*/React.createElement("div", {
|
252
|
+
}, (loading || contentLoading) && /*#__PURE__*/React.createElement(ProSkeletonRaw.Card.Content, null), !(loading || contentLoading) && /*#__PURE__*/React.createElement("div", {
|
253
253
|
className: cardContentClassName,
|
254
254
|
style: cardContentStyle
|
255
255
|
}, empty && /*#__PURE__*/React.createElement("div", {
|
@@ -111,15 +111,19 @@
|
|
111
111
|
// 尺寸 - small
|
112
112
|
.#{$form-item-cls}-size-small {
|
113
113
|
// 预览态行高
|
114
|
-
.#{$
|
115
|
-
|
114
|
+
.#{$teamix-pro-field} {
|
115
|
+
.#{$css-prefix}form-preview {
|
116
|
+
line-height: var(--form-element-small-height, 24px);
|
117
|
+
}
|
116
118
|
}
|
117
119
|
}
|
118
120
|
// 尺寸 - large
|
119
121
|
.#{$form-item-cls}-size-large {
|
120
122
|
// 预览态行高
|
121
|
-
.#{$
|
122
|
-
|
123
|
+
.#{$teamix-pro-field} {
|
124
|
+
.#{$css-prefix}form-preview {
|
125
|
+
line-height: var(--form-element-large-height, 36px);
|
126
|
+
}
|
123
127
|
}
|
124
128
|
}
|
125
129
|
|
@@ -11,15 +11,15 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
11
11
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
12
12
|
|
13
13
|
import { getMessage } from '@teamix/utils';
|
14
|
-
var buttonTextMap = {
|
15
|
-
Submit: getMessage('submit'),
|
16
|
-
Reset: getMessage('reset')
|
17
|
-
};
|
18
14
|
|
19
15
|
var initializeButton = function initializeButton(item) {
|
20
16
|
var component = item.component,
|
21
17
|
_item$props = item.props,
|
22
18
|
props = _item$props === void 0 ? {} : _item$props;
|
19
|
+
var buttonTextMap = {
|
20
|
+
Submit: getMessage('submit'),
|
21
|
+
Reset: getMessage('reset')
|
22
|
+
};
|
23
23
|
return _objectSpread(_objectSpread({}, item), {}, {
|
24
24
|
component: component,
|
25
25
|
props: _objectSpread({
|
package/es/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 TeamixIcon from '@teamix/icon';
|
16
17
|
import './global.scss';
|
17
18
|
export * from './actions';
|
18
19
|
export * from './card';
|
@@ -27,5 +28,5 @@ export * from './table';
|
|
27
28
|
export * from './sidebar';
|
28
29
|
export * from './utils';
|
29
30
|
export * from './timeline';
|
30
|
-
declare const version = "1.4.
|
31
|
-
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, hooks, nocode, templates, utils, };
|
31
|
+
declare const version = "1.4.5";
|
32
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/es/index.js
CHANGED
@@ -31,6 +31,6 @@ export * from './table';
|
|
31
31
|
export * from './sidebar';
|
32
32
|
export * from './utils';
|
33
33
|
export * from './timeline';
|
34
|
-
var version = '1.4.
|
34
|
+
var version = '1.4.5';
|
35
35
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, // ProLayout,
|
36
|
-
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, hooks, nocode, templates, utils };
|
36
|
+
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils };
|
package/lib/card/index.js
CHANGED
@@ -290,7 +290,7 @@ var ProCard = function ProCard(props) {
|
|
290
290
|
padding: 0,
|
291
291
|
margin: 0
|
292
292
|
} : {}
|
293
|
-
}, (loading || contentLoading) && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Card.Content, null), !loading && /*#__PURE__*/_react.default.createElement("div", {
|
293
|
+
}, (loading || contentLoading) && /*#__PURE__*/_react.default.createElement(_skeleton.ProSkeletonRaw.Card.Content, null), !(loading || contentLoading) && /*#__PURE__*/_react.default.createElement("div", {
|
294
294
|
className: cardContentClassName,
|
295
295
|
style: cardContentStyle
|
296
296
|
}, empty && /*#__PURE__*/_react.default.createElement("div", {
|
@@ -111,15 +111,19 @@
|
|
111
111
|
// 尺寸 - small
|
112
112
|
.#{$form-item-cls}-size-small {
|
113
113
|
// 预览态行高
|
114
|
-
.#{$
|
115
|
-
|
114
|
+
.#{$teamix-pro-field} {
|
115
|
+
.#{$css-prefix}form-preview {
|
116
|
+
line-height: var(--form-element-small-height, 24px);
|
117
|
+
}
|
116
118
|
}
|
117
119
|
}
|
118
120
|
// 尺寸 - large
|
119
121
|
.#{$form-item-cls}-size-large {
|
120
122
|
// 预览态行高
|
121
|
-
.#{$
|
122
|
-
|
123
|
+
.#{$teamix-pro-field} {
|
124
|
+
.#{$css-prefix}form-preview {
|
125
|
+
line-height: var(--form-element-large-height, 36px);
|
126
|
+
}
|
123
127
|
}
|
124
128
|
}
|
125
129
|
|
@@ -19,15 +19,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
19
19
|
|
20
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
21
21
|
|
22
|
-
var buttonTextMap = {
|
23
|
-
Submit: (0, _utils.getMessage)('submit'),
|
24
|
-
Reset: (0, _utils.getMessage)('reset')
|
25
|
-
};
|
26
|
-
|
27
22
|
var initializeButton = function initializeButton(item) {
|
28
23
|
var component = item.component,
|
29
24
|
_item$props = item.props,
|
30
25
|
props = _item$props === void 0 ? {} : _item$props;
|
26
|
+
var buttonTextMap = {
|
27
|
+
Submit: (0, _utils.getMessage)('submit'),
|
28
|
+
Reset: (0, _utils.getMessage)('reset')
|
29
|
+
};
|
31
30
|
return _objectSpread(_objectSpread({}, item), {}, {
|
32
31
|
component: component,
|
33
32
|
props: _objectSpread({
|
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 TeamixIcon from '@teamix/icon';
|
16
17
|
import './global.scss';
|
17
18
|
export * from './actions';
|
18
19
|
export * from './card';
|
@@ -27,5 +28,5 @@ export * from './table';
|
|
27
28
|
export * from './sidebar';
|
28
29
|
export * from './utils';
|
29
30
|
export * from './timeline';
|
30
|
-
declare const version = "1.4.
|
31
|
-
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, hooks, nocode, templates, utils, };
|
31
|
+
declare const version = "1.4.5";
|
32
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/lib/index.js
CHANGED
@@ -21,7 +21,8 @@ var _exportNames = {
|
|
21
21
|
ProSidebar: true,
|
22
22
|
ProTimeline: true,
|
23
23
|
nocode: true,
|
24
|
-
templates: true
|
24
|
+
templates: true,
|
25
|
+
TeamixIcon: true
|
25
26
|
};
|
26
27
|
Object.defineProperty(exports, "ProAction", {
|
27
28
|
enumerable: true,
|
@@ -89,6 +90,12 @@ Object.defineProperty(exports, "ProTimeline", {
|
|
89
90
|
return _timeline.ProTimeline;
|
90
91
|
}
|
91
92
|
});
|
93
|
+
Object.defineProperty(exports, "TeamixIcon", {
|
94
|
+
enumerable: true,
|
95
|
+
get: function get() {
|
96
|
+
return _icon.default;
|
97
|
+
}
|
98
|
+
});
|
92
99
|
Object.defineProperty(exports, "hooks", {
|
93
100
|
enumerable: true,
|
94
101
|
get: function get() {
|
@@ -307,5 +314,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
307
314
|
// 设置图标源
|
308
315
|
_icon.default.setConfig(_utils.default.getTeamixIconConfig());
|
309
316
|
|
310
|
-
var version = '1.4.
|
317
|
+
var version = '1.4.5';
|
311
318
|
exports.version = version;
|