@teamias/rex-design 0.0.1 → 0.0.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/LICENSE +21 -21
- package/README.md +3 -3
- package/dist/components/action-buttons/action-buttons.d.ts +1 -1
- package/dist/components/action-buttons/action-buttons.js +86 -76
- package/dist/components/action-buttons/demo/index.js +61 -58
- package/dist/components/base-form/base-form.js +218 -215
- package/dist/components/base-form/demo/index.js +147 -135
- package/dist/components/base-form/modules/renderComponentNode.d.ts +2 -2
- package/dist/components/base-form/modules/renderComponentNode.js +135 -130
- package/dist/components/base-form/types.d.ts +1 -1
- package/dist/components/base-form/types.js +0 -9
- package/dist/components/base-list-table/base-list-table.d.ts +2 -2
- package/dist/components/base-list-table/base-list-table.js +156 -135
- package/dist/components/base-list-table/demo/BasicBaseListTable.js +22 -13
- package/dist/components/base-list-table/demo/NoData.js +2 -1
- package/dist/components/base-list-table/demo/TableMaxRowCount.js +1669 -1663
- package/dist/components/base-list-table/demo/VirtualDemo.js +22 -13
- package/dist/components/base-table/base-table.d.ts +2 -2
- package/dist/components/base-table/base-table.js +60 -55
- package/dist/components/base-table/components/BaseTableRow.js +79 -66
- package/dist/components/base-table/demo/BaseTableAll.js +6 -2
- package/dist/components/base-table/demo/BaseTableBasic.js +5 -2
- package/dist/components/base-table/demo/BaseTableIndex.js +48 -50
- package/dist/components/base-table/demo/BaseTableRowSelect.js +2 -1
- package/dist/components/data-cell/data-cell.js +5 -4
- package/dist/components/data-cell/demo/index.js +327 -309
- package/dist/components/data-cell/modules/cellItemMap.d.ts +2 -2
- package/dist/components/data-cell/modules/cellItemMap.js +184 -157
- package/dist/components/data-cell/types.d.ts +9 -9
- package/dist/components/icons/demo/index.js +44 -40
- package/dist/components/icons/icons.d.ts +1 -1
- package/dist/components/icons/icons.js +36 -26
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/media-viewer/demo/index.js +24 -20
- package/dist/components/media-viewer/media-viewer.d.ts +1 -1
- package/dist/components/media-viewer/media-viewer.js +13 -12
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +2 -0
- package/dist/{hooks → context}/request-fields-container/demo/index.js +10 -5
- package/dist/{hooks → context}/request-fields-container/index.js +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.js +17 -12
- package/dist/context/request-fields-container/request-fields-container-hoc.d.ts +4 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-hoc.js +0 -1
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.js +9 -5
- package/dist/{hooks → context}/rex-pro-config-provider/index.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.js +0 -1
- package/dist/context/rex-pro-config-provider/rex-pro-config-provider.d.ts +5 -0
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-provider.js +8 -6
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-state-data/use-state-data.js +4 -4
- package/dist/index.d.ts +3 -10
- package/dist/index.js +3 -10
- package/dist/{components/base-form/locales → locales}/en-US.json +30 -21
- package/dist/{components/base-form/locales → locales}/zh-CN.json +30 -21
- package/dist/types/svg.d.ts +3 -3
- package/package.json +37 -33
- package/dist/components/base-form/locales.index.d.ts +0 -42
- package/dist/components/base-form/locales.index.js +0 -4
- package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +0 -4
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +0 -6
- package/dist/utils/locales/en-US.json +0 -13
- package/dist/utils/locales/index.d.ts +0 -26
- package/dist/utils/locales/index.js +0 -4
- package/dist/utils/locales/zh-CN.json +0 -13
- package/dist/{hooks → context}/request-fields-container/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/index.d.ts +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.js +0 -0
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/index.d.ts +1 -1
- /package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.js +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) cloudovo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) cloudovo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @teamias/rex-design
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/@teamias/rex-design)
|
|
4
|
+
[](https://npmjs.org/package/@teamias/rex-design)
|
|
5
5
|
|
|
6
6
|
A react library developed with dumi
|
|
7
7
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IActionButtonsProps } from
|
|
1
|
+
import { IActionButtonsProps } from './types';
|
|
2
2
|
export declare const ActionButtons: ({ requestFields, requestFieldsUrl, requestFieldsParams, fieldsConfig, items, dropdownProps, size, record, onHasButtons, onClick, labelRender, }: IActionButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["leftIcon", "rightIcon"],
|
|
3
3
|
_excluded2 = ["leftIcon", "rightIcon"];
|
|
4
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -19,10 +18,13 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
19
18
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
20
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
20
|
import { useRequestFields, useRexProConfigProvider } from "../..";
|
|
22
|
-
import { Button, Dropdown, Skeleton, Space } from
|
|
23
|
-
import { useMemo } from
|
|
21
|
+
import { Button, Dropdown, Skeleton, Space } from 'antd';
|
|
22
|
+
import { useMemo } from 'react';
|
|
24
23
|
import { handlerFilter } from "./modules/handlerFilter";
|
|
25
|
-
import
|
|
24
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
+
import { createElement as _createElement } from "react";
|
|
27
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
28
|
export var ActionButtons = function ActionButtons(_ref) {
|
|
27
29
|
var requestFields = _ref.requestFields,
|
|
28
30
|
requestFieldsUrl = _ref.requestFieldsUrl,
|
|
@@ -65,9 +67,10 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
65
67
|
/** 渲染label */
|
|
66
68
|
var inlineLabelRender = function inlineLabelRender(item) {
|
|
67
69
|
var _item$buttonProps, _item$buttonProps2;
|
|
68
|
-
var oldNode = /*#__PURE__*/
|
|
69
|
-
size: 4
|
|
70
|
-
|
|
70
|
+
var oldNode = /*#__PURE__*/_jsxs(Space, {
|
|
71
|
+
size: 4,
|
|
72
|
+
children: [(_item$buttonProps = item.buttonProps) === null || _item$buttonProps === void 0 ? void 0 : _item$buttonProps.leftIcon, item.label, (_item$buttonProps2 = item.buttonProps) === null || _item$buttonProps2 === void 0 ? void 0 : _item$buttonProps2.rightIcon]
|
|
73
|
+
});
|
|
71
74
|
return labelRender ? labelRender(oldNode, item) : oldNode;
|
|
72
75
|
};
|
|
73
76
|
var handler = function handler(item, type) {
|
|
@@ -106,77 +109,84 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
106
109
|
return config;
|
|
107
110
|
};
|
|
108
111
|
if (loading) {
|
|
109
|
-
return /*#__PURE__*/
|
|
112
|
+
return /*#__PURE__*/_jsx(Space, {
|
|
110
113
|
size: [8, 16],
|
|
111
|
-
wrap: true
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
wrap: true,
|
|
115
|
+
children: /*#__PURE__*/_jsx(Skeleton.Button, {
|
|
116
|
+
active: true,
|
|
117
|
+
size: size === 'middle' ? undefined : size
|
|
118
|
+
})
|
|
119
|
+
});
|
|
116
120
|
}
|
|
117
121
|
onHasButtons === null || onHasButtons === void 0 || onHasButtons(hasButtons);
|
|
118
|
-
return /*#__PURE__*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
122
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
123
|
+
children: inlineItems.map(function (groupItem, index) {
|
|
124
|
+
var arr = [];
|
|
125
|
+
if (groupItem.hidden) return [];
|
|
126
|
+
if (operationPermission && !operationPermission(groupItem.permissionKey)) return [];
|
|
127
|
+
if (groupItem.type === 'button_items') {
|
|
128
|
+
var _groupItem$items;
|
|
129
|
+
var els = ((_groupItem$items = groupItem.items) === null || _groupItem$items === void 0 ? void 0 : _groupItem$items.map(function (rawItem, subIndex) {
|
|
130
|
+
var _item$label;
|
|
131
|
+
if (rawItem.hidden) return;
|
|
132
|
+
if (operationPermission && !operationPermission(rawItem.permissionKey)) return;
|
|
133
|
+
var item = handler(rawItem, 'button');
|
|
134
|
+
if (!item) return;
|
|
135
|
+
var _ref2 = item.buttonProps || {},
|
|
136
|
+
leftIcon = _ref2.leftIcon,
|
|
137
|
+
rightIcon = _ref2.rightIcon,
|
|
138
|
+
otherButtonProps = _objectWithoutProperties(_ref2, _excluded);
|
|
139
|
+
return /*#__PURE__*/_createElement(Button, _objectSpread(_objectSpread({
|
|
140
|
+
size: size
|
|
141
|
+
}, otherButtonProps), {}, {
|
|
142
|
+
key: "".concat(index, "-").concat(item.key, "-").concat(subIndex),
|
|
143
|
+
onClick: item.onClick
|
|
144
|
+
}), /*#__PURE__*/_jsx(Space, {
|
|
145
|
+
size: 4,
|
|
146
|
+
children: inlineLabelRender(_objectSpread(_objectSpread({}, item), {}, {
|
|
147
|
+
label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : formatMessage({
|
|
148
|
+
id: 'bit.common.action-buttons.item-label',
|
|
149
|
+
defaultMessage: '未配置 button label'
|
|
150
|
+
})
|
|
151
|
+
}))
|
|
152
|
+
}));
|
|
153
|
+
})) || [];
|
|
154
|
+
arr.push.apply(arr, _toConsumableArray(els));
|
|
155
|
+
} else if (groupItem.type === 'button_group') {
|
|
156
|
+
var groupItems = (groupItem.items || []).map(function (item) {
|
|
157
|
+
if (item.hidden) return;
|
|
158
|
+
if (operationPermission && !operationPermission(item.permissionKey)) return;
|
|
159
|
+
return handler(item, 'dropdown');
|
|
160
|
+
}).filter(Boolean);
|
|
161
|
+
if (groupItems.length) {
|
|
162
|
+
var _groupItem$label;
|
|
163
|
+
var _ref3 = groupItem.buttonProps || {},
|
|
164
|
+
leftIcon = _ref3.leftIcon,
|
|
165
|
+
rightIcon = _ref3.rightIcon,
|
|
166
|
+
otherButtonProps = _objectWithoutProperties(_ref3, _excluded2);
|
|
167
|
+
arr.push( /*#__PURE__*/_jsx(Dropdown, _objectSpread(_objectSpread({
|
|
168
|
+
arrow: true
|
|
169
|
+
}, dropdownProps), {}, {
|
|
170
|
+
menu: _objectSpread(_objectSpread({}, dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.menu), {}, {
|
|
171
|
+
items: groupItems
|
|
172
|
+
}),
|
|
173
|
+
children: /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
|
|
174
|
+
size: size
|
|
175
|
+
}, otherButtonProps), {}, {
|
|
176
|
+
children: /*#__PURE__*/_jsx(Space, {
|
|
177
|
+
size: 4,
|
|
178
|
+
children: inlineLabelRender(_objectSpread(_objectSpread({}, groupItem), {}, {
|
|
179
|
+
label: (_groupItem$label = groupItem.label) !== null && _groupItem$label !== void 0 ? _groupItem$label : formatMessage({
|
|
180
|
+
id: 'bit.common.action-buttons.group-label',
|
|
181
|
+
defaultMessage: '未配置 group label'
|
|
182
|
+
})
|
|
183
|
+
}))
|
|
184
|
+
})
|
|
185
|
+
}))
|
|
186
|
+
}), index));
|
|
187
|
+
}
|
|
178
188
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
})
|
|
189
|
+
return arr;
|
|
190
|
+
})
|
|
191
|
+
});
|
|
182
192
|
};
|
|
@@ -1,69 +1,72 @@
|
|
|
1
1
|
import { StepBackwardOutlined } from '@ant-design/icons';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { ActionButtons } from "../../..";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
5
|
export default (function () {
|
|
5
|
-
return /*#__PURE__*/
|
|
6
|
-
|
|
7
|
-
type: 'button_items',
|
|
8
|
-
value: '1',
|
|
9
|
-
hidden: false,
|
|
6
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
7
|
+
children: /*#__PURE__*/_jsx(ActionButtons, {
|
|
10
8
|
items: [{
|
|
11
|
-
|
|
9
|
+
type: 'button_items',
|
|
12
10
|
value: '1',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
hidden: false,
|
|
12
|
+
items: [{
|
|
13
|
+
label: '按钮1111',
|
|
14
|
+
value: '1',
|
|
15
|
+
buttonProps: {
|
|
16
|
+
leftIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {}),
|
|
17
|
+
rightIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {})
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
label: '按钮2',
|
|
21
|
+
value: '2',
|
|
22
|
+
hidden: false
|
|
23
|
+
}]
|
|
17
24
|
}, {
|
|
18
|
-
|
|
25
|
+
type: 'button_items',
|
|
19
26
|
value: '2',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
value: '3'
|
|
27
|
+
items: [{
|
|
28
|
+
label: '按钮3',
|
|
29
|
+
value: '3'
|
|
30
|
+
}, {
|
|
31
|
+
label: '按钮4',
|
|
32
|
+
value: '4'
|
|
33
|
+
}]
|
|
28
34
|
}, {
|
|
29
|
-
|
|
30
|
-
value: '
|
|
31
|
-
|
|
32
|
-
}, {
|
|
33
|
-
type: 'button_group',
|
|
34
|
-
value: '3',
|
|
35
|
-
hidden: false,
|
|
36
|
-
buttonProps: {
|
|
37
|
-
leftIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null),
|
|
38
|
-
rightIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null)
|
|
39
|
-
},
|
|
40
|
-
items: [{
|
|
41
|
-
label: '按钮5',
|
|
42
|
-
value: '5',
|
|
35
|
+
type: 'button_group',
|
|
36
|
+
value: '3',
|
|
37
|
+
hidden: false,
|
|
43
38
|
buttonProps: {
|
|
44
|
-
leftIcon: /*#__PURE__*/
|
|
45
|
-
rightIcon: /*#__PURE__*/
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
39
|
+
leftIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {}),
|
|
40
|
+
rightIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {})
|
|
41
|
+
},
|
|
42
|
+
items: [{
|
|
43
|
+
label: '按钮5',
|
|
44
|
+
value: '5',
|
|
45
|
+
buttonProps: {
|
|
46
|
+
leftIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {}),
|
|
47
|
+
rightIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {})
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
label: '按钮6',
|
|
51
|
+
value: '6'
|
|
52
|
+
}]
|
|
58
53
|
}, {
|
|
59
|
-
|
|
60
|
-
value: '
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
type: 'button_group',
|
|
55
|
+
value: '4',
|
|
56
|
+
items: [{
|
|
57
|
+
label: '按钮7',
|
|
58
|
+
value: '7',
|
|
59
|
+
hidden: false
|
|
60
|
+
}, {
|
|
61
|
+
label: '按钮8',
|
|
62
|
+
value: '8',
|
|
63
|
+
hidden: false
|
|
64
|
+
}]
|
|
65
|
+
}],
|
|
66
|
+
onClick: function onClick(_ref) {
|
|
67
|
+
var value = _ref.value;
|
|
68
|
+
console.log(value);
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
});
|
|
69
72
|
});
|