@teamix/pro 1.5.2 → 1.5.3
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.js +50 -125
- package/dist/pro.min.js +1 -1
- package/es/actions/index.d.ts +1 -0
- package/es/actions/index.js +1 -0
- package/es/actions/quick.d.ts +2 -0
- package/es/actions/quick.js +32 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/table/index.js +1 -2
- package/lib/actions/index.d.ts +1 -0
- package/lib/actions/index.js +25 -2
- package/lib/actions/quick.d.ts +2 -0
- package/lib/actions/quick.js +46 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/table/index.js +1 -3
- package/package.json +1 -1
package/es/actions/index.d.ts
CHANGED
@@ -77,6 +77,7 @@ export declare type ProActionGroupProps = {
|
|
77
77
|
export declare function ProActionGroup(props: ProActionGroupProps): JSX.Element;
|
78
78
|
declare const ProAction: (props: ProActionProps) => JSX.Element;
|
79
79
|
export default ProAction;
|
80
|
+
export * from './quick';
|
80
81
|
/**
|
81
82
|
* @deprecated 建议使用 ProActionGroup 代替
|
82
83
|
*/
|
package/es/actions/index.js
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
2
|
+
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
+
|
5
|
+
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; }
|
6
|
+
|
7
|
+
import ProAction from './';
|
8
|
+
import ReactDom from 'react-dom';
|
9
|
+
import React from 'react';
|
10
|
+
export function createAction(props) {
|
11
|
+
var parentDom = document.getElementById('teamix-pro-actions-identification-par');
|
12
|
+
|
13
|
+
if (!parentDom) {
|
14
|
+
parentDom = document.createElement('div');
|
15
|
+
parentDom.setAttribute('id', 'teamix-pro-actions-identification-par');
|
16
|
+
document.body.appendChild(parentDom);
|
17
|
+
} else {
|
18
|
+
parentDom.innerHTML = '';
|
19
|
+
}
|
20
|
+
|
21
|
+
var divDom = document.createElement('div');
|
22
|
+
divDom.style.display = 'none';
|
23
|
+
divDom.setAttribute('class', 'teamix-pro-actions-identification');
|
24
|
+
ReactDom.render( /*#__PURE__*/React.createElement(ProAction, _objectSpread({}, props)), divDom);
|
25
|
+
parentDom.appendChild(divDom);
|
26
|
+
setTimeout(function () {
|
27
|
+
var _divDom$children, _divDom$children$, _divDom$children$$cli;
|
28
|
+
|
29
|
+
// @ts-ignore
|
30
|
+
divDom === null || divDom === void 0 ? void 0 : (_divDom$children = divDom.children) === null || _divDom$children === void 0 ? void 0 : (_divDom$children$ = _divDom$children[0]) === null || _divDom$children$ === void 0 ? void 0 : (_divDom$children$$cli = _divDom$children$.click) === null || _divDom$children$$cli === void 0 ? void 0 : _divDom$children$$cli.call(_divDom$children$);
|
31
|
+
});
|
32
|
+
}
|
package/es/index.d.ts
CHANGED
@@ -28,5 +28,5 @@ export * from './table';
|
|
28
28
|
export * from './sidebar';
|
29
29
|
export * from './utils';
|
30
30
|
export * from './timeline';
|
31
|
-
declare const version = "1.5.
|
31
|
+
declare const version = "1.5.3";
|
32
32
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/es/index.js
CHANGED
@@ -37,6 +37,6 @@ export * from './table';
|
|
37
37
|
export * from './sidebar';
|
38
38
|
export * from './utils';
|
39
39
|
export * from './timeline';
|
40
|
-
var version = '1.5.
|
40
|
+
var version = '1.5.3';
|
41
41
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, // ProLayout,
|
42
42
|
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils };
|
package/es/table/index.js
CHANGED
@@ -51,7 +51,6 @@ import classNames from 'classnames';
|
|
51
51
|
import ProPageContainer from '../page-container';
|
52
52
|
import debounce from 'lodash.debounce';
|
53
53
|
import CardView from './components/CardView';
|
54
|
-
import columns from '../../demos/table/columns';
|
55
54
|
export * from './typing';
|
56
55
|
var cls = usePrefixCls('teamix-pro-table');
|
57
56
|
/**
|
@@ -1017,7 +1016,7 @@ var ProTable = function ProTable(props) {
|
|
1017
1016
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
1018
1017
|
showSkeleton: showSkeleton,
|
1019
1018
|
loading: getTableLoading(),
|
1020
|
-
originColumns:
|
1019
|
+
originColumns: propsColumns,
|
1021
1020
|
cardViewProps: cardViewProps,
|
1022
1021
|
scrollHeight: fullscreenState || fixedTableBody ? "calc(100vh - ".concat(headerHeight, "px)") : undefined,
|
1023
1022
|
actionRef: actionRef,
|
package/lib/actions/index.d.ts
CHANGED
@@ -77,6 +77,7 @@ export declare type ProActionGroupProps = {
|
|
77
77
|
export declare function ProActionGroup(props: ProActionGroupProps): JSX.Element;
|
78
78
|
declare const ProAction: (props: ProActionProps) => JSX.Element;
|
79
79
|
export default ProAction;
|
80
|
+
export * from './quick';
|
80
81
|
/**
|
81
82
|
* @deprecated 建议使用 ProActionGroup 代替
|
82
83
|
*/
|
package/lib/actions/index.js
CHANGED
@@ -3,6 +3,16 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
var _exportNames = {
|
7
|
+
registerActionHandler: true,
|
8
|
+
useAction: true,
|
9
|
+
ProActionButton: true,
|
10
|
+
ProActionMenuButton: true,
|
11
|
+
ProActionGroup: true,
|
12
|
+
ActionGroup: true,
|
13
|
+
ActionButton: true,
|
14
|
+
ActionMenuButton: true
|
15
|
+
};
|
6
16
|
exports.ProActionButton = exports.ActionMenuButton = exports.ActionGroup = exports.ActionButton = void 0;
|
7
17
|
exports.ProActionGroup = ProActionGroup;
|
8
18
|
exports.default = exports.ProActionMenuButton = void 0;
|
@@ -53,6 +63,19 @@ var _dangerPopConfirm = require("./danger-pop-confirm");
|
|
53
63
|
|
54
64
|
require("./index.scss");
|
55
65
|
|
66
|
+
var _quick = require("./quick");
|
67
|
+
|
68
|
+
Object.keys(_quick).forEach(function (key) {
|
69
|
+
if (key === "default" || key === "__esModule") return;
|
70
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
71
|
+
if (key in exports && exports[key] === _quick[key]) return;
|
72
|
+
Object.defineProperty(exports, key, {
|
73
|
+
enumerable: true,
|
74
|
+
get: function get() {
|
75
|
+
return _quick[key];
|
76
|
+
}
|
77
|
+
});
|
78
|
+
});
|
56
79
|
var _excluded = ["type"],
|
57
80
|
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
|
58
81
|
_excluded3 = ["loading"],
|
@@ -546,11 +569,11 @@ var ProAction = function ProAction(props) {
|
|
546
569
|
};
|
547
570
|
|
548
571
|
var _default = ProAction;
|
572
|
+
exports.default = _default;
|
573
|
+
|
549
574
|
/**
|
550
575
|
* @deprecated 建议使用 ProActionGroup 代替
|
551
576
|
*/
|
552
|
-
|
553
|
-
exports.default = _default;
|
554
577
|
var ActionGroup = ProActionGroup;
|
555
578
|
/**
|
556
579
|
* @deprecated 建议使用 ProActionButton 代替
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.createAction = createAction;
|
7
|
+
|
8
|
+
var _ = _interopRequireDefault(require("./"));
|
9
|
+
|
10
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
11
|
+
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
17
|
+
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
19
|
+
|
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
|
+
|
22
|
+
function createAction(props) {
|
23
|
+
var parentDom = document.getElementById('teamix-pro-actions-identification-par');
|
24
|
+
|
25
|
+
if (!parentDom) {
|
26
|
+
parentDom = document.createElement('div');
|
27
|
+
parentDom.setAttribute('id', 'teamix-pro-actions-identification-par');
|
28
|
+
document.body.appendChild(parentDom);
|
29
|
+
} else {
|
30
|
+
parentDom.innerHTML = '';
|
31
|
+
}
|
32
|
+
|
33
|
+
var divDom = document.createElement('div');
|
34
|
+
divDom.style.display = 'none';
|
35
|
+
divDom.setAttribute('class', 'teamix-pro-actions-identification');
|
36
|
+
|
37
|
+
_reactDom.default.render( /*#__PURE__*/_react.default.createElement(_.default, _objectSpread({}, props)), divDom);
|
38
|
+
|
39
|
+
parentDom.appendChild(divDom);
|
40
|
+
setTimeout(function () {
|
41
|
+
var _divDom$children, _divDom$children$, _divDom$children$$cli;
|
42
|
+
|
43
|
+
// @ts-ignore
|
44
|
+
divDom === null || divDom === void 0 ? void 0 : (_divDom$children = divDom.children) === null || _divDom$children === void 0 ? void 0 : (_divDom$children$ = _divDom$children[0]) === null || _divDom$children$ === void 0 ? void 0 : (_divDom$children$$cli = _divDom$children$.click) === null || _divDom$children$$cli === void 0 ? void 0 : _divDom$children$$cli.call(_divDom$children$);
|
45
|
+
});
|
46
|
+
}
|
package/lib/index.d.ts
CHANGED
@@ -28,5 +28,5 @@ export * from './table';
|
|
28
28
|
export * from './sidebar';
|
29
29
|
export * from './utils';
|
30
30
|
export * from './timeline';
|
31
|
-
declare const version = "1.5.
|
31
|
+
declare const version = "1.5.3";
|
32
32
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/lib/index.js
CHANGED
package/lib/table/index.js
CHANGED
@@ -44,8 +44,6 @@ var _lodash = _interopRequireDefault(require("lodash.debounce"));
|
|
44
44
|
|
45
45
|
var _CardView = _interopRequireDefault(require("./components/CardView"));
|
46
46
|
|
47
|
-
var _columns = _interopRequireDefault(require("../../demos/table/columns"));
|
48
|
-
|
49
47
|
var _typing = require("./typing");
|
50
48
|
|
51
49
|
Object.keys(_typing).forEach(function (key) {
|
@@ -1063,7 +1061,7 @@ var ProTable = function ProTable(props) {
|
|
1063
1061
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
1064
1062
|
showSkeleton: showSkeleton,
|
1065
1063
|
loading: getTableLoading(),
|
1066
|
-
originColumns:
|
1064
|
+
originColumns: propsColumns,
|
1067
1065
|
cardViewProps: cardViewProps,
|
1068
1066
|
scrollHeight: fullscreenState || fixedTableBody ? "calc(100vh - ".concat(headerHeight, "px)") : undefined,
|
1069
1067
|
actionRef: actionRef,
|